Gets or sets the fill of this Drawing.
Namespace: MindFusion.Mapping
File: Drawing.js
SyntaxJavaScript
Copy Code
|
|---|
get fill() {} |
Object. An object specifying the fill of the drawing.
ExampleThe following code creates a new CanvasLayer with an id "Drawings" and adds Circle instances, whose coordinates are taken from an array. The circles are filled with red color. The Circle class extends Drawing:
JavaScript
Copy Code
|
|---|
var m = MindFusion.Mapping; var points = [ var drawings = new m.CanvasLayer("Drawings");
|
See Also