Skip to content

Commit

Permalink
fix some minor issues in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Aug 31, 2024
1 parent 5c1139b commit bd34211
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
app:
build:
Expand Down
2 changes: 0 additions & 2 deletions examples/docker_image/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.9"

services:
nicegui:
image: zauberzeug/nicegui:latest
Expand Down
Binary file added examples/image_mask_overlay/OfwWp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/image_mask_overlay/PpIqU.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 9 additions & 7 deletions examples/image_mask_overlay/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/env python3
from nicegui import ui
from nicegui import app, ui

img_src = 'https://i.stack.imgur.com/PpIqU.png'
mask_src = 'https://i.stack.imgur.com/OfwWp.png'
app.add_static_files('/images', '.')

img_src = '/images/PpIqU.png'
mask_src = '/images/OfwWp.png'

with ui.row().classes('w-full flex items-center'):
ui.image(img_src).style('width: 25%')
Expand All @@ -14,10 +16,10 @@
<image xlink:href="{mask_src}" width="100%" height="100%" x="0" y="0" filter="url(#mask)" />
<filter id="mask">
<feComponentTransfer>
<feFuncR type="linear" slope="40" intercept="-(0.5 * 40) + 0.5"/>
<feFuncG type="linear" slope="40" intercept="-(0.5 * 40) + 0.5"/>
<feFuncB type="linear" slope="40" intercept="-(0.5 * 40) + 0.5"/>
<feFuncR type="linear" slope="1000"/>
<feFuncR type="linear" slope="40" />
<feFuncG type="linear" slope="40" />
<feFuncB type="linear" slope="40" />
<feFuncR type="linear" slope="1000" />
</feComponentTransfer>
<feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 3 -1 -1 0 0" />
</filter>
Expand Down
1 change: 0 additions & 1 deletion examples/nginx_subpath/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
app:
image: zauberzeug/nicegui:1.4.19
Expand Down
1 change: 0 additions & 1 deletion examples/ros2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
nicegui:
build:
Expand Down

0 comments on commit bd34211

Please sign in to comment.