ForceCanvasSize Op
Resize canvas element to a specific pixel size or aspect ratio
Summary (oneliner)
<p>for this to work in default exported html, remove "position:absolute;" from styling of the canvas element.</p>
Full Name
- Ops.Gl.ForceCanvasSize
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch ForceCanvasSize example
INPUT PORTS
Trigger (Trigger)
<p>Trigger the op</p>
Active (Number:
<i>boolean</i>
)<p>Enable or disable the op</p>
Force index (Number:
<i>integer</i>
) Resolution Aspect RatioCenter In Parent (Number:
<i>boolean</i>
)Scale to fit Parent (Number:
<i>boolean</i>
)Size
Set Width (Number:
<i>integer</i>
)Set Height (Number:
<i>integer</i>
)Proportions
Aspect Ratio index (Number:
<i>integer</i>
)Ratio (Number)
Fill Parent index (Number:
<i>integer</i>
)OUTPUT PORTS
Next (Trigger)
<p>Trigger out</p>
Width (Number)
<p>The new width</p>
Height (Number)
<p>The new height</p>
Margin Left (Number)
Margin Top (Number)