ForceCanvasSize Op

ForceCanvasSize

Resize canvas element to a specific pixel size or aspect ratio


<p>for this to work in default exported html, remove &quot;position:absolute;&quot; from styling of the canvas element.</p>


Full Name
  • Ops.Gl.ForceCanvasSize
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


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 Ratio 
Center 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)

Patches using ForceCanvasSize

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2020-01-24 14:54
Ops.User.pandur.ForceCanvasSize renamed to Ops.Gl.ForceCanvasSizeuser avatarpandur - 2020-01-24 15:46