attach

Summary

Attaches this renderng engine to a container and a parent HTML element.

Syntax

JavaScript Syntax
AnnSvgRenderingEngine.prototype.attach = function(container, element) 
TypeScript Syntax
attach(container: AnnContainer, element: HTMLElement): void; 

Parameters

container

The annotation container that contains the objects to draw.

element

The parent HTML element to render the annotations to.

Remarks

After this method is called, the render method will render all the objects in container into the element by creating (or updating) an SVG element and its children using the AnnContainerMapper set in AnnContainer.Mappper.

When rendering is done, you can call detach to remove the coupling between the engine and container/context.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.JavaScript Assembly