@widgetic/canvas 0.5.32 → 0.5.34
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 +99 -2
- package/dist/canvas/Canvas.svelte.d.ts +15 -0
- package/dist/canvas/CanvasToolbar.svelte +11 -1
- package/dist/canvas/CanvasToolbar.svelte.d.ts +1 -0
- package/dist/canvas/PanZoomPanel.svelte +1 -1
- package/dist/i18n/language.d.ts +3 -3
- package/dist/i18n/messages.d.ts +4 -2
- package/dist/i18n/messages.js +4 -2
- package/package.json +1 -1
|
@@ -190,6 +190,23 @@
|
|
|
190
190
|
// Extra canvas chrome (undo/redo/lock, frame, image, shape library).
|
|
191
191
|
// Default off for the sketch MVP. Same pattern as wireframeMode: keep the code, hide the UI.
|
|
192
192
|
export let advancedFeatures: boolean = false;
|
|
193
|
+
|
|
194
|
+
/** The element selector on the toolbar. The host owns whether it is on. */
|
|
195
|
+
export let showElementSelector: boolean = false;
|
|
196
|
+
/** Drawing tools stay until the first generation. After that, only the selector remains. */
|
|
197
|
+
export let showDrawingTools: boolean = true;
|
|
198
|
+
export let elementSelectorActive: boolean = false;
|
|
199
|
+
export let onToggleElementSelector: (() => void) | null = null;
|
|
200
|
+
/** Words for the selector bar that replaces the drawing tools. */
|
|
201
|
+
export let selectorGuide: {
|
|
202
|
+
click: string;
|
|
203
|
+
parentChild: string;
|
|
204
|
+
hold: string;
|
|
205
|
+
cmd: string;
|
|
206
|
+
interact: string;
|
|
207
|
+
esc: string;
|
|
208
|
+
done: string;
|
|
209
|
+
} | null = null;
|
|
193
210
|
/** The zoom pill. Off on the site when debug is off. The save control stays. */
|
|
194
211
|
export let showZoomPanel: boolean = true;
|
|
195
212
|
/** When true and advanced is on, Frame/Image/Video stay on the toolbar. Default true. */
|
|
@@ -421,6 +438,15 @@
|
|
|
421
438
|
// WidgetShapes (live iframe chrome) — keep a usable footprint when resizing
|
|
422
439
|
const MIN_WIDGET_SHAPE_SIZE = 50;
|
|
423
440
|
let activeTool: ToolName = 'draw';
|
|
441
|
+
// A hidden pencil must not stay armed. The letter keys are ignored in the toolbar; this drops the tool too.
|
|
442
|
+
$: if (!showDrawingTools) {
|
|
443
|
+
const drawingTool = activeTool === 'draw' || activeTool === 'erase' || activeTool === 'arrow' || activeTool === 'text'
|
|
444
|
+
|| (!advancedFeatures && (
|
|
445
|
+
activeTool === 'rect' || activeTool === 'circle' || activeTool === 'circle-true'
|
|
446
|
+
|| activeTool === 'triangle' || activeTool === 'frame' || activeTool === 'image' || activeTool === 'video'
|
|
447
|
+
));
|
|
448
|
+
if (drawingTool) onSelectSelectTool();
|
|
449
|
+
}
|
|
424
450
|
/**
|
|
425
451
|
* The pointer handlers belonging to the currently active tool session.
|
|
426
452
|
* Grouped so their joint lifecycle (attached together, detached together
|
|
@@ -1720,6 +1746,23 @@
|
|
|
1720
1746
|
return ids;
|
|
1721
1747
|
}
|
|
1722
1748
|
|
|
1749
|
+
/**
|
|
1750
|
+
* Simple canvas keeps one widget shape. Extra widget shapes are taken off the board.
|
|
1751
|
+
* Returns how many were removed.
|
|
1752
|
+
*/
|
|
1753
|
+
export function keepOnlyWidgetShape(widgetId: string): number {
|
|
1754
|
+
if (!canvas || !widgetId) return 0;
|
|
1755
|
+
const extras = canvas.getObjects().filter((obj: any) =>
|
|
1756
|
+
obj._isWidgetImage && obj._widgetId && obj._widgetId !== widgetId
|
|
1757
|
+
);
|
|
1758
|
+
if (extras.length === 0) return 0;
|
|
1759
|
+
for (const obj of extras) canvas.remove(obj);
|
|
1760
|
+
try { canvas.discardActiveObject(); } catch { /* selection may already be gone */ }
|
|
1761
|
+
canvas.requestRenderAll();
|
|
1762
|
+
canvasLog('Canvas: simple mode kept one widget shape', widgetId, 'removed', extras.length);
|
|
1763
|
+
return extras.length;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1723
1766
|
/**
|
|
1724
1767
|
* Backfill `_widgetName` / `_imageUrl` on WidgetShapes that were serialized before
|
|
1725
1768
|
* those fields existed on the shape. Called by widget-creator after canvas load so
|
|
@@ -2101,7 +2144,8 @@
|
|
|
2101
2144
|
// Clear canvas initialization error
|
|
2102
2145
|
canvasInitializationError = null;
|
|
2103
2146
|
|
|
2104
|
-
onSelectDrawTool();
|
|
2147
|
+
if (showDrawingTools) onSelectDrawTool();
|
|
2148
|
+
else onSelectSelectTool();
|
|
2105
2149
|
|
|
2106
2150
|
/**
|
|
2107
2151
|
* Apply uniform scaling to make shapes regular:
|
|
@@ -12998,7 +13042,8 @@ function checkAndAddNewShapeToFrame(shape: any) {
|
|
|
12998
13042
|
</div>
|
|
12999
13043
|
{/if}
|
|
13000
13044
|
|
|
13001
|
-
<!--
|
|
13045
|
+
<!-- Drawing toolbar. After the first generation the host hides it and the selector bar below takes this spot. -->
|
|
13046
|
+
{#if showDrawingTools}
|
|
13002
13047
|
<CanvasToolbar class="absolute bottom-1 left-1/2 -translate-x-1/2 max-w-[calc(100%-1rem)] {isCanvasLoading ? 'pointer-events-none opacity-60 transition-opacity duration-200' : 'transition-opacity duration-200'}"
|
|
13003
13048
|
{activeTool}
|
|
13004
13049
|
{onSelectSelectTool}
|
|
@@ -13037,7 +13082,49 @@ function checkAndAddNewShapeToFrame(shape: any) {
|
|
|
13037
13082
|
{onSelectLibraryShapeTool}
|
|
13038
13083
|
{advancedFeatures}
|
|
13039
13084
|
{mediaBtsOnBar}
|
|
13085
|
+
{showDrawingTools}
|
|
13040
13086
|
/>
|
|
13087
|
+
{/if}
|
|
13088
|
+
{#if !showDrawingTools && showElementSelector}
|
|
13089
|
+
<div class="widget-selector-bar absolute bottom-1 left-1/2 z-20 flex h-12 w-max -translate-x-1/2 flex-nowrap items-center justify-center gap-1.5 whitespace-nowrap rounded-full border border-neutral-200 bg-white px-4 shadow-md">
|
|
13090
|
+
<button
|
|
13091
|
+
class="selector-bt flex items-center justify-center rounded-lg focus:outline-none focus-visible:outline-none {elementSelectorActive ? 'selector-bt-open h-7 w-7 bg-[#314F2F]' : 'h-9 w-9 bg-transparent text-neutral-700'}"
|
|
13092
|
+
onclick={() => onToggleElementSelector?.()}
|
|
13093
|
+
aria-pressed={elementSelectorActive}
|
|
13094
|
+
aria-label={$t('canvas.tool.selector')}
|
|
13095
|
+
>
|
|
13096
|
+
<svg class="selector-icon" width={elementSelectorActive ? 16 : 22} height={elementSelectorActive ? 16 : 22} viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
13097
|
+
<path d="M5 3a2 2 0 0 0-2 2"/>
|
|
13098
|
+
<path d="M19 3a2 2 0 0 1 2 2"/>
|
|
13099
|
+
<path d="M21 19a2 2 0 0 1-2 2"/>
|
|
13100
|
+
<path d="M5 21a2 2 0 0 1-2-2"/>
|
|
13101
|
+
<path d="M9 3h1"/>
|
|
13102
|
+
<path d="M9 21h1"/>
|
|
13103
|
+
<path d="M14 3h1"/>
|
|
13104
|
+
<path d="M3 9v1"/>
|
|
13105
|
+
<path d="M21 9v1"/>
|
|
13106
|
+
<path d="M3 14v1"/>
|
|
13107
|
+
<path d="m12 12 7 2-3 1.5L14.5 19 12 12Z"/>
|
|
13108
|
+
</svg>
|
|
13109
|
+
</button>
|
|
13110
|
+
{#if elementSelectorActive && selectorGuide}
|
|
13111
|
+
<div class="selector-guide flex flex-nowrap items-center justify-center gap-1.5 whitespace-nowrap text-[11px] font-medium text-neutral-600">
|
|
13112
|
+
<span>{selectorGuide.click}</span>
|
|
13113
|
+
<span class="text-neutral-300">·</span>
|
|
13114
|
+
<kbd class="rounded bg-[#7BA668] px-1.5 py-0.5 font-mono text-[10px] text-white">↑</kbd>
|
|
13115
|
+
<kbd class="rounded bg-[#7BA668] px-1.5 py-0.5 font-mono text-[10px] text-white">↓</kbd>
|
|
13116
|
+
<span>{selectorGuide.parentChild}</span>
|
|
13117
|
+
<span class="text-neutral-300">·</span>
|
|
13118
|
+
<span>{selectorGuide.hold}</span>
|
|
13119
|
+
<kbd class="rounded bg-[#7BA668] px-1.5 py-0.5 font-mono text-[10px] text-white">{selectorGuide.cmd}</kbd>
|
|
13120
|
+
<span>{selectorGuide.interact}</span>
|
|
13121
|
+
<span class="text-neutral-300">·</span>
|
|
13122
|
+
<kbd class="rounded bg-[#7BA668] px-1.5 py-0.5 font-mono text-[10px] text-white">{selectorGuide.esc}</kbd>
|
|
13123
|
+
<span>{selectorGuide.done}</span>
|
|
13124
|
+
</div>
|
|
13125
|
+
{/if}
|
|
13126
|
+
</div>
|
|
13127
|
+
{/if}
|
|
13041
13128
|
|
|
13042
13129
|
{#if canvas && widgetSelectionLayerTarget}
|
|
13043
13130
|
<WidgetSelectionLayer fabricCanvas={canvas} target={widgetSelectionLayerTarget} {advancedFeatures} />
|
|
@@ -13199,4 +13286,14 @@ function checkAndAddNewShapeToFrame(shape: any) {
|
|
|
13199
13286
|
max-width: calc(100% - 2rem);
|
|
13200
13287
|
overflow: visible;
|
|
13201
13288
|
}
|
|
13289
|
+
|
|
13290
|
+
/* The page paints every button icon grey. The open selector stays white, and grey under the pointer. */
|
|
13291
|
+
.widget-selector-bar button.selector-bt-open svg.selector-icon {
|
|
13292
|
+
color: #ffffff;
|
|
13293
|
+
stroke: #ffffff;
|
|
13294
|
+
}
|
|
13295
|
+
.widget-selector-bar button.selector-bt-open:hover svg.selector-icon {
|
|
13296
|
+
color: #a3a3a3;
|
|
13297
|
+
stroke: #a3a3a3;
|
|
13298
|
+
}
|
|
13202
13299
|
</style>
|
|
@@ -36,6 +36,19 @@ declare const Canvas: $$__sveltets_2_IsomorphicComponent<{
|
|
|
36
36
|
panZoomPosition?: "TL" | "TC" | "TR" | "BL" | "BC" | "BR";
|
|
37
37
|
wireframeMode?: boolean;
|
|
38
38
|
advancedFeatures?: boolean;
|
|
39
|
+
/** The element selector on the toolbar. The host owns whether it is on. */ showElementSelector?: boolean;
|
|
40
|
+
/** Drawing tools stay until the first generation. After that, only the selector remains. */ showDrawingTools?: boolean;
|
|
41
|
+
elementSelectorActive?: boolean;
|
|
42
|
+
onToggleElementSelector?: (() => void) | null;
|
|
43
|
+
/** Words for the selector bar that replaces the drawing tools. */ selectorGuide?: {
|
|
44
|
+
click: string;
|
|
45
|
+
parentChild: string;
|
|
46
|
+
hold: string;
|
|
47
|
+
cmd: string;
|
|
48
|
+
interact: string;
|
|
49
|
+
esc: string;
|
|
50
|
+
done: string;
|
|
51
|
+
} | null;
|
|
39
52
|
/** The zoom pill. Off on the site when debug is off. The save control stays. */ showZoomPanel?: boolean;
|
|
40
53
|
/** When true and advanced is on, Frame/Image/Video stay on the toolbar. Default true. */ mediaBtsOnBar?: boolean;
|
|
41
54
|
initialData?: string | null;
|
|
@@ -115,6 +128,7 @@ declare const Canvas: $$__sveltets_2_IsomorphicComponent<{
|
|
|
115
128
|
setWidgetShapeLivePreviewHiddenImage?: (widgetId: string, hidden: boolean) => void;
|
|
116
129
|
addWidgetShape?: (widgetId: string, widgetName?: string, gridIndex?: number, totalCount?: number, previewImageUrl?: string | null) => string | null;
|
|
117
130
|
getLinkedWidgetIds?: () => Set<string>;
|
|
131
|
+
keepOnlyWidgetShape?: (widgetId: string) => number;
|
|
118
132
|
hydrateWidgetShapeMetadata?: (widgetsById: Map<string, {
|
|
119
133
|
name?: string | null;
|
|
120
134
|
thumbnailUrl?: string | null;
|
|
@@ -213,6 +227,7 @@ declare const Canvas: $$__sveltets_2_IsomorphicComponent<{
|
|
|
213
227
|
setWidgetShapeLivePreviewHiddenImage: (widgetId: string, hidden: boolean) => void;
|
|
214
228
|
addWidgetShape: (widgetId: string, widgetName?: string, gridIndex?: number, totalCount?: number, previewImageUrl?: string | null) => string | null;
|
|
215
229
|
getLinkedWidgetIds: () => Set<string>;
|
|
230
|
+
keepOnlyWidgetShape: (widgetId: string) => number;
|
|
216
231
|
hydrateWidgetShapeMetadata: (widgetsById: Map<string, {
|
|
217
232
|
name?: string | null;
|
|
218
233
|
thumbnailUrl?: string | null;
|
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
export let stickyToolEnabled: boolean = false;
|
|
68
68
|
export let onToggleStickyTool: () => void = () => {};
|
|
69
69
|
|
|
70
|
+
/** Pencil, eraser, select, arrow and text. Off after the widget has been generated. */
|
|
71
|
+
export let showDrawingTools: boolean = true;
|
|
72
|
+
|
|
70
73
|
// ── Shape library (special shapes: media, arrows, UI) ────────────────────
|
|
71
74
|
/** Called when user clicks a library shape. Canvas inserts it as a Path. */
|
|
72
75
|
/** Passed by Canvas.svelte but never read here — export const keeps the
|
|
@@ -392,7 +395,12 @@
|
|
|
392
395
|
if (event.altKey) return;
|
|
393
396
|
|
|
394
397
|
const key = event.key.toUpperCase();
|
|
395
|
-
|
|
398
|
+
// Hidden tools must not answer their keys. The bar is gone; the letter would still start a pencil or a text box.
|
|
399
|
+
const drawingKey = key === 'V' || key === 'E' || key === 'D' || key === 'A' || key === 'T';
|
|
400
|
+
const shapeKey = key === 'R' || key === 'G' || key === 'O' || key === 'F' || key === 'I' || key === 'H';
|
|
401
|
+
if (drawingKey && !showDrawingTools) return;
|
|
402
|
+
if (shapeKey && !advancedFeatures) return;
|
|
403
|
+
|
|
396
404
|
// Map keys to handlers — using current prop references
|
|
397
405
|
switch (key) {
|
|
398
406
|
case 'V': event.preventDefault(); onSelectSelectTool(); break;
|
|
@@ -550,6 +558,7 @@
|
|
|
550
558
|
<div class="toolbar-divider"></div>
|
|
551
559
|
{/if}
|
|
552
560
|
|
|
561
|
+
{#if showDrawingTools}
|
|
553
562
|
<!-- ══ Illustrated tools: Pencil & Eraser — "pulled from sheath" on select ══ -->
|
|
554
563
|
<!-- Each tool is wrapped in a mask container that clips its body at rest.
|
|
555
564
|
When active, overflow becomes visible so the tool "pops out" above the toolbar. -->
|
|
@@ -643,6 +652,7 @@
|
|
|
643
652
|
</svg>
|
|
644
653
|
</button>
|
|
645
654
|
</Tooltip>
|
|
655
|
+
{/if}
|
|
646
656
|
|
|
647
657
|
{#if showMediaOnBar}
|
|
648
658
|
<div class="toolbar-divider"></div>
|
|
@@ -42,6 +42,7 @@ declare const CanvasToolbar: $$__sveltets_2_IsomorphicComponent<{
|
|
|
42
42
|
/** Disables the Redo button when there is no future state to redo to. */ canRedo?: boolean;
|
|
43
43
|
/** When true, the drawing tool stays active after placing a shape. */ stickyToolEnabled?: boolean;
|
|
44
44
|
onToggleStickyTool?: () => void;
|
|
45
|
+
/** Pencil, eraser, select, arrow and text. Off after the widget has been generated. */ showDrawingTools?: boolean;
|
|
45
46
|
/** Passed by Canvas.svelte but never read here — export const keeps the
|
|
46
47
|
* init-set contract without the unused-reactive warning. */ onInsertLibraryShape?: (shapeKey: string, pathData: string) => void;
|
|
47
48
|
/** Draw-to-place: activates library shape tool so user clicks-and-drags to size it. */ onSelectLibraryShapeTool?: (shapeKey: string, pathData: string) => void;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
</button>
|
|
96
96
|
</Tooltip>
|
|
97
97
|
{#if isPanActive}
|
|
98
|
-
<span class="canvas-pan-banner pointer-events-none ms-2 inline-flex items-center rounded-md bg-[#1f2937] px-2 py-1 text-[11px] font-medium text-white shadow-sm">
|
|
98
|
+
<span class="canvas-pan-banner pointer-events-none ms-2 inline-flex items-center rounded-md bg-[#1f2937] px-2 py-1 text-[11px] font-medium text-white shadow-sm">{$t('canvas.zoom.panBanner')}</span>
|
|
99
99
|
{/if}
|
|
100
100
|
{/if}
|
|
101
101
|
{#if showZoomControls}
|
package/dist/i18n/language.d.ts
CHANGED
|
@@ -3,18 +3,18 @@ import { type MessageOverrides, type MessageProblem } from '@widgetic/design-sys
|
|
|
3
3
|
* Called by the root component of a canvas while it is created, so everything inside it speaks the page's language.
|
|
4
4
|
* It gives back the words as stores and `update(settings)` for when the page sets the language again.
|
|
5
5
|
*/
|
|
6
|
-
export declare const provideCanvasLanguage: (initial: import("@widgetic/design-system/i18n").I18nSettings) => import("@widgetic/design-system/i18n").I18nHandle<"canvas.state.loading" | "canvas.state.initFailed" | "canvas.error.imageFromUrl" | "canvas.defaults.
|
|
6
|
+
export declare const provideCanvasLanguage: (initial: import("@widgetic/design-system/i18n").I18nSettings) => import("@widgetic/design-system/i18n").I18nHandle<"canvas.state.loading" | "canvas.state.initFailed" | "canvas.error.imageFromUrl" | "canvas.defaults.textBox" | "canvas.defaults.frameLabel" | "canvas.defaults.untitledFrame" | "canvas.defaults.untitledShape" | "canvas.draw.dropImage" | "canvas.draw.dropVideo" | "canvas.draw.or" | "canvas.draw.doubleClick" | "canvas.draw.widgetName" | "canvas.draw.widgetPreview" | "canvas.tool.select" | "canvas.tool.hand" | "canvas.tool.erase" | "canvas.tool.draw" | "canvas.tool.arrow" | "canvas.tool.rectangle" | "canvas.tool.triangle" | "canvas.tool.ellipse" | "canvas.tool.circle" | "canvas.tool.frame" | "canvas.tool.text" | "canvas.tool.selector" | "canvas.tool.image" | "canvas.tool.video" | "canvas.tool.shapes" | "canvas.tool.moreShapes" | "canvas.tool.undo" | "canvas.tool.redo" | "canvas.tool.withKey" | "canvas.tool.undoTitle" | "canvas.tool.redoTitle" | "canvas.tool.stickyOn" | "canvas.tool.stickyOff" | "canvas.tool.stickyLabel" | "canvas.menu.mediaShapes" | "canvas.category.geometric" | "canvas.category.arrows" | "canvas.category.media" | "canvas.category.ui" | "canvas.category.symbols" | "canvas.shape.hexagon" | "canvas.shape.oval" | "canvas.shape.play" | "canvas.shape.pause" | "canvas.shape.stop" | "canvas.shape.rewind" | "canvas.shape.fastForward" | "canvas.shape.record" | "canvas.shape.arrowRight" | "canvas.shape.arrowLeft" | "canvas.shape.arrowUp" | "canvas.shape.arrowDown" | "canvas.shape.doubleArrow" | "canvas.shape.curvedArrow" | "canvas.shape.checkMark" | "canvas.shape.cross" | "canvas.shape.plus" | "canvas.shape.minus" | "canvas.shape.info" | "canvas.shape.warning" | "canvas.shape.star" | "canvas.shape.heart" | "canvas.shape.speechBubble" | "canvas.shape.rhombus" | "canvas.shape.lightning" | "canvas.shape.shield" | "canvas.action.cut" | "canvas.action.copy" | "canvas.action.paste" | "canvas.action.duplicate" | "canvas.action.delete" | "canvas.action.group" | "canvas.action.ungroup" | "canvas.action.selectAll" | "canvas.action.clearAll" | "canvas.layer.title" | "canvas.layer.front" | "canvas.layer.forward" | "canvas.layer.backward" | "canvas.layer.back" | "canvas.layer.frontShort" | "canvas.layer.upShort" | "canvas.layer.downShort" | "canvas.layer.backShort" | "canvas.shortcuts.title" | "canvas.shortcuts.close" | "canvas.shortcuts.footer" | "canvas.shortcuts.footerHint" | "canvas.shortcuts.groupTools" | "canvas.shortcuts.groupSelection" | "canvas.shortcuts.groupHistory" | "canvas.shortcuts.groupZoom" | "canvas.shortcuts.drillThrough" | "canvas.shortcuts.redoAlt" | "canvas.shortcuts.save" | "canvas.shortcuts.zoomIn" | "canvas.shortcuts.zoomOut" | "canvas.shortcuts.zoomReset" | "canvas.shortcuts.fit" | "canvas.shortcuts.pan" | "canvas.shortcuts.move1" | "canvas.shortcuts.move10" | "canvas.shortcuts.frameResize" | "canvas.shortcuts.frameEdit" | "canvas.key.ctrlCmd" | "canvas.key.alt" | "canvas.key.shift" | "canvas.key.delete" | "canvas.key.space" | "canvas.key.click" | "canvas.key.drag" | "canvas.key.dragCorner" | "canvas.key.doubleClick" | "canvas.zoom.expandTitle" | "canvas.zoom.expandLabel" | "canvas.zoom.gridTitle" | "canvas.zoom.gridLabel" | "canvas.zoom.panTitle" | "canvas.zoom.panLabel" | "canvas.zoom.panBanner" | "canvas.zoom.outTitle" | "canvas.zoom.outLabel" | "canvas.zoom.inTitle" | "canvas.zoom.inLabel" | "canvas.zoom.resetTitle" | "canvas.zoom.resetLabel" | "canvas.zoom.levelLabel" | "canvas.zoom.oneToOneTitle" | "canvas.zoom.fitTitle" | "canvas.zoom.fitLabel" | "canvas.zoom.shortcutsTitle" | "canvas.zoom.shortcutsLabel" | "canvas.zoom.unsavedTitle" | "canvas.zoom.savedTitle" | "canvas.zoom.minimize" | "canvas.props.shape" | "canvas.props.showAll" | "canvas.props.showFewer" | "canvas.props.close" | "canvas.props.children" | "canvas.props.actions" | "canvas.props.general" | "canvas.props.dimensions" | "canvas.props.width" | "canvas.props.height" | "canvas.props.proportionsFixed" | "canvas.props.proportionsUnlock" | "canvas.props.proportionsLock" | "canvas.props.textProperties" | "canvas.props.labelProperties" | "canvas.props.boxProperties" | "canvas.props.groupBox" | "canvas.props.labelText" | "canvas.props.labelPlaceholder" | "canvas.props.textBackground" | "canvas.type.none" | "canvas.type.widget" | "canvas.type.drawing" | "canvas.type.line" | "canvas.type.group" | "canvas.type.selection" | "canvas.type.drawingOf" | "canvas.type.customShape" | "canvas.field.opacity" | "canvas.field.cornerRoundness" | "canvas.field.backgroundColor" | "canvas.field.backgroundOpacity" | "canvas.field.fillColor" | "canvas.field.fillOpacity" | "canvas.field.strokeColor" | "canvas.field.strokeWidth" | "canvas.field.strokeType" | "canvas.field.strokeSolid" | "canvas.field.strokeDashed" | "canvas.field.strokeDotted" | "canvas.field.fontSize" | "canvas.field.textPadding" | "canvas.field.textColor" | "canvas.field.textStrokeColor" | "canvas.field.textStrokeWidth" | "canvas.field.groupFillColor" | "canvas.field.groupFillOpacity" | "canvas.field.groupStrokeColor" | "canvas.field.groupStrokeWidth" | "canvas.field.groupStrokeType" | "canvas.arrange.title" | "canvas.arrange.left" | "canvas.arrange.centerH" | "canvas.arrange.right" | "canvas.arrange.top" | "canvas.arrange.middleV" | "canvas.arrange.bottom" | "canvas.image.source" | "canvas.image.file" | "canvas.image.noFile" | "canvas.image.changeFile" | "canvas.image.chooseFile" | "canvas.image.url" | "canvas.image.pasteUrl" | "canvas.image.newUrl" | "canvas.image.load" | "canvas.widget.createPreview" | "canvas.widget.capture" | "canvas.widget.linked" | "canvas.widget.converting" | "canvas.widget.duplicating" | "canvas.widget.linking" | "canvas.widget.unlinkedTitle" | "canvas.widget.orphanNotice" | "canvas.widget.removeFromCanvas" | "canvas.widget.namePlaceholder" | "canvas.widget.openDetails" | "canvas.widget.refreshPreview" | "canvas.widget.primary" | "canvas.widget.primaryTitle" | "canvas.widget.setPrimary" | "canvas.widget.convertLabel" | "canvas.widget.convertButton" | "canvas.widget.unlinkedName" | "canvas.control.color" | "canvas.control.value" | "canvas.control.openPicker" | "canvas.control.removeColor" | "canvas.control.fontFamily" | "canvas.control.textStyle" | "canvas.control.bold" | "canvas.control.boldMark" | "canvas.control.italic" | "canvas.control.italicMark" | "canvas.control.underline" | "canvas.control.underlineMark" | "canvas.control.textAlign" | "canvas.control.alignLeft" | "canvas.control.alignCenter" | "canvas.control.alignRight">;
|
|
7
7
|
/**
|
|
8
8
|
* Called by a part of the canvas while it is created. Gives its words as stores, so a part that is already on the screen
|
|
9
9
|
* changes when the page sets the language again. Outside a canvas (a part used on its own, such as the colour control)
|
|
10
10
|
* it speaks English.
|
|
11
11
|
*/
|
|
12
|
-
export declare const useCanvasLanguage: () => import("@widgetic/design-system/i18n").I18nContext<"canvas.state.loading" | "canvas.state.initFailed" | "canvas.error.imageFromUrl" | "canvas.defaults.
|
|
12
|
+
export declare const useCanvasLanguage: () => import("@widgetic/design-system/i18n").I18nContext<"canvas.state.loading" | "canvas.state.initFailed" | "canvas.error.imageFromUrl" | "canvas.defaults.textBox" | "canvas.defaults.frameLabel" | "canvas.defaults.untitledFrame" | "canvas.defaults.untitledShape" | "canvas.draw.dropImage" | "canvas.draw.dropVideo" | "canvas.draw.or" | "canvas.draw.doubleClick" | "canvas.draw.widgetName" | "canvas.draw.widgetPreview" | "canvas.tool.select" | "canvas.tool.hand" | "canvas.tool.erase" | "canvas.tool.draw" | "canvas.tool.arrow" | "canvas.tool.rectangle" | "canvas.tool.triangle" | "canvas.tool.ellipse" | "canvas.tool.circle" | "canvas.tool.frame" | "canvas.tool.text" | "canvas.tool.selector" | "canvas.tool.image" | "canvas.tool.video" | "canvas.tool.shapes" | "canvas.tool.moreShapes" | "canvas.tool.undo" | "canvas.tool.redo" | "canvas.tool.withKey" | "canvas.tool.undoTitle" | "canvas.tool.redoTitle" | "canvas.tool.stickyOn" | "canvas.tool.stickyOff" | "canvas.tool.stickyLabel" | "canvas.menu.mediaShapes" | "canvas.category.geometric" | "canvas.category.arrows" | "canvas.category.media" | "canvas.category.ui" | "canvas.category.symbols" | "canvas.shape.hexagon" | "canvas.shape.oval" | "canvas.shape.play" | "canvas.shape.pause" | "canvas.shape.stop" | "canvas.shape.rewind" | "canvas.shape.fastForward" | "canvas.shape.record" | "canvas.shape.arrowRight" | "canvas.shape.arrowLeft" | "canvas.shape.arrowUp" | "canvas.shape.arrowDown" | "canvas.shape.doubleArrow" | "canvas.shape.curvedArrow" | "canvas.shape.checkMark" | "canvas.shape.cross" | "canvas.shape.plus" | "canvas.shape.minus" | "canvas.shape.info" | "canvas.shape.warning" | "canvas.shape.star" | "canvas.shape.heart" | "canvas.shape.speechBubble" | "canvas.shape.rhombus" | "canvas.shape.lightning" | "canvas.shape.shield" | "canvas.action.cut" | "canvas.action.copy" | "canvas.action.paste" | "canvas.action.duplicate" | "canvas.action.delete" | "canvas.action.group" | "canvas.action.ungroup" | "canvas.action.selectAll" | "canvas.action.clearAll" | "canvas.layer.title" | "canvas.layer.front" | "canvas.layer.forward" | "canvas.layer.backward" | "canvas.layer.back" | "canvas.layer.frontShort" | "canvas.layer.upShort" | "canvas.layer.downShort" | "canvas.layer.backShort" | "canvas.shortcuts.title" | "canvas.shortcuts.close" | "canvas.shortcuts.footer" | "canvas.shortcuts.footerHint" | "canvas.shortcuts.groupTools" | "canvas.shortcuts.groupSelection" | "canvas.shortcuts.groupHistory" | "canvas.shortcuts.groupZoom" | "canvas.shortcuts.drillThrough" | "canvas.shortcuts.redoAlt" | "canvas.shortcuts.save" | "canvas.shortcuts.zoomIn" | "canvas.shortcuts.zoomOut" | "canvas.shortcuts.zoomReset" | "canvas.shortcuts.fit" | "canvas.shortcuts.pan" | "canvas.shortcuts.move1" | "canvas.shortcuts.move10" | "canvas.shortcuts.frameResize" | "canvas.shortcuts.frameEdit" | "canvas.key.ctrlCmd" | "canvas.key.alt" | "canvas.key.shift" | "canvas.key.delete" | "canvas.key.space" | "canvas.key.click" | "canvas.key.drag" | "canvas.key.dragCorner" | "canvas.key.doubleClick" | "canvas.zoom.expandTitle" | "canvas.zoom.expandLabel" | "canvas.zoom.gridTitle" | "canvas.zoom.gridLabel" | "canvas.zoom.panTitle" | "canvas.zoom.panLabel" | "canvas.zoom.panBanner" | "canvas.zoom.outTitle" | "canvas.zoom.outLabel" | "canvas.zoom.inTitle" | "canvas.zoom.inLabel" | "canvas.zoom.resetTitle" | "canvas.zoom.resetLabel" | "canvas.zoom.levelLabel" | "canvas.zoom.oneToOneTitle" | "canvas.zoom.fitTitle" | "canvas.zoom.fitLabel" | "canvas.zoom.shortcutsTitle" | "canvas.zoom.shortcutsLabel" | "canvas.zoom.unsavedTitle" | "canvas.zoom.savedTitle" | "canvas.zoom.minimize" | "canvas.props.shape" | "canvas.props.showAll" | "canvas.props.showFewer" | "canvas.props.close" | "canvas.props.children" | "canvas.props.actions" | "canvas.props.general" | "canvas.props.dimensions" | "canvas.props.width" | "canvas.props.height" | "canvas.props.proportionsFixed" | "canvas.props.proportionsUnlock" | "canvas.props.proportionsLock" | "canvas.props.textProperties" | "canvas.props.labelProperties" | "canvas.props.boxProperties" | "canvas.props.groupBox" | "canvas.props.labelText" | "canvas.props.labelPlaceholder" | "canvas.props.textBackground" | "canvas.type.none" | "canvas.type.widget" | "canvas.type.drawing" | "canvas.type.line" | "canvas.type.group" | "canvas.type.selection" | "canvas.type.drawingOf" | "canvas.type.customShape" | "canvas.field.opacity" | "canvas.field.cornerRoundness" | "canvas.field.backgroundColor" | "canvas.field.backgroundOpacity" | "canvas.field.fillColor" | "canvas.field.fillOpacity" | "canvas.field.strokeColor" | "canvas.field.strokeWidth" | "canvas.field.strokeType" | "canvas.field.strokeSolid" | "canvas.field.strokeDashed" | "canvas.field.strokeDotted" | "canvas.field.fontSize" | "canvas.field.textPadding" | "canvas.field.textColor" | "canvas.field.textStrokeColor" | "canvas.field.textStrokeWidth" | "canvas.field.groupFillColor" | "canvas.field.groupFillOpacity" | "canvas.field.groupStrokeColor" | "canvas.field.groupStrokeWidth" | "canvas.field.groupStrokeType" | "canvas.arrange.title" | "canvas.arrange.left" | "canvas.arrange.centerH" | "canvas.arrange.right" | "canvas.arrange.top" | "canvas.arrange.middleV" | "canvas.arrange.bottom" | "canvas.image.source" | "canvas.image.file" | "canvas.image.noFile" | "canvas.image.changeFile" | "canvas.image.chooseFile" | "canvas.image.url" | "canvas.image.pasteUrl" | "canvas.image.newUrl" | "canvas.image.load" | "canvas.widget.createPreview" | "canvas.widget.capture" | "canvas.widget.linked" | "canvas.widget.converting" | "canvas.widget.duplicating" | "canvas.widget.linking" | "canvas.widget.unlinkedTitle" | "canvas.widget.orphanNotice" | "canvas.widget.removeFromCanvas" | "canvas.widget.namePlaceholder" | "canvas.widget.openDetails" | "canvas.widget.refreshPreview" | "canvas.widget.primary" | "canvas.widget.primaryTitle" | "canvas.widget.setPrimary" | "canvas.widget.convertLabel" | "canvas.widget.convertButton" | "canvas.widget.unlinkedName" | "canvas.control.color" | "canvas.control.value" | "canvas.control.openPicker" | "canvas.control.removeColor" | "canvas.control.fontFamily" | "canvas.control.textStyle" | "canvas.control.bold" | "canvas.control.boldMark" | "canvas.control.italic" | "canvas.control.italicMark" | "canvas.control.underline" | "canvas.control.underlineMark" | "canvas.control.textAlign" | "canvas.control.alignLeft" | "canvas.control.alignCenter" | "canvas.control.alignRight">;
|
|
13
13
|
/**
|
|
14
14
|
* The English `t` of the canvas, for code that has no component around it. The screens of the canvas get their words, in
|
|
15
15
|
* the page's language, from `useCanvasLanguage`.
|
|
16
16
|
*/
|
|
17
|
-
export declare const translateEnglish: import("@widgetic/design-system/i18n").Translate<"canvas.state.loading" | "canvas.state.initFailed" | "canvas.error.imageFromUrl" | "canvas.defaults.
|
|
17
|
+
export declare const translateEnglish: import("@widgetic/design-system/i18n").Translate<"canvas.state.loading" | "canvas.state.initFailed" | "canvas.error.imageFromUrl" | "canvas.defaults.textBox" | "canvas.defaults.frameLabel" | "canvas.defaults.untitledFrame" | "canvas.defaults.untitledShape" | "canvas.draw.dropImage" | "canvas.draw.dropVideo" | "canvas.draw.or" | "canvas.draw.doubleClick" | "canvas.draw.widgetName" | "canvas.draw.widgetPreview" | "canvas.tool.select" | "canvas.tool.hand" | "canvas.tool.erase" | "canvas.tool.draw" | "canvas.tool.arrow" | "canvas.tool.rectangle" | "canvas.tool.triangle" | "canvas.tool.ellipse" | "canvas.tool.circle" | "canvas.tool.frame" | "canvas.tool.text" | "canvas.tool.selector" | "canvas.tool.image" | "canvas.tool.video" | "canvas.tool.shapes" | "canvas.tool.moreShapes" | "canvas.tool.undo" | "canvas.tool.redo" | "canvas.tool.withKey" | "canvas.tool.undoTitle" | "canvas.tool.redoTitle" | "canvas.tool.stickyOn" | "canvas.tool.stickyOff" | "canvas.tool.stickyLabel" | "canvas.menu.mediaShapes" | "canvas.category.geometric" | "canvas.category.arrows" | "canvas.category.media" | "canvas.category.ui" | "canvas.category.symbols" | "canvas.shape.hexagon" | "canvas.shape.oval" | "canvas.shape.play" | "canvas.shape.pause" | "canvas.shape.stop" | "canvas.shape.rewind" | "canvas.shape.fastForward" | "canvas.shape.record" | "canvas.shape.arrowRight" | "canvas.shape.arrowLeft" | "canvas.shape.arrowUp" | "canvas.shape.arrowDown" | "canvas.shape.doubleArrow" | "canvas.shape.curvedArrow" | "canvas.shape.checkMark" | "canvas.shape.cross" | "canvas.shape.plus" | "canvas.shape.minus" | "canvas.shape.info" | "canvas.shape.warning" | "canvas.shape.star" | "canvas.shape.heart" | "canvas.shape.speechBubble" | "canvas.shape.rhombus" | "canvas.shape.lightning" | "canvas.shape.shield" | "canvas.action.cut" | "canvas.action.copy" | "canvas.action.paste" | "canvas.action.duplicate" | "canvas.action.delete" | "canvas.action.group" | "canvas.action.ungroup" | "canvas.action.selectAll" | "canvas.action.clearAll" | "canvas.layer.title" | "canvas.layer.front" | "canvas.layer.forward" | "canvas.layer.backward" | "canvas.layer.back" | "canvas.layer.frontShort" | "canvas.layer.upShort" | "canvas.layer.downShort" | "canvas.layer.backShort" | "canvas.shortcuts.title" | "canvas.shortcuts.close" | "canvas.shortcuts.footer" | "canvas.shortcuts.footerHint" | "canvas.shortcuts.groupTools" | "canvas.shortcuts.groupSelection" | "canvas.shortcuts.groupHistory" | "canvas.shortcuts.groupZoom" | "canvas.shortcuts.drillThrough" | "canvas.shortcuts.redoAlt" | "canvas.shortcuts.save" | "canvas.shortcuts.zoomIn" | "canvas.shortcuts.zoomOut" | "canvas.shortcuts.zoomReset" | "canvas.shortcuts.fit" | "canvas.shortcuts.pan" | "canvas.shortcuts.move1" | "canvas.shortcuts.move10" | "canvas.shortcuts.frameResize" | "canvas.shortcuts.frameEdit" | "canvas.key.ctrlCmd" | "canvas.key.alt" | "canvas.key.shift" | "canvas.key.delete" | "canvas.key.space" | "canvas.key.click" | "canvas.key.drag" | "canvas.key.dragCorner" | "canvas.key.doubleClick" | "canvas.zoom.expandTitle" | "canvas.zoom.expandLabel" | "canvas.zoom.gridTitle" | "canvas.zoom.gridLabel" | "canvas.zoom.panTitle" | "canvas.zoom.panLabel" | "canvas.zoom.panBanner" | "canvas.zoom.outTitle" | "canvas.zoom.outLabel" | "canvas.zoom.inTitle" | "canvas.zoom.inLabel" | "canvas.zoom.resetTitle" | "canvas.zoom.resetLabel" | "canvas.zoom.levelLabel" | "canvas.zoom.oneToOneTitle" | "canvas.zoom.fitTitle" | "canvas.zoom.fitLabel" | "canvas.zoom.shortcutsTitle" | "canvas.zoom.shortcutsLabel" | "canvas.zoom.unsavedTitle" | "canvas.zoom.savedTitle" | "canvas.zoom.minimize" | "canvas.props.shape" | "canvas.props.showAll" | "canvas.props.showFewer" | "canvas.props.close" | "canvas.props.children" | "canvas.props.actions" | "canvas.props.general" | "canvas.props.dimensions" | "canvas.props.width" | "canvas.props.height" | "canvas.props.proportionsFixed" | "canvas.props.proportionsUnlock" | "canvas.props.proportionsLock" | "canvas.props.textProperties" | "canvas.props.labelProperties" | "canvas.props.boxProperties" | "canvas.props.groupBox" | "canvas.props.labelText" | "canvas.props.labelPlaceholder" | "canvas.props.textBackground" | "canvas.type.none" | "canvas.type.widget" | "canvas.type.drawing" | "canvas.type.line" | "canvas.type.group" | "canvas.type.selection" | "canvas.type.drawingOf" | "canvas.type.customShape" | "canvas.field.opacity" | "canvas.field.cornerRoundness" | "canvas.field.backgroundColor" | "canvas.field.backgroundOpacity" | "canvas.field.fillColor" | "canvas.field.fillOpacity" | "canvas.field.strokeColor" | "canvas.field.strokeWidth" | "canvas.field.strokeType" | "canvas.field.strokeSolid" | "canvas.field.strokeDashed" | "canvas.field.strokeDotted" | "canvas.field.fontSize" | "canvas.field.textPadding" | "canvas.field.textColor" | "canvas.field.textStrokeColor" | "canvas.field.textStrokeWidth" | "canvas.field.groupFillColor" | "canvas.field.groupFillOpacity" | "canvas.field.groupStrokeColor" | "canvas.field.groupStrokeWidth" | "canvas.field.groupStrokeType" | "canvas.arrange.title" | "canvas.arrange.left" | "canvas.arrange.centerH" | "canvas.arrange.right" | "canvas.arrange.top" | "canvas.arrange.middleV" | "canvas.arrange.bottom" | "canvas.image.source" | "canvas.image.file" | "canvas.image.noFile" | "canvas.image.changeFile" | "canvas.image.chooseFile" | "canvas.image.url" | "canvas.image.pasteUrl" | "canvas.image.newUrl" | "canvas.image.load" | "canvas.widget.createPreview" | "canvas.widget.capture" | "canvas.widget.linked" | "canvas.widget.converting" | "canvas.widget.duplicating" | "canvas.widget.linking" | "canvas.widget.unlinkedTitle" | "canvas.widget.orphanNotice" | "canvas.widget.removeFromCanvas" | "canvas.widget.namePlaceholder" | "canvas.widget.openDetails" | "canvas.widget.refreshPreview" | "canvas.widget.primary" | "canvas.widget.primaryTitle" | "canvas.widget.setPrimary" | "canvas.widget.convertLabel" | "canvas.widget.convertButton" | "canvas.widget.unlinkedName" | "canvas.control.color" | "canvas.control.value" | "canvas.control.openPicker" | "canvas.control.removeColor" | "canvas.control.fontFamily" | "canvas.control.textStyle" | "canvas.control.bold" | "canvas.control.boldMark" | "canvas.control.italic" | "canvas.control.italicMark" | "canvas.control.underline" | "canvas.control.underlineMark" | "canvas.control.textAlign" | "canvas.control.alignLeft" | "canvas.control.alignCenter" | "canvas.control.alignRight">;
|
|
18
18
|
/**
|
|
19
19
|
* Checks a page's `messages` against the canvas's catalog without showing anything: a key that does not exist (with the
|
|
20
20
|
* nearest real one), a value that is not text, a template that does not parse, or one that asks for a value the message
|
package/dist/i18n/messages.d.ts
CHANGED
|
@@ -20,8 +20,7 @@ export declare const CANVAS_MESSAGES: {
|
|
|
20
20
|
readonly 'canvas.state.initFailed': "Canvas failed to initialize.";
|
|
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
|
-
|
|
24
|
-
/** Gray hint drawn on an empty text shape. It is not stored as the text. */
|
|
23
|
+
/** Gray hint drawn on an empty text shape. It is not stored as the text: a new text box starts empty. */
|
|
25
24
|
readonly 'canvas.defaults.textBox': "Type here";
|
|
26
25
|
/** The name written above a new frame. */
|
|
27
26
|
readonly 'canvas.defaults.frameLabel': "Frame";
|
|
@@ -47,6 +46,7 @@ export declare const CANVAS_MESSAGES: {
|
|
|
47
46
|
readonly 'canvas.tool.circle': "Circle";
|
|
48
47
|
readonly 'canvas.tool.frame': "Frame";
|
|
49
48
|
readonly 'canvas.tool.text': "Text";
|
|
49
|
+
readonly 'canvas.tool.selector': "Selector";
|
|
50
50
|
readonly 'canvas.tool.image': "Image";
|
|
51
51
|
readonly 'canvas.tool.video': "Video";
|
|
52
52
|
readonly 'canvas.tool.shapes': "Shapes";
|
|
@@ -151,6 +151,8 @@ export declare const CANVAS_MESSAGES: {
|
|
|
151
151
|
readonly 'canvas.zoom.gridLabel': "Toggle grid";
|
|
152
152
|
readonly 'canvas.zoom.panTitle': "Hand / Pan [H]";
|
|
153
153
|
readonly 'canvas.zoom.panLabel': "Hand / pan tool";
|
|
154
|
+
/** The small label next to the zoom controls while the hand tool is on. */
|
|
155
|
+
readonly 'canvas.zoom.panBanner': "Dragging the canvas";
|
|
154
156
|
readonly 'canvas.zoom.outTitle': "Zoom Out [Ctrl/Cmd] + [−]";
|
|
155
157
|
readonly 'canvas.zoom.outLabel': "Zoom out";
|
|
156
158
|
readonly 'canvas.zoom.inTitle': "Zoom In [Ctrl/Cmd] + [+]";
|
package/dist/i18n/messages.js
CHANGED
|
@@ -22,8 +22,7 @@ export const CANVAS_MESSAGES = {
|
|
|
22
22
|
/** Said in a dialog of the browser when a picture cannot be loaded from the address the visitor typed. */
|
|
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
|
-
|
|
26
|
-
/** Gray hint drawn on an empty text shape. It is not stored as the text. */
|
|
25
|
+
/** Gray hint drawn on an empty text shape. It is not stored as the text: a new text box starts empty. */
|
|
27
26
|
'canvas.defaults.textBox': 'Type here',
|
|
28
27
|
/** The name written above a new frame. */
|
|
29
28
|
'canvas.defaults.frameLabel': 'Frame',
|
|
@@ -51,6 +50,7 @@ export const CANVAS_MESSAGES = {
|
|
|
51
50
|
'canvas.tool.circle': 'Circle',
|
|
52
51
|
'canvas.tool.frame': 'Frame',
|
|
53
52
|
'canvas.tool.text': 'Text',
|
|
53
|
+
'canvas.tool.selector': 'Selector',
|
|
54
54
|
'canvas.tool.image': 'Image',
|
|
55
55
|
'canvas.tool.video': 'Video',
|
|
56
56
|
'canvas.tool.shapes': 'Shapes',
|
|
@@ -161,6 +161,8 @@ export const CANVAS_MESSAGES = {
|
|
|
161
161
|
'canvas.zoom.gridLabel': 'Toggle grid',
|
|
162
162
|
'canvas.zoom.panTitle': 'Hand / Pan [H]',
|
|
163
163
|
'canvas.zoom.panLabel': 'Hand / pan tool',
|
|
164
|
+
/** The small label next to the zoom controls while the hand tool is on. */
|
|
165
|
+
'canvas.zoom.panBanner': 'Dragging the canvas',
|
|
164
166
|
'canvas.zoom.outTitle': 'Zoom Out [Ctrl/Cmd] + [−]',
|
|
165
167
|
'canvas.zoom.outLabel': 'Zoom out',
|
|
166
168
|
'canvas.zoom.inTitle': 'Zoom In [Ctrl/Cmd] + [+]',
|