MCPcopy
hub / github.com/apache/echarts / getPathData

Function getPathData

src/chart/custom/CustomView.ts:1487–1490  ·  view source on GitHub ↗

* @return SVG Path data.

(shape: CustomSVGPathOption['shape'])

Source from the content-addressed store, hash-verified

1485 * @return SVG Path data.
1486 */
1487function getPathData(shape: CustomSVGPathOption['shape']): string {
1488 // "d" follows the SVG convention.
1489 return shape && (shape.pathData || shape.d);
1490}
1491
1492function hasOwnPathData(shape: CustomSVGPathOption['shape']): boolean {
1493 return shape && (hasOwn(shape, 'pathData') || hasOwn(shape, 'd'));

Callers 2

createElFunction · 0.85
doesElNeedRecreateFunction · 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…