@hankchen/canvas-editor 0.3.0 → 0.4.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/index.d.ts +129 -63
- package/dist/index.js +282 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -594,14 +594,20 @@ declare function deleteLayerInDraft(draft: Draft<Canvas>, path: LayerPath): Dele
|
|
|
594
594
|
* D6 钉定:注入边界一次性转译为内部形状树(不在查询期惰性解析原始 schema,
|
|
595
595
|
* 行业惯例见 schema-completion-research.md)。方言子集 = JSON Schema draft-07 的
|
|
596
596
|
* 结构关键词(`properties` / `items` / `type`)+ 注解关键词(`description` /
|
|
597
|
-
* `title` / `additionalProperties: true
|
|
598
|
-
* `definitions`/`$defs`
|
|
599
|
-
*
|
|
600
|
-
*
|
|
597
|
+
* `title` / `additionalProperties: true` / 白名单 `format`,见下)+ 引用关键词
|
|
598
|
+
* (`$ref` 内部 JSON Pointer、`definitions`/`$defs` 命名池);其余关键词
|
|
599
|
+
* (`required`/`enum`/`const`/`allOf` 族/`patternProperties`/`$schema`/`$id` 及
|
|
600
|
+
* 一切未识别键)宽松忽略,节点按已识别字段归一(可能变叶子)。
|
|
601
601
|
*
|
|
602
602
|
* 声明契约(D1 钉定):schema 声明即 `compile(canvas, dataset)` 收到的 data
|
|
603
603
|
* 载荷形状——根上下文候选 = 载荷顶层键;根必须是带 properties 的对象声明。
|
|
604
604
|
*
|
|
605
|
+
* format 注解(expression-type-methods 工单 11/12,content-completion spec D13):
|
|
606
|
+
* draft-07 `format` 从宽松忽略清单开口——仅精确匹配小写 `date` / `date-time`
|
|
607
|
+
* (draft-07 格式词表子集)且节点 type 归一后为 string 才挂注解;其余值(大小写
|
|
608
|
+
* 变体/其他词表值/自定义值)/非 string 节点/形态不符维持宽松忽略,**无诊断**。
|
|
609
|
+
* 注解只影响建议面(date() 建议分桶),求值器/graph/wire 三端零感知。
|
|
610
|
+
*
|
|
605
611
|
* 降级分级(D7):
|
|
606
612
|
* - **整份拒绝**仅保留根级结构性问题(在原始文档上判定,拒绝面与 walker 时代
|
|
607
613
|
* 全等):根非对象 / 根缺 properties 层级(含根级 `$ref`——根不解引用)/
|
|
@@ -646,6 +652,11 @@ interface ExpressionSchemaNode {
|
|
|
646
652
|
description?: string;
|
|
647
653
|
/** 开放映射标记(D10):`additionalProperties: true`;动态字段实际键由宿主合入 properties */
|
|
648
654
|
open?: boolean;
|
|
655
|
+
/**
|
|
656
|
+
* 日期标记注解(工单 11,D13):`format: "date" | "date-time"` 白名单两值、
|
|
657
|
+
* 仅 type 归一为 string 的节点挂;只影响 date() 建议分桶,永不触发诊断
|
|
658
|
+
*/
|
|
659
|
+
format?: 'date' | 'date-time';
|
|
649
660
|
properties?: ReadonlyMap<string, ExpressionSchemaNode>;
|
|
650
661
|
items?: ExpressionSchemaNode;
|
|
651
662
|
}
|
|
@@ -2544,26 +2555,6 @@ type ExpressionPathParse = {
|
|
|
2544
2555
|
/** 解析点路径:head 分类 + 余段;语法不合法(空片段/空段)返回错误信号 */
|
|
2545
2556
|
declare function parseExpressionPath(expr: string): ExpressionPathParse;
|
|
2546
2557
|
|
|
2547
|
-
/**
|
|
2548
|
-
* 片段扫描纯函数(content-completion 工单 01,spec §4 纯函数 ①)。
|
|
2549
|
-
*
|
|
2550
|
-
* 语义逐条对齐 php-canvas-next `InterpolationEvaluator::evaluate` 扫描循环(只读
|
|
2551
|
-
* 对齐,不改求值器):首个未闭合 `{{` 起剩余全字面、片段内容 trim、`{{}}` 不嵌套
|
|
2552
|
-
* (首个 `}}` 收口,内容含 `{{`)、片段外字面直通;空片段/路径空段 =
|
|
2553
|
-
* `expression_syntax_error` 信号(与求值器同码,经 parseExpressionPath 判定)。
|
|
2554
|
-
*
|
|
2555
|
-
* 与求值器的一处表示分叉(编辑器侧补全所需):未闭合 `{{` 在求值期按字面直通,
|
|
2556
|
-
* 在扫描结果里另立 **open 片段**(kind: 'open')——这正是「输入 `{{` 自动弹出」的
|
|
2557
|
-
* 触发态(spec §3),其 expr 是待输入路径;closed 片段仍按求值语义带错误信号。
|
|
2558
|
-
*
|
|
2559
|
-
* 位置字段是 JS 码元索引(end 独占)——与 PHP 字节索引不同空间,跨端共享 fixture
|
|
2560
|
-
* (expression-scan v1)只钉切分内容不钉位置,位置由本端派生并由单测锁死。
|
|
2561
|
-
* trim 字符集对齐 PHP `trim()` 默认六字符(" \t\n\r\0\x0B"),**不是** JS 的
|
|
2562
|
-
* `String.trim()`(后者含全角空格等 Unicode 空白,会造成双端漂移)。
|
|
2563
|
-
*
|
|
2564
|
-
* 全模块纯函数、无 DOM(editor-shared-isolation)。
|
|
2565
|
-
*/
|
|
2566
|
-
|
|
2567
2558
|
/** 字面直通段(不含任何 `{{`) */
|
|
2568
2559
|
interface ExpressionScanLiteral {
|
|
2569
2560
|
kind: 'literal';
|
|
@@ -2600,6 +2591,12 @@ interface ExpressionScan {
|
|
|
2600
2591
|
/** PHP trim() 默认字符集(JS String.trim 的 Unicode 空白集与之不同,勿用);
|
|
2601
2592
|
* 编辑器侧补全的接受手术同用此集(导出防按值复刻漂移,工单 04) */
|
|
2602
2593
|
declare const PHP_TRIM_CHARS = " \t\n\r\0\v";
|
|
2594
|
+
/**
|
|
2595
|
+
* PHP trim() 语义(六字符集):片段 trim 与 vue 侧补全的 expr 前缀截取同用此集
|
|
2596
|
+
* (光标定位参数位,expression-type-methods 工单 12——单一事实源,勿按值复刻;
|
|
2597
|
+
* JS `String.trim()` 含全角空格等 Unicode 空白,会造成与 PHP 的双端漂移)。
|
|
2598
|
+
*/
|
|
2599
|
+
declare function phpTrim(value: string): string;
|
|
2603
2600
|
/** 扫描模板串的片段切分:闭合/未闭合/多片段/错误信号,语义对齐求值器扫描循环 */
|
|
2604
2601
|
declare function scanExpressionFragments(template: string): ExpressionScan;
|
|
2605
2602
|
/**
|
|
@@ -2610,48 +2607,107 @@ declare function scanExpressionFragments(template: string): ExpressionScan;
|
|
|
2610
2607
|
declare function expressionFragmentAtCursor(scan: ExpressionScan, cursor: number): ExpressionScanFragment | ExpressionScanOpen | null;
|
|
2611
2608
|
|
|
2612
2609
|
/**
|
|
2613
|
-
*
|
|
2610
|
+
* 最小调用形解析纯函数(expression-type-methods 工单 12,spec §1.1/§1.2 ⑦⑨)。
|
|
2614
2611
|
*
|
|
2615
|
-
*
|
|
2616
|
-
*
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
2619
|
-
*
|
|
2620
|
-
*
|
|
2621
|
-
* -
|
|
2622
|
-
*
|
|
2623
|
-
*
|
|
2624
|
-
*
|
|
2625
|
-
*
|
|
2626
|
-
* 不给写得出来而渲染为空白的表达式;下钻层 items 链保留供 rowsPath/`row.*`
|
|
2627
|
-
* 机制,类型徽标仍显示 array 本身)。开放映射(open)节点的枚举结果携带 open
|
|
2628
|
-
* 信号(结果面扩展,不污染候选条目契约),供工单 10 浮层占位提示(D10)。
|
|
2612
|
+
* JS 预览端最小文法面 = **结构面识别、名单面不校验**(spec §1.2 ⑨):
|
|
2613
|
+
* - 分类(⑦):trim 后首个 token(ASCII 特界符/空白前)其后紧跟可选空白与 `(` 即
|
|
2614
|
+
* 调用,否则路径——`foo(bar)` / `日期(bar)` / `foo (bar)` 均按调用分类(白名单
|
|
2615
|
+
* 校验后置),`{{date}}` 无 `(` 恒为路径,数据集根键叫 date 合法。
|
|
2616
|
+
* - 结构错(括号不平衡、空参数位、尾逗号、字符串未闭合)照 `expression_syntax_error`
|
|
2617
|
+
* 同码标红;首参必须为路径(§1.2 ① 文法层钉死)同面标红。
|
|
2618
|
+
* - **未知函数名不在 JS 标红**(PHP 权威端先发新函数、编辑器后跟期间避免「求值
|
|
2619
|
+
* 正常但编辑器假红」的名单漂移);签名面(参数个数/第二参类型/n 范围)同不校验。
|
|
2620
|
+
* - 算法逐字节镜像 php-canvas-next `InterpolationEvaluator::resolveFragment /
|
|
2621
|
+
* parseCallArgs / parseCallArg`(权威端):路径实参吞至 `,`/`)` 为止(段内空白
|
|
2622
|
+
* 属于键名,缺逗号非结构错)、字符串仅单引号 `''` 翻倍转义、数字无符号无指数。
|
|
2629
2623
|
*
|
|
2630
|
-
*
|
|
2631
|
-
*
|
|
2632
|
-
*
|
|
2633
|
-
* `row` 才是可下钻前缀);剥点后为空且原 expr 非空 = 孤点前缀,无合法续写 →
|
|
2634
|
-
* expression_syntax_error 信号。
|
|
2635
|
-
* - 结果 `partial` 恒为 expr 的后缀(尾点态 = 空后缀):接受 = 在 expr 末尾把
|
|
2636
|
-
* partial 替换为候选 segment;候选给**全量合法子项**、不按 partial 预过滤,
|
|
2637
|
-
* 前缀过滤/高亮归浮层(Ctrl+Space 全量展示语义亦归浮层)。
|
|
2638
|
-
* - 元信息:path(补全后的完整点路径)+ schema description/title(D8 两字段分离
|
|
2639
|
-
* 透传,展示回落 description ?? title 归浮层)+ 类型徽标数据(type 归一)。
|
|
2640
|
-
* `$root`/`row`/`$index` 结构头是下钻踏脚石(`{{$root}}`/
|
|
2641
|
-
* `{{row}}` 单独求值无意义),元信息仅有行 schema 声明时的 row 携带。
|
|
2624
|
+
* 字符集对 PHP 逐字对齐:跳空白用 PHP skipWs 四字符(" \t\n\r");分类与
|
|
2625
|
+
* parseCallArg 的 trim 用 PHP trim() 默认六字符(PHP_TRIM_CHARS,与 expressionScan
|
|
2626
|
+
* 同源语义)。JS `String.trim()`/正则 `\s` 含全角空白等 Unicode 集,会造成漂移勿用。
|
|
2642
2627
|
*
|
|
2643
|
-
*
|
|
2644
|
-
|
|
2645
|
-
|
|
2628
|
+
* 全模块纯函数、零 DOM;层内依赖仅 expressionPath(实参路径空段校验同码)。
|
|
2629
|
+
*/
|
|
2630
|
+
|
|
2631
|
+
/** 实参形态(spec §1.1 实参 := 路径 | 字符串 | 数字;value = 归一后文本) */
|
|
2632
|
+
interface ExpressionCallArg {
|
|
2633
|
+
type: 'path' | 'string' | 'number';
|
|
2634
|
+
value: string;
|
|
2635
|
+
}
|
|
2636
|
+
type ExpressionCallParse = {
|
|
2637
|
+
ok: true;
|
|
2638
|
+
name: string;
|
|
2639
|
+
args: readonly ExpressionCallArg[];
|
|
2640
|
+
} | {
|
|
2641
|
+
ok: false;
|
|
2642
|
+
error: ExpressionSyntaxError;
|
|
2643
|
+
};
|
|
2644
|
+
/**
|
|
2645
|
+
* ⑦ 片段分类:首 token 后紧跟可选空白与 `(` 即调用。expr 须已 trim(片段扫描
|
|
2646
|
+
* 职责,与 parseExpressionPath 契约一致)。
|
|
2647
|
+
*/
|
|
2648
|
+
declare function isCallFragment(expr: string): boolean;
|
|
2649
|
+
/**
|
|
2650
|
+
* 完整调用形结构解析(scan 错误信号与补全路由共用):只判结构面 + 首参路径
|
|
2651
|
+
* (文法层),名单/签名面不校验。expr 须已 trim;非调用形态由调用方分类后进入。
|
|
2652
|
+
*/
|
|
2653
|
+
declare function parseExpressionCall(expr: string): ExpressionCallParse;
|
|
2654
|
+
/** 光标槽位(补全路由消费):光标 = expr 末尾(调用方喂片段的光标前缀) */
|
|
2655
|
+
interface ExpressionCallSlotContext {
|
|
2656
|
+
/** 函数名(⑦ 首 token;名单面不校验) */
|
|
2657
|
+
name: string;
|
|
2658
|
+
/** 实参槽位(0 起) */
|
|
2659
|
+
index: number;
|
|
2660
|
+
/** 槽内光标前文本(字符串槽 = 引号内原文;其余 = trim 后) */
|
|
2661
|
+
text: string;
|
|
2662
|
+
/** 字符串字面量槽(date 格式串建议面) */
|
|
2663
|
+
stringSlot: boolean;
|
|
2664
|
+
}
|
|
2665
|
+
/**
|
|
2666
|
+
* 光标所在实参槽定位:容忍截断前缀(调用未写完/字符串未闭合都是常态输入),
|
|
2667
|
+
* 只定位不判错——结构红标归 parseExpressionCall/扫描面。返回 null = 无建议语义的
|
|
2668
|
+
* 落点(非调用形态 / 调用已闭合)。
|
|
2669
|
+
*/
|
|
2670
|
+
declare function expressionCallSlotAtEnd(expr: string): ExpressionCallSlotContext | null;
|
|
2671
|
+
|
|
2672
|
+
/**
|
|
2673
|
+
* 内建函数已知名单与格式建议表(expression-type-methods 工单 12,spec §1.2 ⑨/§2/§3.4)。
|
|
2646
2674
|
*
|
|
2647
|
-
*
|
|
2675
|
+
* spec §7 JS 行:结构面识别、名单面不校验;**已知名单只喂补全建议**——本表是
|
|
2676
|
+
* v1 白名单(date/number/fixed/percent)的编辑器侧建议数据,不参与任何校验/标红
|
|
2677
|
+
* (PHP 权威端先发新函数、编辑器后跟期间避免「求值正常但编辑器假红」的名单漂移;
|
|
2678
|
+
* PHP 增函数时此处增量跟随,缺位代价只是少建议不误红)。
|
|
2679
|
+
*
|
|
2680
|
+
* 具名预设/中文模板快捷项(spec §3.4):预设是求值面纯糖('date'/'datetime' 整体
|
|
2681
|
+
* 等值命中展开);中文格式不设求值预设——`YYYY年MM月DD日` 写即所得,编辑器快捷项
|
|
2682
|
+
* 与求值面解耦(spec 原文口径)。
|
|
2683
|
+
*
|
|
2684
|
+
* 全模块零依赖纯数据、零 DOM(editor-shared-isolation)。
|
|
2648
2685
|
*/
|
|
2686
|
+
/** 一条内建函数建议元数据(segment 由消费方拼装:`名字()` + 光标回落括号内) */
|
|
2687
|
+
interface ExpressionFunctionMeta {
|
|
2688
|
+
name: string;
|
|
2689
|
+
/** 签名展示(候选 tooltip/说明位) */
|
|
2690
|
+
signature: string;
|
|
2691
|
+
/** 一句话语义(候选说明位) */
|
|
2692
|
+
summary: string;
|
|
2693
|
+
}
|
|
2694
|
+
/** v1 内建函数白名单的建议面数据(spec §2;顺序 = 文档序,非优先级) */
|
|
2695
|
+
declare const EXPRESSION_FUNCTIONS: readonly ExpressionFunctionMeta[];
|
|
2696
|
+
/** 数字族桶建议(工单 11 ②:type=number 字段建议三函数,插入裸调用走缺省参) */
|
|
2697
|
+
declare const NUMBER_FUNCTION_SUGGESTIONS: readonly ExpressionFunctionMeta[];
|
|
2698
|
+
/** 一条格式串快捷项(date 第二参字符串槽的建议面) */
|
|
2699
|
+
interface ExpressionFormatSuggestion {
|
|
2700
|
+
segment: string;
|
|
2701
|
+
description: string;
|
|
2702
|
+
}
|
|
2703
|
+
/** date 格式串快捷项:具名预设两枚 + 中文模板(spec §3.4;写即所得不设中文求值预设) */
|
|
2704
|
+
declare const DATE_FORMAT_SUGGESTIONS: readonly ExpressionFormatSuggestion[];
|
|
2649
2705
|
|
|
2650
2706
|
/** 'root' = 根层三字段(独立图层);'row' = 格内容层(模板行内) */
|
|
2651
2707
|
type ExpressionContextKind = 'root' | 'row';
|
|
2652
2708
|
/** 一条补全候选:路径 + schema 元信息(description/title/类型徽标,展示回落归浮层) */
|
|
2653
2709
|
interface ExpressionCandidate {
|
|
2654
|
-
/** 补全后的完整点路径(前缀 +
|
|
2710
|
+
/** 补全后的完整点路径(前缀 + 本段;头部候选即头部名;调用候选 = 插入文本) */
|
|
2655
2711
|
path: string;
|
|
2656
2712
|
/** 本段名——接受时替换 partial / 追加到前缀后的文本 */
|
|
2657
2713
|
segment: string;
|
|
@@ -2659,8 +2715,23 @@ interface ExpressionCandidate {
|
|
|
2659
2715
|
description?: string;
|
|
2660
2716
|
/** schema title(D8 形状树两字段分离透传,未声明为 undefined)——浮层展示取 description ?? title */
|
|
2661
2717
|
title?: string;
|
|
2662
|
-
/** 类型徽标数据(schema type 归一;未声明为 undefined
|
|
2718
|
+
/** 类型徽标数据(schema type 归一;未声明为 undefined;函数/格式候选为建议类别) */
|
|
2663
2719
|
type?: string;
|
|
2720
|
+
/**
|
|
2721
|
+
* 插入后光标从插入文本末端回退的码元数(工单 12):date() 调用 = 2(落引号内
|
|
2722
|
+
* format 参数占位)、`名字()` 函数名候选 = 1(落括号内);缺省 0(落插入末尾)
|
|
2723
|
+
*/
|
|
2724
|
+
cursorBack?: number;
|
|
2725
|
+
/**
|
|
2726
|
+
* 接受时从光标锚位回退替换的长度(工单 12;缺省 = partial 长度):桶候选携带
|
|
2727
|
+
* 整段 expr 长度——调用插入重写「前缀 + 部分段」全量
|
|
2728
|
+
*/
|
|
2729
|
+
replaceLen?: number;
|
|
2730
|
+
/**
|
|
2731
|
+
* 前缀过滤键(工单 12;缺省 = segment):桶候选 = 字段键名——与同键路径候选
|
|
2732
|
+
* 一起被浮层按 partial 过滤(segment 是整段调用文本,直接过滤永不匹配)
|
|
2733
|
+
*/
|
|
2734
|
+
filterKey?: string;
|
|
2664
2735
|
}
|
|
2665
2736
|
interface ExpressionCandidateQuery {
|
|
2666
2737
|
context: ExpressionContextKind;
|
|
@@ -2690,11 +2761,6 @@ type ExpressionCandidateResult = {
|
|
|
2690
2761
|
ok: false;
|
|
2691
2762
|
reason: ExpressionSyntaxError;
|
|
2692
2763
|
};
|
|
2693
|
-
/**
|
|
2694
|
-
* 枚举当前片段表达式的合法候选。schema null(声明降级态)直接无候选;
|
|
2695
|
-
* 其余按 spec §2 规则表分上下文路由(见模块头注),分支不可达/节点为叶子
|
|
2696
|
-
* 一律空候选,不抛错。
|
|
2697
|
-
*/
|
|
2698
2764
|
declare function enumerateExpressionCandidates(schema: ExpressionSchemaNode | null, query: ExpressionCandidateQuery): ExpressionCandidateResult;
|
|
2699
2765
|
|
|
2700
2766
|
/**
|
|
@@ -2814,4 +2880,4 @@ declare function memoizeTextPolicies(policies?: TextLayoutPolicies, options?: Me
|
|
|
2814
2880
|
*/
|
|
2815
2881
|
declare const PACKAGE_NAME: "@hankchen/canvas-editor";
|
|
2816
2882
|
|
|
2817
|
-
export { ALIGN_CORNER_MARGIN_PX, ALT_DRAG_DEAD_ZONE_SCREEN_PX, ARM_CREATE_LAYER_TYPES, type AlignBoxGeometry, type AlignToCanvasMode, type AlignToCanvasOptions, type ArmCreateShortcutAction, CREATE_DEAD_ZONE_SCREEN_PX, type CanvasEditorState, type CreateGesture, type CreateRectResult, DEFAULT_EDITOR_SHORTCUTS, DEFAULT_ZOOM_BOUNDS, type DeletedLayerRef, type DocRecipe, type DragGesture, EDITOR_STATE_SCHEMA_VERSION, type EditorChange, type EditorPrefsState, EditorSession, type EditorSessionOptions, type EditorShortcutAction, type EditorShortcutBinding, type EditorShortcutGroup, type EditorShortcutInput, EditorStore, type EditorUi, type ExpressionCandidate, type ExpressionCandidateQuery, type ExpressionCandidateResult, type ExpressionContextKind, type ExpressionPathHead, type ExpressionPathParse, type ExpressionScan, type ExpressionScanFragment, type ExpressionScanLiteral, type ExpressionScanOpen, type ExpressionScanPart, type ExpressionSchemaChildEntry, type ExpressionSchemaChildView, type ExpressionSchemaDiagnostic, type ExpressionSchemaDiagnosticCode, type ExpressionSchemaNode, type ExpressionSchemaParse, type ExpressionSchemaRejectReason, type ExpressionSyntaxError, type FindSession, type FindTextHit, FontCatalog, type FontCatalogEntry, type FrameScheduler, type Guide, type GuideOrientation, type HistoryStep, type HitTestOptions, type InvalidateTarget, type LayerOutlineNode, type LayerOutlineRole, type LayerPath, MAX_HISTORY_STEPS, type MemoTextPoliciesOptions, type MovedSubtreeRef, type NextTextStyle, type OverlayPaintArgs, type OverlayPainter, PACKAGE_NAME, PAN_TO_BOX_MARGIN_PX, PASTE_OFFSET_PX, PHP_TRIM_CHARS, type Point, RESIZE_HANDLES, RESIZE_HANDLE_HIT_PX, RESIZE_MIN_SIZE_PX, type Rect, type ResizeAxes, type ResizeBoxGeometry, type ResizeBoxResult, type ResizeHandle, type ResourceStatus, type ResourceStatusMap, type RowsPathCandidate, type RowsPathCandidateResult, SNAP_THRESHOLD_SCREEN_PX, STYLE_FIELD_KEYS_BY_TYPE, type ShortcutCombo, type Size, type SnapAxis, type SnapAxisSource, type SnapBoxGeometry, type SnapPoints, type SnapResolution, type StyleSnapshot, TEXT_PRESETS, type TextEditLayout, type TextEditingSession, type TextPresetId, type TransactOptions, type UploadFile, type UploadHandler, UploadHandlerMissingError, type UploadImagePlacement, type Viewport, WHEEL_ZOOM_STEP, type WheelInput, type WheelIntent, type ZoomBounds, addRootLayerInDraft, addTableCellInDraft, addTableRowInDraft, addTemplateCellInDraft, alignToCanvasTarget, applyStyleFieldsInDraft, buildLayerOutline, canCopyLayerAt, canonicalizeTableSyncInDraft, captureStyleSnapshot, clampZoom, classifyEditorShortcut, classifyWheel, cloneLayerSubtree, convertTableToRowsInDraft, convertTableToTemplateInDraft, createDefaultLayer, createRubberBandRect, createTemplateTable, defaultNextTextStyle, deleteLayerInDraft, enumerateExpressionCandidates, enumerateRowsPathCandidates, expressionFragmentAtCursor, fitRect, fitViewport, growRowToCellInDraft, handleResizesHeight, handleResizesWidth, hitTest, insertRootLayerAdjacentInDraft, insertRootLayerInDraft, isImageContentUndrawn, isLayerPath, isLockedPath, isRootLayerPath, isRootPasteableType, isTemplateSubtreePath, layerBoxByPath, memoizeTextPolicies, moveGuard, moveRootLayerInDraft, moveTableCellInDraft, moveTableCellToRowInDraft, moveTableRowInDraft, moveTableRowToTableInDraft, nextZoomByWheel, normalizeExpressionSchemaSource, panBy, panToBox, parseExpressionPath, parseExpressionSchema, pastePosition, pathStartsWith, pathsEqual, pickNextTextStylePatch, prepareRootPaste, readSpecField, remapPathAfterSplice, replaceHitsInDraft, resizableAxesAt, resizeBox, resizeHandleAt, resizeHandlePoint, resizeHandlesAt, resizeSnapPoints, resolveLayer, resolveRowSchema, resolveRowsPathStartSchema, resolveSnap, resolveSnapPoints, rootLayerOf, scanExpressionFragments, scanTextMatches, sceneToScreen, schemaChildEntries, schemaNodeAtPath, screenToScene, selectionParentPath, setCellAutoHeightInDraft, snapAxesFromBoxes, snapThresholdScene, snapViewportToPhysicalPixels, syncContentIntoCellInDraft, syncRowWidthInDraft, uploadDisplayName, visibleRootBoxes, writeSpecField, zoomAtPoint };
|
|
2883
|
+
export { ALIGN_CORNER_MARGIN_PX, ALT_DRAG_DEAD_ZONE_SCREEN_PX, ARM_CREATE_LAYER_TYPES, type AlignBoxGeometry, type AlignToCanvasMode, type AlignToCanvasOptions, type ArmCreateShortcutAction, CREATE_DEAD_ZONE_SCREEN_PX, type CanvasEditorState, type CreateGesture, type CreateRectResult, DATE_FORMAT_SUGGESTIONS, DEFAULT_EDITOR_SHORTCUTS, DEFAULT_ZOOM_BOUNDS, type DeletedLayerRef, type DocRecipe, type DragGesture, EDITOR_STATE_SCHEMA_VERSION, EXPRESSION_FUNCTIONS, type EditorChange, type EditorPrefsState, EditorSession, type EditorSessionOptions, type EditorShortcutAction, type EditorShortcutBinding, type EditorShortcutGroup, type EditorShortcutInput, EditorStore, type EditorUi, type ExpressionCallArg, type ExpressionCallParse, type ExpressionCallSlotContext, type ExpressionCandidate, type ExpressionCandidateQuery, type ExpressionCandidateResult, type ExpressionContextKind, type ExpressionFormatSuggestion, type ExpressionFunctionMeta, type ExpressionPathHead, type ExpressionPathParse, type ExpressionScan, type ExpressionScanFragment, type ExpressionScanLiteral, type ExpressionScanOpen, type ExpressionScanPart, type ExpressionSchemaChildEntry, type ExpressionSchemaChildView, type ExpressionSchemaDiagnostic, type ExpressionSchemaDiagnosticCode, type ExpressionSchemaNode, type ExpressionSchemaParse, type ExpressionSchemaRejectReason, type ExpressionSyntaxError, type FindSession, type FindTextHit, FontCatalog, type FontCatalogEntry, type FrameScheduler, type Guide, type GuideOrientation, type HistoryStep, type HitTestOptions, type InvalidateTarget, type LayerOutlineNode, type LayerOutlineRole, type LayerPath, MAX_HISTORY_STEPS, type MemoTextPoliciesOptions, type MovedSubtreeRef, NUMBER_FUNCTION_SUGGESTIONS, type NextTextStyle, type OverlayPaintArgs, type OverlayPainter, PACKAGE_NAME, PAN_TO_BOX_MARGIN_PX, PASTE_OFFSET_PX, PHP_TRIM_CHARS, type Point, RESIZE_HANDLES, RESIZE_HANDLE_HIT_PX, RESIZE_MIN_SIZE_PX, type Rect, type ResizeAxes, type ResizeBoxGeometry, type ResizeBoxResult, type ResizeHandle, type ResourceStatus, type ResourceStatusMap, type RowsPathCandidate, type RowsPathCandidateResult, SNAP_THRESHOLD_SCREEN_PX, STYLE_FIELD_KEYS_BY_TYPE, type ShortcutCombo, type Size, type SnapAxis, type SnapAxisSource, type SnapBoxGeometry, type SnapPoints, type SnapResolution, type StyleSnapshot, TEXT_PRESETS, type TextEditLayout, type TextEditingSession, type TextPresetId, type TransactOptions, type UploadFile, type UploadHandler, UploadHandlerMissingError, type UploadImagePlacement, type Viewport, WHEEL_ZOOM_STEP, type WheelInput, type WheelIntent, type ZoomBounds, addRootLayerInDraft, addTableCellInDraft, addTableRowInDraft, addTemplateCellInDraft, alignToCanvasTarget, applyStyleFieldsInDraft, buildLayerOutline, canCopyLayerAt, canonicalizeTableSyncInDraft, captureStyleSnapshot, clampZoom, classifyEditorShortcut, classifyWheel, cloneLayerSubtree, convertTableToRowsInDraft, convertTableToTemplateInDraft, createDefaultLayer, createRubberBandRect, createTemplateTable, defaultNextTextStyle, deleteLayerInDraft, enumerateExpressionCandidates, enumerateRowsPathCandidates, expressionCallSlotAtEnd, expressionFragmentAtCursor, fitRect, fitViewport, growRowToCellInDraft, handleResizesHeight, handleResizesWidth, hitTest, insertRootLayerAdjacentInDraft, insertRootLayerInDraft, isCallFragment, isImageContentUndrawn, isLayerPath, isLockedPath, isRootLayerPath, isRootPasteableType, isTemplateSubtreePath, layerBoxByPath, memoizeTextPolicies, moveGuard, moveRootLayerInDraft, moveTableCellInDraft, moveTableCellToRowInDraft, moveTableRowInDraft, moveTableRowToTableInDraft, nextZoomByWheel, normalizeExpressionSchemaSource, panBy, panToBox, parseExpressionCall, parseExpressionPath, parseExpressionSchema, pastePosition, pathStartsWith, pathsEqual, phpTrim, pickNextTextStylePatch, prepareRootPaste, readSpecField, remapPathAfterSplice, replaceHitsInDraft, resizableAxesAt, resizeBox, resizeHandleAt, resizeHandlePoint, resizeHandlesAt, resizeSnapPoints, resolveLayer, resolveRowSchema, resolveRowsPathStartSchema, resolveSnap, resolveSnapPoints, rootLayerOf, scanExpressionFragments, scanTextMatches, sceneToScreen, schemaChildEntries, schemaNodeAtPath, screenToScene, selectionParentPath, setCellAutoHeightInDraft, snapAxesFromBoxes, snapThresholdScene, snapViewportToPhysicalPixels, syncContentIntoCellInDraft, syncRowWidthInDraft, uploadDisplayName, visibleRootBoxes, writeSpecField, zoomAtPoint };
|