MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / parsePoints

Function parsePoints

libs/echarts/echarts.simple.js:26804–26814  ·  view source on GitHub ↗
(pointsString)

Source from the content-addressed store, hash-verified

26802}
26803
26804function parsePoints(pointsString) {
26805 var list = trim(pointsString).split(DILIMITER_REG);
26806 var points = [];
26807
26808 for (var i = 0; i < list.length; i += 2) {
26809 var x = parseFloat(list[i]);
26810 var y = parseFloat(list[i + 1]);
26811 points.push([x, y]);
26812 }
26813 return points;
26814}
26815
26816var attributesMap = {
26817 'fill': 'fill',

Callers 1

echarts.simple.jsFile · 0.70

Calls 2

pushMethod · 0.80
trimFunction · 0.70

Tested by

no test coverage detected