@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.
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leapfrog/interactive-canvas",
3
- "version": "2.0.25-beta-13",
3
+ "version": "2.0.25-beta-15",
4
4
  "description": "Leapfrog interactive canvas",
5
5
  "files": [
6
6
  "dist"