MCPcopy Index your code
hub / github.com/plotly/plotly.js / makeEventData

Function makeEventData

src/components/annotations/draw.js:160–171  ·  view source on GitHub ↗
(initialEvent)

Source from the content-addressed store, hash-verified

158 var textEvents = options.captureevents || edits.annotationText || editTextPosition;
159
160 function makeEventData(initialEvent) {
161 var eventData = {
162 index: index,
163 annotation: options._input,
164 fullAnnotation: options,
165 event: initialEvent
166 };
167 if(subplotId) {
168 eventData.subplotId = subplotId;
169 }
170 return eventData;
171 }
172
173 var annTextGroupInner = annTextGroup.append('g')
174 .style('pointer-events', textEvents ? 'all' : null)

Callers 3

drawRawFunction · 0.70
drawGraphicalElementsFunction · 0.70
fillSelectionItemFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…