@leapfrog/interactive-canvas 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.
Files changed (58) hide show
  1. package/dist/dimensions/pixel-canvas-dimensions.d.ts +13 -0
  2. package/dist/dimensions/print-6-col-canvas-dimensions.d.ts +18 -0
  3. package/dist/dimensions/print-8-col-canvas-dimensions.d.ts +18 -0
  4. package/dist/font/font-library.d.ts +22 -0
  5. package/dist/font/font-library.interface.d.ts +20 -0
  6. package/dist/font/font.interface.d.ts +20 -0
  7. package/dist/font/unknown-font.d.ts +6 -0
  8. package/dist/index.d.ts +47 -0
  9. package/dist/interactive-canvas.impl.d.ts +305 -0
  10. package/dist/interactive-canvas.interface.d.ts +221 -0
  11. package/dist/interactive-canvas.js +34 -0
  12. package/dist/interactive-canvas.js.map +1 -0
  13. package/dist/interactive-canvas.nomin.js +57456 -0
  14. package/dist/layout/abstract-layout-manager.d.ts +18 -0
  15. package/dist/layout/advanced-layout-manager.d.ts +15 -0
  16. package/dist/layout/function/pin-to-bottom.layout-function.d.ts +4 -0
  17. package/dist/layout/function/redraw-all.layout-function.d.ts +4 -0
  18. package/dist/layout/function/reposition-borders.layout-function.d.ts +4 -0
  19. package/dist/layout/function/reposition-cutoffs.layout-function.d.ts +4 -0
  20. package/dist/layout/function/resize-canvas.layout-function.d.ts +4 -0
  21. package/dist/layout/function/stack-objects.layout-function.d.ts +11 -0
  22. package/dist/layout/function/update-object-dimensions.layout-function.d.ts +4 -0
  23. package/dist/layout/layout-manager.enum.d.ts +5 -0
  24. package/dist/layout/layout-manager.interface.d.ts +13 -0
  25. package/dist/layout/standard-layout-manager.d.ts +36 -0
  26. package/dist/mutator/mutable-background-color.interface.d.ts +15 -0
  27. package/dist/mutator/mutable-color.interface.d.ts +6 -0
  28. package/dist/mutator/mutable-image.interface.d.ts +28 -0
  29. package/dist/mutator/mutable-position.interface.d.ts +33 -0
  30. package/dist/mutator/mutable-text-style.interface.d.ts +149 -0
  31. package/dist/mutator/mutable-text.interface.d.ts +40 -0
  32. package/dist/object/abstract-canvas-object.d.ts +155 -0
  33. package/dist/object/canvas-object-data.d.ts +23 -0
  34. package/dist/object/canvas-object.interface.d.ts +96 -0
  35. package/dist/object/impl/border.d.ts +60 -0
  36. package/dist/object/impl/cutoff.d.ts +60 -0
  37. package/dist/object/impl/horizontal-rule.d.ts +89 -0
  38. package/dist/object/impl/image.d.ts +82 -0
  39. package/dist/object/impl/rectangle.d.ts +59 -0
  40. package/dist/object/impl/text.d.ts +255 -0
  41. package/dist/object/impl/vertical-rule.d.ts +89 -0
  42. package/dist/profile/canvas-profile.interface.d.ts +22 -0
  43. package/dist/profile/default-canvas-profile.d.ts +23 -0
  44. package/dist/types/canvas-dimension-restrictions.interface.d.ts +14 -0
  45. package/dist/types/canvas-dimensions.interface.d.ts +21 -0
  46. package/dist/types/canvas-state.interface.d.ts +11 -0
  47. package/dist/types/dimension-restrictions.interface.d.ts +6 -0
  48. package/dist/types/image-type.enum.d.ts +6 -0
  49. package/dist/types/margin.interface.d.ts +6 -0
  50. package/dist/types/object-dimensions.interface.d.ts +23 -0
  51. package/dist/types/object-type.enum.d.ts +10 -0
  52. package/dist/types/overflow.interface.d.ts +4 -0
  53. package/dist/types/position.interface.d.ts +6 -0
  54. package/dist/types/rect.interface.d.ts +6 -0
  55. package/dist/types/selection-data.interface.d.ts +19 -0
  56. package/dist/types/text-alignment.interface.d.ts +1 -0
  57. package/package.json +32 -0
  58. package/readme.md +43 -0
@@ -0,0 +1,96 @@
1
+ import { Observable } from "rxjs";
2
+ import { IMargin, IObjectDimensions, ObjectType } from "..";
3
+ import { CanvasObjectData } from "./canvas-object-data";
4
+ /**
5
+ * An object rendered on the {@link IInteractiveCanvas Interactive Canvas}.
6
+ */
7
+ export interface ICanvasObject {
8
+ /**
9
+ * Get the field id.
10
+ */
11
+ getId(): string;
12
+ /**
13
+ * Get the field type.
14
+ */
15
+ getType(): ObjectType;
16
+ /**
17
+ * Get the field description, a user-friendly version of Type.
18
+ */
19
+ getDescription(): string;
20
+ /**
21
+ * Set whether this field is to be used for the sort caption.
22
+ */
23
+ setSortCaption(value: boolean): void;
24
+ /**
25
+ * True if this field is a sort caption.
26
+ */
27
+ isSortCaption(): boolean;
28
+ /**
29
+ * Get object dimensions.
30
+ * @see IObjectDimensions.
31
+ */
32
+ getDimensions(): IObjectDimensions;
33
+ /**
34
+ * Get an observable for the field dimensions.
35
+ */
36
+ getDimensions$(): Observable<IObjectDimensions>;
37
+ /**
38
+ * Get the component margin.
39
+ */
40
+ getMargin(): IMargin;
41
+ /**
42
+ * Set component margin.
43
+ * @param margin New margin.
44
+ */
45
+ setMargin(margin: IMargin): void;
46
+ /**
47
+ * Get the column width percentage.
48
+ */
49
+ getColumnWidthPercent(): number;
50
+ /**
51
+ * Set column width percentage.
52
+ * @param percent New value.
53
+ */
54
+ setColumnWidthPercent(percent: number): void;
55
+ /**
56
+ * Bring object to front.
57
+ */
58
+ bringToFront(): void;
59
+ /**
60
+ * Bring object forward one place.
61
+ */
62
+ bringForward(): void;
63
+ /**
64
+ * Send object backward one place.
65
+ */
66
+ sendBackward(): void;
67
+ /**
68
+ * Send object to the back.
69
+ */
70
+ sendToBack(): void;
71
+ /**
72
+ * Move the object up in the object list.
73
+ */
74
+ moveUp(): void;
75
+ /**
76
+ * Move the object down in the object list.
77
+ */
78
+ moveDown(): void;
79
+ /**
80
+ * Delete this object, removing it from the canvas.
81
+ */
82
+ delete(): void;
83
+ /**
84
+ * Persist this object, returning a copy of the data block.
85
+ */
86
+ persist(): CanvasObjectData;
87
+ /**
88
+ * Get whether the object is pinned to the bottom of the canvas.
89
+ */
90
+ isPinToBottom(): boolean;
91
+ /**
92
+ * Set whether the object is pinned to the bottom of the canvas.
93
+ * @param value New value.
94
+ */
95
+ setPinToBottom(value?: boolean): void;
96
+ }
@@ -0,0 +1,60 @@
1
+ import { Observable } from "rxjs";
2
+ import { ICanvasObject } from "../canvas-object.interface";
3
+ import { IMutableColor } from "../..";
4
+ import { AbstractCanvasObject } from "../abstract-canvas-object";
5
+ import { InteractiveCanvas } from "../../interactive-canvas.impl";
6
+ import { CanvasObjectData } from "../canvas-object-data";
7
+ import { fabric } from "fabric";
8
+ /**
9
+ * Border field. A rectangle with a stroke width that automatically follows the canvas border.
10
+ */
11
+ export interface IBorder extends ICanvasObject, IMutableColor {
12
+ /**
13
+ * Get the width of the border stroke.
14
+ */
15
+ getStrokeWidth(): number;
16
+ /**
17
+ * Get an observable of the width of the cutoff stroke.
18
+ */
19
+ getStrokeWidth$(): Observable<number>;
20
+ /**
21
+ * Set the border stroke width.
22
+ * @param width New width.
23
+ */
24
+ setStrokeWidth(width: number): void;
25
+ }
26
+ export declare class Border extends AbstractCanvasObject<fabric.Rect> implements IBorder {
27
+ private readonly strokeWidth$;
28
+ constructor(canvas: InteractiveCanvas, fabricObject: fabric.Rect, persistedField?: CanvasObjectData);
29
+ /**
30
+ * @override
31
+ * @inheritDoc
32
+ */
33
+ getColor(): string;
34
+ /**
35
+ * @override
36
+ * @inheritDoc
37
+ */
38
+ setColor(color: string): void;
39
+ /**
40
+ * @override
41
+ * @inheritDoc
42
+ */
43
+ getStrokeWidth(): number;
44
+ /**
45
+ * @override
46
+ * @inheritDoc
47
+ */
48
+ getStrokeWidth$(): Observable<number>;
49
+ /**
50
+ * @override
51
+ * @inheritDoc
52
+ */
53
+ setStrokeWidth(width: number): void;
54
+ updatePosition(): void;
55
+ /**
56
+ * @override
57
+ * @inheritDoc
58
+ */
59
+ protected updateFabricObjectBehavior(): void;
60
+ }
@@ -0,0 +1,60 @@
1
+ import { Observable } from "rxjs";
2
+ import { ICanvasObject } from "../canvas-object.interface";
3
+ import { IMutableColor } from "../..";
4
+ import { AbstractCanvasObject } from "../abstract-canvas-object";
5
+ import { InteractiveCanvas } from "../../interactive-canvas.impl";
6
+ import { CanvasObjectData } from "../canvas-object-data";
7
+ import { fabric } from "fabric";
8
+ /**
9
+ * Cutoff field. A cutoff rule that sits on the bottom of the canvas.
10
+ */
11
+ export interface ICutoff extends ICanvasObject, IMutableColor {
12
+ /**
13
+ * Get the width of the cutoff stroke.
14
+ */
15
+ getStrokeWidth(): number;
16
+ /**
17
+ * Get an observable of the width of the cutoff stroke.
18
+ */
19
+ getStrokeWidth$(): Observable<number>;
20
+ /**
21
+ * Set the cutoff stroke width.
22
+ * @param width New width.
23
+ */
24
+ setStrokeWidth(width: number): void;
25
+ }
26
+ export declare class Cutoff extends AbstractCanvasObject<fabric.Rect> implements ICutoff {
27
+ private readonly strokeWidth$;
28
+ constructor(canvas: InteractiveCanvas, fabricObject: fabric.Rect, persistedField?: CanvasObjectData);
29
+ /**
30
+ * @override
31
+ * @inheritDoc
32
+ */
33
+ getColor(): string;
34
+ /**
35
+ * @override
36
+ * @inheritDoc
37
+ */
38
+ setColor(color: string): void;
39
+ /**
40
+ * @override
41
+ * @inheritDoc
42
+ */
43
+ getStrokeWidth(): number;
44
+ /**
45
+ * @override
46
+ * @inheritDoc
47
+ */
48
+ getStrokeWidth$(): Observable<number>;
49
+ /**
50
+ * @override
51
+ * @inheritDoc
52
+ */
53
+ setStrokeWidth(width: number): void;
54
+ updatePosition(): void;
55
+ /**
56
+ * @override
57
+ * @inheritDoc
58
+ */
59
+ protected updateFabricObjectBehavior(): void;
60
+ }
@@ -0,0 +1,89 @@
1
+ import { Observable } from "rxjs";
2
+ import { ICanvasObject } from "../canvas-object.interface";
3
+ import { IMutableColor, IMutablePosition } from "../..";
4
+ import { AbstractCanvasObject } from "../abstract-canvas-object";
5
+ import { CanvasObjectData } from "../canvas-object-data";
6
+ import { InteractiveCanvas } from "../../interactive-canvas.impl";
7
+ import { fabric } from "fabric";
8
+ /**
9
+ * Horizontal rule. A basic block of color in a thin line across the canvas.
10
+ */
11
+ export interface IHorizontalRule extends ICanvasObject, IMutableColor, IMutablePosition {
12
+ /**
13
+ * Get the width of the rule.
14
+ */
15
+ getStrokeWidth(): number;
16
+ /**
17
+ * Get an observable of the width of the rule.
18
+ */
19
+ getStrokeWidth$(): Observable<number>;
20
+ /**
21
+ * Set the rule width.
22
+ * @param width New width.
23
+ */
24
+ setStrokeWidth(width: number): void;
25
+ }
26
+ export declare class HorizontalRule extends AbstractCanvasObject<fabric.Rect> implements IHorizontalRule {
27
+ private readonly strokeWidth$;
28
+ constructor(canvas: InteractiveCanvas, fabricObject: fabric.Rect, persistedField?: CanvasObjectData);
29
+ /**
30
+ * @override
31
+ * @inheritDoc
32
+ */
33
+ getStrokeWidth(): number;
34
+ /**
35
+ * @override
36
+ * @inheritDoc
37
+ */
38
+ getStrokeWidth$(): Observable<number>;
39
+ /**
40
+ * @override
41
+ * @inheritDoc
42
+ */
43
+ setStrokeWidth(value: number): void;
44
+ /**
45
+ * @override
46
+ * @inheritDoc
47
+ */
48
+ getColor(): string;
49
+ /**
50
+ * @override
51
+ * @inheritDoc
52
+ */
53
+ setColor(color: string): void;
54
+ /**
55
+ * @override
56
+ * @inheritDoc
57
+ */
58
+ centerHorizontally(): void;
59
+ /**
60
+ * @override
61
+ * @inheritDoc
62
+ */
63
+ centerVertically(): void;
64
+ /**
65
+ * @override
66
+ * @inheritDoc
67
+ */
68
+ setHeight(height: number): void;
69
+ /**
70
+ * @override
71
+ * @inheritDoc
72
+ */
73
+ nudgeUp(): void;
74
+ /**
75
+ * @override
76
+ * @inheritDoc
77
+ */
78
+ nudgeDown(): void;
79
+ /**
80
+ * @override
81
+ * @inheritDoc
82
+ */
83
+ nudgeLeft(): void;
84
+ /**
85
+ * @override
86
+ * @inheritDoc
87
+ */
88
+ nudgeRight(): void;
89
+ }
@@ -0,0 +1,82 @@
1
+ import { IDimensionRestrictions, IMutableImage, IMutablePosition, IPosition } from "../..";
2
+ import { ICanvasObject } from "../canvas-object.interface";
3
+ import { AbstractCanvasObject } from "../abstract-canvas-object";
4
+ import { InteractiveCanvas } from "../../interactive-canvas.impl";
5
+ import { Observable } from "rxjs";
6
+ import { CanvasObjectData } from "../canvas-object-data";
7
+ import { fabric } from "fabric";
8
+ /**
9
+ * Image field. Displays a custom image on the canvas.
10
+ */
11
+ export interface IImage extends ICanvasObject, IMutableImage, IMutablePosition {
12
+ }
13
+ export declare class Image extends AbstractCanvasObject<fabric.Image> implements IImage {
14
+ private readonly DEFAULT_RESTRICTIONS;
15
+ private layoutWidth;
16
+ private readonly imageUrl$;
17
+ constructor(canvas: InteractiveCanvas, fabricObject: fabric.Image, persistedField?: CanvasObjectData);
18
+ /**
19
+ * @override
20
+ * @inheritDoc
21
+ */
22
+ getImageUrl(): string;
23
+ /**
24
+ * @override
25
+ * @inheritDoc
26
+ */
27
+ getImageUrl$(): Observable<string>;
28
+ /**
29
+ * @override
30
+ * @inheritDoc
31
+ */
32
+ setImageUrl(url: string): void;
33
+ /**
34
+ * @override
35
+ * @inheritDoc
36
+ */
37
+ setImageWidth(px: number, sizeRestrictions?: IDimensionRestrictions): number;
38
+ /**
39
+ * @override
40
+ * @inheritDoc
41
+ */
42
+ centerHorizontally(): void;
43
+ /**
44
+ * @override
45
+ * @inheritDoc
46
+ */
47
+ centerVertically(): void;
48
+ /**
49
+ * @override
50
+ * @inheritDoc
51
+ */
52
+ setHeight(height: number): void;
53
+ /**
54
+ * @override
55
+ * @inheritDoc
56
+ */
57
+ nudgeUp(): void;
58
+ /**
59
+ * @override
60
+ * @inheritDoc
61
+ */
62
+ nudgeDown(): void;
63
+ /**
64
+ * @override
65
+ * @inheritDoc
66
+ */
67
+ nudgeLeft(): void;
68
+ /**
69
+ * @override
70
+ * @inheritDoc
71
+ */
72
+ nudgeRight(): void;
73
+ /**
74
+ * @override
75
+ * @inheritDoc
76
+ */
77
+ setPosition(position: IPosition): void;
78
+ private centerHorizontallyInLayoutWidth;
79
+ private setCanvasImage;
80
+ private getMinWidthBasedOnMinHeight;
81
+ private getMaxWidthBasedOnMaxHeight;
82
+ }
@@ -0,0 +1,59 @@
1
+ import { ICanvasObject } from "../canvas-object.interface";
2
+ import { IMutableColor, IMutablePosition } from "../..";
3
+ import { AbstractCanvasObject } from "../abstract-canvas-object";
4
+ import { InteractiveCanvas } from "../../interactive-canvas.impl";
5
+ import { CanvasObjectData } from "../canvas-object-data";
6
+ import { fabric } from "fabric";
7
+ /**
8
+ * Rectangle field. A basic block of color that can be moved and scaled.
9
+ */
10
+ export interface IRectangle extends ICanvasObject, IMutableColor, IMutablePosition {
11
+ }
12
+ export declare class Rectangle extends AbstractCanvasObject<fabric.Rect> implements IRectangle {
13
+ constructor(canvas: InteractiveCanvas, fabricObject: fabric.Rect, persistedField?: CanvasObjectData);
14
+ /**
15
+ * @override
16
+ * @inheritDoc
17
+ */
18
+ getColor(): string;
19
+ /**
20
+ * @override
21
+ * @inheritDoc
22
+ */
23
+ setColor(color: string): void;
24
+ /**
25
+ * @override
26
+ * @inheritDoc
27
+ */
28
+ centerHorizontally(): void;
29
+ /**
30
+ * @override
31
+ * @inheritDoc
32
+ */
33
+ centerVertically(): void;
34
+ /**
35
+ * @override
36
+ * @inheritDoc
37
+ */
38
+ setHeight(height: number): void;
39
+ /**
40
+ * @override
41
+ * @inheritDoc
42
+ */
43
+ nudgeUp(): void;
44
+ /**
45
+ * @override
46
+ * @inheritDoc
47
+ */
48
+ nudgeDown(): void;
49
+ /**
50
+ * @override
51
+ * @inheritDoc
52
+ */
53
+ nudgeLeft(): void;
54
+ /**
55
+ * @override
56
+ * @inheritDoc
57
+ */
58
+ nudgeRight(): void;
59
+ }
@@ -0,0 +1,255 @@
1
+ import { Observable } from "rxjs";
2
+ import { IFont, IMutableBackgroundColor, IMutableColor, IMutablePosition, IMutableText, IMutableTextStyle, ITextSelection, TextAlignment } from "../..";
3
+ import { ICanvasObject } from "../canvas-object.interface";
4
+ import { AbstractCanvasObject } from "../abstract-canvas-object";
5
+ import { InteractiveCanvas } from "../../interactive-canvas.impl";
6
+ import { CanvasObjectData } from "../canvas-object-data";
7
+ import { fabric } from "fabric";
8
+ /**
9
+ * Text field. Displays customizable text.
10
+ */
11
+ export interface IText extends ICanvasObject, IMutableColor, IMutableText, IMutableTextStyle, IMutablePosition, IMutableBackgroundColor {
12
+ /**
13
+ * @return Whether this text object should resize the canvas.
14
+ */
15
+ isResizeCanvas(): boolean;
16
+ /**
17
+ * Set whether this text object should resize the canvas.
18
+ */
19
+ setResizeCanvas(value: boolean): void;
20
+ /**
21
+ * Focus input on the text object.
22
+ */
23
+ focus(): void;
24
+ /**
25
+ * @return Is the text box currently being edited.
26
+ */
27
+ isEditing(): boolean;
28
+ /**
29
+ * Start editing the text.
30
+ */
31
+ enterEditing(): void;
32
+ /**
33
+ * Select all text.
34
+ */
35
+ selectAllText(): void;
36
+ /**
37
+ * Set the prefill type used for this text field.
38
+ */
39
+ setPrefillType(prefillType: string): void;
40
+ /**
41
+ * Get the prefill type used for this text field.
42
+ */
43
+ getPrefillType(): string;
44
+ }
45
+ export declare class Text extends AbstractCanvasObject<fabric.Textbox> implements IText {
46
+ private readonly fontLibrary;
47
+ private baseComponentHeight;
48
+ private readonly text$;
49
+ private readonly textSelection$;
50
+ constructor(canvas: InteractiveCanvas, fabricObject: fabric.Textbox, persistedField?: CanvasObjectData);
51
+ /**
52
+ * @override
53
+ * @inheritDoc
54
+ */
55
+ getText(): string;
56
+ /**
57
+ * @override
58
+ * @inheritDoc
59
+ */
60
+ getText$(): Observable<string>;
61
+ /**
62
+ * @override
63
+ * @inheritDoc
64
+ */
65
+ setText(text: string): void;
66
+ /**
67
+ * @override
68
+ * @inheritDoc
69
+ */
70
+ replaceText(target: string, replacement: string): void;
71
+ /**
72
+ * @override
73
+ * @inheritDoc
74
+ */
75
+ getColor(): string;
76
+ /**
77
+ * @override
78
+ * @inheritDoc
79
+ */
80
+ setColor(color: string): void;
81
+ /**
82
+ * @override
83
+ * @inheritDoc
84
+ */
85
+ getTextSelection(): ITextSelection;
86
+ /**
87
+ * @override
88
+ * @inheritDoc
89
+ */
90
+ getTextSelection$(): Observable<ITextSelection>;
91
+ /**
92
+ * @override
93
+ * @inheritDoc
94
+ */
95
+ setTextAlign(alignment: TextAlignment): void;
96
+ /**
97
+ * @override
98
+ * @inheritDoc
99
+ */
100
+ setCharSpacing(spacing: number): void;
101
+ /**
102
+ * @override
103
+ * @inheritDoc
104
+ */
105
+ setLineHeight(height: number): void;
106
+ /**
107
+ * @override
108
+ * @inheritDoc
109
+ */
110
+ setBold(bold?: boolean): void;
111
+ /**
112
+ * @override
113
+ * @inheritDoc
114
+ */
115
+ setItalic(italic?: boolean): void;
116
+ /**
117
+ * @override
118
+ * @inheritDoc
119
+ */
120
+ setStrikethrough(strikethrough?: boolean): void;
121
+ /**
122
+ * @override
123
+ * @inheritDoc
124
+ */
125
+ setUnderline(underline?: boolean): void;
126
+ /**
127
+ * @override
128
+ * @inheritDoc
129
+ */
130
+ setFont(font: IFont): void;
131
+ /**
132
+ * @override
133
+ * @inheritDoc
134
+ */
135
+ setFontSize(fontSize: number): void;
136
+ /**
137
+ * @override
138
+ * @inheritDoc
139
+ */
140
+ setTextBackgroundColor(color: string): void;
141
+ /**
142
+ * @override
143
+ * @inheritDoc
144
+ */
145
+ centerHorizontally(): void;
146
+ /**
147
+ * @override
148
+ * @inheritDoc
149
+ */
150
+ centerVertically(): void;
151
+ /**
152
+ * @override
153
+ * @inheritDoc
154
+ */
155
+ setHeight(height: number): void;
156
+ /**
157
+ * @override
158
+ * @inheritDoc
159
+ */
160
+ nudgeUp(): void;
161
+ /**
162
+ * @override
163
+ * @inheritDoc
164
+ */
165
+ nudgeDown(): void;
166
+ /**
167
+ * @override
168
+ * @inheritDoc
169
+ */
170
+ nudgeLeft(): void;
171
+ /**
172
+ * @override
173
+ * @inheritDoc
174
+ */
175
+ nudgeRight(): void;
176
+ /**
177
+ * @override
178
+ * @inheritDoc
179
+ */
180
+ getBackgroundColor(): string;
181
+ /**
182
+ * @override
183
+ * @inheritDoc
184
+ */
185
+ setBackgroundColor(color: string): void;
186
+ /**
187
+ * @override
188
+ * @inheritDoc
189
+ */
190
+ setPrefillType(prefillType: string): void;
191
+ /**
192
+ * @override
193
+ * @inheritDoc
194
+ */
195
+ getPrefillType(): string;
196
+ /**
197
+ * @override
198
+ * @inheritDoc
199
+ */
200
+ isResizeCanvas(): boolean;
201
+ /**
202
+ * @override
203
+ * @inheritDoc
204
+ */
205
+ setResizeCanvas(value: boolean): void;
206
+ /**
207
+ * @override
208
+ * @inheritDoc
209
+ */
210
+ focus(): void;
211
+ /**
212
+ * @override
213
+ * @inheritDoc
214
+ */
215
+ isEditing(): boolean;
216
+ /**
217
+ * @override
218
+ * @inheritDoc
219
+ */
220
+ enterEditing(): void;
221
+ /**
222
+ * @override
223
+ * @inheritDoc
224
+ */
225
+ selectAllText(): void;
226
+ /**
227
+ * @override
228
+ * @inheritDoc
229
+ */
230
+ isBulleted(): boolean;
231
+ /**
232
+ * @override
233
+ * @inheritDoc
234
+ */
235
+ enableBullets(): void;
236
+ /**
237
+ * @override
238
+ * @inheritDoc
239
+ */
240
+ disableBullets(): void;
241
+ getSizeIncreaseSinceCreation(): number;
242
+ private removeBullets;
243
+ private applyBulletListMonkeyPatches;
244
+ /**
245
+ * @override
246
+ * @inheritDoc
247
+ */
248
+ protected updateFabricObjectBehavior(): void;
249
+ protected onTextChange(): void;
250
+ protected onDelete(): void;
251
+ protected onSelectionChange(): void;
252
+ private hasTextSelection;
253
+ private updateTextSelection;
254
+ private notifyCanvasOfTextChanges;
255
+ }