@taichina/map-sdk 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taichina/map-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "基于 GIS 的铁路业务地图 SDK。",
5
5
  "type": "module",
6
6
  "main": "./teee-sdk/teee-map-sdk.umd.js",
@@ -4848,62 +4848,62 @@ var be = class {
4848
4848
  this.onPathSelected?.(t);
4849
4849
  }
4850
4850
  createSignalAction(e) {
4851
- let t, n, r, i = [], a = {}, o = e.state, s = e.feature, c = s.properties;
4852
- return o.subState1 && (o.subState1 == "red" ? (t = "nf", n = "扭封", i.push(s), a = e, r = `对${c.name}信号机钮封操作`) : (t = "jf", n = "解封", i.push(s), a = e, r = `对${c.name}信号机解封操作`)), o.subState2 && (o.subState2 == "off" ? (t = "lightoff", n = "灭灯", i.push(s), a = e, r = `对${c.name}信号机灭灯操作`) : (t = "lighton", n = "点灯", i.push(s), a = e, r = `对${c.name}信号机点灯操作`)), {
4851
+ let t, n, r, i = {}, a, o = e.state, s = e.feature.properties, c = s.name;
4852
+ return o.subState1 && (o.subState1 == "red" ? (t = "nf", n = "扭封", a = c, i = e, r = `对${s.name}信号机钮封操作`) : (t = "jf", n = "解封", a = c, i = e, r = `对${s.name}信号机解封操作`)), o.subState2 && (o.subState2 == "off" ? (t = "lightoff", n = "灭灯", a = c, i = e, r = `对${s.name}信号机灭灯操作`) : (t = "lighton", n = "点灯", a = c, i = e, r = `对${s.name}信号机点灯操作`)), {
4853
4853
  actionType: t,
4854
4854
  actionName: n,
4855
4855
  content: r,
4856
- feature: i,
4857
- data: a
4856
+ target: a,
4857
+ data: i
4858
4858
  };
4859
4859
  }
4860
4860
  createAllLightAction(e) {
4861
- let t, n, r, i = [], a = {};
4862
- return e.state.subState2 === "off" ? (t = "lightoff", n = "全灭", r = "信号机全灭操作", a = e) : (t = "lighton", n = "全亮", r = "信号机全亮操作", a = e), {
4861
+ let t, n, r, i, a = {};
4862
+ return e.state.subState2 === "off" ? (t = "lightoff", n = "全灭", r = "信号机全灭操作", i = "lightoff", a = e) : (t = "lighton", n = "全亮", r = "信号机全亮操作", i = "lighton", a = e), {
4863
4863
  actionType: t,
4864
4864
  actionName: n,
4865
4865
  content: r,
4866
- feature: i,
4866
+ target: i,
4867
4867
  data: a
4868
4868
  };
4869
4869
  }
4870
4870
  createSwitchAction(e) {
4871
- let t, n, r, i = [], a = {}, o = e.state, s = e.feature, c = s.properties;
4872
- return o.subState1 && (o.subState1 == "red" ? (t = "nf", n = "扭封", i.push(s), a = e, r = `对${c.name}信号机钮封操作`) : (t = "jf", n = "解封", i.push(s), a = e, r = `对${c.name}信号机解封操作`)), o.subState2 && (o.subState2 == "off" ? (t = "dd", n = "灭灯", i.push(s), a = e, r = `对${c.name}信号机灭灯操作`) : (t = "md", n = "点灯", i.push(s), a = e, r = `对${c.name}信号机点灯操作`)), o.subState1 !== void 0 && (o.subState1 === "2" ? (t = "dcsb", n = "道岔锁闭", i.push(s), a = e, r = `对${c.name}道岔锁闭操作`) : o.subState1 === "3" ? (t = "dczy", n = "道岔占用", i.push(s), a = e, r = `对${c.name}道岔占用操作`) : o.subState1 === "" && (t = "dccq", n = "道岔出清", i.push(s), a = e, r = `对${c.name}道岔出清操作`)), o.subState2 !== void 0 && (o.subState2 === "" ? (t = "dcjs", n = "道岔解锁", i.push(s), a = e, r = `对${c.name}道岔解锁操作`) : (t = "dcds", n = "道岔单锁", i.push(s), a = e, r = `对${c.name}道岔单锁操作`)), o.subState3 !== void 0 && (o.subState3 === "1" ? (t = "dcdf", n = "道岔单封", i.push(s), a = e, r = `对${c.name}道岔单封操作`) : o.subState3 === "" && (t = "dcjf", n = "道岔解封", i.push(s), a = e, r = `对${c.name}道岔解封操作`)), {
4871
+ let t, n, r, i, a = {}, o = e.state, s = e.feature.properties, c = s.name;
4872
+ return o.subState1 && (o.subState1 == "red" ? (t = "nf", n = "扭封", i = c, a = e, r = `对${s.name}信号机钮封操作`) : (t = "jf", n = "解封", i = c, a = e, r = `对${s.name}信号机解封操作`)), o.subState2 && (o.subState2 == "off" ? (t = "dd", n = "灭灯", i = c, a = e, r = `对${s.name}信号机灭灯操作`) : (t = "md", n = "点灯", i = c, a = e, r = `对${s.name}信号机点灯操作`)), o.subState1 !== void 0 && (o.subState1 === "2" ? (t = "dcsb", n = "道岔锁闭", i = c, a = e, r = `对${s.name}道岔锁闭操作`) : o.subState1 === "3" ? (t = "dczy", n = "道岔占用", i = c, a = e, r = `对${s.name}道岔占用操作`) : o.subState1 === "" && (t = "dccq", n = "道岔出清", i = c, a = e, r = `对${s.name}道岔出清操作`)), o.subState2 !== void 0 && (o.subState2 === "" ? (t = "dcjs", n = "道岔解锁", i = c, a = e, r = `对${s.name}道岔解锁操作`) : (t = "dcds", n = "道岔单锁", i = c, a = e, r = `对${s.name}道岔单锁操作`)), o.subState3 !== void 0 && (o.subState3 === "1" ? (t = "dcdf", n = "道岔单封", i = c, a = e, r = `对${s.name}道岔单封操作`) : o.subState3 === "" && (t = "dcjf", n = "道岔解封", i = c, a = e, r = `对${s.name}道岔解封操作`)), {
4873
4873
  actionType: t,
4874
4874
  actionName: n,
4875
4875
  content: r,
4876
- feature: i,
4876
+ target: i,
4877
4877
  data: a
4878
4878
  };
4879
4879
  }
4880
4880
  createPathAction(e) {
4881
- let t, n, r, i = [], a = {}, o = e.meta, s = e.feature, c = s.properties;
4882
- return o.pathType == "srcSignal" ? (t = "path", n = "srcSignal", i.push(s), a = e, r = `进路起点:${c.name}信号`) : (t = "path", n = "destSignal", i.push(s), a = e, r = `进路终点:${c.name}信号`), {
4881
+ let t, n, r, i, a = {}, o = e.meta, s = e.feature.properties, c = s.name;
4882
+ return o.pathType == "srcSignal" ? (t = "path", n = "srcSignal", i = c, a = e, r = `进路起点:${s.name}信号`) : (t = "path", n = "destSignal", i = c, a = e, r = `进路终点:${s.name}信号`), {
4883
4883
  actionType: t,
4884
4884
  actionName: n,
4885
4885
  content: r,
4886
- feature: i,
4886
+ target: i,
4887
4887
  data: a
4888
4888
  };
4889
4889
  }
4890
4890
  createDLTXAction(e) {
4891
- let t, n, r, i = [], a = {}, o = e.feature, s = o.properties;
4892
- return e.featureType == "dltx" && (t = "dltx", n = "短路铜线", i.push(o), a = e, r = `区段:${s.name}安置短路铜线`), {
4891
+ let t, n, r, i, a = {}, o = e.feature.properties, s = o.name;
4892
+ return e.featureType == "dltx" && (t = "dltx", n = "短路铜线", i = s, a = e, r = `区段:${o.name}安置短路铜线`), {
4893
4893
  actionType: t,
4894
4894
  actionName: n,
4895
4895
  content: r,
4896
- feature: i,
4896
+ target: i,
4897
4897
  data: a
4898
4898
  };
4899
4899
  }
4900
4900
  createWorkersAction(e) {
4901
- let t, n, r, i = [], a = {};
4902
- return e.featureType && (t = e.featureType, n = "工人绘制", i = e.fs, a = e, r = e.content), {
4901
+ let t, n, r, i, a = {};
4902
+ return e.featureType && (t = e.featureType, n = "拖动绘制", i = e.content, a = e, r = e.content), {
4903
4903
  actionType: t,
4904
4904
  actionName: n,
4905
4905
  content: r,
4906
- feature: i,
4906
+ target: i,
4907
4907
  data: a
4908
4908
  };
4909
4909
  }