MCPcopy
hub / github.com/plotly/plotly.js / aroFromAROPos

Function aroFromAROPos

test/jasmine/assets/domain_ref_components.js:125–135  ·  view source on GitHub ↗
(aro, axletter, axnum, aropos)

Source from the content-addressed store, hash-verified

123// acts on an Object representing a aro which could be a line or a rect
124// DEPRECATED
125function aroFromAROPos(aro, axletter, axnum, aropos) {
126 aro[axletter + '0'] = aropos.value[0];
127 aro[axletter + '1'] = aropos.value[1];
128 if(aropos.ref === 'range') {
129 aro[axletter + 'ref'] = axletter + axnum;
130 } else if(aropos.ref === 'domain') {
131 aro[axletter + 'ref'] = axletter + axnum + ' domain';
132 } else if(aropos.ref === 'paper') {
133 aro[axletter + 'ref'] = 'paper';
134 }
135}
136
137// {axid} is the axis id, e.g., x2, y, etc.
138// {ref} is ['range'|'domain'|'paper']

Callers 1

shapeTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…