@pixerate/editor 0.146.0 → 0.148.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/README.md +3 -1
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/agent/index.cjs +36 -34
- package/dist/agent/index.js +7 -5
- package/dist/animation/index.cjs +5 -3
- package/dist/animation/index.js +4 -2
- package/dist/animation-editor/index.cjs +62 -60
- package/dist/animation-editor/index.js +6 -4
- package/dist/canvas/index.cjs +36 -34
- package/dist/canvas/index.js +19 -17
- package/dist/chart/index.cjs +88 -86
- package/dist/chart/index.js +7 -5
- package/dist/{chunk-WBJ6BG4R.js → chunk-2AQL4JHM.js} +6 -6
- package/dist/{chunk-HLMF3E53.cjs → chunk-2WDZI6QD.cjs} +15 -15
- package/dist/{chunk-ZNHB5RG6.js → chunk-37RLSNQ3.js} +2 -2
- package/dist/{chunk-5WOY52O6.cjs → chunk-4YQKRHMI.cjs} +8 -8
- package/dist/chunk-6ONMQ6WF.js +113 -0
- package/dist/{chunk-L434J57V.cjs → chunk-6QTON3VW.cjs} +16 -16
- package/dist/chunk-AA34BA7G.js +1913 -0
- package/dist/{chunk-QX25HWFL.js → chunk-AY65VQSU.js} +1 -1
- package/dist/{chunk-ONZJD2OD.cjs → chunk-BROJYMWU.cjs} +57 -153
- package/dist/{chunk-YM75DN54.js → chunk-DSZCDNTM.js} +1 -1
- package/dist/{chunk-PUR6BZFA.cjs → chunk-DVLMW3GB.cjs} +53 -53
- package/dist/{chunk-ALUWD3FG.js → chunk-EIUTJPEL.js} +1 -1
- package/dist/{chunk-X65C4DWV.js → chunk-EQ4SF4X4.js} +1 -1
- package/dist/{chunk-77SG47WT.js → chunk-FLOGD3QB.js} +1 -1
- package/dist/{chunk-AJSW5GMP.js → chunk-HVQVHUTV.js} +19 -115
- package/dist/{chunk-UR37VCIR.cjs → chunk-I4AHLP7F.cjs} +16 -35
- package/dist/chunk-IPJ3TEYR.cjs +113 -0
- package/dist/chunk-KY3FYKP3.js +52 -0
- package/dist/chunk-LEUZ4FRC.cjs +52 -0
- package/dist/{chunk-H6FX45CP.cjs → chunk-LIXLD433.cjs} +37 -37
- package/dist/{chunk-6GAYGQDC.js → chunk-O5ML2I6O.js} +3 -3
- package/dist/{chunk-KI2VBONS.js → chunk-OET45HIR.js} +2 -2
- package/dist/{chunk-XNZWATSB.cjs → chunk-QCEQIRJQ.cjs} +85 -85
- package/dist/{chunk-HRI3ZMDM.cjs → chunk-RHXW4TA5.cjs} +3 -3
- package/dist/{chunk-UUTTJK77.cjs → chunk-SUF6WRXR.cjs} +2 -2
- package/dist/{chunk-RN767PO6.js → chunk-SUVZJ2CP.js} +15 -34
- package/dist/{chunk-FLUTRPLY.cjs → chunk-TLMRGLQQ.cjs} +16 -16
- package/dist/{chunk-DAS7M4RY.js → chunk-UILRJQFD.js} +2 -2
- package/dist/chunk-UKCJ43YL.cjs +1913 -0
- package/dist/{chunk-XQ33O5BC.cjs → chunk-X35BV5YT.cjs} +44 -44
- package/dist/{chunk-6HMEHNWW.cjs → chunk-XTU6QO2W.cjs} +26 -26
- package/dist/{chunk-VM6JYWXQ.js → chunk-ZQUANEK4.js} +2 -2
- package/dist/cms/index.cjs +5 -3
- package/dist/cms/index.js +18 -16
- package/dist/color/contrast.d.cts +14 -0
- package/dist/color/contrast.d.ts +14 -0
- package/dist/color/convert.d.cts +30 -0
- package/dist/color/convert.d.ts +30 -0
- package/dist/color/dual.d.cts +98 -0
- package/dist/color/dual.d.ts +98 -0
- package/dist/color/format.d.cts +12 -0
- package/dist/color/format.d.ts +12 -0
- package/dist/color/gamut.d.cts +12 -0
- package/dist/color/gamut.d.ts +12 -0
- package/dist/color/harmony.d.cts +22 -0
- package/dist/color/harmony.d.ts +22 -0
- package/dist/color/index.cjs +115 -0
- package/dist/color/index.d.cts +18 -0
- package/dist/color/index.d.ts +18 -0
- package/dist/color/index.js +115 -0
- package/dist/color/mix.d.cts +11 -0
- package/dist/color/mix.d.ts +11 -0
- package/dist/color/named.d.cts +5 -0
- package/dist/color/named.d.ts +5 -0
- package/dist/color/parse.d.cts +11 -0
- package/dist/color/parse.d.ts +11 -0
- package/dist/color/picker.d.cts +52 -0
- package/dist/color/picker.d.ts +52 -0
- package/dist/color/recent.d.cts +8 -0
- package/dist/color/recent.d.ts +8 -0
- package/dist/color/tools.d.cts +15 -0
- package/dist/color/tools.d.ts +15 -0
- package/dist/color/types.d.cts +41 -0
- package/dist/color/types.d.ts +41 -0
- package/dist/color/vision.d.cts +36 -0
- package/dist/color/vision.d.ts +36 -0
- package/dist/effects/authoring-session.d.cts +25 -0
- package/dist/effects/authoring-session.d.ts +25 -0
- package/dist/effects/authoring-tools.d.cts +31 -0
- package/dist/effects/authoring-tools.d.ts +31 -0
- package/dist/effects/authoring.d.cts +152 -0
- package/dist/effects/authoring.d.ts +152 -0
- package/dist/effects/conformance.d.cts +2 -0
- package/dist/effects/conformance.d.ts +2 -0
- package/dist/effects/fake.d.cts +2 -0
- package/dist/effects/fake.d.ts +2 -0
- package/dist/effects/index.cjs +1216 -9
- package/dist/effects/index.d.cts +3 -0
- package/dist/effects/index.d.ts +3 -0
- package/dist/effects/index.js +1210 -3
- package/dist/effects/types.d.cts +9 -2
- package/dist/effects/types.d.ts +9 -2
- package/dist/effects/ui.d.cts +8 -0
- package/dist/effects/ui.d.ts +8 -0
- package/dist/export/index.cjs +6 -4
- package/dist/export/index.js +5 -3
- package/dist/extensions/index.cjs +10 -8
- package/dist/extensions/index.js +9 -7
- package/dist/gradient/controller.d.cts +109 -0
- package/dist/gradient/controller.d.ts +109 -0
- package/dist/gradient/editor.d.cts +38 -0
- package/dist/gradient/editor.d.ts +38 -0
- package/dist/gradient/index.cjs +1549 -0
- package/dist/gradient/index.d.cts +5 -0
- package/dist/gradient/index.d.ts +5 -0
- package/dist/gradient/index.js +1549 -0
- package/dist/gradient/model.d.cts +94 -0
- package/dist/gradient/model.d.ts +94 -0
- package/dist/gradient/tools.d.cts +11 -0
- package/dist/gradient/tools.d.ts +11 -0
- package/dist/gradient/types.d.cts +44 -0
- package/dist/gradient/types.d.ts +44 -0
- package/dist/image-editor/index.cjs +649 -647
- package/dist/image-editor/index.js +6 -4
- package/dist/index.cjs +19 -17
- package/dist/index.js +16 -14
- package/dist/paint-editor/color.d.cts +3 -13
- package/dist/paint-editor/color.d.ts +3 -13
- package/dist/paint-editor/index.cjs +23 -68
- package/dist/paint-editor/index.js +15 -60
- package/dist/vector/index.cjs +950 -948
- package/dist/vector/index.js +5 -3
- package/dist/video-editor/index.cjs +5 -3
- package/dist/video-editor/index.js +4 -2
- package/package.json +21 -1
- package/skills/README.md +2 -0
- package/skills/pixerate-color/SKILL.md +69 -0
- package/skills/pixerate-effect-authoring/SKILL.md +80 -0
- package/dist/chunk-45VRG4RB.js +0 -65
- package/dist/chunk-5FXOR7F2.cjs +0 -65
package/dist/effects/types.d.cts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { JsonSchema } from '../tools/schema.cjs';
|
|
10
10
|
import type { FlairSvgAnimation } from '../animation-editor/flair.cjs';
|
|
11
|
+
import type { EffectAuthoringSession, EffectAuthoringSource } from './authoring.cjs';
|
|
11
12
|
/** How an effect is drawn: a pixel shader, an animated vector picture, or motion applied to someone else's vector art. */
|
|
12
13
|
export type EffectKind = 'shader' | 'vector' | 'motion';
|
|
13
14
|
/**
|
|
@@ -166,8 +167,10 @@ export interface EffectProviderCapabilities {
|
|
|
166
167
|
supportsVector: boolean;
|
|
167
168
|
/** Largest width or height a renderer accepts (px). */
|
|
168
169
|
maxSize?: number;
|
|
170
|
+
/** Implements `openAuthoring`: effects can be edited, not only used. */
|
|
171
|
+
supportsAuthoring?: boolean;
|
|
169
172
|
}
|
|
170
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
173
|
+
export type MaybePromise<T> = T | Promise<T>;
|
|
171
174
|
/**
|
|
172
175
|
* A source of effects. Implementations live outside this library (for example Flair's
|
|
173
176
|
* `flairEffects()`); `createFakeEffectProvider` is a small reference implementation.
|
|
@@ -194,5 +197,9 @@ export interface EffectProvider {
|
|
|
194
197
|
* effect cannot use with `EffectUnsupportedError`.
|
|
195
198
|
*/
|
|
196
199
|
applyVectorEffect?(id: string, target: EffectVectorTarget, values?: EffectValues): MaybePromise<EffectVectorMotion>;
|
|
200
|
+
/**
|
|
201
|
+
* Opens an effect for editing. Present when `capabilities.supportsAuthoring`. Unknown ids throw
|
|
202
|
+
* `UnknownEffectError`; an effect the provider cannot edit throws `EffectUnsupportedError`.
|
|
203
|
+
*/
|
|
204
|
+
openAuthoring?(from: EffectAuthoringSource): MaybePromise<EffectAuthoringSession>;
|
|
197
205
|
}
|
|
198
|
-
export {};
|
package/dist/effects/types.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { JsonSchema } from '../tools/schema.js';
|
|
10
10
|
import type { FlairSvgAnimation } from '../animation-editor/flair.js';
|
|
11
|
+
import type { EffectAuthoringSession, EffectAuthoringSource } from './authoring.js';
|
|
11
12
|
/** How an effect is drawn: a pixel shader, an animated vector picture, or motion applied to someone else's vector art. */
|
|
12
13
|
export type EffectKind = 'shader' | 'vector' | 'motion';
|
|
13
14
|
/**
|
|
@@ -166,8 +167,10 @@ export interface EffectProviderCapabilities {
|
|
|
166
167
|
supportsVector: boolean;
|
|
167
168
|
/** Largest width or height a renderer accepts (px). */
|
|
168
169
|
maxSize?: number;
|
|
170
|
+
/** Implements `openAuthoring`: effects can be edited, not only used. */
|
|
171
|
+
supportsAuthoring?: boolean;
|
|
169
172
|
}
|
|
170
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
173
|
+
export type MaybePromise<T> = T | Promise<T>;
|
|
171
174
|
/**
|
|
172
175
|
* A source of effects. Implementations live outside this library (for example Flair's
|
|
173
176
|
* `flairEffects()`); `createFakeEffectProvider` is a small reference implementation.
|
|
@@ -194,5 +197,9 @@ export interface EffectProvider {
|
|
|
194
197
|
* effect cannot use with `EffectUnsupportedError`.
|
|
195
198
|
*/
|
|
196
199
|
applyVectorEffect?(id: string, target: EffectVectorTarget, values?: EffectValues): MaybePromise<EffectVectorMotion>;
|
|
200
|
+
/**
|
|
201
|
+
* Opens an effect for editing. Present when `capabilities.supportsAuthoring`. Unknown ids throw
|
|
202
|
+
* `UnknownEffectError`; an effect the provider cannot edit throws `EffectUnsupportedError`.
|
|
203
|
+
*/
|
|
204
|
+
openAuthoring?(from: EffectAuthoringSource): MaybePromise<EffectAuthoringSession>;
|
|
197
205
|
}
|
|
198
|
-
export {};
|
package/dist/effects/ui.d.cts
CHANGED
|
@@ -23,6 +23,14 @@ export declare const effectFieldValue: (field: ParameterField, value: unknown) =
|
|
|
23
23
|
* differ, for a transition's two sides).
|
|
24
24
|
*/
|
|
25
25
|
export declare function effectSamplePicture(width: number, height: number, variant?: number): EffectPixels;
|
|
26
|
+
/**
|
|
27
|
+
* Sample pictures for an effect's image inputs (`effectSamplePicture`; a transition's `to` gets
|
|
28
|
+
* the second variant), so previews of filters and transitions have something to change.
|
|
29
|
+
*/
|
|
30
|
+
export declare function effectSampleInputs(description: Pick<EffectDescription, 'inputs'>, size: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}): Record<string, EffectPixels>;
|
|
26
34
|
/**
|
|
27
35
|
* A small preview of an effect from the provider's own renderer: filters run on a sample picture,
|
|
28
36
|
* transitions go half way between two, generators and overlays draw at `time` (default half
|
package/dist/effects/ui.d.ts
CHANGED
|
@@ -23,6 +23,14 @@ export declare const effectFieldValue: (field: ParameterField, value: unknown) =
|
|
|
23
23
|
* differ, for a transition's two sides).
|
|
24
24
|
*/
|
|
25
25
|
export declare function effectSamplePicture(width: number, height: number, variant?: number): EffectPixels;
|
|
26
|
+
/**
|
|
27
|
+
* Sample pictures for an effect's image inputs (`effectSamplePicture`; a transition's `to` gets
|
|
28
|
+
* the second variant), so previews of filters and transitions have something to change.
|
|
29
|
+
*/
|
|
30
|
+
export declare function effectSampleInputs(description: Pick<EffectDescription, 'inputs'>, size: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}): Record<string, EffectPixels>;
|
|
26
34
|
/**
|
|
27
35
|
* A small preview of an effect from the provider's own renderer: filters run on a sample picture,
|
|
28
36
|
* transitions go half way between two, generators and overlays draw at `time` (default half
|
package/dist/export/index.cjs
CHANGED
|
@@ -12,16 +12,18 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk4YQKRHMIcjs = require('../chunk-4YQKRHMI.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkJLWLX52Lcjs = require('../chunk-JLWLX52L.cjs');
|
|
20
20
|
require('../chunk-YN6JKAUE.cjs');
|
|
21
|
-
require('../chunk-
|
|
22
|
-
require('../chunk-
|
|
21
|
+
require('../chunk-2WDZI6QD.cjs');
|
|
22
|
+
require('../chunk-I4AHLP7F.cjs');
|
|
23
23
|
require('../chunk-2BSBFBOA.cjs');
|
|
24
24
|
require('../chunk-ALNIFK5G.cjs');
|
|
25
|
+
require('../chunk-UKCJ43YL.cjs');
|
|
26
|
+
require('../chunk-IPJ3TEYR.cjs');
|
|
25
27
|
|
|
26
28
|
|
|
27
29
|
|
|
@@ -38,4 +40,4 @@ require('../chunk-ALNIFK5G.cjs');
|
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
|
|
41
|
-
exports.DOCX_ANONYMOUS_AUTHOR =
|
|
43
|
+
exports.DOCX_ANONYMOUS_AUTHOR = _chunk4YQKRHMIcjs.DOCX_ANONYMOUS_AUTHOR; exports.DOCX_EXPORT_MIME_TYPE = _chunk4YQKRHMIcjs.DOCX_EXPORT_MIME_TYPE; exports.DocxExportController = _chunk4YQKRHMIcjs.DocxExportController; exports.XmlWriter = _chunk4YQKRHMIcjs.XmlWriter; exports.createDocxExportController = _chunk4YQKRHMIcjs.createDocxExportController; exports.createDocxParts = _chunk4YQKRHMIcjs.createDocxParts; exports.deflateRaw = _chunkJLWLX52Lcjs.deflateRaw; exports.docxFileName = _chunk4YQKRHMIcjs.docxFileName; exports.downloadBlob = _chunk4YQKRHMIcjs.downloadBlob; exports.escapeXmlAttr = _chunk4YQKRHMIcjs.escapeXmlAttr; exports.escapeXmlText = _chunk4YQKRHMIcjs.escapeXmlText; exports.exportDocx = _chunk4YQKRHMIcjs.exportDocx; exports.exportDocxBlob = _chunk4YQKRHMIcjs.exportDocxBlob; exports.stripInvalidXmlChars = _chunk4YQKRHMIcjs.stripInvalidXmlChars; exports.writeZip = _chunkJLWLX52Lcjs.writeZip;
|
package/dist/export/index.js
CHANGED
|
@@ -12,16 +12,18 @@ import {
|
|
|
12
12
|
exportDocx,
|
|
13
13
|
exportDocxBlob,
|
|
14
14
|
stripInvalidXmlChars
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-37RLSNQ3.js";
|
|
16
16
|
import {
|
|
17
17
|
deflateRaw,
|
|
18
18
|
writeZip
|
|
19
19
|
} from "../chunk-AZCODQO5.js";
|
|
20
20
|
import "../chunk-CXXKJBQZ.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-EQ4SF4X4.js";
|
|
22
|
+
import "../chunk-SUVZJ2CP.js";
|
|
23
23
|
import "../chunk-HF5QZS7Z.js";
|
|
24
24
|
import "../chunk-CIQIM2IP.js";
|
|
25
|
+
import "../chunk-AA34BA7G.js";
|
|
26
|
+
import "../chunk-6ONMQ6WF.js";
|
|
25
27
|
export {
|
|
26
28
|
DOCX_ANONYMOUS_AUTHOR,
|
|
27
29
|
DOCX_EXPORT_MIME_TYPE,
|
|
@@ -95,8 +95,7 @@
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
99
|
-
require('../chunk-HMGWFXEC.cjs');
|
|
98
|
+
var _chunkDVLMW3GBcjs = require('../chunk-DVLMW3GB.cjs');
|
|
100
99
|
|
|
101
100
|
|
|
102
101
|
|
|
@@ -105,7 +104,8 @@ require('../chunk-HMGWFXEC.cjs');
|
|
|
105
104
|
|
|
106
105
|
|
|
107
106
|
var _chunkYN6JKAUEcjs = require('../chunk-YN6JKAUE.cjs');
|
|
108
|
-
require('../chunk-
|
|
107
|
+
require('../chunk-2WDZI6QD.cjs');
|
|
108
|
+
require('../chunk-HMGWFXEC.cjs');
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
|
|
@@ -171,10 +171,10 @@ require('../chunk-HLMF3E53.cjs');
|
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
|
|
174
|
-
var
|
|
175
|
-
require('../chunk-
|
|
176
|
-
require('../chunk-
|
|
177
|
-
require('../chunk-
|
|
174
|
+
var _chunk6QTON3VWcjs = require('../chunk-6QTON3VW.cjs');
|
|
175
|
+
require('../chunk-X35BV5YT.cjs');
|
|
176
|
+
require('../chunk-XTU6QO2W.cjs');
|
|
177
|
+
require('../chunk-I4AHLP7F.cjs');
|
|
178
178
|
require('../chunk-3AJMR7EG.cjs');
|
|
179
179
|
require('../chunk-G43MNQ4C.cjs');
|
|
180
180
|
require('../chunk-JG5VGCKP.cjs');
|
|
@@ -214,6 +214,8 @@ require('../chunk-N3KJFGXT.cjs');
|
|
|
214
214
|
require('../chunk-ALNIFK5G.cjs');
|
|
215
215
|
require('../chunk-UWEQ55MY.cjs');
|
|
216
216
|
require('../chunk-FJ2MSI43.cjs');
|
|
217
|
+
require('../chunk-UKCJ43YL.cjs');
|
|
218
|
+
require('../chunk-IPJ3TEYR.cjs');
|
|
217
219
|
|
|
218
220
|
|
|
219
221
|
|
|
@@ -409,4 +411,4 @@ require('../chunk-FJ2MSI43.cjs');
|
|
|
409
411
|
|
|
410
412
|
|
|
411
413
|
|
|
412
|
-
exports.ALLOW_NESTED_TABLES_META = _chunkL434J57Vcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkL434J57Vcjs.AgentCaret; exports.Autocorrect = _chunkPUR6BZFAcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkPUR6BZFAcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkPUR6BZFAcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkPUR6BZFAcjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkPUR6BZFAcjs.CharacterStyle; exports.Chart = _chunkL434J57Vcjs.Chart; exports.ChartNodeView = _chunkL434J57Vcjs.ChartNodeView; exports.ColorHighlighter = _chunkPUR6BZFAcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkPUR6BZFAcjs.Comments; exports.CrossReference = _chunkPUR6BZFAcjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunkL434J57Vcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkL434J57Vcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkPUR6BZFAcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkL434J57Vcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkL434J57Vcjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkPUR6BZFAcjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkPUR6BZFAcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkL434J57Vcjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkPUR6BZFAcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkL434J57Vcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkPUR6BZFAcjs.FileImport; exports.FindReplace = _chunkPUR6BZFAcjs.FindReplace; exports.FindReplaceStore = _chunkPUR6BZFAcjs.FindReplaceStore; exports.FontSize = _chunkPUR6BZFAcjs.FontSize; exports.Footnote = _chunkPUR6BZFAcjs.Footnote; exports.FootnoteReference = _chunkPUR6BZFAcjs.FootnoteReference; exports.Footnotes = _chunkPUR6BZFAcjs.Footnotes; exports.GradientText = _chunkPUR6BZFAcjs.GradientText; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.Image = _chunkPUR6BZFAcjs.Image; exports.LoadingNode = _chunkPUR6BZFAcjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkL434J57Vcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkL434J57Vcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkL434J57Vcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkL434J57Vcjs.MAX_TABLE_ROWS; exports.MOVE_FROM_CLASS = _chunk34RQAGWIcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunk34RQAGWIcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunk34RQAGWIcjs.MOVE_TO_CLASS; exports.Markdown = _chunkPUR6BZFAcjs.Markdown; exports.Mention = _chunkPUR6BZFAcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.Outline = _chunkPUR6BZFAcjs.Outline; exports.ParagraphStyles = _chunkPUR6BZFAcjs.ParagraphStyles; exports.RichClipboard = _chunkPUR6BZFAcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkPUR6BZFAcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkL434J57Vcjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkPUR6BZFAcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkPUR6BZFAcjs.SlashCommands; exports.SmilieReplacer = _chunkPUR6BZFAcjs.SmilieReplacer; exports.Sparkline = _chunkL434J57Vcjs.Sparkline; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkL434J57Vcjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkL434J57Vcjs.Table; exports.TableCell = _chunkL434J57Vcjs.TableCell; exports.TableHeader = _chunkL434J57Vcjs.TableHeader; exports.TableOfContents = _chunkPUR6BZFAcjs.TableOfContents; exports.TableRow = _chunkL434J57Vcjs.TableRow; exports.TemplateSuggestions = _chunkPUR6BZFAcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunkL434J57Vcjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkPUR6BZFAcjs.applyDocumentComparison; exports.applyReplacements = _chunkL434J57Vcjs.applyReplacements; exports.autocorrectPluginKey = _chunkPUR6BZFAcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkPUR6BZFAcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkPUR6BZFAcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkPUR6BZFAcjs.captureSelectionFormat; exports.chartPluginKey = _chunkL434J57Vcjs.chartPluginKey; exports.clearAgentCaret = _chunkL434J57Vcjs.clearAgentCaret; exports.commentsPluginKey = _chunkPUR6BZFAcjs.commentsPluginKey; exports.compareInEditor = _chunkPUR6BZFAcjs.compareInEditor; exports.compileFindPattern = _chunkL434J57Vcjs.compileFindPattern; exports.computeOutline = _chunkPUR6BZFAcjs.computeOutline; exports.createAgentCaretPlugin = _chunkL434J57Vcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkL434J57Vcjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createFindReplaceCommands = _chunkPUR6BZFAcjs.createFindReplaceCommands; exports.createMentionExtension = _chunkPUR6BZFAcjs.createMentionExtension; exports.createOutlineStore = _chunkPUR6BZFAcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkPUR6BZFAcjs.createParagraphStylesStore; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunkPUR6BZFAcjs.createRichTextPreset; exports.createSearchBudget = _chunkL434J57Vcjs.createSearchBudget; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkPUR6BZFAcjs.createTableCommands; exports.createTableExtensions = _chunkL434J57Vcjs.createTableExtensions; exports.createTableNestingPlugin = _chunkL434J57Vcjs.createTableNestingPlugin; exports.createTableStore = _chunkL434J57Vcjs.createTableStore; exports.crossReferencePluginKey = _chunkPUR6BZFAcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkPUR6BZFAcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkPUR6BZFAcjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunkL434J57Vcjs.ensureAgentCaret; exports.expandReplacement = _chunkL434J57Vcjs.expandReplacement; exports.fileImportPluginKey = _chunkPUR6BZFAcjs.fileImportPluginKey; exports.findAllMatches = _chunkL434J57Vcjs.findAllMatches; exports.findAutocorrection = _chunkPUR6BZFAcjs.findAutocorrection; exports.findCommentRanges = _chunkPUR6BZFAcjs.findCommentRanges; exports.findHexColors = _chunkPUR6BZFAcjs.findHexColors; exports.findReplacePluginKey = _chunkPUR6BZFAcjs.findReplacePluginKey; exports.foldCodePoint = _chunkL434J57Vcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkPUR6BZFAcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkPUR6BZFAcjs.footnotesPluginKey; exports.formatFindStatus = _chunkPUR6BZFAcjs.formatFindStatus; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.fractionRules = _chunkPUR6BZFAcjs.fractionRules; exports.getActiveHeading = _chunkPUR6BZFAcjs.getActiveHeading; exports.getAgentCarets = _chunkL434J57Vcjs.getAgentCarets; exports.getBookmarks = _chunkPUR6BZFAcjs.getBookmarks; exports.getCommentAnchors = _chunkPUR6BZFAcjs.getCommentAnchors; exports.getCommentAuthor = _chunkPUR6BZFAcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkPUR6BZFAcjs.getCommentIdsAt; exports.getCommentStore = _chunkPUR6BZFAcjs.getCommentStore; exports.getCrossReferenceTargets = _chunkPUR6BZFAcjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunkL434J57Vcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkPUR6BZFAcjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkPUR6BZFAcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkPUR6BZFAcjs.getFindReplaceStore; exports.getFootnotes = _chunkPUR6BZFAcjs.getFootnotes; exports.getMentionNodes = _chunkPUR6BZFAcjs.getMentionNodes; exports.getOutline = _chunkPUR6BZFAcjs.getOutline; exports.getParagraphStyleAt = _chunkPUR6BZFAcjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkPUR6BZFAcjs.getStyleRegistry; exports.getTableActionState = _chunkL434J57Vcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkPUR6BZFAcjs.getTableOfContentsEntries; exports.getTableState = _chunkL434J57Vcjs.getTableState; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.handleImageInsertion = _chunkPUR6BZFAcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkL434J57Vcjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkPUR6BZFAcjs.imagePastePluginKey; exports.insertImageNode = _chunkPUR6BZFAcjs.insertImageNode; exports.insertSliceAfterTable = _chunkL434J57Vcjs.insertSliceAfterTable; exports.isChartEnabled = _chunkL434J57Vcjs.isChartEnabled; exports.isGfmTable = _chunkL434J57Vcjs.isGfmTable; exports.isInTableCell = _chunkL434J57Vcjs.isInTableCell; exports.isInsidePromptToken = _chunkPUR6BZFAcjs.isInsidePromptToken; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkPUR6BZFAcjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunkL434J57Vcjs.isSelectionInTable; exports.isTableEnabled = _chunkL434J57Vcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.markAgentChanges = _chunkL434J57Vcjs.markAgentChanges; exports.navigateToHeading = _chunkPUR6BZFAcjs.navigateToHeading; exports.normalizeSparklineValues = _chunkL434J57Vcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkL434J57Vcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkL434J57Vcjs.normalizeTableCellColor; exports.outermostTableDepth = _chunkL434J57Vcjs.outermostTableDepth; exports.outlinePluginKey = _chunkPUR6BZFAcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkPUR6BZFAcjs.paragraphStylesPluginKey; exports.parseReplacement = _chunkL434J57Vcjs.parseReplacement; exports.removeImageNode = _chunkPUR6BZFAcjs.removeImageNode; exports.replaceWithTextTransaction = _chunkL434J57Vcjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkPUR6BZFAcjs.richClipboardPluginKey; exports.runTableAction = _chunkL434J57Vcjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.searchDocument = _chunkL434J57Vcjs.searchDocument; exports.setAgentCaret = _chunkL434J57Vcjs.setAgentCaret; exports.setMentionRoleAt = _chunkPUR6BZFAcjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunkL434J57Vcjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunkL434J57Vcjs.sliceContainsTable; exports.smartQuoteRules = _chunkPUR6BZFAcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkPUR6BZFAcjs.smilieAutocorrectRules; exports.sparklineLabel = _chunkL434J57Vcjs.sparklineLabel; exports.staticChartSvg = _chunkL434J57Vcjs.staticChartSvg; exports.symbolRules = _chunkPUR6BZFAcjs.symbolRules; exports.syncFootnotes = _chunkPUR6BZFAcjs.syncFootnotes; exports.tableNestingPluginKey = _chunkL434J57Vcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkPUR6BZFAcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkPUR6BZFAcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkPUR6BZFAcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkL434J57Vcjs.typeAgentText; exports.unnestTables = _chunkL434J57Vcjs.unnestTables; exports.updateImageSrc = _chunkPUR6BZFAcjs.updateImageSrc; exports.validateFindPattern = _chunkPUR6BZFAcjs.validateFindPattern; exports.writeRichClipboard = _chunkPUR6BZFAcjs.writeRichClipboard;
|
|
414
|
+
exports.ALLOW_NESTED_TABLES_META = _chunk6QTON3VWcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunk6QTON3VWcjs.AgentCaret; exports.Autocorrect = _chunkDVLMW3GBcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkDVLMW3GBcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkDVLMW3GBcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkDVLMW3GBcjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkDVLMW3GBcjs.CharacterStyle; exports.Chart = _chunk6QTON3VWcjs.Chart; exports.ChartNodeView = _chunk6QTON3VWcjs.ChartNodeView; exports.ColorHighlighter = _chunkDVLMW3GBcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkDVLMW3GBcjs.Comments; exports.CrossReference = _chunkDVLMW3GBcjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunk6QTON3VWcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunk6QTON3VWcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkDVLMW3GBcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunk6QTON3VWcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunk6QTON3VWcjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkDVLMW3GBcjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkDVLMW3GBcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunk6QTON3VWcjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkDVLMW3GBcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunk6QTON3VWcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkDVLMW3GBcjs.FileImport; exports.FindReplace = _chunkDVLMW3GBcjs.FindReplace; exports.FindReplaceStore = _chunkDVLMW3GBcjs.FindReplaceStore; exports.FontSize = _chunkDVLMW3GBcjs.FontSize; exports.Footnote = _chunkDVLMW3GBcjs.Footnote; exports.FootnoteReference = _chunkDVLMW3GBcjs.FootnoteReference; exports.Footnotes = _chunkDVLMW3GBcjs.Footnotes; exports.GradientText = _chunkDVLMW3GBcjs.GradientText; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.Image = _chunkDVLMW3GBcjs.Image; exports.LoadingNode = _chunkDVLMW3GBcjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunk6QTON3VWcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunk6QTON3VWcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunk6QTON3VWcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunk6QTON3VWcjs.MAX_TABLE_ROWS; exports.MOVE_FROM_CLASS = _chunk34RQAGWIcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunk34RQAGWIcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunk34RQAGWIcjs.MOVE_TO_CLASS; exports.Markdown = _chunkDVLMW3GBcjs.Markdown; exports.Mention = _chunkDVLMW3GBcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.Outline = _chunkDVLMW3GBcjs.Outline; exports.ParagraphStyles = _chunkDVLMW3GBcjs.ParagraphStyles; exports.RichClipboard = _chunkDVLMW3GBcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkDVLMW3GBcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunk6QTON3VWcjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkDVLMW3GBcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkDVLMW3GBcjs.SlashCommands; exports.SmilieReplacer = _chunkDVLMW3GBcjs.SmilieReplacer; exports.Sparkline = _chunk6QTON3VWcjs.Sparkline; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunk6QTON3VWcjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunk6QTON3VWcjs.Table; exports.TableCell = _chunk6QTON3VWcjs.TableCell; exports.TableHeader = _chunk6QTON3VWcjs.TableHeader; exports.TableOfContents = _chunkDVLMW3GBcjs.TableOfContents; exports.TableRow = _chunk6QTON3VWcjs.TableRow; exports.TemplateSuggestions = _chunkDVLMW3GBcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunk6QTON3VWcjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkDVLMW3GBcjs.applyDocumentComparison; exports.applyReplacements = _chunk6QTON3VWcjs.applyReplacements; exports.autocorrectPluginKey = _chunkDVLMW3GBcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkDVLMW3GBcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkDVLMW3GBcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkDVLMW3GBcjs.captureSelectionFormat; exports.chartPluginKey = _chunk6QTON3VWcjs.chartPluginKey; exports.clearAgentCaret = _chunk6QTON3VWcjs.clearAgentCaret; exports.commentsPluginKey = _chunkDVLMW3GBcjs.commentsPluginKey; exports.compareInEditor = _chunkDVLMW3GBcjs.compareInEditor; exports.compileFindPattern = _chunk6QTON3VWcjs.compileFindPattern; exports.computeOutline = _chunkDVLMW3GBcjs.computeOutline; exports.createAgentCaretPlugin = _chunk6QTON3VWcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunk6QTON3VWcjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createFindReplaceCommands = _chunkDVLMW3GBcjs.createFindReplaceCommands; exports.createMentionExtension = _chunkDVLMW3GBcjs.createMentionExtension; exports.createOutlineStore = _chunkDVLMW3GBcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkDVLMW3GBcjs.createParagraphStylesStore; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunkDVLMW3GBcjs.createRichTextPreset; exports.createSearchBudget = _chunk6QTON3VWcjs.createSearchBudget; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkDVLMW3GBcjs.createTableCommands; exports.createTableExtensions = _chunk6QTON3VWcjs.createTableExtensions; exports.createTableNestingPlugin = _chunk6QTON3VWcjs.createTableNestingPlugin; exports.createTableStore = _chunk6QTON3VWcjs.createTableStore; exports.crossReferencePluginKey = _chunkDVLMW3GBcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkDVLMW3GBcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkDVLMW3GBcjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunk6QTON3VWcjs.ensureAgentCaret; exports.expandReplacement = _chunk6QTON3VWcjs.expandReplacement; exports.fileImportPluginKey = _chunkDVLMW3GBcjs.fileImportPluginKey; exports.findAllMatches = _chunk6QTON3VWcjs.findAllMatches; exports.findAutocorrection = _chunkDVLMW3GBcjs.findAutocorrection; exports.findCommentRanges = _chunkDVLMW3GBcjs.findCommentRanges; exports.findHexColors = _chunkDVLMW3GBcjs.findHexColors; exports.findReplacePluginKey = _chunkDVLMW3GBcjs.findReplacePluginKey; exports.foldCodePoint = _chunk6QTON3VWcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkDVLMW3GBcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkDVLMW3GBcjs.footnotesPluginKey; exports.formatFindStatus = _chunkDVLMW3GBcjs.formatFindStatus; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.fractionRules = _chunkDVLMW3GBcjs.fractionRules; exports.getActiveHeading = _chunkDVLMW3GBcjs.getActiveHeading; exports.getAgentCarets = _chunk6QTON3VWcjs.getAgentCarets; exports.getBookmarks = _chunkDVLMW3GBcjs.getBookmarks; exports.getCommentAnchors = _chunkDVLMW3GBcjs.getCommentAnchors; exports.getCommentAuthor = _chunkDVLMW3GBcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkDVLMW3GBcjs.getCommentIdsAt; exports.getCommentStore = _chunkDVLMW3GBcjs.getCommentStore; exports.getCrossReferenceTargets = _chunkDVLMW3GBcjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunk6QTON3VWcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkDVLMW3GBcjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkDVLMW3GBcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkDVLMW3GBcjs.getFindReplaceStore; exports.getFootnotes = _chunkDVLMW3GBcjs.getFootnotes; exports.getMentionNodes = _chunkDVLMW3GBcjs.getMentionNodes; exports.getOutline = _chunkDVLMW3GBcjs.getOutline; exports.getParagraphStyleAt = _chunkDVLMW3GBcjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkDVLMW3GBcjs.getStyleRegistry; exports.getTableActionState = _chunk6QTON3VWcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkDVLMW3GBcjs.getTableOfContentsEntries; exports.getTableState = _chunk6QTON3VWcjs.getTableState; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.handleImageInsertion = _chunkDVLMW3GBcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunk6QTON3VWcjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkDVLMW3GBcjs.imagePastePluginKey; exports.insertImageNode = _chunkDVLMW3GBcjs.insertImageNode; exports.insertSliceAfterTable = _chunk6QTON3VWcjs.insertSliceAfterTable; exports.isChartEnabled = _chunk6QTON3VWcjs.isChartEnabled; exports.isGfmTable = _chunk6QTON3VWcjs.isGfmTable; exports.isInTableCell = _chunk6QTON3VWcjs.isInTableCell; exports.isInsidePromptToken = _chunkDVLMW3GBcjs.isInsidePromptToken; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkDVLMW3GBcjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunk6QTON3VWcjs.isSelectionInTable; exports.isTableEnabled = _chunk6QTON3VWcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.markAgentChanges = _chunk6QTON3VWcjs.markAgentChanges; exports.navigateToHeading = _chunkDVLMW3GBcjs.navigateToHeading; exports.normalizeSparklineValues = _chunk6QTON3VWcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunk6QTON3VWcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunk6QTON3VWcjs.normalizeTableCellColor; exports.outermostTableDepth = _chunk6QTON3VWcjs.outermostTableDepth; exports.outlinePluginKey = _chunkDVLMW3GBcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkDVLMW3GBcjs.paragraphStylesPluginKey; exports.parseReplacement = _chunk6QTON3VWcjs.parseReplacement; exports.removeImageNode = _chunkDVLMW3GBcjs.removeImageNode; exports.replaceWithTextTransaction = _chunk6QTON3VWcjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkDVLMW3GBcjs.richClipboardPluginKey; exports.runTableAction = _chunk6QTON3VWcjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.searchDocument = _chunk6QTON3VWcjs.searchDocument; exports.setAgentCaret = _chunk6QTON3VWcjs.setAgentCaret; exports.setMentionRoleAt = _chunkDVLMW3GBcjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunk6QTON3VWcjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunk6QTON3VWcjs.sliceContainsTable; exports.smartQuoteRules = _chunkDVLMW3GBcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkDVLMW3GBcjs.smilieAutocorrectRules; exports.sparklineLabel = _chunk6QTON3VWcjs.sparklineLabel; exports.staticChartSvg = _chunk6QTON3VWcjs.staticChartSvg; exports.symbolRules = _chunkDVLMW3GBcjs.symbolRules; exports.syncFootnotes = _chunkDVLMW3GBcjs.syncFootnotes; exports.tableNestingPluginKey = _chunk6QTON3VWcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkDVLMW3GBcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkDVLMW3GBcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkDVLMW3GBcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunk6QTON3VWcjs.typeAgentText; exports.unnestTables = _chunk6QTON3VWcjs.unnestTables; exports.updateImageSrc = _chunkDVLMW3GBcjs.updateImageSrc; exports.validateFindPattern = _chunkDVLMW3GBcjs.validateFindPattern; exports.writeRichClipboard = _chunkDVLMW3GBcjs.writeRichClipboard;
|
package/dist/extensions/index.js
CHANGED
|
@@ -95,8 +95,7 @@ import {
|
|
|
95
95
|
updateImageSrc,
|
|
96
96
|
validateFindPattern,
|
|
97
97
|
writeRichClipboard
|
|
98
|
-
} from "../chunk-
|
|
99
|
-
import "../chunk-V5OOP74P.js";
|
|
98
|
+
} from "../chunk-2AQL4JHM.js";
|
|
100
99
|
import {
|
|
101
100
|
DEFAULT_STYLES,
|
|
102
101
|
NORMAL_STYLE_ID,
|
|
@@ -105,7 +104,8 @@ import {
|
|
|
105
104
|
isValidStyleId,
|
|
106
105
|
safeCSSValue
|
|
107
106
|
} from "../chunk-CXXKJBQZ.js";
|
|
108
|
-
import "../chunk-
|
|
107
|
+
import "../chunk-EQ4SF4X4.js";
|
|
108
|
+
import "../chunk-V5OOP74P.js";
|
|
109
109
|
import {
|
|
110
110
|
ALLOW_NESTED_TABLES_META,
|
|
111
111
|
AgentCaret,
|
|
@@ -171,10 +171,10 @@ import {
|
|
|
171
171
|
tableNestingPluginKey,
|
|
172
172
|
typeAgentText,
|
|
173
173
|
unnestTables
|
|
174
|
-
} from "../chunk-
|
|
175
|
-
import "../chunk-
|
|
176
|
-
import "../chunk-
|
|
177
|
-
import "../chunk-
|
|
174
|
+
} from "../chunk-O5ML2I6O.js";
|
|
175
|
+
import "../chunk-OET45HIR.js";
|
|
176
|
+
import "../chunk-DSZCDNTM.js";
|
|
177
|
+
import "../chunk-SUVZJ2CP.js";
|
|
178
178
|
import "../chunk-ZLZKGHSZ.js";
|
|
179
179
|
import "../chunk-2INPJDNY.js";
|
|
180
180
|
import "../chunk-RTRQ7XFI.js";
|
|
@@ -214,6 +214,8 @@ import "../chunk-WJSD3MAZ.js";
|
|
|
214
214
|
import "../chunk-CIQIM2IP.js";
|
|
215
215
|
import "../chunk-VDGBHYC7.js";
|
|
216
216
|
import "../chunk-RNSANXPT.js";
|
|
217
|
+
import "../chunk-AA34BA7G.js";
|
|
218
|
+
import "../chunk-6ONMQ6WF.js";
|
|
217
219
|
export {
|
|
218
220
|
ALLOW_NESTED_TABLES_META,
|
|
219
221
|
AgentCaret,
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { HistoryManager } from '../history/HistoryManager.cjs';
|
|
2
|
+
import type { Gradient, GradientInterpolation, GradientShape, GradientStop, GradientType } from './types.cjs';
|
|
3
|
+
export interface GradientControllerOptions {
|
|
4
|
+
/** Initial gradient value (parsed or object). */
|
|
5
|
+
value?: unknown;
|
|
6
|
+
/** History manager to record undo/redo into (creates own if omitted). */
|
|
7
|
+
history?: HistoryManager;
|
|
8
|
+
/** Whether the gradient is read-only or a function returning reason/boolean. */
|
|
9
|
+
readOnly?: boolean | string | (() => boolean | string);
|
|
10
|
+
/** Callback invoked whenever the gradient or selection changes. */
|
|
11
|
+
onChange?: (gradient: Readonly<Gradient>) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface GradientState {
|
|
14
|
+
gradient: Readonly<Gradient>;
|
|
15
|
+
selectedStopId: string | null;
|
|
16
|
+
canUndo: boolean;
|
|
17
|
+
canRedo: boolean;
|
|
18
|
+
undoLabel: string;
|
|
19
|
+
redoLabel: string;
|
|
20
|
+
revision: number;
|
|
21
|
+
}
|
|
22
|
+
export type GradientActionResult = {
|
|
23
|
+
ok: true;
|
|
24
|
+
} | {
|
|
25
|
+
ok: false;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
/** The geometry fields `setGeometry` changes; omitted fields stay as they are. */
|
|
29
|
+
export interface GradientGeometryPatch {
|
|
30
|
+
type?: GradientType;
|
|
31
|
+
/** Degrees (linear and conic); any finite number, stored modulo 360. */
|
|
32
|
+
angle?: number;
|
|
33
|
+
/** 0–1 of the box (radial and conic). */
|
|
34
|
+
center?: {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
};
|
|
38
|
+
shape?: GradientShape;
|
|
39
|
+
interpolation?: GradientInterpolation;
|
|
40
|
+
repeating?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare const GRADIENT_TYPES: readonly GradientType[];
|
|
43
|
+
export declare const GRADIENT_INTERPOLATIONS: readonly GradientInterpolation[];
|
|
44
|
+
export declare class GradientController {
|
|
45
|
+
private _gradient;
|
|
46
|
+
private _selectedStopId;
|
|
47
|
+
private readonly _history;
|
|
48
|
+
private readonly _readOnlyOption?;
|
|
49
|
+
private readonly _onChange?;
|
|
50
|
+
private readonly _listeners;
|
|
51
|
+
private _gestureKey;
|
|
52
|
+
private _gestureCount;
|
|
53
|
+
private _revision;
|
|
54
|
+
private _cachedState;
|
|
55
|
+
constructor(options?: GradientControllerOptions);
|
|
56
|
+
get state(): GradientState;
|
|
57
|
+
get readOnlyReason(): string | null;
|
|
58
|
+
get isReadOnly(): boolean;
|
|
59
|
+
getGradient(): Readonly<Gradient>;
|
|
60
|
+
getSelectedStopId(): string | null;
|
|
61
|
+
getSelectedStop(): GradientStop | null;
|
|
62
|
+
subscribe(fn: (state: GradientState) => void): () => void;
|
|
63
|
+
/** `changed` is false for view-only updates (selection), which don't call `onChange`. */
|
|
64
|
+
private _notify;
|
|
65
|
+
private _checkReadOnly;
|
|
66
|
+
/** Selects a stop (view state; not an undo step and no `onChange`). Unknown ids are ignored. */
|
|
67
|
+
selectStop(stopId: string | null): void;
|
|
68
|
+
beginGesture(label?: string): void;
|
|
69
|
+
endGesture(): void;
|
|
70
|
+
private _apply;
|
|
71
|
+
/** The selected stop after `next` replaces the gradient: same id if it survives, else same index. */
|
|
72
|
+
private _selectionAfterReplace;
|
|
73
|
+
setGradient(value: unknown, label?: string): GradientActionResult;
|
|
74
|
+
/**
|
|
75
|
+
* Replaces the gradient without an undo step (e.g. syncing a controlled `value` from the
|
|
76
|
+
* host). Keeps the selection when the stop survives. Notifies subscribers and `onChange`.
|
|
77
|
+
*/
|
|
78
|
+
load(value: unknown, options?: {
|
|
79
|
+
clearHistory?: boolean;
|
|
80
|
+
}): GradientActionResult;
|
|
81
|
+
/**
|
|
82
|
+
* Changes any of type, angle, center, shape, interpolation and repeating as one undo step.
|
|
83
|
+
* Every field is checked before anything changes; an invalid one fails the whole call.
|
|
84
|
+
*/
|
|
85
|
+
setGeometry(patch: GradientGeometryPatch, label?: string): GradientActionResult;
|
|
86
|
+
setType(type: GradientType): GradientActionResult;
|
|
87
|
+
setAngle(angle: number): GradientActionResult;
|
|
88
|
+
setCenter(center: {
|
|
89
|
+
x: number;
|
|
90
|
+
y: number;
|
|
91
|
+
}): GradientActionResult;
|
|
92
|
+
setShape(shape: GradientShape): GradientActionResult;
|
|
93
|
+
setInterpolation(interpolation: GradientInterpolation): GradientActionResult;
|
|
94
|
+
setRepeating(repeating: boolean): GradientActionResult;
|
|
95
|
+
addStop(offset: number, color?: string): {
|
|
96
|
+
ok: true;
|
|
97
|
+
stop: GradientStop;
|
|
98
|
+
} | {
|
|
99
|
+
ok: false;
|
|
100
|
+
message: string;
|
|
101
|
+
};
|
|
102
|
+
updateStop(id: string, patch: Partial<Omit<GradientStop, 'id'>>): GradientActionResult;
|
|
103
|
+
removeStop(id: string): GradientActionResult;
|
|
104
|
+
reverse(): GradientActionResult;
|
|
105
|
+
distribute(): GradientActionResult;
|
|
106
|
+
undo(): boolean;
|
|
107
|
+
redo(): boolean;
|
|
108
|
+
dispose(): void;
|
|
109
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { HistoryManager } from '../history/HistoryManager.js';
|
|
2
|
+
import type { Gradient, GradientInterpolation, GradientShape, GradientStop, GradientType } from './types.js';
|
|
3
|
+
export interface GradientControllerOptions {
|
|
4
|
+
/** Initial gradient value (parsed or object). */
|
|
5
|
+
value?: unknown;
|
|
6
|
+
/** History manager to record undo/redo into (creates own if omitted). */
|
|
7
|
+
history?: HistoryManager;
|
|
8
|
+
/** Whether the gradient is read-only or a function returning reason/boolean. */
|
|
9
|
+
readOnly?: boolean | string | (() => boolean | string);
|
|
10
|
+
/** Callback invoked whenever the gradient or selection changes. */
|
|
11
|
+
onChange?: (gradient: Readonly<Gradient>) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface GradientState {
|
|
14
|
+
gradient: Readonly<Gradient>;
|
|
15
|
+
selectedStopId: string | null;
|
|
16
|
+
canUndo: boolean;
|
|
17
|
+
canRedo: boolean;
|
|
18
|
+
undoLabel: string;
|
|
19
|
+
redoLabel: string;
|
|
20
|
+
revision: number;
|
|
21
|
+
}
|
|
22
|
+
export type GradientActionResult = {
|
|
23
|
+
ok: true;
|
|
24
|
+
} | {
|
|
25
|
+
ok: false;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
/** The geometry fields `setGeometry` changes; omitted fields stay as they are. */
|
|
29
|
+
export interface GradientGeometryPatch {
|
|
30
|
+
type?: GradientType;
|
|
31
|
+
/** Degrees (linear and conic); any finite number, stored modulo 360. */
|
|
32
|
+
angle?: number;
|
|
33
|
+
/** 0–1 of the box (radial and conic). */
|
|
34
|
+
center?: {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
};
|
|
38
|
+
shape?: GradientShape;
|
|
39
|
+
interpolation?: GradientInterpolation;
|
|
40
|
+
repeating?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare const GRADIENT_TYPES: readonly GradientType[];
|
|
43
|
+
export declare const GRADIENT_INTERPOLATIONS: readonly GradientInterpolation[];
|
|
44
|
+
export declare class GradientController {
|
|
45
|
+
private _gradient;
|
|
46
|
+
private _selectedStopId;
|
|
47
|
+
private readonly _history;
|
|
48
|
+
private readonly _readOnlyOption?;
|
|
49
|
+
private readonly _onChange?;
|
|
50
|
+
private readonly _listeners;
|
|
51
|
+
private _gestureKey;
|
|
52
|
+
private _gestureCount;
|
|
53
|
+
private _revision;
|
|
54
|
+
private _cachedState;
|
|
55
|
+
constructor(options?: GradientControllerOptions);
|
|
56
|
+
get state(): GradientState;
|
|
57
|
+
get readOnlyReason(): string | null;
|
|
58
|
+
get isReadOnly(): boolean;
|
|
59
|
+
getGradient(): Readonly<Gradient>;
|
|
60
|
+
getSelectedStopId(): string | null;
|
|
61
|
+
getSelectedStop(): GradientStop | null;
|
|
62
|
+
subscribe(fn: (state: GradientState) => void): () => void;
|
|
63
|
+
/** `changed` is false for view-only updates (selection), which don't call `onChange`. */
|
|
64
|
+
private _notify;
|
|
65
|
+
private _checkReadOnly;
|
|
66
|
+
/** Selects a stop (view state; not an undo step and no `onChange`). Unknown ids are ignored. */
|
|
67
|
+
selectStop(stopId: string | null): void;
|
|
68
|
+
beginGesture(label?: string): void;
|
|
69
|
+
endGesture(): void;
|
|
70
|
+
private _apply;
|
|
71
|
+
/** The selected stop after `next` replaces the gradient: same id if it survives, else same index. */
|
|
72
|
+
private _selectionAfterReplace;
|
|
73
|
+
setGradient(value: unknown, label?: string): GradientActionResult;
|
|
74
|
+
/**
|
|
75
|
+
* Replaces the gradient without an undo step (e.g. syncing a controlled `value` from the
|
|
76
|
+
* host). Keeps the selection when the stop survives. Notifies subscribers and `onChange`.
|
|
77
|
+
*/
|
|
78
|
+
load(value: unknown, options?: {
|
|
79
|
+
clearHistory?: boolean;
|
|
80
|
+
}): GradientActionResult;
|
|
81
|
+
/**
|
|
82
|
+
* Changes any of type, angle, center, shape, interpolation and repeating as one undo step.
|
|
83
|
+
* Every field is checked before anything changes; an invalid one fails the whole call.
|
|
84
|
+
*/
|
|
85
|
+
setGeometry(patch: GradientGeometryPatch, label?: string): GradientActionResult;
|
|
86
|
+
setType(type: GradientType): GradientActionResult;
|
|
87
|
+
setAngle(angle: number): GradientActionResult;
|
|
88
|
+
setCenter(center: {
|
|
89
|
+
x: number;
|
|
90
|
+
y: number;
|
|
91
|
+
}): GradientActionResult;
|
|
92
|
+
setShape(shape: GradientShape): GradientActionResult;
|
|
93
|
+
setInterpolation(interpolation: GradientInterpolation): GradientActionResult;
|
|
94
|
+
setRepeating(repeating: boolean): GradientActionResult;
|
|
95
|
+
addStop(offset: number, color?: string): {
|
|
96
|
+
ok: true;
|
|
97
|
+
stop: GradientStop;
|
|
98
|
+
} | {
|
|
99
|
+
ok: false;
|
|
100
|
+
message: string;
|
|
101
|
+
};
|
|
102
|
+
updateStop(id: string, patch: Partial<Omit<GradientStop, 'id'>>): GradientActionResult;
|
|
103
|
+
removeStop(id: string): GradientActionResult;
|
|
104
|
+
reverse(): GradientActionResult;
|
|
105
|
+
distribute(): GradientActionResult;
|
|
106
|
+
undo(): boolean;
|
|
107
|
+
redo(): boolean;
|
|
108
|
+
dispose(): void;
|
|
109
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Gradient, GradientStop } from './types.cjs';
|
|
2
|
+
export interface GradientKeyStepResult {
|
|
3
|
+
stopId?: string;
|
|
4
|
+
offset?: number;
|
|
5
|
+
remove?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Returns the stop offset (0..1) corresponding to a track x position (0..1).
|
|
9
|
+
*/
|
|
10
|
+
export declare function stopFromTrackPosition(g: Gradient, x: number): number;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the track x position (0..1) corresponding to a stop.
|
|
13
|
+
*/
|
|
14
|
+
export declare function trackPositionFromStop(stop: GradientStop): number;
|
|
15
|
+
/**
|
|
16
|
+
* Handles keyboard navigation on a stop handle.
|
|
17
|
+
* ArrowLeft / ArrowRight moves by 0.01 (or 0.1 with shiftKey).
|
|
18
|
+
* Delete / Backspace requests removal (remove: true).
|
|
19
|
+
* Returns null if the key is unhandled.
|
|
20
|
+
*/
|
|
21
|
+
export declare function gradientKeyStep(g: Gradient, id: string, key: string, shift?: boolean): GradientKeyStepResult | null;
|
|
22
|
+
/**
|
|
23
|
+
* Calculates angle in degrees (CSS convention: 0 = up, 90 = right, 180 = down, 270 = left)
|
|
24
|
+
* from a center coordinate to a pointer coordinate.
|
|
25
|
+
* Optional snapStep snaps to nearest multiple (e.g. 15 deg).
|
|
26
|
+
*/
|
|
27
|
+
export declare function angleFromPointer(center: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
}, point: {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
}, snapStep?: number): number;
|
|
34
|
+
/**
|
|
35
|
+
* Returns a linear 90deg CSS gradient string suitable for rendering the stop track
|
|
36
|
+
* across the horizontal slider, regardless of the underlying gradient's type.
|
|
37
|
+
*/
|
|
38
|
+
export declare function gradientTrackBackground(g: Gradient): string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Gradient, GradientStop } from './types.js';
|
|
2
|
+
export interface GradientKeyStepResult {
|
|
3
|
+
stopId?: string;
|
|
4
|
+
offset?: number;
|
|
5
|
+
remove?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Returns the stop offset (0..1) corresponding to a track x position (0..1).
|
|
9
|
+
*/
|
|
10
|
+
export declare function stopFromTrackPosition(g: Gradient, x: number): number;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the track x position (0..1) corresponding to a stop.
|
|
13
|
+
*/
|
|
14
|
+
export declare function trackPositionFromStop(stop: GradientStop): number;
|
|
15
|
+
/**
|
|
16
|
+
* Handles keyboard navigation on a stop handle.
|
|
17
|
+
* ArrowLeft / ArrowRight moves by 0.01 (or 0.1 with shiftKey).
|
|
18
|
+
* Delete / Backspace requests removal (remove: true).
|
|
19
|
+
* Returns null if the key is unhandled.
|
|
20
|
+
*/
|
|
21
|
+
export declare function gradientKeyStep(g: Gradient, id: string, key: string, shift?: boolean): GradientKeyStepResult | null;
|
|
22
|
+
/**
|
|
23
|
+
* Calculates angle in degrees (CSS convention: 0 = up, 90 = right, 180 = down, 270 = left)
|
|
24
|
+
* from a center coordinate to a pointer coordinate.
|
|
25
|
+
* Optional snapStep snaps to nearest multiple (e.g. 15 deg).
|
|
26
|
+
*/
|
|
27
|
+
export declare function angleFromPointer(center: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
}, point: {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
}, snapStep?: number): number;
|
|
34
|
+
/**
|
|
35
|
+
* Returns a linear 90deg CSS gradient string suitable for rendering the stop track
|
|
36
|
+
* across the horizontal slider, regardless of the underlying gradient's type.
|
|
37
|
+
*/
|
|
38
|
+
export declare function gradientTrackBackground(g: Gradient): string;
|