@leapfrog/interactive-canvas 2.0.25-beta-13 → 2.0.25-beta-15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstract-interactive-canvas.d.ts +2 -0
- package/dist/interactive-canvas.d.ts +0 -1
- package/dist/interactive-canvas.es.js +255 -138
- package/dist/interactive-canvas.js +255 -138
- package/dist/layout/advanced-layout-manager.d.ts +3 -0
- package/dist/layout/function/stack-objects.layout-function.d.ts +2 -1
- package/dist/layout/standard-layout-manager.d.ts +1 -0
- package/dist/object/abstract-canvas-object.d.ts +7 -0
- package/dist/object/impl/text.d.ts +14 -0
- package/package.json +1 -1
|
@@ -205,6 +205,13 @@ export declare abstract class AbstractCanvasObject<T extends FabricObject> imple
|
|
|
205
205
|
protected onDelete(): void;
|
|
206
206
|
protected preventLeavingCanvas(): void;
|
|
207
207
|
protected getCanvasOverflow(): IOverflow;
|
|
208
|
+
protected getCanvasOverflowForBoundaryPrevention(): IOverflow;
|
|
209
|
+
protected getSimpleBoundingBox(): {
|
|
210
|
+
top: number;
|
|
211
|
+
left: number;
|
|
212
|
+
width: number;
|
|
213
|
+
height: number;
|
|
214
|
+
};
|
|
208
215
|
protected centerHorizontallyInternal(): void;
|
|
209
216
|
protected centerVerticallyInternal(): void;
|
|
210
217
|
protected nudgeInternal(x?: number, y?: number): void;
|
|
@@ -63,6 +63,8 @@ export declare class Text extends AbstractCanvasObject<ExtendedFabricTextbox> im
|
|
|
63
63
|
private readonly text$;
|
|
64
64
|
private readonly textSelection$;
|
|
65
65
|
static readonly NEW_LINE: string;
|
|
66
|
+
private notifyCanvasTimeout;
|
|
67
|
+
private readonly NOTIFY_DELAY_MS;
|
|
66
68
|
constructor(canvas: IInteractiveCanvas, fabricObject: fabric.Textbox, persistedField?: CanvasObjectData);
|
|
67
69
|
/**
|
|
68
70
|
* @override
|
|
@@ -321,4 +323,16 @@ export declare class Text extends AbstractCanvasObject<ExtendedFabricTextbox> im
|
|
|
321
323
|
private hasTextSelection;
|
|
322
324
|
private updateTextSelection;
|
|
323
325
|
private notifyCanvasOfTextChanges;
|
|
326
|
+
/**
|
|
327
|
+
* @override
|
|
328
|
+
* Provide a simpler bounding box for drag boundary checks that uses the textbox
|
|
329
|
+
* dimensions directly instead of getBoundingRect(), which includes ordered list
|
|
330
|
+
* markers that may extend far beyond the text and cause drag shaking issues.
|
|
331
|
+
*/
|
|
332
|
+
protected getSimpleBoundingBox(): {
|
|
333
|
+
top: number;
|
|
334
|
+
left: number;
|
|
335
|
+
width: number;
|
|
336
|
+
height: number;
|
|
337
|
+
};
|
|
324
338
|
}
|