beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

ForceCanvasSize Op

ForceCanvasSize

Resize canvas element to a specific pixel size or aspect ratio


for this to work in default exported html, remove "position:absolute;" from styling of the canvas element.


Edit Documentation

Full Name
  • Ops.Gl.ForceCanvasSize
Visibility
  • Core Op - Official cables op
Author


 

INPUT PORTS


Trigger (Trigger)

Trigger the op

Active (Number:boolean )

Enable or disable the op

Force index (Number:integer )
Center In Parent (Number:boolean )
Scale to fit Parent (Number:boolean )

Size

Set Width (Number:integer )
Set Height (Number:integer )

Proportions

Aspect Ratio index (Number:integer )
Ratio (Number)
Fill Parent index (Number:integer )

OUTPUT PORTS


Next (Trigger)

Trigger out

Width (Number)

The new width

Height (Number)

The new height

Margin Left (Number)
Margin Top (Number)

Usages of ForceCanvasSize

  • Examples
  • Public
  • My Patches
  • Ops

Changelog


created opuser avatarpandur - 2020-01-24
Ops.User.pandur.ForceCanvasSize renamed to Ops.Gl.ForceCanvasSizeuser avatarpandur - 2020-01-24