Tool name for rectangleAreaToolGroupButton

WebViewer Version: 8.7.0

Please give a brief summary of your issue:

What is the ToolName associated with data-element “rectangleAreaToolGroupButton”?

Please describe your issue and provide steps to reproduce it:

I’m trying to set all the tools to a default color that’s configured outside the viewer based on the role within the larger system.

As best as I can tell, I need to target every tool and set the StrokeColor/TextColor with the setStyle method.

(Aside: is there a global color I can set to avoid doing this?)

I’m currently passing all the tools that I need to convert to the color by referencing the ToolNames enum under “Core”. I’ve noticed that this enum does not have the complete set of tools, so this is what I have:

const strokeTools = [
		Tools.ToolNames.ARROW,
		Tools.ToolNames.DISTANCE_MEASUREMENT,
		Tools.ToolNames.AREA_MEASUREMENT,
		Tools.ToolNames.COUNT_MEASUREMENT,
		Tools.ToolNames.CLOUDY_RECTANGULAR_AREA_MEASUREMENT,
		Tools.ToolNames.CALLOUT,
		Tools.ToolNames.ELLIPSE,
		Tools.ToolNames.FREEHAND,
		Tools.ToolNames.FREEHAND_HIGHLIGHT,
		Tools.ToolNames.HIGHLIGHT,
		Tools.ToolNames.LINE,
		Tools.ToolNames.PERIMETER_MEASUREMENT,
		Tools.ToolNames.POLYGON,
		Tools.ToolNames.POLYGON_CLOUD,
		Tools.ToolNames.POLYLINE,
		Tools.ToolNames.RECTANGLE,
		Tools.ToolNames.SQUIGGLY,
		Tools.ToolNames.STICKY,
		Tools.ToolNames.STRIKEOUT,
		Tools.ToolNames.UNDERLINE,
		'AnnotationCreateArc',
		'AnnotationCreateArcMeasurement',
		'AnnotationCreateEllipseMeasurement',
		'AnnotationCreateRectangleMeasurement', // <-- I can't determine what this one is... not found
	];

I guessed what the last few tool names were based on the general pattern, but I can’t seem to find the last one using the same pattern. It’s the tool associated in the DOM with data-element=“rectangleAreaToolGroupButton” .

It would also be nice to have these last few tools added to the enum.

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

After I posted this I continued to try more combinations…

I found it to be “AnnotationCreateRectangularAreaMeasurement”