@snaptrude/plugin-core 0.0.2 → 0.0.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.
- package/dist/api/core/geom/arc.d.ts +32 -0
- package/dist/api/core/geom/arc.d.ts.map +1 -0
- package/dist/api/core/geom/curve.d.ts +45 -0
- package/dist/api/core/geom/curve.d.ts.map +1 -0
- package/dist/api/core/geom/index.d.ts +16 -0
- package/dist/api/core/geom/index.d.ts.map +1 -0
- package/dist/api/core/geom/line.d.ts +22 -0
- package/dist/api/core/geom/line.d.ts.map +1 -0
- package/dist/api/core/geom/profile.d.ts +57 -0
- package/dist/api/core/geom/profile.d.ts.map +1 -0
- package/dist/api/core/index.d.ts +10 -0
- package/dist/api/core/index.d.ts.map +1 -0
- package/dist/api/core/math/index.d.ts +10 -0
- package/dist/api/core/math/index.d.ts.map +1 -0
- package/dist/api/core/math/quat.d.ts +46 -0
- package/dist/api/core/math/quat.d.ts.map +1 -0
- package/dist/api/core/math/vec3.d.ts +39 -0
- package/dist/api/core/math/vec3.d.ts.map +1 -0
- package/dist/api/entity/index.d.ts +3 -0
- package/dist/api/entity/index.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +137 -21
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/api/entity/story.d.ts +73 -0
- package/dist/api/entity/story.d.ts.map +1 -0
- package/dist/api/index.d.ts +6 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/tools/selection.d.ts +6 -4
- package/dist/api/tools/selection.d.ts.map +1 -1
- package/dist/api/tools/transform.d.ts +25 -10
- package/dist/api/tools/transform.d.ts.map +1 -1
- package/dist/api/units/index.d.ts +95 -0
- package/dist/api/units/index.d.ts.map +1 -0
- package/dist/index.cjs +547 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +493 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -1
- package/src/api/core/geom/arc.ts +21 -0
- package/src/api/core/geom/curve.ts +16 -0
- package/src/api/core/geom/index.ts +18 -0
- package/src/api/core/geom/line.ts +19 -0
- package/src/api/core/geom/profile.ts +30 -0
- package/src/api/core/index.ts +12 -0
- package/src/api/core/math/index.ts +12 -0
- package/src/api/core/math/quat.ts +154 -0
- package/src/api/core/math/vec3.ts +97 -0
- package/src/api/entity/index.ts +3 -0
- package/src/api/entity/space.ts +88 -26
- package/src/api/entity/story.ts +96 -0
- package/src/api/index.ts +6 -0
- package/src/api/tools/selection.ts +7 -4
- package/src/api/tools/transform.ts +16 -10
- package/src/api/units/index.ts +95 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PVec3 } from "../math/vec3";
|
|
3
|
+
export declare abstract class PluginArcApi {
|
|
4
|
+
constructor();
|
|
5
|
+
/** Create a new PArc from start, end, centre and axis. */
|
|
6
|
+
new(startPoint: PVec3, endPoint: PVec3, centrePoint: PVec3, axis: PVec3): PArc;
|
|
7
|
+
}
|
|
8
|
+
export declare const PArc: z.ZodObject<{
|
|
9
|
+
curveType: z.ZodLiteral<"Arc">;
|
|
10
|
+
startPoint: z.ZodObject<{
|
|
11
|
+
x: z.ZodNumber;
|
|
12
|
+
y: z.ZodNumber;
|
|
13
|
+
z: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
endPoint: z.ZodObject<{
|
|
16
|
+
x: z.ZodNumber;
|
|
17
|
+
y: z.ZodNumber;
|
|
18
|
+
z: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
centrePoint: z.ZodObject<{
|
|
21
|
+
x: z.ZodNumber;
|
|
22
|
+
y: z.ZodNumber;
|
|
23
|
+
z: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
axis: z.ZodObject<{
|
|
26
|
+
x: z.ZodNumber;
|
|
27
|
+
y: z.ZodNumber;
|
|
28
|
+
z: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type PArc = z.infer<typeof PArc>;
|
|
32
|
+
//# sourceMappingURL=arc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arc.d.ts","sourceRoot":"","sources":["../../../../src/api/core/geom/arc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC,8BAAsB,YAAY;;IAGhC,0DAA0D;IAC1D,GAAG,CAAC,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI;CAG/E;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;iBAMf,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PLine } from "./line";
|
|
3
|
+
import { PArc } from "./arc";
|
|
4
|
+
export declare abstract class PluginCurveApi {
|
|
5
|
+
constructor();
|
|
6
|
+
/** Create a PCurve from a PLine or PArc. */
|
|
7
|
+
new(curve: PLine | PArc): PCurve;
|
|
8
|
+
}
|
|
9
|
+
export declare const PCurve: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
curveType: z.ZodLiteral<"Line">;
|
|
11
|
+
startPoint: z.ZodObject<{
|
|
12
|
+
x: z.ZodNumber;
|
|
13
|
+
y: z.ZodNumber;
|
|
14
|
+
z: z.ZodNumber;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
endPoint: z.ZodObject<{
|
|
17
|
+
x: z.ZodNumber;
|
|
18
|
+
y: z.ZodNumber;
|
|
19
|
+
z: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
curveType: z.ZodLiteral<"Arc">;
|
|
23
|
+
startPoint: z.ZodObject<{
|
|
24
|
+
x: z.ZodNumber;
|
|
25
|
+
y: z.ZodNumber;
|
|
26
|
+
z: z.ZodNumber;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
endPoint: z.ZodObject<{
|
|
29
|
+
x: z.ZodNumber;
|
|
30
|
+
y: z.ZodNumber;
|
|
31
|
+
z: z.ZodNumber;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
centrePoint: z.ZodObject<{
|
|
34
|
+
x: z.ZodNumber;
|
|
35
|
+
y: z.ZodNumber;
|
|
36
|
+
z: z.ZodNumber;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
axis: z.ZodObject<{
|
|
39
|
+
x: z.ZodNumber;
|
|
40
|
+
y: z.ZodNumber;
|
|
41
|
+
z: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
}, z.core.$strip>], "curveType">;
|
|
44
|
+
export type PCurve = z.infer<typeof PCurve>;
|
|
45
|
+
//# sourceMappingURL=curve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"curve.d.ts","sourceRoot":"","sources":["../../../../src/api/core/geom/curve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAE5B,8BAAsB,cAAc;;IAGlC,4CAA4C;IAC5C,GAAG,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,MAAM;CAGjC;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAmD,CAAA;AAEtE,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PluginLineApi } from "./line";
|
|
2
|
+
import { PluginArcApi } from "./arc";
|
|
3
|
+
import { PluginCurveApi } from "./curve";
|
|
4
|
+
import { PluginProfileApi } from "./profile";
|
|
5
|
+
export declare abstract class PluginGeomApi {
|
|
6
|
+
abstract line: PluginLineApi;
|
|
7
|
+
abstract arc: PluginArcApi;
|
|
8
|
+
abstract curve: PluginCurveApi;
|
|
9
|
+
abstract profile: PluginProfileApi;
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
export * from "./line";
|
|
13
|
+
export * from "./arc";
|
|
14
|
+
export * from "./curve";
|
|
15
|
+
export * from "./profile";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/geom/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAE5C,8BAAsB,aAAa;IACjC,SAAgB,IAAI,EAAE,aAAa,CAAA;IACnC,SAAgB,GAAG,EAAE,YAAY,CAAA;IACjC,SAAgB,KAAK,EAAE,cAAc,CAAA;IACrC,SAAgB,OAAO,EAAE,gBAAgB,CAAA;;CAG1C;AAED,cAAc,QAAQ,CAAA;AACtB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PVec3 } from "../math/vec3";
|
|
3
|
+
export declare abstract class PluginLineApi {
|
|
4
|
+
constructor();
|
|
5
|
+
/** Create a new PLine from start and end points. */
|
|
6
|
+
new(startPoint: PVec3, endPoint: PVec3): PLine;
|
|
7
|
+
}
|
|
8
|
+
export declare const PLine: z.ZodObject<{
|
|
9
|
+
curveType: z.ZodLiteral<"Line">;
|
|
10
|
+
startPoint: z.ZodObject<{
|
|
11
|
+
x: z.ZodNumber;
|
|
12
|
+
y: z.ZodNumber;
|
|
13
|
+
z: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
endPoint: z.ZodObject<{
|
|
16
|
+
x: z.ZodNumber;
|
|
17
|
+
y: z.ZodNumber;
|
|
18
|
+
z: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type PLine = z.infer<typeof PLine>;
|
|
22
|
+
//# sourceMappingURL=line.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../src/api/core/geom/line.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC,8BAAsB,aAAa;;IAGjC,oDAAoD;IACpD,GAAG,CAAC,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,KAAK;CAG/C;AAED,eAAO,MAAM,KAAK;;;;;;;;;;;;iBAIhB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../../types";
|
|
3
|
+
import { PCurve } from "./curve";
|
|
4
|
+
export declare abstract class PluginProfileApi {
|
|
5
|
+
constructor();
|
|
6
|
+
/** Create a new PProfile from an array of PCurves. */
|
|
7
|
+
new(curves: PCurve[]): PProfile;
|
|
8
|
+
/** Create a PProfile from an array of points, connecting them with lines. */
|
|
9
|
+
abstract fromLinePoints(args: PluginProfileFromLinePointsArgs): PluginApiReturn<PProfile>;
|
|
10
|
+
}
|
|
11
|
+
export declare const PluginProfileFromLinePointsArgs: z.ZodObject<{
|
|
12
|
+
points: z.ZodArray<z.ZodObject<{
|
|
13
|
+
x: z.ZodNumber;
|
|
14
|
+
y: z.ZodNumber;
|
|
15
|
+
z: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type PluginProfileFromLinePointsArgs = z.infer<typeof PluginProfileFromLinePointsArgs>;
|
|
19
|
+
export declare const PProfile: z.ZodObject<{
|
|
20
|
+
curves: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
|
+
curveType: z.ZodLiteral<"Line">;
|
|
22
|
+
startPoint: z.ZodObject<{
|
|
23
|
+
x: z.ZodNumber;
|
|
24
|
+
y: z.ZodNumber;
|
|
25
|
+
z: z.ZodNumber;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
endPoint: z.ZodObject<{
|
|
28
|
+
x: z.ZodNumber;
|
|
29
|
+
y: z.ZodNumber;
|
|
30
|
+
z: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
curveType: z.ZodLiteral<"Arc">;
|
|
34
|
+
startPoint: z.ZodObject<{
|
|
35
|
+
x: z.ZodNumber;
|
|
36
|
+
y: z.ZodNumber;
|
|
37
|
+
z: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
endPoint: z.ZodObject<{
|
|
40
|
+
x: z.ZodNumber;
|
|
41
|
+
y: z.ZodNumber;
|
|
42
|
+
z: z.ZodNumber;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
centrePoint: z.ZodObject<{
|
|
45
|
+
x: z.ZodNumber;
|
|
46
|
+
y: z.ZodNumber;
|
|
47
|
+
z: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
axis: z.ZodObject<{
|
|
50
|
+
x: z.ZodNumber;
|
|
51
|
+
y: z.ZodNumber;
|
|
52
|
+
z: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
}, z.core.$strip>], "curveType">>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type PProfile = z.infer<typeof PProfile>;
|
|
57
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../src/api/core/geom/profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,8BAAsB,gBAAgB;;IAGpC,sDAAsD;IACtD,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ;IAI/B,6EAA6E;aAC7D,cAAc,CAC5B,IAAI,EAAE,+BAA+B,GACpC,eAAe,CAAC,QAAQ,CAAC;CAC7B;AAED,eAAO,MAAM,+BAA+B;;;;;;iBAE1C,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE7F,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEnB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PluginMathApi } from "./math";
|
|
2
|
+
import { PluginGeomApi } from "./geom";
|
|
3
|
+
export declare abstract class PluginCoreApi {
|
|
4
|
+
abstract math: PluginMathApi;
|
|
5
|
+
abstract geom: PluginGeomApi;
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
export * from "./math";
|
|
9
|
+
export * from "./geom";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAEtC,8BAAsB,aAAa;IACjC,SAAgB,IAAI,EAAE,aAAa,CAAA;IACnC,SAAgB,IAAI,EAAE,aAAa,CAAA;;CAGpC;AAED,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PluginVec3Api } from "./vec3";
|
|
2
|
+
import { PluginQuatApi } from "./quat";
|
|
3
|
+
export declare abstract class PluginMathApi {
|
|
4
|
+
abstract vec3: PluginVec3Api;
|
|
5
|
+
abstract quat: PluginQuatApi;
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
export * from "./vec3";
|
|
9
|
+
export * from "./quat";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/math/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAEtC,8BAAsB,aAAa;IACjC,SAAgB,IAAI,EAAE,aAAa,CAAA;IACnC,SAAgB,IAAI,EAAE,aAAa,CAAA;;CAGpC;AAED,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import type { PVec3 } from "./vec3";
|
|
3
|
+
export declare abstract class PluginQuatApi {
|
|
4
|
+
constructor();
|
|
5
|
+
/** Create a new PQuat. */
|
|
6
|
+
new(x: number, y: number, z: number, w: number): PQuat;
|
|
7
|
+
/** Create an identity quaternion (no rotation). */
|
|
8
|
+
identity(): PQuat;
|
|
9
|
+
/** Create a quaternion from an axis and angle (radians). */
|
|
10
|
+
fromAxisAngle(axis: PVec3, angle: number): PQuat;
|
|
11
|
+
/** Create a quaternion from Euler angles (radians, XYZ order). */
|
|
12
|
+
fromEuler(x: number, y: number, z: number): PQuat;
|
|
13
|
+
/** Multiply two quaternions (a * b). */
|
|
14
|
+
multiply(a: PQuat, b: PQuat): PQuat;
|
|
15
|
+
/** Conjugate of a quaternion. */
|
|
16
|
+
conjugate(q: PQuat): PQuat;
|
|
17
|
+
/** Length (magnitude) of a quaternion. */
|
|
18
|
+
length(q: PQuat): number;
|
|
19
|
+
/** Normalize a quaternion to unit length. Returns identity if length is 0. */
|
|
20
|
+
normalize(q: PQuat): PQuat;
|
|
21
|
+
/** Inverse of a quaternion (conjugate / lengthSquared). */
|
|
22
|
+
inverse(q: PQuat): PQuat;
|
|
23
|
+
/** Rotate a vector by a quaternion. */
|
|
24
|
+
rotateVec3(q: PQuat, v: PVec3): PVec3;
|
|
25
|
+
/** Convert a quaternion to axis-angle representation. */
|
|
26
|
+
toAxisAngle(q: PQuat): {
|
|
27
|
+
axis: PVec3;
|
|
28
|
+
angle: number;
|
|
29
|
+
};
|
|
30
|
+
/** Spherical linear interpolation between two quaternions. */
|
|
31
|
+
slerp(a: PQuat, b: PQuat, t: number): PQuat;
|
|
32
|
+
/** Dot product of two quaternions. */
|
|
33
|
+
dot(a: PQuat, b: PQuat): number;
|
|
34
|
+
/** Check if two quaternions are equal (exact). */
|
|
35
|
+
equals(a: PQuat, b: PQuat): boolean;
|
|
36
|
+
/** Check if two quaternions are approximately equal within an epsilon. */
|
|
37
|
+
equalsApprox(a: PQuat, b: PQuat, epsilon?: number): boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const PQuat: z.ZodObject<{
|
|
40
|
+
x: z.ZodNumber;
|
|
41
|
+
y: z.ZodNumber;
|
|
42
|
+
z: z.ZodNumber;
|
|
43
|
+
w: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type PQuat = z.infer<typeof PQuat>;
|
|
46
|
+
//# sourceMappingURL=quat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quat.d.ts","sourceRoot":"","sources":["../../../../src/api/core/math/quat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAEnC,8BAAsB,aAAa;;IAGjC,0BAA0B;IAC1B,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK;IAItD,mDAAmD;IACnD,QAAQ,IAAI,KAAK;IAIjB,4DAA4D;IAC5D,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,KAAK;IAahD,kEAAkE;IAClE,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK;IAejD,wCAAwC;IACxC,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,KAAK;IASnC,iCAAiC;IACjC,SAAS,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK;IAI1B,0CAA0C;IAC1C,MAAM,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM;IAIxB,8EAA8E;IAC9E,SAAS,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK;IAM1B,2DAA2D;IAC3D,OAAO,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK;IAMxB,uCAAuC;IACvC,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,KAAK;IAOrC,yDAAyD;IACzD,WAAW,CAAC,CAAC,EAAE,KAAK,GAAG;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;IAarD,8DAA8D;IAC9D,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK;IAsB3C,sCAAsC;IACtC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM;IAI/B,kDAAkD;IAClD,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,OAAO;IAInC,0EAA0E;IAC1E,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,GAAE,MAAa,GAAG,OAAO;CAQlE;AAED,eAAO,MAAM,KAAK;;;;;iBAKhB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare abstract class PluginVec3Api {
|
|
3
|
+
constructor();
|
|
4
|
+
/** Create a new PVec3. */
|
|
5
|
+
new(x: number, y: number, z: number): PVec3;
|
|
6
|
+
/** Add two vectors. */
|
|
7
|
+
add(a: PVec3, b: PVec3): PVec3;
|
|
8
|
+
/** Subtract b from a. */
|
|
9
|
+
subtract(a: PVec3, b: PVec3): PVec3;
|
|
10
|
+
/** Scale a vector by a scalar. */
|
|
11
|
+
scale(v: PVec3, scalar: number): PVec3;
|
|
12
|
+
/** Dot product of two vectors. */
|
|
13
|
+
dot(a: PVec3, b: PVec3): number;
|
|
14
|
+
/** Cross product of two vectors. */
|
|
15
|
+
cross(a: PVec3, b: PVec3): PVec3;
|
|
16
|
+
/** Length (magnitude) of a vector. */
|
|
17
|
+
length(v: PVec3): number;
|
|
18
|
+
/** Squared length of a vector (avoids sqrt). */
|
|
19
|
+
lengthSquared(v: PVec3): number;
|
|
20
|
+
/** Normalize a vector to unit length. Returns zero vector if length is 0. */
|
|
21
|
+
normalize(v: PVec3): PVec3;
|
|
22
|
+
/** Distance between two points. */
|
|
23
|
+
distance(a: PVec3, b: PVec3): number;
|
|
24
|
+
/** Linearly interpolate between two vectors. */
|
|
25
|
+
lerp(a: PVec3, b: PVec3, t: number): PVec3;
|
|
26
|
+
/** Negate a vector. */
|
|
27
|
+
negate(v: PVec3): PVec3;
|
|
28
|
+
/** Check if two vectors are equal (exact). */
|
|
29
|
+
equals(a: PVec3, b: PVec3): boolean;
|
|
30
|
+
/** Check if two vectors are approximately equal within an epsilon. */
|
|
31
|
+
equalsApprox(a: PVec3, b: PVec3, epsilon?: number): boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const PVec3: z.ZodObject<{
|
|
34
|
+
x: z.ZodNumber;
|
|
35
|
+
y: z.ZodNumber;
|
|
36
|
+
z: z.ZodNumber;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type PVec3 = z.infer<typeof PVec3>;
|
|
39
|
+
//# sourceMappingURL=vec3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vec3.d.ts","sourceRoot":"","sources":["../../../../src/api/core/math/vec3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,8BAAsB,aAAa;;IAGjC,0BAA0B;IAC1B,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK;IAI3C,uBAAuB;IACvB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,KAAK;IAI9B,yBAAyB;IACzB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,KAAK;IAInC,kCAAkC;IAClC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK;IAItC,kCAAkC;IAClC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM;IAI/B,oCAAoC;IACpC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,KAAK;IAQhC,sCAAsC;IACtC,MAAM,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM;IAIxB,gDAAgD;IAChD,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM;IAI/B,6EAA6E;IAC7E,SAAS,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK;IAM1B,mCAAmC;IACnC,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM;IAIpC,gDAAgD;IAChD,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK;IAQ1C,uBAAuB;IACvB,MAAM,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK;IAIvB,8CAA8C;IAC9C,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,OAAO;IAInC,sEAAsE;IACtE,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,GAAE,MAAa,GAAG,OAAO;CAOlE;AAED,eAAO,MAAM,KAAK;;;;iBAIhB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAA"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { PluginSpaceApi } from "./space";
|
|
2
|
+
import { PluginStoryApi } from "./story";
|
|
2
3
|
export declare abstract class PluginEntityApi {
|
|
3
4
|
abstract space: PluginSpaceApi;
|
|
5
|
+
abstract story: PluginStoryApi;
|
|
4
6
|
constructor();
|
|
5
7
|
}
|
|
6
8
|
export * from "./space";
|
|
9
|
+
export * from "./story";
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/entity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,8BAAsB,eAAe;IACnC,SAAgB,KAAK,EAAE,cAAc,CAAA;;CAGtC;AAED,cAAc,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/entity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,8BAAsB,eAAe;IACnC,SAAgB,KAAK,EAAE,cAAc,CAAA;IACrC,SAAgB,KAAK,EAAE,cAAc,CAAA;;CAGtC;AAED,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -1,29 +1,145 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../types";
|
|
2
3
|
export declare abstract class PluginSpaceApi {
|
|
3
4
|
constructor();
|
|
4
5
|
abstract createRectangular({ position, dimensions, }: PluginSpaceCreateRectangularArgs): PluginApiReturn<PluginSpaceCreateRectangularResult>;
|
|
6
|
+
abstract createFromProfile({ profile, extrudeHeight, position, }: PluginSpaceCreateFromProfileArgs): PluginApiReturn<PluginSpaceCreateFromProfileResult>;
|
|
5
7
|
abstract getAll(): PluginApiReturn<PluginSpaceGetAllResult>;
|
|
6
|
-
abstract
|
|
8
|
+
abstract get({ spaceId, properties, }: PluginSpaceGetArgs): PluginApiReturn<PluginSpaceGetResult>;
|
|
7
9
|
abstract deleteById({ spaceId, }: PluginSpaceDeleteByIdArgs): PluginApiReturn<PluginSpaceDeleteByIdResult>;
|
|
8
10
|
}
|
|
9
|
-
export
|
|
10
|
-
position:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
export type
|
|
26
|
-
|
|
27
|
-
|
|
11
|
+
export declare const PluginSpaceCreateRectangularArgs: z.ZodObject<{
|
|
12
|
+
position: z.ZodObject<{
|
|
13
|
+
x: z.ZodNumber;
|
|
14
|
+
y: z.ZodNumber;
|
|
15
|
+
z: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
dimensions: z.ZodObject<{
|
|
18
|
+
width: z.ZodNumber;
|
|
19
|
+
height: z.ZodNumber;
|
|
20
|
+
depth: z.ZodNumber;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type PluginSpaceCreateRectangularArgs = z.infer<typeof PluginSpaceCreateRectangularArgs>;
|
|
24
|
+
export declare const PluginSpaceCreateRectangularResult: z.ZodObject<{
|
|
25
|
+
spaceId: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type PluginSpaceCreateRectangularResult = z.infer<typeof PluginSpaceCreateRectangularResult>;
|
|
28
|
+
export declare const PluginSpaceCreateFromProfileArgs: z.ZodObject<{
|
|
29
|
+
profile: z.ZodObject<{
|
|
30
|
+
curves: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
curveType: z.ZodLiteral<"Line">;
|
|
32
|
+
startPoint: z.ZodObject<{
|
|
33
|
+
x: z.ZodNumber;
|
|
34
|
+
y: z.ZodNumber;
|
|
35
|
+
z: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
endPoint: z.ZodObject<{
|
|
38
|
+
x: z.ZodNumber;
|
|
39
|
+
y: z.ZodNumber;
|
|
40
|
+
z: z.ZodNumber;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
curveType: z.ZodLiteral<"Arc">;
|
|
44
|
+
startPoint: z.ZodObject<{
|
|
45
|
+
x: z.ZodNumber;
|
|
46
|
+
y: z.ZodNumber;
|
|
47
|
+
z: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
endPoint: z.ZodObject<{
|
|
50
|
+
x: z.ZodNumber;
|
|
51
|
+
y: z.ZodNumber;
|
|
52
|
+
z: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
centrePoint: z.ZodObject<{
|
|
55
|
+
x: z.ZodNumber;
|
|
56
|
+
y: z.ZodNumber;
|
|
57
|
+
z: z.ZodNumber;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
axis: z.ZodObject<{
|
|
60
|
+
x: z.ZodNumber;
|
|
61
|
+
y: z.ZodNumber;
|
|
62
|
+
z: z.ZodNumber;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
}, z.core.$strip>], "curveType">>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
extrudeHeight: z.ZodNumber;
|
|
67
|
+
position: z.ZodObject<{
|
|
68
|
+
x: z.ZodNumber;
|
|
69
|
+
y: z.ZodNumber;
|
|
70
|
+
z: z.ZodNumber;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type PluginSpaceCreateFromProfileArgs = z.infer<typeof PluginSpaceCreateFromProfileArgs>;
|
|
74
|
+
export declare const PluginSpaceCreateFromProfileResult: z.ZodObject<{
|
|
75
|
+
spaceId: z.ZodString;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type PluginSpaceCreateFromProfileResult = z.infer<typeof PluginSpaceCreateFromProfileResult>;
|
|
78
|
+
export declare const PluginSpaceGetProperty: z.ZodEnum<{
|
|
79
|
+
position: "position";
|
|
80
|
+
id: "id";
|
|
81
|
+
type: "type";
|
|
82
|
+
room_type: "room_type";
|
|
83
|
+
name: "name";
|
|
84
|
+
area: "area";
|
|
85
|
+
department: "department";
|
|
86
|
+
absolutePosition: "absolutePosition";
|
|
87
|
+
rotation: "rotation";
|
|
88
|
+
rotationQuaternion: "rotationQuaternion";
|
|
89
|
+
}>;
|
|
90
|
+
export declare const PluginSpaceGetArgs: z.ZodObject<{
|
|
91
|
+
spaceId: z.ZodString;
|
|
92
|
+
properties: z.ZodArray<z.ZodEnum<{
|
|
93
|
+
position: "position";
|
|
94
|
+
id: "id";
|
|
95
|
+
type: "type";
|
|
96
|
+
room_type: "room_type";
|
|
97
|
+
name: "name";
|
|
98
|
+
area: "area";
|
|
99
|
+
department: "department";
|
|
100
|
+
absolutePosition: "absolutePosition";
|
|
101
|
+
rotation: "rotation";
|
|
102
|
+
rotationQuaternion: "rotationQuaternion";
|
|
103
|
+
}>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type PluginSpaceGetArgs = z.infer<typeof PluginSpaceGetArgs>;
|
|
106
|
+
export declare const PluginSpaceGetResult: z.ZodObject<{
|
|
107
|
+
id: z.ZodOptional<z.ZodString>;
|
|
108
|
+
type: z.ZodOptional<z.ZodString>;
|
|
109
|
+
room_type: z.ZodOptional<z.ZodString>;
|
|
110
|
+
name: z.ZodOptional<z.ZodString>;
|
|
111
|
+
area: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
department: z.ZodOptional<z.ZodString>;
|
|
113
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
x: z.ZodNumber;
|
|
115
|
+
y: z.ZodNumber;
|
|
116
|
+
z: z.ZodNumber;
|
|
117
|
+
}, z.core.$strip>>;
|
|
118
|
+
absolutePosition: z.ZodOptional<z.ZodObject<{
|
|
119
|
+
x: z.ZodNumber;
|
|
120
|
+
y: z.ZodNumber;
|
|
121
|
+
z: z.ZodNumber;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
rotation: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
x: z.ZodNumber;
|
|
125
|
+
y: z.ZodNumber;
|
|
126
|
+
z: z.ZodNumber;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
rotationQuaternion: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
129
|
+
x: z.ZodNumber;
|
|
130
|
+
y: z.ZodNumber;
|
|
131
|
+
z: z.ZodNumber;
|
|
132
|
+
w: z.ZodNumber;
|
|
133
|
+
}, z.core.$strip>>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
export type PluginSpaceGetResult = z.infer<typeof PluginSpaceGetResult>;
|
|
136
|
+
export declare const PluginSpaceGetAllResult: z.ZodObject<{
|
|
137
|
+
spacesIds: z.ZodArray<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export type PluginSpaceGetAllResult = z.infer<typeof PluginSpaceGetAllResult>;
|
|
140
|
+
export declare const PluginSpaceDeleteByIdArgs: z.ZodObject<{
|
|
141
|
+
spaceId: z.ZodString;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export type PluginSpaceDeleteByIdArgs = z.infer<typeof PluginSpaceDeleteByIdArgs>;
|
|
28
144
|
export type PluginSpaceDeleteByIdResult = void;
|
|
29
145
|
//# sourceMappingURL=space.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../../src/api/entity/space.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../../src/api/entity/space.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAK7C,8BAAsB,cAAc;;aAGlB,iBAAiB,CAAC,EAChC,QAAQ,EACR,UAAU,GACX,EAAE,gCAAgC,GAAG,eAAe,CAAC,kCAAkC,CAAC;aAEzE,iBAAiB,CAAC,EAChC,OAAO,EACP,aAAa,EACb,QAAQ,GACT,EAAE,gCAAgC,GAAG,eAAe,CAAC,kCAAkC,CAAC;aAEzE,MAAM,IAAI,eAAe,CAAC,uBAAuB,CAAC;aAElD,GAAG,CAAC,EAClB,OAAO,EACP,UAAU,GACX,EAAE,kBAAkB,GAAG,eAAe,CAAC,oBAAoB,CAAC;aAE7C,UAAU,CAAC,EACzB,OAAO,GACR,EAAE,yBAAyB,GAAG,eAAe,CAAC,2BAA2B,CAAC;CAC5E;AAED,eAAO,MAAM,gCAAgC;;;;;;;;;;;iBAO3C,CAAA;AAEF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAE/F,eAAO,MAAM,kCAAkC;;iBAE7C,CAAA;AAEF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEnG,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI3C,CAAA;AAEF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAE/F,eAAO,MAAM,kCAAkC;;iBAE7C,CAAA;AAEF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEnG,eAAO,MAAM,sBAAsB;;;;;;;;;;;EAWjC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;iBAG7B,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAarB,CAAA;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,eAAO,MAAM,uBAAuB;;iBAElC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,eAAO,MAAM,yBAAyB;;iBAEpC,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEjF,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../types";
|
|
3
|
+
export declare abstract class PluginStoryApi {
|
|
4
|
+
constructor();
|
|
5
|
+
abstract get({ storyValue, properties, }: PluginStoryGetArgs): PluginApiReturn<PluginStoryGetResult>;
|
|
6
|
+
abstract getAll(): PluginApiReturn<PluginStoryGetAllResult>;
|
|
7
|
+
abstract create({ storyValue, height, }: PluginStoryCreateArgs): PluginApiReturn<PluginStoryCreateResult>;
|
|
8
|
+
abstract update({ storyValue, height, }: PluginStoryUpdateArgs): PluginApiReturn<PluginStoryUpdateResult>;
|
|
9
|
+
}
|
|
10
|
+
export declare const PluginStoryGetProperty: z.ZodEnum<{
|
|
11
|
+
height: "height";
|
|
12
|
+
id: "id";
|
|
13
|
+
name: "name";
|
|
14
|
+
value: "value";
|
|
15
|
+
base: "base";
|
|
16
|
+
hidden: "hidden";
|
|
17
|
+
spacesCount: "spacesCount";
|
|
18
|
+
totalArea: "totalArea";
|
|
19
|
+
}>;
|
|
20
|
+
export declare const PluginStoryGetArgs: z.ZodObject<{
|
|
21
|
+
storyValue: z.ZodNumber;
|
|
22
|
+
properties: z.ZodArray<z.ZodEnum<{
|
|
23
|
+
height: "height";
|
|
24
|
+
id: "id";
|
|
25
|
+
name: "name";
|
|
26
|
+
value: "value";
|
|
27
|
+
base: "base";
|
|
28
|
+
hidden: "hidden";
|
|
29
|
+
spacesCount: "spacesCount";
|
|
30
|
+
totalArea: "totalArea";
|
|
31
|
+
}>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type PluginStoryGetArgs = z.infer<typeof PluginStoryGetArgs>;
|
|
34
|
+
export declare const PluginStoryGetResult: z.ZodObject<{
|
|
35
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
name: z.ZodOptional<z.ZodString>;
|
|
38
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
base: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
spacesCount: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
totalArea: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type PluginStoryGetResult = z.infer<typeof PluginStoryGetResult>;
|
|
45
|
+
export declare const PluginStoryGetAllResult: z.ZodObject<{
|
|
46
|
+
stories: z.ZodArray<z.ZodObject<{
|
|
47
|
+
value: z.ZodNumber;
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type PluginStoryGetAllResult = z.infer<typeof PluginStoryGetAllResult>;
|
|
53
|
+
export declare const PluginStoryCreateArgs: z.ZodObject<{
|
|
54
|
+
storyValue: z.ZodNumber;
|
|
55
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type PluginStoryCreateArgs = z.infer<typeof PluginStoryCreateArgs>;
|
|
58
|
+
export declare const PluginStoryCreateResult: z.ZodObject<{
|
|
59
|
+
storyId: z.ZodString;
|
|
60
|
+
storyValue: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export type PluginStoryCreateResult = z.infer<typeof PluginStoryCreateResult>;
|
|
63
|
+
export declare const PluginStoryUpdateArgs: z.ZodObject<{
|
|
64
|
+
storyValue: z.ZodNumber;
|
|
65
|
+
height: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type PluginStoryUpdateArgs = z.infer<typeof PluginStoryUpdateArgs>;
|
|
68
|
+
export declare const PluginStoryUpdateResult: z.ZodObject<{
|
|
69
|
+
storyValue: z.ZodNumber;
|
|
70
|
+
height: z.ZodNumber;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type PluginStoryUpdateResult = z.infer<typeof PluginStoryUpdateResult>;
|
|
73
|
+
//# sourceMappingURL=story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"story.d.ts","sourceRoot":"","sources":["../../../src/api/entity/story.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,8BAAsB,cAAc;;aAGlB,GAAG,CAAC,EAClB,UAAU,EACV,UAAU,GACX,EAAE,kBAAkB,GAAG,eAAe,CAAC,oBAAoB,CAAC;aAE7C,MAAM,IAAI,eAAe,CAAC,uBAAuB,CAAC;aAElD,MAAM,CAAC,EACrB,UAAU,EACV,MAAM,GACP,EAAE,qBAAqB,GAAG,eAAe,CAAC,uBAAuB,CAAC;aAEnD,MAAM,CAAC,EACrB,UAAU,EACV,MAAM,GACP,EAAE,qBAAqB,GAAG,eAAe,CAAC,uBAAuB,CAAC;CACpE;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;EASjC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAG7B,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,eAAO,MAAM,oBAAoB;;;;;;;;;iBAWrB,CAAA;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,eAAO,MAAM,uBAAuB;;;;;;iBAQlC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
import { PluginCoreApi } from "./core";
|
|
1
2
|
import { PluginEntityApi } from "./entity";
|
|
2
3
|
import { PluginToolsApi } from "./tools";
|
|
4
|
+
import { PluginUnitsApi } from "./units";
|
|
3
5
|
export declare abstract class PluginApi {
|
|
6
|
+
abstract core: PluginCoreApi;
|
|
4
7
|
abstract tools: PluginToolsApi;
|
|
5
8
|
abstract entity: PluginEntityApi;
|
|
9
|
+
abstract units: PluginUnitsApi;
|
|
6
10
|
constructor();
|
|
7
11
|
}
|
|
12
|
+
export * from "./core";
|
|
8
13
|
export * from "./entity";
|
|
9
14
|
export * from "./tools";
|
|
15
|
+
export * from "./units";
|
|
10
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,8BAAsB,SAAS;IAC7B,SAAgB,KAAK,EAAE,cAAc,CAAA;IACrC,SAAgB,MAAM,EAAE,eAAe,CAAA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,8BAAsB,SAAS;IAC7B,SAAgB,IAAI,EAAE,aAAa,CAAA;IACnC,SAAgB,KAAK,EAAE,cAAc,CAAA;IACrC,SAAgB,MAAM,EAAE,eAAe,CAAA;IACvC,SAAgB,KAAK,EAAE,cAAc,CAAA;;CAGtC;AAED,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../types";
|
|
2
3
|
export declare abstract class PluginSelectionApi {
|
|
3
4
|
constructor();
|
|
4
5
|
abstract get(): PluginApiReturn<PluginSelectionGetResult>;
|
|
5
6
|
}
|
|
6
|
-
export
|
|
7
|
-
selected:
|
|
8
|
-
}
|
|
7
|
+
export declare const PluginSelectionGetResult: z.ZodObject<{
|
|
8
|
+
selected: z.ZodArray<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type PluginSelectionGetResult = z.infer<typeof PluginSelectionGetResult>;
|
|
9
11
|
//# sourceMappingURL=selection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../src/api/tools/selection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../src/api/tools/selection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,8BAAsB,kBAAkB;;aAGtB,GAAG,IAAI,eAAe,CAAC,wBAAwB,CAAC;CACjE;AAED,eAAO,MAAM,wBAAwB;;iBAEnC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|