MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / makePath

Function makePath

libs/echarts/echarts-en.simple.js:16950–16959  ·  view source on GitHub ↗

* Create a path element from path data string * @param {string} pathData * @param {Object} opts * @param {module:zrender/core/BoundingRect} rect * @param {string} [layout=cover] 'center' or 'cover'

(pathData, opts, rect, layout)

Source from the content-addressed store, hash-verified

16948 * @param {string} [layout=cover] 'center' or 'cover'
16949 */
16950function makePath(pathData, opts, rect, layout) {
16951 var path = createFromString(pathData, opts);
16952 if (rect) {
16953 if (layout === 'center') {
16954 rect = centerGraphic(rect, path.getBoundingRect());
16955 }
16956 resizePath(path, rect);
16957 }
16958 return path;
16959}
16960
16961/**
16962 * Create a image element from image url

Callers 2

createIconFunction · 0.70
createSymbolFunction · 0.70

Calls 3

createFromStringFunction · 0.70
centerGraphicFunction · 0.70
resizePathFunction · 0.70

Tested by

no test coverage detected