@hankchen/canvas-editor-vue 0.1.3 → 0.2.0
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/guideSnap.d.ts +4 -2
- package/dist/{canvas-DP-pVLyA.js → canvas-C70NSsoF.js} +390 -366
- package/dist/canvas.js +1 -1
- package/dist/index.js +14 -14
- package/dist/layer-panel/addMenu.d.ts +14 -1
- package/dist/layer-panel/index.d.ts +1 -1
- package/dist/{layer-panel-CXIkRodC.js → layer-panel-BEcT9HhJ.js} +189 -152
- package/dist/layer-panel.js +2 -2
- package/dist/property-panel/fields/BooleanField.d.ts +2 -0
- package/dist/{property-panel-CigAECN_.js → property-panel-C2etsIhF.js} +1 -1
- package/dist/property-panel.js +1 -1
- package/dist/shared/editableTarget.d.ts +8 -0
- package/dist/{shared-BTyB4vbT.js → shared-wuupBoZg.js} +20 -20
- package/dist/shared.js +4 -4
- package/dist/{status-bar-DO8akYAw.js → status-bar-_PvEXyq8.js} +6 -6
- package/dist/status-bar.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useDataSourceSchema-DStVoY8Z.js → useDataSourceSchema-CGbldbUj.js} +20 -20
- package/dist/{useTransientFeedback-Cnp6aNB7.js → useTransientFeedback-CTjmMmFF.js} +15 -9
- package/package.json +2 -2
package/dist/canvas.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./canvas-
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./canvas-C70NSsoF.js";
|
|
2
2
|
export { e as AlignFloatBar, n as CanvasSurface, f as ContentTypePill, a as ContextMenu, l as FindBar, m as GuidesOverlay, d as Ruler, c as TextEditingOverlay, u as createGizmoOverlayPainter, h as createRafScheduler, t as drawCreateRubberBand, s as drawFindMatches, p as drawSelectionGizmo, r as useDpr, o as useFindSession, g as useTextEditing, i as watchDprChanges };
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./canvas-
|
|
2
|
-
import { a as _, i as v, n as y,
|
|
3
|
-
import { a as
|
|
4
|
-
import { i as
|
|
5
|
-
import {
|
|
6
|
-
import { i as
|
|
7
|
-
import { n as
|
|
8
|
-
import { n as
|
|
9
|
-
import { n as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./canvas-C70NSsoF.js";
|
|
2
|
+
import { a as _, i as v, n as y, o as b, r as x, s as S, t as C } from "./layer-panel-BEcT9HhJ.js";
|
|
3
|
+
import { a as w, c as T, d as E, f as D, i as O, l as k, m as A, n as j, o as M, p as N, r as P, s as F, t as I, u as L } from "./property-panel-C2etsIhF.js";
|
|
4
|
+
import { i as R, n as z, r as B, t as V } from "./completionAnchor-CDR5YZhu.js";
|
|
5
|
+
import { c as H, i as U, n as W, s as G, t as K } from "./useTransientFeedback-CTjmMmFF.js";
|
|
6
|
+
import { i as q, n as J, r as Y, t as X } from "./uploadFile-BOfv8aLG.js";
|
|
7
|
+
import { n as Z, t as Q } from "./usePathCompletion-uJ5c_gQ0.js";
|
|
8
|
+
import { n as $, t as ee } from "./useViewport-D9Ipevzs.js";
|
|
9
|
+
import { n as te, r as ne, t as re } from "./useDataSourceSchema-CGbldbUj.js";
|
|
10
|
+
import { n as ie, r as ae, t as oe } from "./status-bar-_PvEXyq8.js";
|
|
11
|
+
import { t as se } from "./useShortcutsHelp-CsyarO2P.js";
|
|
12
|
+
import { n as ce, r as le, t as ue } from "./shared-wuupBoZg.js";
|
|
13
13
|
//#region src/index.ts
|
|
14
|
-
var
|
|
14
|
+
var de = "@hankchen/canvas-editor-vue";
|
|
15
15
|
//#endregion
|
|
16
|
-
export { v as ADD_LAYER_MENU, _ as ADD_MENU,
|
|
16
|
+
export { v as ADD_LAYER_MENU, _ as ADD_MENU, b as ADD_TEXT_PRESET_MENU, U as ARM_LAYER_CREATE_HINT, e as AlignFloatBar, k as CANVAS_FIELD_SECTIONS, n as CanvasSurface, f as ContentTypePill, a as ContextMenu, te as DropdownMenu, B as ExpressionCompletionPopup, L as FIELD_SECTIONS_BY_TYPE, F as FONT_PICKER_KEY, l as FindBar, m as GuidesOverlay, le as HelpDialog, w as IMAGE_UPLOAD_KEY, C as LayerPanel, de as PACKAGE_NAME, S as PANEL_ADD_MENU, R as PanelIcon, j as PropertyField, I as PropertyPanel, d as Ruler, oe as StatusBar, c as TextEditingOverlay, z as applyCompletion, O as controlRegistry, u as createGizmoOverlayPainter, h as createRafScheduler, G as detectShortcutPlatform, t as drawCreateRubberBand, s as drawFindMatches, p as drawSelectionGizmo, Y as expressionCompletionSource, q as expressionFieldContext, E as fieldSectionsForPath, D as fieldSectionsForType, ie as formatLayerGeometry, ae as formatLayerPath, T as injectFontPicker, M as injectImageUpload, W as isEditableEventTarget, y as isUpperHalf, N as layerRoleAt, V as measureCursorAnchor, A as readField, Z as rowsPathCompletionSource, H as shortcutActionLabel, X as uploadFileFromDom, re as useDataSourceSchema, r as useDpr, ne as useDropdownMenu, J as useExpressionCompletion, o as useFindSession, ce as useHistory, x as useLayerPanel, Q as usePathCompletion, P as usePropertyPanel, $ as useSelection, ue as useShortcuts, se as useShortcutsHelp, g as useTextEditing, K as useTransientFeedback, ee as useViewport, i as watchDprChanges };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayerType } from '@hankchen/canvas-editor';
|
|
1
|
+
import { LayerType, TextPresetId } from '@hankchen/canvas-editor';
|
|
2
2
|
/** 新增菜单项(spec §2.1):四类图层武装画拉(drag-create 工单 03);模板表带 rowsPath 必填表单 */
|
|
3
3
|
export type AddMenuKind = {
|
|
4
4
|
kind: 'layer';
|
|
@@ -10,7 +10,20 @@ export type AddMenuKind = {
|
|
|
10
10
|
label: string;
|
|
11
11
|
title: string;
|
|
12
12
|
};
|
|
13
|
+
/** 文本预设项(text-defaults 工单 02,spec 决策 5):面板专用入口——应用即写新层样式槽 + 武装画拉 */
|
|
14
|
+
export type AddTextPresetKind = {
|
|
15
|
+
kind: 'text-preset';
|
|
16
|
+
preset: TextPresetId;
|
|
17
|
+
label: string;
|
|
18
|
+
title: string;
|
|
19
|
+
};
|
|
13
20
|
export declare const ADD_MENU: readonly AddMenuKind[];
|
|
21
|
+
/** 文本预设三项(text-defaults 工单 02,spec 决策 4):从内核 TEXT_PRESETS 派生
|
|
22
|
+
* (字号单一事实源,内核改档位文案自动跟随),v1 只定字号——字体缺口由新层样式槽补 */
|
|
23
|
+
export declare const ADD_TEXT_PRESET_MENU: readonly AddTextPresetKind[];
|
|
24
|
+
/** 面板「+」完整序(text-defaults 工单 02,spec 决策 5):文本预设三项插在「文本层」之后;
|
|
25
|
+
* 工具栏派生视图 ADD_LAYER_MENU 不含预设(预设只属面板) */
|
|
26
|
+
export declare const PANEL_ADD_MENU: readonly (AddMenuKind | AddTextPresetKind)[];
|
|
14
27
|
/** 层型项视图(工具栏「+插入▾」消费,editor-top-toolbar 工单 03):ADD_MENU 的
|
|
15
28
|
* 四类图层项,模板表项不进工具栏 */
|
|
16
29
|
export declare const ADD_LAYER_MENU: readonly Extract<AddMenuKind, {
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export { default as LayerPanel } from './LayerPanel';
|
|
6
6
|
export { isUpperHalf, useLayerPanel, type LayerPanelBinding } from './useLayerPanel';
|
|
7
|
-
export { ADD_LAYER_MENU, ADD_MENU, type AddMenuKind } from './addMenu';
|
|
7
|
+
export { ADD_LAYER_MENU, ADD_MENU, ADD_TEXT_PRESET_MENU, PANEL_ADD_MENU, type AddMenuKind, type AddTextPresetKind, } from './addMenu';
|