Experimental:Palette:webSvg Ext

From Derivative
Revision as of 16:10, 9 February 2021 by Michel (talk | contribs) (Created page with "{{ExtSummary |COMPName=webSvg |opFamily=COMP |short=The Extension class of a webSvg COMP |long=The Extension class of a webSvg COMP}} {{ExtClassSummary |COMPName= |class...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

These Extentions reference a specific Palette:webSvg. The Extension class of a webSvg COMP


WebSvgExt[edit]

WebSvgExt description

Members[edit]

No operator specific members.


Methods[edit]

WebSvgExt.Center(self):

Called when loading file, changing file, or Reloading par is pulsed. It can be used to center the SVG in the WebRender when the transform matrix is set to default.

WebSvgExt.FitToViewport(self):

Called when loading file, changing file, or Reloading par is pulsed. It can be used to center the SVG in the WebRender when the transform matrix is set to default.

WebSvgExt.UpdateBackgroundColor(colorTuple):

When passsed a tuple (r,g,b,a), will remap the values to be web friendly and apply the change to the background color.