MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / dataToLine

Function dataToLine

public/iframe/lib/js/mixinsEarth.js:18–25  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

16 return result;
17 },
18 dataToLine (data) {
19 // csv 数据转line
20 const result = []
21 for (const item of data) {
22 result.push([[Number(item.lng1), Number(item.lat1)], [Number(item.lng2), Number(item.lat2)]])
23 }
24 return result;
25 },
26 initEarth () {
27 Vue.component(`x-lineAndScatterEarth`, {
28 props: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected