@live-change/image-frontend 0.9.128 → 0.9.130

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.
@@ -132,7 +132,7 @@
132
132
  useResizeObserver(overlayCanvas, (entries) => repaintDebounced())
133
133
  watch(() => [props.width, props.height, props.type], () => repaintDebounced())
134
134
 
135
- const position = reactive({ x: props.crop.x, y: props.crop.y, scale: props.crop.zoom })
135
+ const position = reactive({ x: props.crop?.x || 0, y: props.crop?.y || 0, scale: props.crop?.zoom || 1 })
136
136
  const imageTransform = computed(() => {
137
137
  const x = - position.x * 50
138
138
  const y = - position.y * 50
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/image-frontend",
3
- "version": "0.9.128",
3
+ "version": "0.9.130",
4
4
  "scripts": {
5
5
  "memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
@@ -22,15 +22,15 @@
22
22
  "type": "module",
23
23
  "dependencies": {
24
24
  "@fortawesome/fontawesome-free": "^6.7.2",
25
- "@live-change/cli": "^0.9.128",
26
- "@live-change/dao": "^0.9.128",
27
- "@live-change/dao-vue3": "^0.9.128",
28
- "@live-change/dao-websocket": "^0.9.128",
29
- "@live-change/framework": "^0.9.128",
30
- "@live-change/image-service": "^0.9.128",
31
- "@live-change/session-service": "^0.9.128",
32
- "@live-change/vue3-components": "^0.9.128",
33
- "@live-change/vue3-ssr": "^0.9.128",
25
+ "@live-change/cli": "^0.9.130",
26
+ "@live-change/dao": "^0.9.130",
27
+ "@live-change/dao-vue3": "^0.9.130",
28
+ "@live-change/dao-websocket": "^0.9.130",
29
+ "@live-change/framework": "^0.9.130",
30
+ "@live-change/image-service": "^0.9.130",
31
+ "@live-change/session-service": "^0.9.130",
32
+ "@live-change/vue3-components": "^0.9.130",
33
+ "@live-change/vue3-ssr": "^0.9.130",
34
34
  "@vueuse/core": "^12.3.0",
35
35
  "codeceptjs-assert": "^0.0.5",
36
36
  "compression": "^1.7.5",
@@ -50,7 +50,7 @@
50
50
  "vue3-scroll-border": "0.1.7"
51
51
  },
52
52
  "devDependencies": {
53
- "@live-change/codeceptjs-helper": "^0.9.128",
53
+ "@live-change/codeceptjs-helper": "^0.9.130",
54
54
  "codeceptjs": "^3.6.10",
55
55
  "generate-password": "1.7.1",
56
56
  "playwright": "1.49.1",
@@ -61,5 +61,5 @@
61
61
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
62
62
  "license": "BSD-3-Clause",
63
63
  "description": "",
64
- "gitHead": "f6e19206562652cf31d6e44df80523748b694ead"
64
+ "gitHead": "249279687126ae035353865197b6f3eff934794a"
65
65
  }