@knotx/plugins-canvas 0.5.4 → 0.5.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/dist/index.cjs CHANGED
@@ -538,7 +538,7 @@ class Canvas extends (_a = core.BasePlugin, _transform_dec = [decorators.registe
538
538
  getDefaultTransform() {
539
539
  var _a2, _b, _c;
540
540
  const defaultLocated = __spreadValues({}, this.config.defaultLocated);
541
- if (!(defaultLocated == null ? void 0 : defaultLocated.nodeId)) {
541
+ if (!(defaultLocated == null ? void 0 : defaultLocated.nodeId) && !this.config.limitToBounds) {
542
542
  return void 0;
543
543
  }
544
544
  const node = defaultLocated.nodeId ? this.getNode({ id: defaultLocated.nodeId }) : void 0;
package/dist/index.js CHANGED
@@ -536,7 +536,7 @@ class Canvas extends (_a = BasePlugin, _transform_dec = [register("transform")],
536
536
  getDefaultTransform() {
537
537
  var _a2, _b, _c;
538
538
  const defaultLocated = __spreadValues({}, this.config.defaultLocated);
539
- if (!(defaultLocated == null ? void 0 : defaultLocated.nodeId)) {
539
+ if (!(defaultLocated == null ? void 0 : defaultLocated.nodeId) && !this.config.limitToBounds) {
540
540
  return void 0;
541
541
  }
542
542
  const node = defaultLocated.nodeId ? this.getNode({ id: defaultLocated.nodeId }) : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/plugins-canvas",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "Canvas Plugin for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -29,25 +29,25 @@
29
29
  ],
30
30
  "peerDependencies": {
31
31
  "react": ">=17.0.0",
32
- "@knotx/jsx": "0.5.4",
33
- "@knotx/plugins-history": "0.5.4"
32
+ "@knotx/jsx": "0.5.6",
33
+ "@knotx/plugins-history": "0.5.6"
34
34
  },
35
35
  "dependencies": {
36
36
  "@knotx/react-zoom-pan-pinch": "^3.9.12",
37
37
  "lodash-es": "^4.17.21",
38
38
  "rxjs": "^7.8.1",
39
- "@knotx/core": "0.5.4",
40
- "@knotx/decorators": "0.5.4"
39
+ "@knotx/core": "0.5.6",
40
+ "@knotx/decorators": "0.5.6"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/lodash-es": "^4.17.12",
44
44
  "@types/react": "^17.0.0",
45
45
  "react": "^17.0.0",
46
- "@knotx/build-config": "0.5.4",
47
- "@knotx/eslint-config": "0.5.4",
48
- "@knotx/jsx": "0.5.4",
49
- "@knotx/plugins-history": "0.5.4",
50
- "@knotx/typescript-config": "0.5.4"
46
+ "@knotx/build-config": "0.5.6",
47
+ "@knotx/eslint-config": "0.5.6",
48
+ "@knotx/jsx": "0.5.6",
49
+ "@knotx/plugins-history": "0.5.6",
50
+ "@knotx/typescript-config": "0.5.6"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "unbuild",