@soonspacejs/plugin-poi-renderer 2.14.3 → 2.14.5

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/dist/index.esm.js CHANGED
@@ -11,7 +11,7 @@ class x {
11
11
  poiIdSet;
12
12
  resetStyleName(t) {
13
13
  const e = [...t];
14
- for (const s in e)
14
+ for (let s = 0; s < e.length; s++)
15
15
  e[s] !== e[s].toLowerCase() && (e[s] = `-${e[s].toLowerCase()}`);
16
16
  return e.join("");
17
17
  }
@@ -59,29 +59,29 @@ class x {
59
59
  this.ssp.removeObjectById(r);
60
60
  }), this.poiIdSet.clear();
61
61
  const s = (r) => {
62
- const { id: o, pid: l, width: i, height: d, dataSource: g, fileUrl: S, style: E, visible: b } = r;
63
- let c = this.ssp.getObjectById(o);
62
+ const { id: o, pid: l, width: i, height: c, dataSource: g, fileUrl: S, style: E, visible: b } = r;
63
+ let d = this.ssp.getObjectById(o);
64
64
  const h = b;
65
65
  if (this.poiIdSet.add(o), r.contentType === "VIDEO")
66
- c = this.renderVideo({
66
+ d = this.renderVideo({
67
67
  ...r,
68
68
  src: S,
69
69
  visible: h,
70
70
  style: {
71
71
  width: i + "px",
72
- height: d + "px"
72
+ height: c + "px"
73
73
  }
74
74
  });
75
75
  else if (r.contentType === "PANEL") {
76
76
  const {
77
77
  panel: { bodyStyle: a, rowStyle: y, labelStyle: p, valueStyle: u }
78
78
  } = JSON.parse(E);
79
- c = this.renderPanel({
79
+ d = this.renderPanel({
80
80
  ...r,
81
81
  visible: h,
82
82
  style: {
83
83
  width: i + "px",
84
- height: d + "px",
84
+ height: c + "px",
85
85
  backgroundImage: `url(${S})`,
86
86
  overflow: "auto",
87
87
  ...a,
@@ -102,9 +102,9 @@ class x {
102
102
  dataSource: g
103
103
  });
104
104
  }
105
- if (c && l) {
105
+ if (d && l) {
106
106
  const a = this.ssp.getObjectById(l);
107
- a && this.ssp.addObject(c, a);
107
+ a && this.ssp.addObject(d, a);
108
108
  }
109
109
  };
110
110
  e.forEach(s);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soonspacejs/plugin-poi-renderer",
3
3
  "pluginName": "PoiRendererPlugin",
4
- "version": "2.14.3",
4
+ "version": "2.14.5",
5
5
  "description": "Poi-renderer plugin for SoonSpace.js",
6
6
  "main": "dist/index.esm.js",
7
7
  "module": "dist/index.esm.js",
@@ -13,9 +13,9 @@
13
13
  ],
14
14
  "author": "xunwei",
15
15
  "license": "UNLICENSED",
16
- "gitHead": "fd0fa9cd584123a5e8bc9565940ccb68b034cd70",
16
+ "gitHead": "333db46f8d4a0e716267c9a4a0b4d8ddcac4276f",
17
17
  "peerDependencies": {
18
- "soonspacejs": "2.14.3"
18
+ "soonspacejs": "2.14.5"
19
19
  },
20
20
  "dependencies": {
21
21
  "csstype": "^3.1.2"