lnyan commited on
Commit
ba5cdc2
1 Parent(s): f5c3a0a

Setup canvas

Browse files
Files changed (1) hide show
  1. index.html +4 -4
index.html CHANGED
@@ -137,9 +137,9 @@ async def draw_canvas_func(event):
137
  height=app.querySelector("#canvas_height input").value
138
  selection_size=app.querySelector("#selection_size input").value
139
  except:
140
- width=1024
141
- height=768
142
- selection_size=384
143
  document.querySelector("#container").style.width = f"{width}px"
144
  document.querySelector("#container").style.height= f"{height}px"
145
  canvas=InfCanvas(int(width),int(height),selection_size=int(selection_size))
@@ -403,7 +403,7 @@ window.addEventListener("message",create_proxy(message_func))
403
  import asyncio
404
 
405
  _ = await asyncio.gather(
406
- setup_func()
407
  )
408
  </py-script>
409
 
 
137
  height=app.querySelector("#canvas_height input").value
138
  selection_size=app.querySelector("#selection_size input").value
139
  except:
140
+ width=1500
141
+ height=600
142
+ selection_size=256
143
  document.querySelector("#container").style.width = f"{width}px"
144
  document.querySelector("#container").style.height= f"{height}px"
145
  canvas=InfCanvas(int(width),int(height),selection_size=int(selection_size))
 
403
  import asyncio
404
 
405
  _ = await asyncio.gather(
406
+ setup_func(),draw_canvas_func()
407
  )
408
  </py-script>
409