@stemy/ngx-utils 19.7.2 → 19.7.5

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 type RectCoords = [left: number, top: number, right: number, bottom: number];
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
- exclusions?: ReadonlyArray<RectCoords>;
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 exclusions?: ReadonlyArray<IShape>;
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
- exclusions: Rect[];
57
+ excludedAreas: Rect[];
58
58
  protected tempCanvas: HTMLCanvasElement;
59
59
  protected shouldDraw: boolean;
60
60
  protected hoveredIndex: number;
@@ -65,7 +65,7 @@ import { UploadComponent } from "./components/upload/upload.component";
65
65
  export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
66
66
  export declare const directives: (typeof AsyncMethodBase | typeof AsyncMethodTargetDirective | typeof BackgroundDirective | typeof ComponentLoaderDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof DropdownDirective | typeof DropdownContentDirective | typeof TabsItemDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
67
67
  export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof InteractiveCanvasComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
68
- export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof EventsService | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof CacheService | typeof BaseHttpService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof BaseToasterService | typeof ComponentLoaderService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof SocketService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
68
+ export declare const providers: (typeof FormatterService | typeof UniversalService | typeof StateService | typeof AuthGuard | typeof EventsService | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof CacheService | typeof BaseHttpService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof BaseToasterService | typeof ComponentLoaderService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof SocketService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
69
69
  provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
70
70
  useClass: typeof DragDropEventPlugin;
71
71
  multi: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.7.2",
3
+ "version": "19.7.5",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",