@bluepic/embed 0.6.38 → 0.6.39

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.
@@ -1,9 +1,16 @@
1
1
  import { Transform } from '@zoompinch/vue';
2
2
  import { Ref } from 'vue';
3
+ /**
4
+ * `innerWidth`/`innerHeight` are the zoompinch wrapper minus its offset, i.e. the
5
+ * box zoompinch fits the canvas into. `maxNaturalScale` must match the value
6
+ * passed to zoompinch, otherwise frame transforms drift from what it renders.
7
+ * The same cap also limits frame focus: a focused frame is never shown larger
8
+ * than its own size.
9
+ */
3
10
  export declare function useZoompinchFrame(transform: Ref<Transform>, frames: Ref<{
4
11
  x: number;
5
12
  y: number;
6
- }>, canvasWidth: Ref<number>, canvasHeight: Ref<number>, rootWidth: Ref<number>, rootHeight: Ref<number>): {
13
+ }>, canvasWidth: Ref<number>, canvasHeight: Ref<number>, innerWidth: Ref<number>, innerHeight: Ref<number>, maxNaturalScale?: Ref<number>): {
7
14
  frameFocusScaleDiff: import("vue").ComputedRef<number>;
8
15
  currentlyFocusedFrame: import("vue").ComputedRef<{
9
16
  x: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluepic/embed",
3
- "version": "0.6.38",
3
+ "version": "0.6.39",
4
4
  "description": "Bluepic embed sdk",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -81,7 +81,7 @@
81
81
  "@floating-ui/vue": "^1.1.9",
82
82
  "@vicons/ionicons5": "^0.13.0",
83
83
  "@vueuse/core": "^14.0.0",
84
- "@zoompinch/vue": "^0.0.43",
84
+ "@zoompinch/vue": "^0.0.45",
85
85
  "change-case": "^5.4.4",
86
86
  "client-zip": "^2.5.0",
87
87
  "color": "^5.0.2",