@stemy/ngx-utils 19.7.16 → 19.7.17
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/fesm2022/stemy-ngx-utils.mjs +54 -4
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +2 -1
- package/ngx-utils/components/interactive-canvas/interactive-item.component.d.ts +3 -1
- package/ngx-utils/ngx-utils.imports.d.ts +1 -1
- package/ngx-utils/utils/canvas-renderers/exclusions-renderer.d.ts +8 -0
- package/ngx-utils/utils/canvas-renderers/ruler-canvas.renderer.d.ts +8 -0
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
|
@@ -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<
|
|
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
|
|
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();
|
|
@@ -63,7 +63,7 @@ import { UploadComponent } from "./components/upload/upload.component";
|
|
|
63
63
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
64
64
|
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)[];
|
|
65
65
|
export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
|
|
66
|
-
export declare const providers: (typeof
|
|
66
|
+
export declare const providers: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof BaseHttpClient | typeof BaseHttpService | typeof AuthGuard | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof PromiseService | typeof SocketService | typeof StateService | typeof StorageService | typeof BaseToasterService | typeof CacheService | typeof ComponentLoaderService | typeof TranslatedUrlSerializer | typeof UniversalService | typeof DeviceDetectorService | {
|
|
67
67
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
68
68
|
useClass: typeof DragDropEventPlugin;
|
|
69
69
|
multi: boolean;
|
|
@@ -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
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";
|