From 866c8cd690565b9c339acdfb63d1c2788eaec620 Mon Sep 17 00:00:00 2001 From: LY025714 <35520692+LY025714@users.noreply.github.com> Date: Tue, 8 Feb 2022 11:23:30 +0800 Subject: [PATCH] Update index.md The name of class LengthTool is 'Length', but LengthTool.name is 'LengthTool' in Version 3.x --- docs/latest/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/latest/index.md b/docs/latest/index.md index cf3d1ccbf..5443012e5 100644 --- a/docs/latest/index.md +++ b/docs/latest/index.md @@ -179,12 +179,12 @@ When a Tool is added, its default [mode](anatomy-of-a-tool/index.md#modes) is `D ```js // Activate the tool for ALL currently Enabled elements -cornerstoneTools.setToolActive(LengthTool.name, { mouseButtonMask: 1 }); +cornerstoneTools.setToolActive('Length', { mouseButtonMask: 1 }); // OR activate the tool for a specific Enabled element cornerstoneTools.setToolActiveForElement( enabledElement, - LengthTool.name, + 'Length', { mouseButtonMask: 1, },