Perspective - View Canvas Scripting
This page details the various scripting, component, and extension functions available for Perspective's View Canvas component.
Component Events​
The Perspective Event Types Reference page describes all the possible component event types for Perspective components. Not all component events support each Perspective component. The Component Events and Actions page shows how to configure events and actions on a Perspective component. Component scripting is handled separately and can be accessed from the Component menubar or by right clicking on the component.
onInstanceClicked​
Event is fired when a view instance is clicked.
event.index​
-
Object Path
- event.index
-
Type
- Number
-
Description
- The index of the view instance.
event.params​
-
Object Path
- event.params
-
Type
- Dictionary
-
Description
- The position of the view instance in relation to the canvas.
event.path​
-
Object Path
- event.path
-
Type
- String
-
Description
- The path of the view instance.
event.position​
-
Object Path
- event.position
-
Type
- JSON Object
-
Description
- A JSON Object representing the current position values.