Preparing search index...

    Per-draw options for VectorRenderer#render: where to draw (viewport), which part of the source to draw (region), and whether to clear first (clear). Leave viewport or region null — their default — to use the whole target or full source; set either to a Rect to override it.

    Lens Scripting Version 368

    var req = new VectorComposite.RenderRequest();
    req.region = Rect.create(0, 0.5, 0, 0.5); // a sub-region of the source
    renderer.render(target, script.mySvg, req);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    clear: boolean

    Clear the entire target to transparent before drawing. Default true; pass false to composite onto the existing target contents. Note: when a viewport sub-region is set, clear still clears the whole target attachment, not just the viewport.

    Lens Scripting Version 368

    true
    
    region: Rect

    Normalized [0, 1] sub-region of the source to draw. null (the default) draws the full source.

    Lens Scripting Version 368

    null
    
    viewport: Rect

    Destination rect within the target, in normalized device coordinates ([-1, 1], origin at centre). null (the default) fills the whole target ((-1, -1) bottom-left to (1, 1) top-right).

    Lens Scripting Version 368

    null
    

    Methods

    • Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().

      Returns string

      Lens Scripting Version 368

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean