@r2digisolutions/components 0.19.18 → 0.19.19
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.
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
interface CanvasEditorProps {
|
|
116
116
|
value?: CanvasDocument;
|
|
117
117
|
assets?: MediaAsset[];
|
|
118
|
+
zoom?: number;
|
|
118
119
|
class?: string;
|
|
119
120
|
onchange?: (doc: CanvasDocument) => void;
|
|
120
121
|
onassetschange?: (assets: MediaAsset[]) => void;
|
|
@@ -128,6 +129,7 @@
|
|
|
128
129
|
let {
|
|
129
130
|
value = $bindable(emptyCanvasDocument()),
|
|
130
131
|
assets = $bindable<MediaAsset[]>([]),
|
|
132
|
+
zoom = $bindable(1),
|
|
131
133
|
class: className = '',
|
|
132
134
|
onchange,
|
|
133
135
|
onassetschange,
|
|
@@ -146,7 +148,6 @@
|
|
|
146
148
|
let showInspector = $state(true);
|
|
147
149
|
let assetsSize = $state(58);
|
|
148
150
|
let sidebarTab = $state<'elements' | 'uploads' | 'widgets'>('elements');
|
|
149
|
-
let zoom = $state(1);
|
|
150
151
|
let showGrid = $state(false);
|
|
151
152
|
let showGuides = $state(true);
|
|
152
153
|
let snap = $state(true);
|
|
@@ -4,6 +4,7 @@ import type { MediaAsset } from '../../../utils/mediaTracks.js';
|
|
|
4
4
|
interface CanvasEditorProps {
|
|
5
5
|
value?: CanvasDocument;
|
|
6
6
|
assets?: MediaAsset[];
|
|
7
|
+
zoom?: number;
|
|
7
8
|
class?: string;
|
|
8
9
|
onchange?: (doc: CanvasDocument) => void;
|
|
9
10
|
onassetschange?: (assets: MediaAsset[]) => void;
|
|
@@ -13,6 +14,6 @@ interface CanvasEditorProps {
|
|
|
13
14
|
blob?: Blob;
|
|
14
15
|
}) => void;
|
|
15
16
|
}
|
|
16
|
-
declare const CanvasEditor: import("svelte").Component<CanvasEditorProps, {}, "value" | "assets">;
|
|
17
|
+
declare const CanvasEditor: import("svelte").Component<CanvasEditorProps, {}, "value" | "zoom" | "assets">;
|
|
17
18
|
type CanvasEditor = ReturnType<typeof CanvasEditor>;
|
|
18
19
|
export default CanvasEditor;
|