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

Method clearSelection

src/views/selection/SelectionManager.ts:47–58  ·  view source on GitHub ↗

* 清除所有选中状态

()

Source from the content-addressed store, hash-verified

45 * 清除所有选中状态
46 */
47 clearSelection() {
48 // 清除所有选中卡片的 DOM 状态
49 this.selectedCards.forEach((highlight, element) => {
50 element.removeClass('selected');
51 });
52
53 // 清空选中的卡片集合
54 this.selectedCards.clear();
55
56 // 通知选择变化
57 this.notifySelectionChange();
58 }
59
60 /**
61 * 更新选中的高亮列表

Callers 12

constructorMethod · 0.95
destroyMethod · 0.95
setupSearchAndSelectionFunction · 0.95
selectCardMethod · 0.80
renderHighlightsMethod · 0.80
startSelectionMethod · 0.80
registerHiNoteViewEventsFunction · 0.80

Calls 2

notifySelectionChangeMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected