@docen/extensions 0.0.16 → 0.1.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 +1 -1
- package/dist/types.d.mts +414 -135
- package/package.json +3 -3
package/README.md
CHANGED
package/dist/types.d.mts
CHANGED
|
@@ -1,134 +1,228 @@
|
|
|
1
1
|
import { JSONContent } from "@tiptap/core";
|
|
2
|
+
import { Readable } from "node:stream";
|
|
2
3
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
declare type CoreImageOptions = {
|
|
12
|
-
readonly transformation: IMediaTransformation;
|
|
13
|
-
readonly floating?: IFloating;
|
|
14
|
-
readonly altText?: DocPropertiesOptions;
|
|
15
|
-
readonly outline?: OutlineOptions;
|
|
16
|
-
readonly solidFill?: SolidFillOptions;
|
|
17
|
-
};
|
|
18
|
-
declare type DocPropertiesOptions = {
|
|
4
|
+
//#region ../../node_modules/.pnpm/undio@0.2.0/node_modules/undio/dist/index.d.ts
|
|
5
|
+
type DataType = ArrayBufferLike | Base64 | Blob | DataView | Readable | number[] | ReadableStream | Response | string | Uint8Array;
|
|
6
|
+
type Base64 = string;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../../node_modules/.pnpm/docx-plus@0.0.11/node_modules/docx-plus/dist/index.d.mts
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/file/drawing/doc-properties/doc-properties.d.ts
|
|
11
|
+
interface DocPropertiesOptions {
|
|
19
12
|
readonly name: string;
|
|
20
13
|
readonly description?: string;
|
|
21
14
|
readonly title?: string;
|
|
22
15
|
readonly id?: string;
|
|
16
|
+
} //#endregion
|
|
17
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
|
|
18
|
+
interface SourceRectangleOptions {
|
|
19
|
+
readonly l?: number;
|
|
20
|
+
readonly t?: number;
|
|
21
|
+
readonly r?: number;
|
|
22
|
+
readonly b?: number;
|
|
23
|
+
} //#endregion
|
|
24
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/color-transform.d.ts
|
|
25
|
+
interface ColorTransformOptions {
|
|
26
|
+
readonly tint?: number;
|
|
27
|
+
readonly shade?: number;
|
|
28
|
+
readonly comp?: boolean;
|
|
29
|
+
readonly inv?: boolean;
|
|
30
|
+
readonly gray?: boolean;
|
|
31
|
+
readonly alpha?: number;
|
|
32
|
+
readonly alphaOff?: number;
|
|
33
|
+
readonly alphaMod?: number;
|
|
34
|
+
readonly hue?: number;
|
|
35
|
+
readonly hueOff?: number;
|
|
36
|
+
readonly hueMod?: number;
|
|
37
|
+
readonly sat?: number;
|
|
38
|
+
readonly satOff?: number;
|
|
39
|
+
readonly satMod?: number;
|
|
40
|
+
readonly lum?: number;
|
|
41
|
+
readonly lumOff?: number;
|
|
42
|
+
readonly lumMod?: number;
|
|
43
|
+
readonly red?: number;
|
|
44
|
+
readonly redOff?: number;
|
|
45
|
+
readonly redMod?: number;
|
|
46
|
+
readonly green?: number;
|
|
47
|
+
readonly greenOff?: number;
|
|
48
|
+
readonly greenMod?: number;
|
|
49
|
+
readonly blue?: number;
|
|
50
|
+
readonly blueOff?: number;
|
|
51
|
+
readonly blueMod?: number;
|
|
52
|
+
readonly gamma?: boolean;
|
|
53
|
+
readonly invGamma?: boolean;
|
|
54
|
+
} //#endregion
|
|
55
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/hsl-color.d.ts
|
|
56
|
+
interface HslColorOptions {
|
|
57
|
+
readonly hue: number;
|
|
58
|
+
readonly sat: number;
|
|
59
|
+
readonly lum: number;
|
|
60
|
+
readonly transforms?: ColorTransformOptions;
|
|
61
|
+
} //#endregion
|
|
62
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/preset-color.d.ts
|
|
63
|
+
declare const PresetColor: {
|
|
64
|
+
readonly ALICE_BLUE: "aliceBlue";
|
|
65
|
+
readonly ANTIQUE_WHITE: "antiqueWhite";
|
|
66
|
+
readonly AQUA: "aqua";
|
|
67
|
+
readonly AQUAMARINE: "aquamarine";
|
|
68
|
+
readonly AZURE: "azure";
|
|
69
|
+
readonly BEIGE: "beige";
|
|
70
|
+
readonly BISQUE: "bisque";
|
|
71
|
+
readonly BLACK: "black";
|
|
72
|
+
readonly BLANCHED_ALMOND: "blanchedAlmond";
|
|
73
|
+
readonly BLUE: "blue";
|
|
74
|
+
readonly BLUE_VIOLET: "blueViolet";
|
|
75
|
+
readonly BROWN: "brown";
|
|
76
|
+
readonly BURLY_WOOD: "burlyWood";
|
|
77
|
+
readonly CADET_BLUE: "cadetBlue";
|
|
78
|
+
readonly CHARTREUSE: "chartreuse";
|
|
79
|
+
readonly CHOCOLATE: "chocolate";
|
|
80
|
+
readonly CORAL: "coral";
|
|
81
|
+
readonly CORNFLOWER_BLUE: "cornflowerBlue";
|
|
82
|
+
readonly CORNSILK: "cornsilk";
|
|
83
|
+
readonly CRIMSON: "crimson";
|
|
84
|
+
readonly CYAN: "cyan";
|
|
85
|
+
readonly DARK_BLUE: "darkBlue";
|
|
86
|
+
readonly DARK_CYAN: "darkCyan";
|
|
87
|
+
readonly DARK_GOLDENROD: "darkGoldenrod";
|
|
88
|
+
readonly DARK_GRAY: "darkGray";
|
|
89
|
+
readonly DARK_GREY: "darkGrey";
|
|
90
|
+
readonly DARK_GREEN: "darkGreen";
|
|
91
|
+
readonly DARK_KHAKI: "darkKhaki";
|
|
92
|
+
readonly DARK_MAGENTA: "darkMagenta";
|
|
93
|
+
readonly DARK_OLIVE_GREEN: "darkOliveGreen";
|
|
94
|
+
readonly DARK_ORANGE: "darkOrange";
|
|
95
|
+
readonly DARK_ORCHID: "darkOrchid";
|
|
96
|
+
readonly DARK_RED: "darkRed";
|
|
97
|
+
readonly DARK_SALMON: "darkSalmon";
|
|
98
|
+
readonly DARK_SEA_GREEN: "darkSeaGreen";
|
|
99
|
+
readonly DARK_SLATE_BLUE: "darkSlateBlue";
|
|
100
|
+
readonly DARK_SLATE_GRAY: "darkSlateGray";
|
|
101
|
+
readonly DARK_SLATE_GREY: "darkSlateGrey";
|
|
102
|
+
readonly DARK_TURQUOISE: "darkTurquoise";
|
|
103
|
+
readonly DARK_VIOLET: "darkViolet";
|
|
104
|
+
readonly DEEP_PINK: "deepPink";
|
|
105
|
+
readonly DEEP_SKY_BLUE: "deepSkyBlue";
|
|
106
|
+
readonly DIM_GRAY: "dimGray";
|
|
107
|
+
readonly DIM_GREY: "dimGrey";
|
|
108
|
+
readonly DODGER_BLUE: "dodgerBlue";
|
|
109
|
+
readonly FIREBRICK: "firebrick";
|
|
110
|
+
readonly FLORAL_WHITE: "floralWhite";
|
|
111
|
+
readonly FOREST_GREEN: "forestGreen";
|
|
112
|
+
readonly FUCHSIA: "fuchsia";
|
|
113
|
+
readonly GAINSBORO: "gainsboro";
|
|
114
|
+
readonly GHOST_WHITE: "ghostWhite";
|
|
115
|
+
readonly GOLD: "gold";
|
|
116
|
+
readonly GOLDENROD: "goldenrod";
|
|
117
|
+
readonly GRAY: "gray";
|
|
118
|
+
readonly GREY: "grey";
|
|
119
|
+
readonly GREEN: "green";
|
|
120
|
+
readonly GREEN_YELLOW: "greenYellow";
|
|
121
|
+
readonly HONEYDEW: "honeydew";
|
|
122
|
+
readonly HOT_PINK: "hotPink";
|
|
123
|
+
readonly INDIAN_RED: "indianRed";
|
|
124
|
+
readonly INDIGO: "indigo";
|
|
125
|
+
readonly IVORY: "ivory";
|
|
126
|
+
readonly KHAKI: "khaki";
|
|
127
|
+
readonly LAVENDER: "lavender";
|
|
128
|
+
readonly LAVENDER_BLUSH: "lavenderBlush";
|
|
129
|
+
readonly LAWN_GREEN: "lawnGreen";
|
|
130
|
+
readonly LEMON_CHIFFON: "lemonChiffon";
|
|
131
|
+
readonly LIGHT_BLUE: "lightBlue";
|
|
132
|
+
readonly LIGHT_CORAL: "lightCoral";
|
|
133
|
+
readonly LIGHT_CYAN: "lightCyan";
|
|
134
|
+
readonly LIGHT_GOLDENROD_YELLOW: "lightGoldenrodYellow";
|
|
135
|
+
readonly LIGHT_GRAY: "lightGray";
|
|
136
|
+
readonly LIGHT_GREY: "lightGrey";
|
|
137
|
+
readonly LIGHT_GREEN: "lightGreen";
|
|
138
|
+
readonly LIGHT_PINK: "lightPink";
|
|
139
|
+
readonly LIGHT_SALMON: "lightSalmon";
|
|
140
|
+
readonly LIGHT_SEA_GREEN: "lightSeaGreen";
|
|
141
|
+
readonly LIGHT_SKY_BLUE: "lightSkyBlue";
|
|
142
|
+
readonly LIGHT_SLATE_GRAY: "lightSlateGray";
|
|
143
|
+
readonly LIGHT_SLATE_GREY: "lightSlateGrey";
|
|
144
|
+
readonly LIGHT_STEEL_BLUE: "lightSteelBlue";
|
|
145
|
+
readonly LIGHT_YELLOW: "lightYellow";
|
|
146
|
+
readonly LIME: "lime";
|
|
147
|
+
readonly LIME_GREEN: "limeGreen";
|
|
148
|
+
readonly LINEN: "linen";
|
|
149
|
+
readonly MAGENTA: "magenta";
|
|
150
|
+
readonly MAROON: "maroon";
|
|
151
|
+
readonly MEDIUM_AQUAMARINE: "mediumAquamarine";
|
|
152
|
+
readonly MEDIUM_BLUE: "mediumBlue";
|
|
153
|
+
readonly MEDIUM_ORCHID: "mediumOrchid";
|
|
154
|
+
readonly MEDIUM_PURPLE: "mediumPurple";
|
|
155
|
+
readonly MEDIUM_SEA_GREEN: "mediumSeaGreen";
|
|
156
|
+
readonly MEDIUM_SLATE_BLUE: "mediumSlateBlue";
|
|
157
|
+
readonly MEDIUM_SPRING_GREEN: "mediumSpringGreen";
|
|
158
|
+
readonly MEDIUM_TURQUOISE: "mediumTurquoise";
|
|
159
|
+
readonly MEDIUM_VIOLET_RED: "mediumVioletRed";
|
|
160
|
+
readonly MIDNIGHT_BLUE: "midnightBlue";
|
|
161
|
+
readonly MINT_CREAM: "mintCream";
|
|
162
|
+
readonly MISTY_ROSE: "mistyRose";
|
|
163
|
+
readonly MOCCASIN: "moccasin";
|
|
164
|
+
readonly NAVAJO_WHITE: "navajoWhite";
|
|
165
|
+
readonly NAVY: "navy";
|
|
166
|
+
readonly OLD_LACE: "oldLace";
|
|
167
|
+
readonly OLIVE: "olive";
|
|
168
|
+
readonly OLIVE_DRAB: "oliveDrab";
|
|
169
|
+
readonly ORANGE: "orange";
|
|
170
|
+
readonly ORANGE_RED: "orangeRed";
|
|
171
|
+
readonly ORCHID: "orchid";
|
|
172
|
+
readonly PALE_GOLDENROD: "paleGoldenrod";
|
|
173
|
+
readonly PALE_GREEN: "paleGreen";
|
|
174
|
+
readonly PALE_TURQUOISE: "paleTurquoise";
|
|
175
|
+
readonly PALE_VIOLET_RED: "paleVioletRed";
|
|
176
|
+
readonly PAPAYA_WHIP: "papayaWhip";
|
|
177
|
+
readonly PEACH_PUFF: "peachPuff";
|
|
178
|
+
readonly PERU: "peru";
|
|
179
|
+
readonly PINK: "pink";
|
|
180
|
+
readonly PLUM: "plum";
|
|
181
|
+
readonly POWDER_BLUE: "powderBlue";
|
|
182
|
+
readonly PURPLE: "purple";
|
|
183
|
+
readonly RED: "red";
|
|
184
|
+
readonly ROSY_BROWN: "rosyBrown";
|
|
185
|
+
readonly ROYAL_BLUE: "royalBlue";
|
|
186
|
+
readonly SADDLE_BROWN: "saddleBrown";
|
|
187
|
+
readonly SALMON: "salmon";
|
|
188
|
+
readonly SANDY_BROWN: "sandyBrown";
|
|
189
|
+
readonly SEA_GREEN: "seaGreen";
|
|
190
|
+
readonly SEA_SHELL: "seaShell";
|
|
191
|
+
readonly SIENNA: "sienna";
|
|
192
|
+
readonly SILVER: "silver";
|
|
193
|
+
readonly SKY_BLUE: "skyBlue";
|
|
194
|
+
readonly SLATE_BLUE: "slateBlue";
|
|
195
|
+
readonly SLATE_GRAY: "slateGray";
|
|
196
|
+
readonly SLATE_GREY: "slateGrey";
|
|
197
|
+
readonly SNOW: "snow";
|
|
198
|
+
readonly SPRING_GREEN: "springGreen";
|
|
199
|
+
readonly STEEL_BLUE: "steelBlue";
|
|
200
|
+
readonly TAN: "tan";
|
|
201
|
+
readonly TEAL: "teal";
|
|
202
|
+
readonly THISTLE: "thistle";
|
|
203
|
+
readonly TOMATO: "tomato";
|
|
204
|
+
readonly TURQUOISE: "turquoise";
|
|
205
|
+
readonly VIOLET: "violet";
|
|
206
|
+
readonly WHEAT: "wheat";
|
|
207
|
+
readonly WHITE: "white";
|
|
208
|
+
readonly WHITE_SMOKE: "whiteSmoke";
|
|
209
|
+
readonly YELLOW: "yellow";
|
|
210
|
+
readonly YELLOW_GREEN: "yellowGreen";
|
|
23
211
|
};
|
|
24
|
-
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
declare const HorizontalPositionRelativeFrom: {
|
|
32
|
-
readonly CHARACTER: "character";
|
|
33
|
-
readonly COLUMN: "column";
|
|
34
|
-
readonly INSIDE_MARGIN: "insideMargin";
|
|
35
|
-
readonly LEFT_MARGIN: "leftMargin";
|
|
36
|
-
readonly MARGIN: "margin";
|
|
37
|
-
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
38
|
-
readonly PAGE: "page";
|
|
39
|
-
readonly RIGHT_MARGIN: "rightMargin";
|
|
40
|
-
};
|
|
41
|
-
declare type IDistance = {
|
|
42
|
-
readonly distT?: number;
|
|
43
|
-
readonly distB?: number;
|
|
44
|
-
readonly distL?: number;
|
|
45
|
-
readonly distR?: number;
|
|
46
|
-
};
|
|
47
|
-
declare type IFloating = {
|
|
48
|
-
readonly horizontalPosition: IHorizontalPositionOptions;
|
|
49
|
-
readonly verticalPosition: IVerticalPositionOptions;
|
|
50
|
-
readonly allowOverlap?: boolean;
|
|
51
|
-
readonly lockAnchor?: boolean;
|
|
52
|
-
readonly behindDocument?: boolean;
|
|
53
|
-
readonly layoutInCell?: boolean;
|
|
54
|
-
readonly margins?: IMargins;
|
|
55
|
-
readonly wrap?: ITextWrapping;
|
|
56
|
-
readonly zIndex?: number;
|
|
57
|
-
};
|
|
58
|
-
declare type IHorizontalPositionOptions = {
|
|
59
|
-
readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
60
|
-
readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
61
|
-
readonly offset?: number;
|
|
62
|
-
};
|
|
63
|
-
declare type IImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
|
|
64
|
-
declare type IMargins = {
|
|
65
|
-
readonly left?: number;
|
|
66
|
-
readonly bottom?: number;
|
|
67
|
-
readonly top?: number;
|
|
68
|
-
readonly right?: number;
|
|
69
|
-
};
|
|
70
|
-
declare type IMediaTransformation = {
|
|
71
|
-
readonly offset?: {
|
|
72
|
-
readonly top?: number;
|
|
73
|
-
readonly left?: number;
|
|
74
|
-
};
|
|
75
|
-
readonly width: number;
|
|
76
|
-
readonly height: number;
|
|
77
|
-
readonly flip?: {
|
|
78
|
-
readonly vertical?: boolean;
|
|
79
|
-
readonly horizontal?: boolean;
|
|
80
|
-
};
|
|
81
|
-
readonly rotation?: number;
|
|
82
|
-
};
|
|
83
|
-
declare type ITextWrapping = {
|
|
84
|
-
readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
85
|
-
readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
86
|
-
readonly margins?: IDistance;
|
|
87
|
-
};
|
|
88
|
-
declare type IVerticalPositionOptions = {
|
|
89
|
-
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
90
|
-
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
91
|
-
readonly offset?: number;
|
|
92
|
-
};
|
|
93
|
-
declare const LineCap: {
|
|
94
|
-
readonly ROUND: "rnd";
|
|
95
|
-
readonly SQUARE: "sq";
|
|
96
|
-
readonly FLAT: "flat";
|
|
97
|
-
};
|
|
98
|
-
declare type OutlineAttributes = {
|
|
99
|
-
readonly width?: number;
|
|
100
|
-
readonly cap?: keyof typeof LineCap;
|
|
101
|
-
readonly compoundLine?: keyof typeof CompoundLine;
|
|
102
|
-
readonly align?: keyof typeof PenAlignment;
|
|
103
|
-
};
|
|
104
|
-
declare type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
|
|
105
|
-
declare type OutlineNoFill = {
|
|
106
|
-
readonly type: "noFill";
|
|
107
|
-
};
|
|
108
|
-
declare type OutlineOptions = OutlineAttributes & OutlineFillProperties;
|
|
109
|
-
declare type OutlineRgbSolidFill = {
|
|
110
|
-
readonly type: "solidFill";
|
|
111
|
-
readonly solidFillType: "rgb";
|
|
212
|
+
interface PresetColorOptions {
|
|
213
|
+
readonly value: (typeof PresetColor)[keyof typeof PresetColor];
|
|
214
|
+
readonly transforms?: ColorTransformOptions;
|
|
215
|
+
} //#endregion
|
|
216
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/rgb-color.d.ts
|
|
217
|
+
interface RgbColorOptions {
|
|
112
218
|
readonly value: string;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
219
|
+
readonly transforms?: ColorTransformOptions;
|
|
220
|
+
} //#endregion
|
|
221
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/scheme-color.d.ts
|
|
222
|
+
interface SchemeColorOptions {
|
|
117
223
|
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
declare const PenAlignment: {
|
|
121
|
-
readonly CENTER: "ctr";
|
|
122
|
-
readonly INSET: "in";
|
|
123
|
-
};
|
|
124
|
-
declare type RegularImageOptions = {
|
|
125
|
-
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
126
|
-
readonly data: Buffer | string | Uint8Array | ArrayBuffer;
|
|
127
|
-
};
|
|
128
|
-
declare type RgbColorOptions = {
|
|
129
|
-
readonly type: "rgb";
|
|
130
|
-
readonly value: string;
|
|
131
|
-
};
|
|
224
|
+
readonly transforms?: ColorTransformOptions;
|
|
225
|
+
}
|
|
132
226
|
declare const SchemeColor: {
|
|
133
227
|
readonly BG1: "bg1";
|
|
134
228
|
readonly TX1: "tx1";
|
|
@@ -147,35 +241,149 @@ declare const SchemeColor: {
|
|
|
147
241
|
readonly DK2: "dk2";
|
|
148
242
|
readonly LT2: "lt2";
|
|
149
243
|
readonly PHCLR: "phClr";
|
|
244
|
+
}; //#endregion
|
|
245
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/system-color.d.ts
|
|
246
|
+
declare const SystemColor: {
|
|
247
|
+
readonly SCROLL_BAR: "scrollBar";
|
|
248
|
+
readonly BACKGROUND: "background";
|
|
249
|
+
readonly ACTIVE_CAPTION: "activeCaption";
|
|
250
|
+
readonly INACTIVE_CAPTION: "inactiveCaption";
|
|
251
|
+
readonly MENU: "menu";
|
|
252
|
+
readonly WINDOW: "window";
|
|
253
|
+
readonly WINDOW_FRAME: "windowFrame";
|
|
254
|
+
readonly MENU_TEXT: "menuText";
|
|
255
|
+
readonly WINDOW_TEXT: "windowText";
|
|
256
|
+
readonly CAPTION_TEXT: "captionText";
|
|
257
|
+
readonly ACTIVE_BORDER: "activeBorder";
|
|
258
|
+
readonly INACTIVE_BORDER: "inactiveBorder";
|
|
259
|
+
readonly APP_WORKSPACE: "appWorkspace";
|
|
260
|
+
readonly HIGHLIGHT: "highlight";
|
|
261
|
+
readonly HIGHLIGHT_TEXT: "highlightText";
|
|
262
|
+
readonly BTN_FACE: "btnFace";
|
|
263
|
+
readonly BTN_SHADOW: "btnShadow";
|
|
264
|
+
readonly GRAY_TEXT: "grayText";
|
|
265
|
+
readonly BTN_TEXT: "btnText";
|
|
266
|
+
readonly INACTIVE_CAPTION_TEXT: "inactiveCaptionText";
|
|
267
|
+
readonly BTN_HIGHLIGHT: "btnHighlight";
|
|
268
|
+
readonly THREE_D_DK_SHADOW: "3dDkShadow";
|
|
269
|
+
readonly THREE_D_LIGHT: "3dLight";
|
|
270
|
+
readonly INFO_TEXT: "infoText";
|
|
271
|
+
readonly INFO_BK: "infoBk";
|
|
272
|
+
readonly HOT_LIGHT: "hotLight";
|
|
273
|
+
readonly GRADIENT_ACTIVE_CAPTION: "gradientActiveCaption";
|
|
274
|
+
readonly GRADIENT_INACTIVE_CAPTION: "gradientInactiveCaption";
|
|
275
|
+
readonly MENU_HIGHLIGHT: "menuHighlight";
|
|
276
|
+
readonly MENU_BAR: "menuBar";
|
|
150
277
|
};
|
|
151
|
-
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
278
|
+
interface SystemColorOptions {
|
|
279
|
+
readonly value: (typeof SystemColor)[keyof typeof SystemColor];
|
|
280
|
+
readonly lastClr?: string;
|
|
281
|
+
readonly transforms?: ColorTransformOptions;
|
|
282
|
+
} //#endregion
|
|
283
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts
|
|
284
|
+
type SolidFillOptions = RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions; //#endregion
|
|
285
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/glow.d.ts
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts
|
|
288
|
+
declare const LineCap: {
|
|
289
|
+
readonly ROUND: "rnd";
|
|
290
|
+
readonly SQUARE: "sq";
|
|
291
|
+
readonly FLAT: "flat";
|
|
154
292
|
};
|
|
155
|
-
declare
|
|
156
|
-
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
293
|
+
declare const CompoundLine: {
|
|
294
|
+
readonly SINGLE: "sng";
|
|
295
|
+
readonly DOUBLE: "dbl";
|
|
296
|
+
readonly THICK_THIN: "thickThin";
|
|
297
|
+
readonly THIN_THICK: "thinThick";
|
|
298
|
+
readonly TRI: "tri";
|
|
160
299
|
};
|
|
161
|
-
declare const
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
|
|
165
|
-
|
|
300
|
+
declare const PenAlignment: {
|
|
301
|
+
readonly CENTER: "ctr";
|
|
302
|
+
readonly INSET: "in";
|
|
303
|
+
};
|
|
304
|
+
declare const PresetDash: {
|
|
305
|
+
readonly SOLID: "solid";
|
|
306
|
+
readonly DOT: "dot";
|
|
307
|
+
readonly DASH: "dash";
|
|
308
|
+
readonly LG_DASH: "lgDash";
|
|
309
|
+
readonly DASH_DOT: "dashDot";
|
|
310
|
+
readonly LG_DASH_DOT: "lgDashDot";
|
|
311
|
+
readonly LG_DASH_DOT_DOT: "lgDashDotDot";
|
|
312
|
+
readonly SYS_DASH: "sysDash";
|
|
313
|
+
readonly SYS_DOT: "sysDot";
|
|
314
|
+
readonly SYS_DASH_DOT: "sysDashDot";
|
|
315
|
+
readonly SYS_DASH_DOT_DOT: "sysDashDotDot";
|
|
316
|
+
};
|
|
317
|
+
declare const LineJoin: {
|
|
318
|
+
readonly ROUND: "round";
|
|
319
|
+
readonly BEVEL: "bevel";
|
|
320
|
+
readonly MITER: "miter";
|
|
166
321
|
};
|
|
322
|
+
interface OutlineAttributes {
|
|
323
|
+
readonly width?: number;
|
|
324
|
+
readonly cap?: keyof typeof LineCap;
|
|
325
|
+
readonly compoundLine?: keyof typeof CompoundLine;
|
|
326
|
+
readonly align?: keyof typeof PenAlignment;
|
|
327
|
+
readonly dash?: keyof typeof PresetDash;
|
|
328
|
+
readonly join?: keyof typeof LineJoin;
|
|
329
|
+
readonly miterLimit?: number;
|
|
330
|
+
}
|
|
331
|
+
interface OutlineNoFill {
|
|
332
|
+
readonly type: "noFill";
|
|
333
|
+
}
|
|
334
|
+
interface OutlineSolidFill {
|
|
335
|
+
readonly type: "solidFill";
|
|
336
|
+
readonly color: SolidFillOptions;
|
|
337
|
+
}
|
|
338
|
+
type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
|
|
339
|
+
type OutlineOptions = OutlineAttributes & OutlineFillProperties; //#endregion
|
|
340
|
+
//#region src/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
|
|
341
|
+
//#endregion
|
|
342
|
+
//#region src/file/drawing/text-wrap/text-wrapping.d.ts
|
|
167
343
|
declare const TextWrappingType: {
|
|
168
344
|
readonly NONE: 0;
|
|
169
345
|
readonly SQUARE: 1;
|
|
170
346
|
readonly TIGHT: 2;
|
|
171
347
|
readonly TOP_AND_BOTTOM: 3;
|
|
172
348
|
};
|
|
349
|
+
declare const TextWrappingSide: {
|
|
350
|
+
readonly BOTH_SIDES: "bothSides";
|
|
351
|
+
readonly LEFT: "left";
|
|
352
|
+
readonly RIGHT: "right";
|
|
353
|
+
readonly LARGEST: "largest";
|
|
354
|
+
};
|
|
355
|
+
interface ITextWrapping {
|
|
356
|
+
readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
357
|
+
readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
358
|
+
readonly margins?: IDistance;
|
|
359
|
+
} //#endregion
|
|
360
|
+
//#region src/file/drawing/text-wrap/wrap-none.d.ts
|
|
361
|
+
//#endregion
|
|
362
|
+
//#region src/file/shared/alignment.d.ts
|
|
363
|
+
declare const HorizontalPositionAlign: {
|
|
364
|
+
readonly CENTER: "center";
|
|
365
|
+
readonly INSIDE: "inside";
|
|
366
|
+
readonly LEFT: "left";
|
|
367
|
+
readonly OUTSIDE: "outside";
|
|
368
|
+
readonly RIGHT: "right";
|
|
369
|
+
};
|
|
173
370
|
declare const VerticalPositionAlign: {
|
|
174
371
|
readonly BOTTOM: "bottom";
|
|
175
372
|
readonly CENTER: "center";
|
|
176
373
|
readonly INSIDE: "inside";
|
|
177
374
|
readonly OUTSIDE: "outside";
|
|
178
375
|
readonly TOP: "top";
|
|
376
|
+
}; //#endregion
|
|
377
|
+
//#region src/file/drawing/floating/floating-position.d.ts
|
|
378
|
+
declare const HorizontalPositionRelativeFrom: {
|
|
379
|
+
readonly CHARACTER: "character";
|
|
380
|
+
readonly COLUMN: "column";
|
|
381
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
382
|
+
readonly LEFT_MARGIN: "leftMargin";
|
|
383
|
+
readonly MARGIN: "margin";
|
|
384
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
385
|
+
readonly PAGE: "page";
|
|
386
|
+
readonly RIGHT_MARGIN: "rightMargin";
|
|
179
387
|
};
|
|
180
388
|
declare const VerticalPositionRelativeFrom: {
|
|
181
389
|
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
@@ -187,6 +395,77 @@ declare const VerticalPositionRelativeFrom: {
|
|
|
187
395
|
readonly PARAGRAPH: "paragraph";
|
|
188
396
|
readonly TOP_MARGIN: "topMargin";
|
|
189
397
|
};
|
|
398
|
+
interface IHorizontalPositionOptions {
|
|
399
|
+
readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
400
|
+
readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
401
|
+
readonly offset?: number;
|
|
402
|
+
}
|
|
403
|
+
interface IVerticalPositionOptions {
|
|
404
|
+
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
405
|
+
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
406
|
+
readonly offset?: number;
|
|
407
|
+
}
|
|
408
|
+
interface IMargins {
|
|
409
|
+
readonly left?: number;
|
|
410
|
+
readonly bottom?: number;
|
|
411
|
+
readonly top?: number;
|
|
412
|
+
readonly right?: number;
|
|
413
|
+
}
|
|
414
|
+
interface IFloating {
|
|
415
|
+
readonly horizontalPosition: IHorizontalPositionOptions;
|
|
416
|
+
readonly verticalPosition: IVerticalPositionOptions;
|
|
417
|
+
readonly allowOverlap?: boolean;
|
|
418
|
+
readonly lockAnchor?: boolean;
|
|
419
|
+
readonly behindDocument?: boolean;
|
|
420
|
+
readonly layoutInCell?: boolean;
|
|
421
|
+
readonly margins?: IMargins;
|
|
422
|
+
readonly wrap?: ITextWrapping;
|
|
423
|
+
readonly zIndex?: number;
|
|
424
|
+
} //#endregion
|
|
425
|
+
//#region src/file/drawing/floating/simple-pos.d.ts
|
|
426
|
+
//#endregion
|
|
427
|
+
//#region src/file/media/media.d.ts
|
|
428
|
+
interface IMediaTransformation {
|
|
429
|
+
readonly offset?: {
|
|
430
|
+
readonly top?: number;
|
|
431
|
+
readonly left?: number;
|
|
432
|
+
};
|
|
433
|
+
readonly width: number;
|
|
434
|
+
readonly height: number;
|
|
435
|
+
readonly flip?: {
|
|
436
|
+
readonly vertical?: boolean;
|
|
437
|
+
readonly horizontal?: boolean;
|
|
438
|
+
};
|
|
439
|
+
readonly rotation?: number;
|
|
440
|
+
}
|
|
441
|
+
//#endregion
|
|
442
|
+
//#region src/file/drawing/drawing.d.ts
|
|
443
|
+
interface IDistance {
|
|
444
|
+
readonly distT?: number;
|
|
445
|
+
readonly distB?: number;
|
|
446
|
+
readonly distL?: number;
|
|
447
|
+
readonly distR?: number;
|
|
448
|
+
}
|
|
449
|
+
//#endregion
|
|
450
|
+
//#region src/file/paragraph/run/image-run.d.ts
|
|
451
|
+
interface CoreImageOptions {
|
|
452
|
+
readonly transformation: IMediaTransformation;
|
|
453
|
+
readonly floating?: IFloating;
|
|
454
|
+
readonly altText?: DocPropertiesOptions;
|
|
455
|
+
readonly outline?: OutlineOptions;
|
|
456
|
+
readonly solidFill?: SolidFillOptions;
|
|
457
|
+
readonly srcRect?: SourceRectangleOptions;
|
|
458
|
+
}
|
|
459
|
+
interface RegularImageOptions {
|
|
460
|
+
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
461
|
+
readonly data: DataType;
|
|
462
|
+
}
|
|
463
|
+
interface SvgMediaOptions {
|
|
464
|
+
readonly type: "svg";
|
|
465
|
+
readonly data: DataType;
|
|
466
|
+
readonly fallback: RegularImageOptions;
|
|
467
|
+
}
|
|
468
|
+
type IImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
|
|
190
469
|
//#endregion
|
|
191
470
|
//#region src/types.d.ts
|
|
192
471
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docen/extensions",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Collection of TipTap extensions with TypeScript type definitions for Docen",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docen",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"author": {
|
|
21
21
|
"name": "Demo Macro",
|
|
22
22
|
"email": "abc@imst.xyz",
|
|
23
|
-
"url": "https://
|
|
23
|
+
"url": "https://www.demomacro.com/"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@tiptap/suggestion": "3.20.4"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"docx": "
|
|
86
|
+
"docx-plus": "0.0.11"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"dev": "basis build --stub",
|