Frameworks
Integrations
Mendix
SharePoint
Default UI
Modular UI
AnnotationManager
Annotation Types
Customize
Version 11
Version 10
v10.12
v10.11
v10.10
v10.9
v10.8
v10.7
v10.6
v10.5
v10.4
v10.3
v10.2
v10.1
v10.0
Version 8
v8.12
v8.11
v8.10
v8.9
v8.8
v8.7
v8.6
v8.5
v8.4
v8.3
v8.2
v8.1
v8.0
Version 7
Version 6
v6.3
v6.2
v6.1
v6.0
Version 5
Version 4
Version 3
Version 2
WebViewer Server
WebViewer BIM
The annotation selection handles and outlines are drawn with HTML Canvas APIs and by customizing the ControlHandle
and SelectionModel
classes, and utilizing Canvas APIs, it is possible to create a custom selection model.
The selection handles are rendered in the ControlHandle class, and by overriding some of the static properties and the draw
method, you can create custom handles. The static properties can be used to change the width, height, and color of the handle. The draw
function will give total control draw the selection handles as you like.
Figure 1. On the left side is the default selection handles and on the right side are custom selection hendles.
The selection outlines can be customized with the SelectionModel class. For changing width, height, and color, use static properties as shown in the code sample. The drawSelectionOutline
can be overridden to access the canvas context and draw the outlines differently.
Figure 2. On the left side is the default selection outlines and on the right side are custom selection outlines.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales