@stemy/ngx-utils 19.7.2 → 19.7.4
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.
|
@@ -325,14 +325,19 @@ export type CanvasResizeMode = "fit" | "fill";
|
|
|
325
325
|
export type CanvasItemDirection = "horizontal" | "vertical" | "free" | "none";
|
|
326
326
|
export type CanvasPaintFunc = (ctx: CanvasRenderingContext2D) => MaybePromise<GlobalCompositeOperation | null>;
|
|
327
327
|
export type RangeCoords = [from: number, to: number];
|
|
328
|
-
export
|
|
328
|
+
export interface RectCoords {
|
|
329
|
+
x: number;
|
|
330
|
+
y: number;
|
|
331
|
+
width: number;
|
|
332
|
+
height: number;
|
|
333
|
+
}
|
|
329
334
|
/**
|
|
330
335
|
* Interface for an interactive canvas params
|
|
331
336
|
*/
|
|
332
337
|
export interface InteractiveCanvasParams {
|
|
333
338
|
xRange?: RangeCoords;
|
|
334
339
|
yRange?: RangeCoords;
|
|
335
|
-
|
|
340
|
+
excludedAreas?: ReadonlyArray<RectCoords>;
|
|
336
341
|
[key: string]: any;
|
|
337
342
|
}
|
|
338
343
|
/**
|
|
@@ -377,7 +382,7 @@ export interface InteractiveCanvas {
|
|
|
377
382
|
readonly rotation: number;
|
|
378
383
|
readonly basePan: number;
|
|
379
384
|
readonly cycles?: ReadonlyArray<number>;
|
|
380
|
-
readonly
|
|
385
|
+
readonly excludedAreas?: ReadonlyArray<IShape & RectCoords>;
|
|
381
386
|
rendered?: boolean;
|
|
382
387
|
tempPaint(cb: CanvasPaintFunc): Promise<void>;
|
|
383
388
|
}
|
|
@@ -54,7 +54,7 @@ export declare class InteractiveCanvasComponent implements InteractiveCanvas, On
|
|
|
54
54
|
rotation: number;
|
|
55
55
|
basePan: number;
|
|
56
56
|
cycles: number[];
|
|
57
|
-
|
|
57
|
+
excludedAreas: Rect[];
|
|
58
58
|
protected tempCanvas: HTMLCanvasElement;
|
|
59
59
|
protected shouldDraw: boolean;
|
|
60
60
|
protected hoveredIndex: number;
|