@kep-platform/basic-component 0.0.52 → 0.0.54
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.
@@ -18,7 +18,7 @@ export var ViewPortStore = /*#__PURE__*/function () {
|
|
18
18
|
x: 0,
|
19
19
|
y: 0
|
20
20
|
});
|
21
|
-
_defineProperty(this, "scale",
|
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)
|
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, {
|
@@ -15,15 +15,6 @@ export declare class ViewPortWindowStore extends WindowStore {
|
|
15
15
|
transform: string;
|
16
16
|
transformOrigin: string;
|
17
17
|
transition: string;
|
18
|
-
} | {
|
19
|
-
left: string;
|
20
|
-
top: string;
|
21
|
-
width: string;
|
22
|
-
height: string;
|
23
|
-
zIndex: number;
|
24
|
-
transformOrigin: string;
|
25
|
-
transition: string;
|
26
|
-
transform?: undefined;
|
27
18
|
} | {
|
28
19
|
left: string;
|
29
20
|
top: string;
|
@@ -70,9 +70,9 @@ export var ViewPortWindowStore = /*#__PURE__*/function (_WindowStore) {
|
|
70
70
|
return {
|
71
71
|
left: this.fullscreenPos.left + 'px',
|
72
72
|
top: this.fullscreenPos.top + 'px',
|
73
|
-
width: this.fullscreenPos.width + 'px',
|
74
|
-
height: this.fullscreenPos.height + 'px',
|
75
|
-
|
73
|
+
width: this.fullscreenPos.width * this.viewPortStore.scale + 'px',
|
74
|
+
height: this.fullscreenPos.height * this.viewPortStore.scale + 'px',
|
75
|
+
transform: "scale(".concat(1 / this.viewPortStore.scale, ")"),
|
76
76
|
zIndex: this.zIndex,
|
77
77
|
transformOrigin: 'left top',
|
78
78
|
transition: 'width height 0.5s ease-out'
|
@@ -157,7 +157,6 @@ export var ViewPortWindowStore = /*#__PURE__*/function (_WindowStore) {
|
|
157
157
|
value: function fullscreenWindow(func) {
|
158
158
|
this.resetState();
|
159
159
|
this.fullscreen = true;
|
160
|
-
this.viewPortStore.scale = 1;
|
161
160
|
func === null || func === void 0 || func();
|
162
161
|
this.fullscreenPos = this.viewPortStore.viewPortRect;
|
163
162
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kep-platform/basic-component",
|
3
|
-
"version": "0.0.
|
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.
|
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": "
|
90
|
+
"gitHead": "0ce91bb9061a54df4adfad25f46b1b1b8bd6f2a3"
|
91
91
|
}
|