@kep-platform/basic-component 0.0.53 → 0.0.54

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ export var ViewPortStore = /*#__PURE__*/function () {
18
18
  x: 0,
19
19
  y: 0
20
20
  });
21
- _defineProperty(this, "scale", 1);
21
+ _defineProperty(this, "scale", 0.2);
22
22
  _defineProperty(this, "width", 600);
23
23
  _defineProperty(this, "height", 600);
24
24
  _defineProperty(this, "ratio", 5);
@@ -26,7 +26,10 @@ export var ViewPortStore = /*#__PURE__*/function () {
26
26
  _defineProperty(this, "isMoving", false);
27
27
  _defineProperty(this, "maxZIndex", 1);
28
28
  _defineProperty(this, "isTransition", false);
29
- if (ratio) this.ratio = ratio;
29
+ if (ratio) {
30
+ this.ratio = ratio;
31
+ this.scale = 1 / this.ratio;
32
+ }
30
33
  if (width) this.width = width;
31
34
  if (height) this.height = height;
32
35
  makeObservable(this, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kep-platform/basic-component",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@ant-design/icons": "^5.3.7",
50
- "@kep-platform/hooks": "^0.0.53",
50
+ "@kep-platform/hooks": "^0.0.54",
51
51
  "color": "^4.2.3",
52
52
  "rc-pagination": "^4.1.0"
53
53
  },
@@ -87,5 +87,5 @@
87
87
  "authors": [
88
88
  "less-step-jss 1599925910@qq.com"
89
89
  ],
90
- "gitHead": "3d5f6e11df52330a069fc1f4d5198084980af3bb"
90
+ "gitHead": "0ce91bb9061a54df4adfad25f46b1b1b8bd6f2a3"
91
91
  }