@widgetic/canvas 0.5.26 → 0.5.28
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/dist/canvas/Canvas.svelte +545 -141
- package/dist/canvas/Canvas.svelte.d.ts +224 -218
- package/dist/canvas/CanvasToolbar.svelte.d.ts +66 -60
- package/dist/canvas/ContextMenu.svelte.d.ts +40 -35
- package/dist/canvas/PanZoomPanel.svelte.d.ts +35 -31
- package/dist/canvas/WidgetSelectionLayer.svelte.d.ts +9 -13
- package/dist/canvas/props-panel/PropsPanel.svelte +11 -6
- package/dist/canvas/props-panel/PropsPanel.svelte.d.ts +82 -78
- package/dist/canvas/props-panel/TextPropsICSection.svelte.d.ts +38 -34
- package/dist/components/CanvasBoardPlaceholder.svelte +63 -0
- package/dist/components/CanvasBoardPlaceholder.svelte.d.ts +22 -0
- package/dist/components/Tooltip.svelte.d.ts +30 -19
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/input-controls/ColorIC.svelte.d.ts +24 -20
- package/dist/components/input-controls/FontSelectorIC.svelte.d.ts +19 -15
- package/dist/components/input-controls/SliderUnitIC.svelte.d.ts +26 -22
- package/dist/components/input-controls/TextAlignIC.svelte.d.ts +19 -15
- package/dist/components/input-controls/TextStyleIC.svelte.d.ts +23 -19
- package/dist/i18n/messages.d.ts +1 -1
- package/dist/i18n/messages.js +1 -1
- package/package.json +3 -2
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
6
11
|
};
|
|
7
|
-
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {};
|
|
11
|
-
};
|
|
12
|
-
export type FontSelectorICProps = typeof __propDef.props;
|
|
13
|
-
export type FontSelectorICEvents = typeof __propDef.events;
|
|
14
|
-
export type FontSelectorICSlots = typeof __propDef.slots;
|
|
15
|
-
export default class FontSelectorIC extends SvelteComponentTyped<FontSelectorICProps, FontSelectorICEvents, FontSelectorICSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
16
13
|
}
|
|
17
|
-
|
|
14
|
+
declare const FontSelectorIC: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
value?: string;
|
|
16
|
+
onChange?: (family: string) => void;
|
|
17
|
+
}, {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
}, {}, {}, string>;
|
|
20
|
+
type FontSelectorIC = InstanceType<typeof FontSelectorIC>;
|
|
21
|
+
export default FontSelectorIC;
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
unit?: string;
|
|
12
|
-
onChange?: (value: number) => void;
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
};
|
|
17
|
-
slots: {};
|
|
18
|
-
};
|
|
19
|
-
export type SliderUnitICProps = typeof __propDef.props;
|
|
20
|
-
export type SliderUnitICEvents = typeof __propDef.events;
|
|
21
|
-
export type SliderUnitICSlots = typeof __propDef.slots;
|
|
22
|
-
export default class SliderUnitIC extends SvelteComponentTyped<SliderUnitICProps, SliderUnitICEvents, SliderUnitICSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
23
13
|
}
|
|
24
|
-
|
|
14
|
+
declare const SliderUnitIC: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
class?: string;
|
|
16
|
+
style?: string;
|
|
17
|
+
value?: number;
|
|
18
|
+
label?: string | null;
|
|
19
|
+
min?: number;
|
|
20
|
+
max?: number;
|
|
21
|
+
step?: number;
|
|
22
|
+
unit?: string;
|
|
23
|
+
onChange?: (value: number) => void;
|
|
24
|
+
}, {
|
|
25
|
+
[evt: string]: CustomEvent<any>;
|
|
26
|
+
}, {}, {}, string>;
|
|
27
|
+
type SliderUnitIC = InstanceType<typeof SliderUnitIC>;
|
|
28
|
+
export default SliderUnitIC;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
6
11
|
};
|
|
7
|
-
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {};
|
|
11
|
-
};
|
|
12
|
-
export type TextAlignICProps = typeof __propDef.props;
|
|
13
|
-
export type TextAlignICEvents = typeof __propDef.events;
|
|
14
|
-
export type TextAlignICSlots = typeof __propDef.slots;
|
|
15
|
-
export default class TextAlignIC extends SvelteComponentTyped<TextAlignICProps, TextAlignICEvents, TextAlignICSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
16
13
|
}
|
|
17
|
-
|
|
14
|
+
declare const TextAlignIC: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
value?: "left" | "center" | "right";
|
|
16
|
+
onChange?: (align: "left" | "center" | "right") => void;
|
|
17
|
+
}, {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
}, {}, {}, string>;
|
|
20
|
+
type TextAlignIC = InstanceType<typeof TextAlignIC>;
|
|
21
|
+
export default TextAlignIC;
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
};
|
|
14
|
-
slots: {};
|
|
15
|
-
};
|
|
16
|
-
export type TextStyleICProps = typeof __propDef.props;
|
|
17
|
-
export type TextStyleICEvents = typeof __propDef.events;
|
|
18
|
-
export type TextStyleICSlots = typeof __propDef.slots;
|
|
19
|
-
export default class TextStyleIC extends SvelteComponentTyped<TextStyleICProps, TextStyleICEvents, TextStyleICSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
20
13
|
}
|
|
21
|
-
|
|
14
|
+
declare const TextStyleIC: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
fontWeight?: "normal" | "bold";
|
|
16
|
+
fontStyle?: "normal" | "italic";
|
|
17
|
+
underline?: boolean;
|
|
18
|
+
onFontWeightChange?: (weight: "normal" | "bold") => void;
|
|
19
|
+
onFontStyleChange?: (style: "normal" | "italic") => void;
|
|
20
|
+
onUnderlineChange?: (underline: boolean) => void;
|
|
21
|
+
}, {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
}, {}, {}, string>;
|
|
24
|
+
type TextStyleIC = InstanceType<typeof TextStyleIC>;
|
|
25
|
+
export default TextStyleIC;
|
package/dist/i18n/messages.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const CANVAS_MESSAGES: {
|
|
|
21
21
|
/** Said in a dialog of the browser when a picture cannot be loaded from the address the visitor typed. */
|
|
22
22
|
readonly 'canvas.error.imageFromUrl': "Failed to load image from URL. Make sure the URL is correct and allows cross-origin requests.";
|
|
23
23
|
readonly 'canvas.defaults.text': "Hello World!";
|
|
24
|
-
/**
|
|
24
|
+
/** Gray hint drawn on an empty text shape. It is not stored as the text. */
|
|
25
25
|
readonly 'canvas.defaults.textBox': "Type here";
|
|
26
26
|
/** The name written above a new frame. */
|
|
27
27
|
readonly 'canvas.defaults.frameLabel': "Frame";
|
package/dist/i18n/messages.js
CHANGED
|
@@ -23,7 +23,7 @@ export const CANVAS_MESSAGES = {
|
|
|
23
23
|
'canvas.error.imageFromUrl': 'Failed to load image from URL. Make sure the URL is correct and allows cross-origin requests.',
|
|
24
24
|
// ===== What a new thing says before the visitor changes it (saved with the canvas, in the language it was made in) =====
|
|
25
25
|
'canvas.defaults.text': 'Hello World!',
|
|
26
|
-
/**
|
|
26
|
+
/** Gray hint drawn on an empty text shape. It is not stored as the text. */
|
|
27
27
|
'canvas.defaults.textBox': 'Type here',
|
|
28
28
|
/** The name written above a new frame. */
|
|
29
29
|
'canvas.defaults.frameLabel': 'Frame',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widgetic/canvas",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.28",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"svelte": "./dist/index.js",
|
|
@@ -113,6 +113,7 @@
|
|
|
113
113
|
"url": "https://gitlab.com/widgeticai/Frontend/canvas.git"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
|
-
"@widgetic/design-system": ">=0.3.0"
|
|
116
|
+
"@widgetic/design-system": ">=0.3.0",
|
|
117
|
+
"svelte": "^5.0.0"
|
|
117
118
|
}
|
|
118
119
|
}
|