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

ForceCanvasSize Op

Ops.Gl.ForceCanvasSize


ForceCanvasSize
Namespace: Ops.Gl

Op author: pandur

Resize canvas element to a specific pixel size or aspect ratio


summary (oneliner)

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



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

Trigger (Trigger)

Trigger the op


Active (boolean /Number)

Enable or disable the op


Force index (integer /Number)

Center In Parent (boolean /Number)

Scale to fit Parent (boolean /Number)

Size

Set Width (integer /Number)

Set Height (integer /Number)

Proportions

Aspect Ratio index (integer /Number)

Ratio (Number)

Fill Parent index (integer /Number)

Outputs

Next (Trigger)

Trigger out


Width (Number)

The new width


Height (Number)

The new height


Margin Left (Number)

Margin Top (Number)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

ForceCanvasSize example

Open Example In Editor


Patches using ForceCanvasSize

Changelog


created op
2020-01-24 - pandur

Ops.User.pandur.ForceCanvasSize renamed to Ops.Gl.ForceCanvasSize
2020-01-24 - pandur