How to revert to old annotation selection styling (version 7.2 and earlier)

The styling of the annotation selection and control points have been updated in version 7.3. The main updates are:

  • When an annotation is too small, there will be some extra padding given, so it can be selected easily.
  • The selection lines are no longer dashed
  • The Control Points outline style has been changed from dashed line to solid line
  • The Control Points outline color has been changed from #418cfc to #3183c8
  • The Control Handle has been updated from the white circle to a blue circle
  • There is a small shadow given to Control Handles

Apryse Docs Image

If you want to use the selection style from version 7.2 and earlier, you can update the following properties:

JavaScript

1WebViewer(...)
2 .then(function(instance) {
3 const { Annotations } = instance;
4
5 // selection model outline adjustment
6 Annotations.SelectionModel.useDashedLine = true;
7 Annotations.SelectionModel.selectionOutlineThickness = 2;
8 Annotations.SelectionModel.defaultSelectionOutlineColor = new Annotations.Color(65, 140, 252);
9
10 // control handle adjustment
11 Annotations.ControlHandle.handleWidth = 12;
12 Annotations.ControlHandle.handleHeight = 12;
13 Annotations.ControlHandle.color = new Annotations.Color(255, 255, 255);;
14 Annotations.ControlHandle.outlineColor = new Annotations.Color(65, 140, 252);
15
16 // do not show extra padding when selected annotation is too small
17 Annotations.SelectionModel.selectionOutlineExtraPadding = 0;
18 });

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales