@stemy/ngx-utils 19.9.13 → 19.9.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.
|
@@ -330,7 +330,7 @@ export interface IShape extends IPoint {
|
|
|
330
330
|
readonly center: IPoint;
|
|
331
331
|
getPath(x: number, y: number, ratio?: number): Path2D;
|
|
332
332
|
support(dir: IPoint, logs?: boolean): IPoint;
|
|
333
|
-
|
|
333
|
+
offset(value: number): IShape;
|
|
334
334
|
move(pos: IPoint): IShape;
|
|
335
335
|
intersection(shape: IShape, logs?: boolean): ShapeIntersection;
|
|
336
336
|
intersects(shape: IShape, logs?: boolean): boolean;
|
|
@@ -7,7 +7,7 @@ declare abstract class Shape implements IShape {
|
|
|
7
7
|
protected constructor(x: number, y: number);
|
|
8
8
|
abstract getPath(x: number, y: number, ratio?: number): Path2D;
|
|
9
9
|
abstract support(dir: IPoint): IPoint;
|
|
10
|
-
abstract
|
|
10
|
+
abstract offset(value: number): IShape;
|
|
11
11
|
abstract move(pos: IPoint): IShape;
|
|
12
12
|
intersection(shape: IShape, logs: boolean): ShapeIntersection;
|
|
13
13
|
intersects(shape: IShape, logs: boolean): boolean;
|
|
@@ -20,7 +20,7 @@ export declare class Point extends Shape {
|
|
|
20
20
|
constructor(xOrP: number | IPoint, y?: number);
|
|
21
21
|
getPath(x: number, y: number): Path2D;
|
|
22
22
|
support(): IPoint;
|
|
23
|
-
|
|
23
|
+
offset(): IShape;
|
|
24
24
|
move(pos: IPoint): IShape;
|
|
25
25
|
add(p: IPoint): Point;
|
|
26
26
|
subtract(p: IPoint): Point;
|
|
@@ -41,8 +41,8 @@ export declare class Rect extends Shape {
|
|
|
41
41
|
readonly radius: number;
|
|
42
42
|
constructor(x: number, y: number, width: number, height: number, rotation?: number, radius?: number);
|
|
43
43
|
getPath(x: number, y: number, ratio?: number): Path2D;
|
|
44
|
-
support(dir: IPoint
|
|
45
|
-
|
|
44
|
+
support(dir: IPoint): IPoint;
|
|
45
|
+
offset(value: number): Rect;
|
|
46
46
|
move(pos: IPoint): Rect;
|
|
47
47
|
}
|
|
48
48
|
export declare class Oval extends Shape {
|
|
@@ -52,13 +52,13 @@ export declare class Oval extends Shape {
|
|
|
52
52
|
constructor(x: number, y: number, width: number, height: number, rotation?: number);
|
|
53
53
|
getPath(x: number, y: number, ratio?: number): Path2D;
|
|
54
54
|
support(dir: IPoint): IPoint;
|
|
55
|
-
|
|
55
|
+
offset(value: number): Oval;
|
|
56
56
|
move(pos: IPoint): Oval;
|
|
57
57
|
}
|
|
58
58
|
export declare class Circle extends Oval {
|
|
59
59
|
readonly radius: number;
|
|
60
60
|
constructor(x: number, y: number, radius: number, rotation?: number);
|
|
61
|
-
|
|
61
|
+
offset(value: number): Circle;
|
|
62
62
|
move(pos: IPoint): Circle;
|
|
63
63
|
}
|
|
64
64
|
export declare class ShapeGroup extends Shape {
|
|
@@ -66,7 +66,7 @@ export declare class ShapeGroup extends Shape {
|
|
|
66
66
|
constructor(x: number, y: number, subShapes: ReadonlyArray<IShape>);
|
|
67
67
|
getPath(x: number, y: number, ratio?: number): Path2D;
|
|
68
68
|
support(dir: IPoint): IPoint;
|
|
69
|
-
|
|
69
|
+
offset(value: number): IShape;
|
|
70
70
|
move(pos: IPoint): IShape;
|
|
71
71
|
}
|
|
72
72
|
export {};
|