MCPcopy Create free account
hub / github.com/editablejs/editable / getCapturedData

Function getCapturedData

packages/plugins/toolbar/src/side/weak-map.ts:14–16  ·  view source on GitHub ↗
(editor: Editable)

Source from the content-addressed store, hash-verified

12const SIDETOOLBAR_CAPTURED_DATA_WEAK_MAP = new WeakMap<Editable, CapturedData>()
13
14export const getCapturedData = (editor: Editable): CapturedData | undefined => {
15 return SIDETOOLBAR_CAPTURED_DATA_WEAK_MAP.get(editor)
16}
17
18export const setCapturedData = (editor: Editable, data: CapturedData) => {
19 SIDETOOLBAR_CAPTURED_DATA_WEAK_MAP.set(editor, data)

Callers 4

useSideToolbarMenuEffectFunction · 0.90
SideToolbarFunction · 0.90
handleMouseEnterFunction · 0.90
handleMenuSelectFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…