@ray-js/robot-map 0.0.2-beta-13 → 0.0.2-beta-14

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.
@@ -103,7 +103,7 @@ const componentOptions = {
103
103
  runtime: {
104
104
  type: Object,
105
105
  observer: function (newValue, oldValue) {
106
- if (newValue !== oldValue && this.data.initialized && this.render) {
106
+ if (newValue && newValue !== oldValue && this.data.initialized && this.render) {
107
107
  this.render.onUpdateRuntime(newValue);
108
108
  }
109
109
  }
@@ -23,14 +23,14 @@ const RjsRobotMap = _ref => {
23
23
  let {
24
24
  map,
25
25
  path,
26
- roomProperties,
27
- forbiddenSweepZones,
28
- forbiddenMopZones,
29
- cleanZones,
30
- virtualWalls,
31
- spots,
32
- detectedObjects,
33
- customElements,
26
+ roomProperties = [],
27
+ forbiddenSweepZones = [],
28
+ forbiddenMopZones = [],
29
+ cleanZones = [],
30
+ virtualWalls = [],
31
+ spots = [],
32
+ detectedObjects = [],
33
+ customElements = [],
34
34
  config,
35
35
  runtime,
36
36
  onMapReady
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/robot-map",
3
- "version": "0.0.2-beta-13",
3
+ "version": "0.0.2-beta-14",
4
4
  "description": "机器人地图组件",
5
5
  "main": "lib/index",
6
6
  "files": [
@@ -32,7 +32,7 @@
32
32
  "@ray-js/ray": "^1.7.39"
33
33
  },
34
34
  "dependencies": {
35
- "@ray-js/robot-map-sdk": "0.0.3-beta-19",
35
+ "@ray-js/robot-map-sdk": "0.0.3-beta-20",
36
36
  "clsx": "^1.2.1",
37
37
  "nanoid": "^5.1.6"
38
38
  },