MCPcopy
hub / github.com/dc-js/dc.js / resizeHandlePath

Method resizeHandlePath

src/base/coordinate-grid-mixin.js:1099–1111  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

1097
1098 // borrowed from Crossfilter example
1099 resizeHandlePath (d) {
1100 d = d.type;
1101 const e = +(d === 'e'), x = e ? 1 : -1, y = this.effectiveHeight() / 3;
1102 return `M${0.5 * x},${y
1103 }A6,6 0 0 ${e} ${6.5 * x},${y + 6
1104 }V${2 * y - 6
1105 }A6,6 0 0 ${e} ${0.5 * x},${2 * y
1106 }Z` +
1107 `M${2.5 * x},${y + 8
1108 }V${2 * y - 8
1109 }M${4.5 * x},${y + 8
1110 }V${2 * y - 8}`;
1111 }
1112
1113 _getClipPathId () {
1114 return `${this.anchorName().replace(/[ .#=\[\]"]/g, '-')}-clip`;

Callers 2

redrawBrushMethod · 0.95

Calls 1

effectiveHeightMethod · 0.80

Tested by

no test coverage detected