Experimental:Palette:webSvg Ext

From Derivative
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.