Skip to content

Commit

Permalink
Merge branch 'main' of github.com:szabolcsdombi/zengl
Browse files Browse the repository at this point in the history
  • Loading branch information
szabolcsdombi committed Jan 10, 2024
2 parents 03638fb + de00351 commit d5757a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _zengl.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,10 @@ def loader(headless=False):

canvas = pyodide_js.canvas.getCanvas3D()

if not canvas:
if canvas is None:
canvas = js.document.getElementById("canvas")

if not canvas:
if canvas is None:
canvas = js.document.createElement("canvas")
canvas.id = "canvas"
canvas.style.position = "fixed"
Expand Down
2 changes: 1 addition & 1 deletion zengl-stubs/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,6 @@ def camera(
size: float = 1.0,
clip: bool = False,
) -> bytes: ...
def bind(buffer: Buffer | None, layout: str, *attributes: Iterable[int]) -> List[VertexBufferBinding]: ...
def bind(buffer: Buffer | None, layout: str, *attributes: int) -> List[VertexBufferBinding]: ...
def calcsize(layout: str) -> int: ...
def loader(headless: bool = False) -> ContextLoader: ...

0 comments on commit d5757a0

Please sign in to comment.