@stemy/ngx-utils 19.7.16 → 19.7.18

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.
@@ -370,6 +370,7 @@ export interface InteractiveCanvasItem {
370
370
  readonly active: boolean;
371
371
  readonly canvas: InteractiveCanvas;
372
372
  readonly index: number;
373
+ readonly canvasParams: InteractiveCanvasParams;
373
374
  draw(ctx: CanvasRenderingContext2D, shape: IShape): MaybePromise<void>;
374
375
  }
375
376
  export type InteractiveCanvasItems = ReadonlyArray<InteractiveCanvasItem>;
@@ -398,7 +399,7 @@ export interface InteractiveCanvas {
398
399
  readonly rotation: number;
399
400
  readonly basePan: number;
400
401
  readonly cycles?: ReadonlyArray<number>;
401
- readonly excludedAreas?: ReadonlyArray<IShape & RectCoords>;
402
+ readonly excludedAreas?: ReadonlyArray<Frame>;
402
403
  rendered?: boolean;
403
404
  tempPaint(cb: CanvasPaintFunc): Promise<void>;
404
405
  }
@@ -1,5 +1,5 @@
1
1
  import { OnChanges } from "@angular/core";
2
- import { CanvasItemDirection, InteractiveCanvas, InteractiveCanvasItem, IPoint, IShape, Frame } from "../../common-types";
2
+ import { CanvasItemDirection, Frame, InteractiveCanvas, InteractiveCanvasItem, InteractiveCanvasParams, IPoint, IShape } from "../../common-types";
3
3
  import { Point, Rect } from "../../utils/geometry";
4
4
  import { MaybePromise } from "../../helper-types";
5
5
  import * as i0 from "@angular/core";
@@ -7,6 +7,7 @@ export declare class InteractiveItemComponent implements OnChanges, InteractiveC
7
7
  protected pos: Point;
8
8
  protected mFrame: Rect;
9
9
  protected mShapes: IShape[];
10
+ protected mDistances: Map<InteractiveCanvasItem, number>;
10
11
  get frame(): Frame;
11
12
  get shapes(): ReadonlyArray<IShape>;
12
13
  get x(): number;
@@ -27,6 +28,7 @@ export declare class InteractiveItemComponent implements OnChanges, InteractiveC
27
28
  active: boolean;
28
29
  canvas: InteractiveCanvas;
29
30
  index: number;
31
+ canvasParams: InteractiveCanvasParams;
30
32
  protected valid: boolean;
31
33
  protected validPos: Point;
32
34
  constructor();
@@ -0,0 +1,8 @@
1
+ import { Invokable } from "invokable";
2
+ import { InteractiveCanvas, InteractiveCanvasRenderer } from "../../common-types";
3
+ export declare class ExclusionsRenderer {
4
+ constructor();
5
+ [Invokable.call](renderCanvas: InteractiveCanvas): Promise<void>;
6
+ }
7
+ export interface ExclusionsRenderer extends InteractiveCanvasRenderer {
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Invokable } from "invokable";
2
+ import { InteractiveCanvas, InteractiveCanvasRenderer } from "../../common-types";
3
+ export declare class RulerCanvasRenderer {
4
+ constructor();
5
+ [Invokable.call](renderCanvas: InteractiveCanvas): Promise<void>;
6
+ }
7
+ export interface RulerCanvasRenderer extends InteractiveCanvasRenderer {
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.7.16",
3
+ "version": "19.7.18",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",
package/public_api.d.ts CHANGED
@@ -12,6 +12,8 @@ export { FileUtils } from "./ngx-utils/utils/file.utils";
12
12
  export { ForbiddenZone } from "./ngx-utils/utils/forbidden-zone";
13
13
  export { GenericValue } from "./ngx-utils/utils/generic-value";
14
14
  export { FileSystemEntryOpenResult, FileSystemEntryOpenCb, FileSystemEntry } from "./ngx-utils/utils/file-system";
15
+ export { ExclusionsRenderer } from "./ngx-utils/utils/canvas-renderers/exclusions-renderer";
16
+ export { RulerCanvasRenderer } from "./ngx-utils/utils/canvas-renderers/ruler-canvas.renderer";
15
17
  export { dotProduct, tripleProduct, isPoint, ensurePoint, perpendicular, negatePt, normalizePt, addPts, distanceSq, distance, lerpPts, lengthOfPt, multiplyPts, dividePts, subPts, rotateDeg, rotateRad, toDegrees, toRadians, gjkDistance, gjkIntersection, Point, Rect, Oval, Circle } from "./ngx-utils/utils/geometry";
16
18
  export { Initializer } from "./ngx-utils/utils/initializer";
17
19
  export { JSONfn } from "./ngx-utils/utils/jsonfn";