MCPcopy
hub / github.com/antvis/Infographic / isTextSelectionTarget

Function isTextSelectionTarget

src/editor/utils/event.ts:94–99  ·  view source on GitHub ↗
(target: EventTarget | null)

Source from the content-addressed store, hash-verified

92};
93
94export function isTextSelectionTarget(target: EventTarget | null) {
95 if (!(target instanceof HTMLElement)) return false;
96 if (target.isContentEditable) return true;
97 const tag = target.tagName.toLowerCase();
98 return tag === 'input' || tag === 'textarea';
99}

Callers 2

DragCanvasClass · 0.90
BrushSelectClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected