|
jssvg
jssvg module
doc If something seems wrong or incomplete, please enter a comment at the bottom of this page. jssvg moduleclass jssvg::SVGconstructorconstructor()Constructs a new SVG object. MethodsWritethis Write( xmlString )Adds XML data to the current SVG context. RenderImageImageObject RenderImage( [ imageWidth , imageHeight ] [ , channels ] [ , fit ] [ , elementId ] )Draws the SVG to an image object. SetVisibleboolean SetVisible( elementId, polarity ) Scalethis Scale( sx, sy )Applies scaling by sx, sy to the current transformation. The effect of the new transformation is to first scale the coordinates by sx and sy, then apply the original transformation to the coordinates. Rotatethis Rotate( radians )Applies rotation by radians to the current transformation. The effect of the new transformation is to first rotate the coordinates by radians, then apply the original transformation to the coordinates. Translatethis Translate( tx, ty )Applies a translation by tx, ty to the current transformation. The effect of the new transformation is to first translate the coordinates by tx and ty, then apply the original transformation to the coordinates. Propertiesdpiinteger | Array dpi write-onlySets the dpi of the resulting image. If the argument is an Array (like dpiX, dpiY ) X and Y dpi can be set aside. widthwidth heightheight titletitle metadatametadata descriptiondescription imagesimages callback functions
Called when the SVG renderer need to draw an image element. uri is the name of the requested image. The function must return an image Object. |
► Sign in to add a comment