Represents a polyline drawing.
Namespace: MindFusion.Mapping
File: Poly.js
JavaScript Copy Code |
---|
// class |
The Poly class extends the Drawing class and represents a geometrical figure that is built from a list of points. The points are connected with straight lines.
The following code creates a new Polyline from an array with points and adds it to the decorations of a CanvasLayer:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var points = [ var drawings = new m.CanvasLayer("Drawings");
|
MindFusion.Mapping.Poly