MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / addState

Method addState

packages/utils/src/cursor.ts:48–53  ·  view source on GitHub ↗
(state: string)

Source from the content-addressed store, hash-verified

46 }
47
48 addState(state: string) {
49 if (!this.states.has(state)) {
50 this.states.add(state);
51 document.documentElement.classList.add(`lc-cursor-${state}`);
52 }
53 }
54
55 private removeState(state: string) {
56 if (this.states.has(state)) {

Callers 5

setDraggingMethod · 0.95
setXResizingMethod · 0.95
setYResizingMethod · 0.95
setCopyMethod · 0.95
mousedownMethod · 0.80

Calls 2

hasMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected