@leapfrog/interactive-canvas 0.1.0 → 1.0.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 (61) hide show
  1. package/dist/{interactive-canvas.impl.d.ts → abstract-interactive-canvas.d.ts} +340 -305
  2. package/dist/dimensions/pixel-canvas-dimensions.d.ts +13 -13
  3. package/dist/dimensions/print-6-col-canvas-dimensions.d.ts +18 -18
  4. package/dist/dimensions/print-8-col-canvas-dimensions.d.ts +18 -18
  5. package/dist/font/font-library.d.ts +27 -22
  6. package/dist/font/font-library.interface.d.ts +24 -20
  7. package/dist/font/font.interface.d.ts +20 -20
  8. package/dist/font/unknown-font.d.ts +6 -6
  9. package/dist/headless-interactive-canvas.d.ts +9 -0
  10. package/dist/index.d.ts +49 -47
  11. package/dist/interactive-canvas.d.ts +8 -0
  12. package/dist/interactive-canvas.es.js +3193 -0
  13. package/dist/interactive-canvas.interface.d.ts +267 -221
  14. package/dist/interactive-canvas.js +3222 -34
  15. package/dist/layout/abstract-layout-manager.d.ts +17 -18
  16. package/dist/layout/advanced-layout-manager.d.ts +15 -15
  17. package/dist/layout/function/pin-to-bottom.layout-function.d.ts +4 -4
  18. package/dist/layout/function/redraw-all.layout-function.d.ts +4 -4
  19. package/dist/layout/function/reposition-borders.layout-function.d.ts +4 -4
  20. package/dist/layout/function/reposition-cutoffs.layout-function.d.ts +4 -4
  21. package/dist/layout/function/resize-canvas.layout-function.d.ts +4 -4
  22. package/dist/layout/function/stack-objects.layout-function.d.ts +11 -11
  23. package/dist/layout/function/update-object-dimensions.layout-function.d.ts +4 -4
  24. package/dist/layout/layout-manager.enum.d.ts +5 -5
  25. package/dist/layout/layout-manager.interface.d.ts +13 -13
  26. package/dist/layout/standard-layout-manager.d.ts +35 -36
  27. package/dist/mutator/mutable-background-color.interface.d.ts +15 -15
  28. package/dist/mutator/mutable-color.interface.d.ts +6 -6
  29. package/dist/mutator/mutable-image.interface.d.ts +28 -28
  30. package/dist/mutator/mutable-position.interface.d.ts +33 -33
  31. package/dist/mutator/mutable-text-style.interface.d.ts +163 -149
  32. package/dist/mutator/mutable-text.interface.d.ts +40 -40
  33. package/dist/object/abstract-canvas-object.d.ts +155 -155
  34. package/dist/object/canvas-object-data.d.ts +23 -23
  35. package/dist/object/canvas-object.interface.d.ts +96 -96
  36. package/dist/object/impl/border.d.ts +59 -60
  37. package/dist/object/impl/cutoff.d.ts +59 -60
  38. package/dist/object/impl/horizontal-rule.d.ts +88 -89
  39. package/dist/object/impl/image.d.ts +81 -82
  40. package/dist/object/impl/rectangle.d.ts +58 -59
  41. package/dist/object/impl/text.d.ts +264 -255
  42. package/dist/object/impl/vertical-rule.d.ts +88 -89
  43. package/dist/profile/canvas-profile.interface.d.ts +22 -22
  44. package/dist/profile/default-canvas-profile.d.ts +23 -23
  45. package/dist/types/canvas-dimension-restrictions.interface.d.ts +14 -14
  46. package/dist/types/canvas-dimensions.interface.d.ts +21 -21
  47. package/dist/types/canvas-state.interface.d.ts +11 -11
  48. package/dist/types/dimension-restrictions.interface.d.ts +6 -6
  49. package/dist/types/image-type.enum.d.ts +6 -6
  50. package/dist/types/margin.interface.d.ts +6 -6
  51. package/dist/types/object-dimensions.interface.d.ts +23 -23
  52. package/dist/types/object-type.enum.d.ts +10 -10
  53. package/dist/types/overflow.interface.d.ts +4 -4
  54. package/dist/types/position.interface.d.ts +6 -6
  55. package/dist/types/rect.interface.d.ts +6 -6
  56. package/dist/types/selection-data.interface.d.ts +19 -19
  57. package/dist/types/text-alignment.interface.d.ts +1 -1
  58. package/package.json +7 -9
  59. package/readme.md +12 -1
  60. package/dist/interactive-canvas.js.map +0 -1
  61. package/dist/interactive-canvas.nomin.js +0 -57456
@@ -1,155 +1,155 @@
1
- import { Observable } from "rxjs";
2
- import { ICanvasProfile, ILayoutManager, IMargin, IObjectDimensions, IOverflow, IPosition, ObjectType } from "..";
3
- import { InteractiveCanvas } from "../interactive-canvas.impl";
4
- import { ICanvasObject } from "./canvas-object.interface";
5
- import { CanvasObjectData } from "./canvas-object-data";
6
- import { Object } from "fabric/fabric-impl";
7
- export declare abstract class AbstractCanvasObject<T extends Object> implements ICanvasObject {
8
- protected pinToBottomDistance: number;
9
- protected canvas: InteractiveCanvas;
10
- protected fabricObject: T;
11
- protected data: CanvasObjectData;
12
- private readonly dimensions$;
13
- /**
14
- * Create a new instance.
15
- * @param type Object type.
16
- * @param canvas Interactive canvas that the field will be rendered on.
17
- * @param fabricObject The fabric object to bind this field to.
18
- * @param data Existing persisted field data to load from, if applicable.
19
- */
20
- protected constructor(type: ObjectType, canvas: InteractiveCanvas, fabricObject: any, data?: CanvasObjectData);
21
- /**
22
- * @override
23
- * @inheritDoc
24
- */
25
- getId(): string;
26
- /**
27
- * @override
28
- * @inheritDoc
29
- */
30
- getType(): ObjectType;
31
- /**
32
- * @override
33
- * @inheritDoc
34
- */
35
- getDescription(): string;
36
- /**
37
- * @override
38
- * @inheritDoc
39
- */
40
- setSortCaption(value: boolean): void;
41
- /**
42
- * @override
43
- * @inheritDoc
44
- */
45
- isSortCaption(): boolean;
46
- /**
47
- * @override
48
- * @inheritDoc
49
- */
50
- getDimensions(): IObjectDimensions;
51
- /**
52
- * @override
53
- * @inheritDoc
54
- */
55
- getDimensions$(): Observable<IObjectDimensions>;
56
- /**
57
- * @override
58
- * @inheritDoc
59
- */
60
- getMargin(): IMargin;
61
- /**
62
- * @override
63
- * @inheritDoc
64
- */
65
- setMargin(margin: IMargin): void;
66
- /**
67
- * @override
68
- * @inheritDoc
69
- */
70
- getColumnWidthPercent(): number;
71
- /**
72
- * @override
73
- * @inheritDoc
74
- */
75
- setColumnWidthPercent(percent: number): void;
76
- /**
77
- * @override
78
- * @inheritDoc
79
- */
80
- bringForward(): void;
81
- /**
82
- * @override
83
- * @inheritDoc
84
- */
85
- bringToFront(): void;
86
- /**
87
- * @override
88
- * @inheritDoc
89
- */
90
- sendBackward(): void;
91
- /**
92
- * @override
93
- * @inheritDoc
94
- */
95
- sendToBack(): void;
96
- /**
97
- * @override
98
- * @inheritDoc
99
- */
100
- moveUp(): void;
101
- /**
102
- * @override
103
- * @inheritDoc
104
- */
105
- moveDown(): void;
106
- /**
107
- * @override
108
- * @inheritDoc
109
- */
110
- delete(): void;
111
- /**
112
- * @override
113
- * @inheritDoc
114
- */
115
- persist(): CanvasObjectData;
116
- /**
117
- * @override
118
- * @inheritDoc
119
- */
120
- isPinToBottom(): boolean;
121
- /**
122
- * @override
123
- * @inheritDoc
124
- */
125
- setPinToBottom(value?: boolean): void;
126
- /**
127
- * Get the underlying fabric object.
128
- * (Internal use only, do not expose this outside the canvas module).
129
- */
130
- getFabricObjectInternal(): T;
131
- setPosition(position: IPosition): void;
132
- setCoords(): void;
133
- updateDimensions(): void;
134
- getBoundingBox(): {
135
- top: number;
136
- left: number;
137
- width: number;
138
- height: number;
139
- };
140
- moveToPinnedPosition(): void;
141
- protected updatePinToBottomDistance(): void;
142
- protected redraw(): void;
143
- protected onProfileChange(profile: ICanvasProfile): void;
144
- protected onLayoutManagerChange(layoutManager: ILayoutManager): void;
145
- protected onMove(event: any): void;
146
- protected onRotate(event: any): void;
147
- protected onScale(event: any): void;
148
- protected onDelete(): void;
149
- protected preventLeavingCanvas(): void;
150
- protected getCanvasOverflow(): IOverflow;
151
- protected centerHorizontallyInternal(): void;
152
- protected centerVerticallyInternal(): void;
153
- protected nudgeInternal(x?: number, y?: number): void;
154
- protected updateFabricObjectBehavior(): void;
155
- }
1
+ import { Observable } from "rxjs";
2
+ import { ICanvasProfile, ILayoutManager, IMargin, IObjectDimensions, IOverflow, IPosition, ObjectType } from "..";
3
+ import { ICanvasObject } from "./canvas-object.interface";
4
+ import { CanvasObjectData } from "./canvas-object-data";
5
+ import { IInteractiveCanvas } from "../interactive-canvas.interface";
6
+ import { Object } from "fabric/fabric-impl";
7
+ export declare abstract class AbstractCanvasObject<T extends Object> implements ICanvasObject {
8
+ protected pinToBottomDistance: number;
9
+ protected canvas: IInteractiveCanvas;
10
+ protected fabricObject: T;
11
+ protected data: CanvasObjectData;
12
+ private readonly dimensions$;
13
+ /**
14
+ * Create a new instance.
15
+ * @param type Object type.
16
+ * @param canvas Interactive canvas that the field will be rendered on.
17
+ * @param fabricObject The fabric object to bind this field to.
18
+ * @param data Existing persisted field data to load from, if applicable.
19
+ */
20
+ protected constructor(type: ObjectType, canvas: IInteractiveCanvas, fabricObject: any, data?: CanvasObjectData);
21
+ /**
22
+ * @override
23
+ * @inheritDoc
24
+ */
25
+ getId(): string;
26
+ /**
27
+ * @override
28
+ * @inheritDoc
29
+ */
30
+ getType(): ObjectType;
31
+ /**
32
+ * @override
33
+ * @inheritDoc
34
+ */
35
+ getDescription(): string;
36
+ /**
37
+ * @override
38
+ * @inheritDoc
39
+ */
40
+ setSortCaption(value: boolean): void;
41
+ /**
42
+ * @override
43
+ * @inheritDoc
44
+ */
45
+ isSortCaption(): boolean;
46
+ /**
47
+ * @override
48
+ * @inheritDoc
49
+ */
50
+ getDimensions(): IObjectDimensions;
51
+ /**
52
+ * @override
53
+ * @inheritDoc
54
+ */
55
+ getDimensions$(): Observable<IObjectDimensions>;
56
+ /**
57
+ * @override
58
+ * @inheritDoc
59
+ */
60
+ getMargin(): IMargin;
61
+ /**
62
+ * @override
63
+ * @inheritDoc
64
+ */
65
+ setMargin(margin: IMargin): void;
66
+ /**
67
+ * @override
68
+ * @inheritDoc
69
+ */
70
+ getColumnWidthPercent(): number;
71
+ /**
72
+ * @override
73
+ * @inheritDoc
74
+ */
75
+ setColumnWidthPercent(percent: number): void;
76
+ /**
77
+ * @override
78
+ * @inheritDoc
79
+ */
80
+ bringForward(): void;
81
+ /**
82
+ * @override
83
+ * @inheritDoc
84
+ */
85
+ bringToFront(): void;
86
+ /**
87
+ * @override
88
+ * @inheritDoc
89
+ */
90
+ sendBackward(): void;
91
+ /**
92
+ * @override
93
+ * @inheritDoc
94
+ */
95
+ sendToBack(): void;
96
+ /**
97
+ * @override
98
+ * @inheritDoc
99
+ */
100
+ moveUp(): void;
101
+ /**
102
+ * @override
103
+ * @inheritDoc
104
+ */
105
+ moveDown(): void;
106
+ /**
107
+ * @override
108
+ * @inheritDoc
109
+ */
110
+ delete(): void;
111
+ /**
112
+ * @override
113
+ * @inheritDoc
114
+ */
115
+ persist(): CanvasObjectData;
116
+ /**
117
+ * @override
118
+ * @inheritDoc
119
+ */
120
+ isPinToBottom(): boolean;
121
+ /**
122
+ * @override
123
+ * @inheritDoc
124
+ */
125
+ setPinToBottom(value?: boolean): void;
126
+ /**
127
+ * Get the underlying fabric object.
128
+ * (Internal use only, do not expose this outside the canvas module).
129
+ */
130
+ getFabricObjectInternal(): T;
131
+ setPosition(position: IPosition): void;
132
+ setCoords(): void;
133
+ updateDimensions(): void;
134
+ getBoundingBox(): {
135
+ top: number;
136
+ left: number;
137
+ width: number;
138
+ height: number;
139
+ };
140
+ moveToPinnedPosition(): void;
141
+ protected updatePinToBottomDistance(): void;
142
+ protected redraw(): void;
143
+ protected onProfileChange(profile: ICanvasProfile): void;
144
+ protected onLayoutManagerChange(layoutManager: ILayoutManager): void;
145
+ protected onMove(event: any): void;
146
+ protected onRotate(event: any): void;
147
+ protected onScale(event: any): void;
148
+ protected onDelete(): void;
149
+ protected preventLeavingCanvas(): void;
150
+ protected getCanvasOverflow(): IOverflow;
151
+ protected centerHorizontallyInternal(): void;
152
+ protected centerVerticallyInternal(): void;
153
+ protected nudgeInternal(x?: number, y?: number): void;
154
+ protected updateFabricObjectBehavior(): void;
155
+ }
@@ -1,23 +1,23 @@
1
- import { IMargin, ObjectType } from "..";
2
- /**
3
- * Data for a persisted canvas object.
4
- */
5
- export declare class CanvasObjectData {
6
- type: ObjectType;
7
- id: string;
8
- fieldName?: string;
9
- pinToBottom?: boolean;
10
- margin?: IMargin;
11
- columnWidthPercent?: number;
12
- color?: string;
13
- strokeWidth?: number;
14
- editable?: boolean;
15
- prefillType: string;
16
- sortCaption?: boolean;
17
- resizeCanvas: boolean;
18
- placeholder?: string;
19
- userText?: string;
20
- bulleted?: boolean;
21
- imagePath?: string;
22
- constructor(type: ObjectType, id: string);
23
- }
1
+ import { IMargin, ObjectType } from "..";
2
+ /**
3
+ * Data for a persisted canvas object.
4
+ */
5
+ export declare class CanvasObjectData {
6
+ type: ObjectType;
7
+ id: string;
8
+ fieldName?: string;
9
+ pinToBottom?: boolean;
10
+ margin?: IMargin;
11
+ columnWidthPercent?: number;
12
+ color?: string;
13
+ strokeWidth?: number;
14
+ editable?: boolean;
15
+ prefillType: string;
16
+ sortCaption?: boolean;
17
+ resizeCanvas: boolean;
18
+ placeholder?: string;
19
+ userText?: string;
20
+ bulleted?: boolean;
21
+ imagePath?: string;
22
+ constructor(type: ObjectType, id: string);
23
+ }
@@ -1,96 +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
- }
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
+ }
@@ -1,60 +1,59 @@
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
- }
1
+ import { Observable } from "rxjs";
2
+ import { ICanvasObject } from "../canvas-object.interface";
3
+ import { IInteractiveCanvas, IMutableColor } from "../..";
4
+ import { AbstractCanvasObject } from "../abstract-canvas-object";
5
+ import { CanvasObjectData } from "../canvas-object-data";
6
+ import { fabric } from "fabric";
7
+ /**
8
+ * Border field. A rectangle with a stroke width that automatically follows the canvas border.
9
+ */
10
+ export interface IBorder extends ICanvasObject, IMutableColor {
11
+ /**
12
+ * Get the width of the border stroke.
13
+ */
14
+ getStrokeWidth(): number;
15
+ /**
16
+ * Get an observable of the width of the cutoff stroke.
17
+ */
18
+ getStrokeWidth$(): Observable<number>;
19
+ /**
20
+ * Set the border stroke width.
21
+ * @param width New width.
22
+ */
23
+ setStrokeWidth(width: number): void;
24
+ }
25
+ export declare class Border extends AbstractCanvasObject<fabric.Rect> implements IBorder {
26
+ private readonly strokeWidth$;
27
+ constructor(canvas: IInteractiveCanvas, fabricObject: fabric.Rect, persistedField?: CanvasObjectData);
28
+ /**
29
+ * @override
30
+ * @inheritDoc
31
+ */
32
+ getColor(): string;
33
+ /**
34
+ * @override
35
+ * @inheritDoc
36
+ */
37
+ setColor(color: string): void;
38
+ /**
39
+ * @override
40
+ * @inheritDoc
41
+ */
42
+ getStrokeWidth(): number;
43
+ /**
44
+ * @override
45
+ * @inheritDoc
46
+ */
47
+ getStrokeWidth$(): Observable<number>;
48
+ /**
49
+ * @override
50
+ * @inheritDoc
51
+ */
52
+ setStrokeWidth(width: number): void;
53
+ updatePosition(): void;
54
+ /**
55
+ * @override
56
+ * @inheritDoc
57
+ */
58
+ protected updateFabricObjectBehavior(): void;
59
+ }