@live-change/image-frontend 0.2.29 → 0.2.31
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/front/src/EditorTest.vue
CHANGED
package/front/src/Image.vue
CHANGED
|
@@ -96,14 +96,14 @@
|
|
|
96
96
|
function getSuffix() {
|
|
97
97
|
if(props.noResize) return ''
|
|
98
98
|
const domSize = stableDomSize.value
|
|
99
|
-
let width = (domSize.width * dpr)|0
|
|
100
|
-
let height = (domSize.height * dpr)|0
|
|
101
|
-
if(imageData.value) {
|
|
102
|
-
width = Math.min(width, imageData.value.width)
|
|
103
|
-
height = Math.min(height, imageData.value.height)
|
|
104
|
-
}
|
|
105
99
|
if(props.domResize && domSize) {
|
|
106
100
|
console.log("DOM SIZE", domSize)
|
|
101
|
+
let width = (domSize.width * dpr)|0
|
|
102
|
+
let height = (domSize.height * dpr)|0
|
|
103
|
+
if(imageData.value) {
|
|
104
|
+
width = Math.min(width, imageData.value.width)
|
|
105
|
+
height = Math.min(height, imageData.value.height)
|
|
106
|
+
}
|
|
107
107
|
if(props.domResize == 'width') {
|
|
108
108
|
return `/width-${width}`
|
|
109
109
|
} else if(props.domResize == 'height') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/image-frontend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.31",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "lcli memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@fortawesome/fontawesome-free": "^6.2.0",
|
|
24
|
-
"@live-change/cli": "0.7.
|
|
24
|
+
"@live-change/cli": "0.7.12",
|
|
25
25
|
"@live-change/dao": "0.5.9",
|
|
26
26
|
"@live-change/dao-vue3": "0.5.9",
|
|
27
27
|
"@live-change/dao-websocket": "0.5.9",
|
|
28
|
-
"@live-change/framework": "0.7.
|
|
29
|
-
"@live-change/image-service": "0.3.
|
|
30
|
-
"@live-change/session-service": "0.3.
|
|
28
|
+
"@live-change/framework": "0.7.12",
|
|
29
|
+
"@live-change/image-service": "0.3.15",
|
|
30
|
+
"@live-change/session-service": "0.3.15",
|
|
31
31
|
"@live-change/vue3-components": "0.2.16",
|
|
32
32
|
"@live-change/vue3-ssr": "0.2.16",
|
|
33
33
|
"@vueuse/core": "^9.1.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"vue3-scroll-border": "0.1.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@live-change/codeceptjs-helper": "0.7.
|
|
53
|
+
"@live-change/codeceptjs-helper": "0.7.12",
|
|
54
54
|
"@wdio/selenium-standalone-service": "^7.20.8",
|
|
55
55
|
"codeceptjs": "^3.3.4",
|
|
56
56
|
"generate-password": "1.7.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"author": "",
|
|
63
63
|
"license": "BSD-3-Clause",
|
|
64
64
|
"description": "",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "dc19ff2b41b59579f9eea2a85db2bf44ff009568"
|
|
66
66
|
}
|