MCPcopy Create free account
hub / github.com/CatMuse/HiNote / unselectCard

Method unselectCard

src/views/selection/SelectionManager.ts:124–135  ·  view source on GitHub ↗

* 取消选中单个卡片 * @param element 卡片元素

(element: HTMLElement)

Source from the content-addressed store, hash-verified

122 * @param element 卡片元素
123 */
124 unselectCard(element: HTMLElement) {
125 if (this.selectedCards.has(element)) {
126 // 更新 DOM 状态
127 element.removeClass('selected');
128
129 // 从选中集合中移除
130 this.selectedCards.delete(element);
131
132 // 通知选择变化
133 this.notifySelectionChange();
134 }
135 }
136
137 /**
138 * 检查卡片是否被选中

Callers 1

selectCardMethod · 0.80

Calls 2

notifySelectionChangeMethod · 0.95
deleteMethod · 0.80

Tested by

no test coverage detected