@hatiolab/things-scene 10.1.98 → 10.1.99
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-types/components/mixins/holdable.d.ts.map +1 -1
- package/dist-types/components/root-container.d.ts +8 -0
- package/dist-types/components/root-container.d.ts.map +1 -1
- package/dist-types/diagnostics/inspector.d.ts.map +1 -1
- package/dist-types/figure/figure-capability.d.ts.map +1 -1
- package/dist-types/figure/figure-instance.d.ts +1 -0
- package/dist-types/figure/figure-instance.d.ts.map +1 -1
- package/dist-types/figure/figure-item-look.d.ts +2 -0
- package/dist-types/figure/figure-item-look.d.ts.map +1 -0
- package/dist-types/figure/figure-real-object.d.ts +16 -10
- package/dist-types/figure/figure-real-object.d.ts.map +1 -1
- package/dist-types/figure/figure-registry.d.ts +2 -6
- package/dist-types/figure/figure-registry.d.ts.map +1 -1
- package/dist-types/items/capacity-mixin.d.ts +56 -3
- package/dist-types/items/capacity-mixin.d.ts.map +1 -1
- package/dist-types/items/index.d.ts +5 -1
- package/dist-types/items/index.d.ts.map +1 -1
- package/dist-types/items/item-registry.d.ts +13 -0
- package/dist-types/items/item-registry.d.ts.map +1 -0
- package/dist-types/items/item-seating.d.ts +72 -0
- package/dist-types/items/item-seating.d.ts.map +1 -0
- package/dist-types/items/item-types.d.ts +61 -0
- package/dist-types/items/item-types.d.ts.map +1 -0
- package/dist-types/items/item.d.ts +333 -0
- package/dist-types/items/item.d.ts.map +1 -0
- package/dist-types/items/items-data-binding.d.ts +40 -1
- package/dist-types/items/items-data-binding.d.ts.map +1 -1
- package/dist-types/search/scene-search-engine.d.ts +1 -0
- package/dist-types/search/scene-search-engine.d.ts.map +1 -1
- package/dist-types/things-scene/create.d.ts +6 -1
- package/dist-types/things-scene/create.d.ts.map +1 -1
- package/dist-types/things-scene/index.d.ts +1 -1
- package/dist-types/things-scene/index.d.ts.map +1 -1
- package/dist-types/threed/real-object.d.ts +22 -6
- package/dist-types/threed/real-object.d.ts.map +1 -1
- package/dist-types/tracker/tracker.d.ts +1 -0
- package/dist-types/tracker/tracker.d.ts.map +1 -1
- package/dist-types/transfer/index.d.ts +1 -1
- package/dist-types/transfer/index.d.ts.map +1 -1
- package/dist-types/transfer/transfer.d.ts.map +1 -1
- package/dist-types/transfer/transferable-mixin.d.ts +9 -3
- package/dist-types/transfer/transferable-mixin.d.ts.map +1 -1
- package/dist-types/transfer/types.d.ts +22 -3
- package/dist-types/transfer/types.d.ts.map +1 -1
- package/dist-types/transition/transition-effect.d.ts +3 -0
- package/dist-types/transition/transition-effect.d.ts.map +1 -1
- package/package.json +1 -1
- package/things-scene-min.js +11 -11
- package/things-scene-min.js.map +1 -1
- package/things-scene-transfer.mjs +3 -3
- package/things-scene.mjs +3 -3
- package/things-scene.mjs.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"holdable.d.ts","sourceRoot":"","sources":["../../../src/components/mixins/holdable.ts"],"names":[],"mappings":"AAgBA,OAAO,SAAS,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"holdable.d.ts","sourceRoot":"","sources":["../../../src/components/mixins/holdable.ts"],"names":[],"mappings":"AAgBA,OAAO,SAAS,MAAM,iBAAiB,CAAA;AA0BvC,KAAK,WAAW,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;AAkHxD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,SAAS,WAAW,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,KAAK,GAAG,GAAG,CAoU7F"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import TransitionEffect from '../transition/transition-effect.js';
|
|
2
|
+
import { type ItemTypeTable } from '../items/item-types.js';
|
|
2
3
|
import ContainerAbstract from './container-abstract.js';
|
|
3
4
|
import { type DrawingScale } from './drawing-scale.js';
|
|
4
5
|
export default class RootContainer extends ContainerAbstract {
|
|
@@ -22,6 +23,7 @@ export default class RootContainer extends ContainerAbstract {
|
|
|
22
23
|
_selected: any[];
|
|
23
24
|
_style: any;
|
|
24
25
|
_compiled_style: any;
|
|
26
|
+
_itemTypes: ItemTypeTable | undefined;
|
|
25
27
|
_ready: boolean;
|
|
26
28
|
eventEngine: any;
|
|
27
29
|
assist_handlers: any[];
|
|
@@ -93,6 +95,12 @@ export default class RootContainer extends ContainerAbstract {
|
|
|
93
95
|
get focused(): any;
|
|
94
96
|
set focused(container: any);
|
|
95
97
|
get style(): any;
|
|
98
|
+
/**
|
|
99
|
+
* The domain's item types this scene was given when it opened (ADR-0155): a read table, or a value read by the one
|
|
100
|
+
* rule. Undefined: the app does not use item types, and the component type is the item type as before.
|
|
101
|
+
*/
|
|
102
|
+
get itemTypes(): ItemTypeTable | undefined;
|
|
103
|
+
set itemTypes(value: unknown);
|
|
96
104
|
set style(style: any);
|
|
97
105
|
get hasTextProperty(): boolean;
|
|
98
106
|
render(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-container.d.ts","sourceRoot":"","sources":["../../src/components/root-container.ts"],"names":[],"mappings":"AASA,OAAO,gBAAgB,MAAM,oCAAoC,CAAA;
|
|
1
|
+
{"version":3,"file":"root-container.d.ts","sourceRoot":"","sources":["../../src/components/root-container.ts"],"names":[],"mappings":"AASA,OAAO,gBAAgB,MAAM,oCAAoC,CAAA;AAEjE,OAAO,EAAkC,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAE3F,OAAO,iBAAiB,MAAM,yBAAyB,CAAA;AAEvD,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAmFtE,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,iBAAiB;IAI1D,IAAI,cAAc,YAEjB;IAOD,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAA2C;IAE7E;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,CAA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"file":"inspector.d.ts","sourceRoot":"","sources":["../../src/diagnostics/inspector.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../src/diagnostics/inspector.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG7D,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE9E;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,2BAA2B,CAAA;IACjC,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,eAAe;IACf,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,UAAU,UAAU;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE;QAChB,MAAM,EAAE,OAAO,CAAA;QACf,QAAQ,EAAE,OAAO,CAAA;QACjB,QAAQ,EAAE,OAAO,CAAA;QACjB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;IAED;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,yBAAyB,EAAE,CAAA;IAGhD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAChC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC5B;AAED,UAAU,iBAAiB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CAAC;IAiJF;;;;;;OAMG;IACG,cAAc,CAClB,SAAS,EAAE,MAAM,EACjB,UAAU,SAAI,GACb,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC;IAgC/C;;;OAGG;IACG,gBAAgB,CAAC,UAAU,SAAI,EAAE,KAAK,SAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CA6CvE;AAED,eAAO,MAAM,SAAS,gBAAuB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"figure-capability.d.ts","sourceRoot":"","sources":["../../src/figure/figure-capability.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAOlD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAInD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"figure-capability.d.ts","sourceRoot":"","sources":["../../src/figure/figure-capability.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAOlD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAInD,OAAO,KAAK,EAAuB,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAI7G,KAAK,IAAI,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;AAEjD;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,+DAAqB,CAAA;AAErD,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAA;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAM7G,CAAA;AAEJ,gDAAgD;AAChD,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAKjF,CAAA;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,SAAS,IAAI,CAAC,wBAAwB,EAAE,IAAI,GAAG,UAAU,GAAG,SAAS,CAAC,EAAE,GAAG,OAAO,EAAE,CAE/H;AA8FD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,GAAE,SAAS,MAAM,EAAO,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAqC/G;AA8DD,2BAA2B;AAC3B,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC"}
|
|
@@ -4,6 +4,7 @@ import type { SceneRenderContext } from '../interfaces/rendering.js';
|
|
|
4
4
|
import type { IRealObject } from '../interfaces/real-object.js';
|
|
5
5
|
import type { ComponentNature } from '../interfaces/types.js';
|
|
6
6
|
import { FigureInputs } from './figure-inputs.js';
|
|
7
|
+
import './figure-item-look.js';
|
|
7
8
|
declare const FigureInstance_base: {
|
|
8
9
|
new (...args: any[]): {
|
|
9
10
|
contains(x: number, y: number): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"figure-instance.d.ts","sourceRoot":"","sources":["../../src/figure/figure-instance.ts"],"names":[],"mappings":"AAKA,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,KAAK,MAAM,wBAAwB,CAAA;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAS7D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;;;;;;;;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MD,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"figure-item-look.d.ts","sourceRoot":"","sources":["../../src/figure/figure-item-look.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { RealObject } from '../threed/real-object.js';
|
|
3
3
|
import type { Properties } from '../interfaces/types.js';
|
|
4
|
-
import { type
|
|
4
|
+
import { type FigureRenderLevel } from '@hatiolab/figure-model';
|
|
5
|
+
import { type ItemSeat } from '../items/item-seating.js';
|
|
5
6
|
import { type RegisteredFigureFigure } from './figure-registry.js';
|
|
6
7
|
import type { FigureRuntimeIssue } from './figure-inputs.js';
|
|
7
8
|
/** Where a thing held at a place hangs, as \`attachPointFor\` answers a holder. */
|
|
@@ -21,7 +22,7 @@ export interface FigurePlaceAttachment {
|
|
|
21
22
|
/** A uniform scale only for showing it inside its slot; never its size. */
|
|
22
23
|
displayScale?: number;
|
|
23
24
|
/** For a slot of the layout: where it is shown and what its slot says of it at full size. */
|
|
24
|
-
seat?:
|
|
25
|
+
seat?: ItemSeat;
|
|
25
26
|
}
|
|
26
27
|
export declare class FigureRealObject extends RealObject<THREE.Group> {
|
|
27
28
|
private rig;
|
|
@@ -123,19 +124,24 @@ export declare class FigureRealObject extends RealObject<THREE.Group> {
|
|
|
123
124
|
tick(dt: number): void;
|
|
124
125
|
private advance;
|
|
125
126
|
/**
|
|
126
|
-
* Where a thing held at one place hangs (ADR-0087): the place's node, and
|
|
127
|
-
*
|
|
128
|
-
* the
|
|
129
|
-
*
|
|
127
|
+
* Where a thing held at one place hangs (ADR-0087): the place's node, and the offset that sets the thing against the
|
|
128
|
+
* place's face from outside, centred on it -- a box on a seat rests on the face, a workpiece in a grip sits just past
|
|
129
|
+
* the gripper, not half inside it. The rig is in mm: the thing's size is the holder's answer in mm (\`itemDimsOf\`); hung
|
|
130
|
+
* from the rig, the thing is still its own size (its node's scale is undone where it is seated).
|
|
130
131
|
*/
|
|
131
132
|
placeAttachment(id: string, carrier?: {
|
|
132
133
|
state?: Record<string, unknown>;
|
|
133
134
|
}): FigurePlaceAttachment | undefined;
|
|
134
135
|
/**
|
|
135
|
-
* A thing in
|
|
136
|
-
*
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
* A thing's size in mm: the holder's answer when it holds (Capacity), else its state by the drawing's scale -- width
|
|
137
|
+
* along X, state depth up, state height along Z.
|
|
138
|
+
*/
|
|
139
|
+
private itemDimsOf;
|
|
140
|
+
/**
|
|
141
|
+
* A thing in a slot of the layout, seated by the one rule every holder seats by (common item contract 3.4): stacked
|
|
142
|
+
* on what the slot holds under it, turned with the slot, shrunk only to be shown inside it -- the verdict, at full
|
|
143
|
+
* size, goes with it as \`seat\`. A thing whose size, or the size of one under it, is not known stands at the slot's
|
|
144
|
+
* face, said unconfirmed. The seat is in mm, the rig's own unit.
|
|
139
145
|
*/
|
|
140
146
|
private slotAttachment;
|
|
141
147
|
clear(): THREE.Group;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"figure-real-object.d.ts","sourceRoot":"","sources":["../../src/figure/figure-real-object.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,OAAO,
|
|
1
|
+
{"version":3,"file":"figure-real-object.d.ts","sourceRoot":"","sources":["../../src/figure/figure-real-object.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,OAAO,EAA6D,KAAK,iBAAiB,EAAiB,MAAM,wBAAwB,CAAA;AACzI,OAAO,EAAqB,KAA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AAyF;IACzF,kBAAkB,IAAI,IAAI;IAM1B,0HAA0H;IAC1H,gBAAgB,IAAI,IAAI;IAMxB,oHAAoH;IACpH,WAAW,IAAI,IAAI;IAUnB,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,YAAY;IAUpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAmBtB,OAAO,CAAC,OAAO;IAIf;;;;;OAKG;IACH,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG,qBAAqB,GAAG,SAAS;IAiB7G;;;OAGG;IACH,OAAO,CAAC,UAAU;IAKlB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAcb,KAAK,IAAI,KAAK,CAAC,KAAK;IAa7B,wHAAwH;IACxH,OAAO,CAAC,QAAQ;IAUhB;;;;OAIG;IACH,OAAO,CAAC,UAAU;CAQnB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAUxG"}
|
|
@@ -4,16 +4,12 @@ export interface RegisteredFigureFigure {
|
|
|
4
4
|
type: string;
|
|
5
5
|
compiled: CompiledFigure;
|
|
6
6
|
}
|
|
7
|
+
/** Word when the registered figures change: an item drawn by its type's figure takes its look again. */
|
|
8
|
+
export declare function onFiguresChanged(listener: () => void): () => void;
|
|
7
9
|
/** Registers a asset under a figure type. Compiles it (or reuses the cache) so a bad asset fails here, not on a board. */
|
|
8
10
|
export declare function registerFigure(type: string, asset: FigureAsset): RegisteredFigureFigure;
|
|
9
11
|
export declare function getFigure(type: string): RegisteredFigureFigure | null;
|
|
10
12
|
export declare function hasFigure(type: string): boolean;
|
|
11
13
|
export declare function unregisterFigure(type: string): boolean;
|
|
12
14
|
export declare function resetFigures(): void;
|
|
13
|
-
/**
|
|
14
|
-
* The component type that makes an item of a type a site's data names (ADR-0051 §8): the registered figure of exactly
|
|
15
|
-
* that canonical name, else null. What a site calls its items by other names (fmsim's CARRIERTYPE code) the site's
|
|
16
|
-
* product resolves to a canonical name before it names the type (ADR-0123 decision 9).
|
|
17
|
-
*/
|
|
18
|
-
export declare function figureTypeForItem(name: unknown): string | null;
|
|
19
15
|
//# sourceMappingURL=figure-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"figure-registry.d.ts","sourceRoot":"","sources":["../../src/figure/figure-registry.ts"],"names":[],"mappings":"AAYA,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAE7E,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEjF,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,cAAc,CAAA;CACzB;
|
|
1
|
+
{"version":3,"file":"figure-registry.d.ts","sourceRoot":"","sources":["../../src/figure/figure-registry.ts"],"names":[],"mappings":"AAYA,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAE7E,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEjF,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,cAAc,CAAA;CACzB;AAKD,wGAAwG;AACxG,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAGjE;AAMD,0HAA0H;AAC1H,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,sBAAsB,CAQvF;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,sBAAsB,GAAG,IAAI,CAErE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAItD;AAED,wBAAgB,YAAY,IAAI,IAAI,CAGnC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import type { SlotDef, CarrierAttachPoint, SeatAttachPoint, ArrangementStrategy, CarrierDims, PlacementContext, SeatingPose } from '../transfer/types.js';
|
|
2
3
|
import type Component from '../components/component.js';
|
|
3
|
-
import { type ItemDims, type SeatTransform, type SlotLayout } from './slot-layout/index.js';
|
|
4
|
+
import { type ItemDims, type ResolvedSlot, type SeatTransform, type SlotLayout } from './slot-layout/index.js';
|
|
5
|
+
import { type EffectiveSlotLayout } from '@hatiolab/figure-model';
|
|
6
|
+
import { type ItemSeat, type OutsideSlot } from './item-seating.js';
|
|
4
7
|
type Constructor<T = object> = new (...args: any[]) => T;
|
|
5
8
|
/**
|
|
6
9
|
* Capacity (keep) 믹스인. subclass 는 `get slots()` 만 override; 나머지 default.
|
|
@@ -12,6 +15,47 @@ export declare function Capacity<TBase extends Constructor<Component>>(Base: TBa
|
|
|
12
15
|
* slotById 는 자리를 늘어놓지 않고 계산으로 찾으며, slotSeatTransform 이 자리 안착 변환을 낸다.
|
|
13
16
|
*/
|
|
14
17
|
get slotLayout(): SlotLayout | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The layout the holder holds by (common item contract 3.4): a placement's own (`state.slotLayout`) when it has one,
|
|
20
|
+
* else the holder's `slotLayout`, checked on the anchors it gives now -- figure-model's rule. One that does not hold has
|
|
21
|
+
* no slots and is said; the other is not taken in its place.
|
|
22
|
+
*/
|
|
23
|
+
get effectiveLayout(): EffectiveSlotLayout;
|
|
24
|
+
/** The anchors the holder gives: its own origin by default. A holder with forks or lifts names theirs. */
|
|
25
|
+
slotAnchors(): string[];
|
|
26
|
+
/**
|
|
27
|
+
* The node an anchor's frame is. The holder's own anchor is a frame at its 3D's origin, turned with it and not
|
|
28
|
+
* stretched by its size (a mesh holder's 3D is scaled to its dimensions). Its units are the scene's.
|
|
29
|
+
*/
|
|
30
|
+
anchorObject3D(anchorId: string): THREE.Object3D | null;
|
|
31
|
+
/**
|
|
32
|
+
* Slots outside the layout: they take anything, any number, stacked, with no fit judged. What they are for is the
|
|
33
|
+
* holder's (fmsim keeps carriers of an unknown or wrong address there). None by default.
|
|
34
|
+
*/
|
|
35
|
+
outsideSlots(): OutsideSlot[];
|
|
36
|
+
/**
|
|
37
|
+
* An item's type, as slots judge it (ADR-0155): the code it carries, when the scene's item type table has it; null
|
|
38
|
+
* when it does not. A scene given no table (an app that does not use item types) judges by the component type.
|
|
39
|
+
*/
|
|
40
|
+
itemTypeOf(item: any): string | null;
|
|
41
|
+
/** Real millimetres one drawing coordinate is, on the drawing this holder stands in (ADR-0144). */
|
|
42
|
+
get mmPerSceneUnit(): number;
|
|
43
|
+
/**
|
|
44
|
+
* An item's size in mm (common item contract 3.3): width along X, depth along the board's Z, height up -- figure-
|
|
45
|
+
* model's axes. By default from its state, by the drawing's scale: state width is X, state height is Z, state depth
|
|
46
|
+
* is up. Null when the item does not say its size: an item type has none and a figure's body is not judged by
|
|
47
|
+
* (ADR-0155 amendment 1 C). A scene given no item type table takes the figure's body, as before.
|
|
48
|
+
*/
|
|
49
|
+
itemDimsOf(item: any): ItemDims | null;
|
|
50
|
+
/**
|
|
51
|
+
* The size an item whose own is not known is shown at in a slot, in mm: for showing only, never judged (common item
|
|
52
|
+
* contract 3.3, Q9). It and what stands on it are stacked by it. By default, in a scene given an item type table, the
|
|
53
|
+
* place it sits in sizes it (ADR-0155 amendment 1 B): a slot of the layout gives its room -- its height shared by the
|
|
54
|
+
* stack -- and a slot of no bounds (outside the layout) its figure's own size. Else none, and it stands at the face.
|
|
55
|
+
*/
|
|
56
|
+
itemShownDimsOf(item: any, slot: ResolvedSlot, _slotId: string): ItemDims | null;
|
|
57
|
+
/** Where an item sits, or would sit in `slotId` were it handed in now: one rule for all the holder holds. */
|
|
58
|
+
itemSeatOf(item: any, slotId?: string): ItemSeat | null;
|
|
15
59
|
/** Declare the slot topology of this container. 기본은 slotLayout 의 자리, 없으면 빈 목록 */
|
|
16
60
|
get slots(): SlotDef[];
|
|
17
61
|
/**
|
|
@@ -66,7 +110,16 @@ export declare function Capacity<TBase extends Constructor<Component>>(Base: TBa
|
|
|
66
110
|
y: number;
|
|
67
111
|
z: number;
|
|
68
112
|
} | undefined;
|
|
69
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Where an item hangs. A slot of the layout or outside it: on its anchor's node, at the seat worked out in mm and
|
|
115
|
+
* turned into the node's units (the scene's) once, here -- shrunk only to be shown, judged at full size (common item
|
|
116
|
+
* contract 3.4). A slot the holder has neither in its layout nor outside it: nowhere, the item stays where it stood.
|
|
117
|
+
* A holder without a layout answers its slot's pose for the transfer to place it by, as before.
|
|
118
|
+
*/
|
|
119
|
+
attachPointFor(component: any, options?: {
|
|
120
|
+
slotId?: string;
|
|
121
|
+
[k: string]: any;
|
|
122
|
+
}): CarrierAttachPoint | SeatAttachPoint | null;
|
|
70
123
|
/**
|
|
71
124
|
* Phase PS — PlacementSurface contract 의 default 구현.
|
|
72
125
|
* 기존 합성 경로와 *수치 동일* 한 안착 pose 를 holder object3d local frame 으로 반환 (I5).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capacity-mixin.d.ts","sourceRoot":"","sources":["../../src/items/capacity-mixin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"capacity-mixin.d.ts","sourceRoot":"","sources":["../../src/items/capacity-mixin.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EACV,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACZ,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,SAAS,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAazC"}
|
|
@@ -2,7 +2,11 @@ export * from './capacity.js';
|
|
|
2
2
|
export * from './arrangement/index.js';
|
|
3
3
|
export * from './stacking/index.js';
|
|
4
4
|
export type { SlotRecord } from './slot-record.js';
|
|
5
|
-
export { ItemsDataBinding } from './items-data-binding.js';
|
|
5
|
+
export { ItemsDataBinding, type ItemIssue } from './items-data-binding.js';
|
|
6
|
+
export { itemById, itemIdOf } from './item-registry.js';
|
|
7
|
+
export { Item, ItemRealObject, setItemLookProvider, itemLookDimsOf, type ItemLook, type ItemLookProvider } from './item.js';
|
|
8
|
+
export { readItemTypes, itemTypesFromThemes, itemTypeTableOf, isItemTypeTable, ITEM_TYPES_THEME, ITEM_TYPE_CODE_MAX, type ItemType, type ItemTypeIssue, type ItemTypeTable, type ThemeLike } from './item-types.js';
|
|
9
|
+
export { occupancySnapshotOf, itemSeatsOf, type ItemSeat, type OutsideSlot } from './item-seating.js';
|
|
6
10
|
export { Capacity } from './capacity-mixin.js';
|
|
7
11
|
export * from './slot-layout/index.js';
|
|
8
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/items/index.ts"],"names":[],"mappings":"AAOA,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AAEtC,cAAc,qBAAqB,CAAA;AACnC,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/items/index.ts"],"names":[],"mappings":"AAOA,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AAEtC,cAAc,qBAAqB,CAAA;AACnC,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAE1E,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAEvD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAE3H,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGrG,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** The business id an item is found by, or null for an item that has none. */
|
|
2
|
+
export declare function itemIdOf(item: any): string | null;
|
|
3
|
+
/** The item of an id in a root: held by one of its holders. Null when there is none. Never makes one. */
|
|
4
|
+
export declare function itemById(root: object | null | undefined, id: unknown): any | null;
|
|
5
|
+
/** Registers an item where its holder is: under its holder's root, or nowhere when the holder has no root. */
|
|
6
|
+
export declare function registerItem(holder: any, item: any): void;
|
|
7
|
+
/** Takes an item out of the registry it was put in. */
|
|
8
|
+
export declare function forgetItem(item: any): void;
|
|
9
|
+
/** A holder entered a root: its items are found there from now on. */
|
|
10
|
+
export declare function registerHeldItems(holder: any): void;
|
|
11
|
+
/** A holder left a root: its items are not found there any more. */
|
|
12
|
+
export declare function forgetHeldItems(holder: any): void;
|
|
13
|
+
//# sourceMappingURL=item-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-registry.d.ts","sourceRoot":"","sources":["../../src/items/item-registry.ts"],"names":[],"mappings":"AAiBA,8EAA8E;AAC9E,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI,CAGjD;AAQD,yGAAyG;AACzG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,EAAE,EAAE,OAAO,GAAG,GAAG,GAAG,IAAI,CAQjF;AAED,8GAA8G;AAC9G,wBAAgB,YAAY,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CASzD;AAED,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAM1C;AAED,sEAAsE;AACtE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,CAEnD;AAED,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,CAEjD"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type FigureOccupancySnapshot, type FitResult, type ItemDims, type ResolvedSlot, type SeatTransform, type SlotLayout } from '@hatiolab/figure-model';
|
|
2
|
+
/**
|
|
3
|
+
* An item's size in mm read off its state, by the drawing's mm per coordinate (common item contract 3.3): state width is
|
|
4
|
+
* X, state height is the board's Z, state depth is up -- figure-model's width, depth and height. The one place the axis
|
|
5
|
+
* names are turned. Null when one is not a positive number.
|
|
6
|
+
*/
|
|
7
|
+
export declare function itemDimsFromState(item: any, mmPerUnit: number): ItemDims | null;
|
|
8
|
+
/** A slot a holder keeps outside its layout: anything, any number, stacked, no fit judged (e.g. fmsim's exceptions). */
|
|
9
|
+
export interface OutsideSlot {
|
|
10
|
+
id: string;
|
|
11
|
+
anchorId: string;
|
|
12
|
+
/** Where its bottom is, in its anchor's frame: mm, and degrees about the anchor's Y. */
|
|
13
|
+
frame: {
|
|
14
|
+
position: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
z: number;
|
|
18
|
+
};
|
|
19
|
+
rotation: number;
|
|
20
|
+
};
|
|
21
|
+
/** HANG stacks down. ON by default. */
|
|
22
|
+
mount?: 'ON' | 'HANG';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Where one item sits, and what its slot says of it:
|
|
26
|
+
* seated at `inSlot` in its slot's frame, `inAnchor` in its anchor's
|
|
27
|
+
* unconfirmed its size, or the size of one under it, is not known: it stands at the slot's face, unscaled -- or,
|
|
28
|
+
* when its holder gives a size to show it at, stacked by that
|
|
29
|
+
* unplaced its slot is neither in the layout nor outside it: it is kept where it stood
|
|
30
|
+
* `fit` is the slot's verdict at full size; a slot outside the layout judges none.
|
|
31
|
+
*/
|
|
32
|
+
export interface ItemSeat {
|
|
33
|
+
slotId: string;
|
|
34
|
+
stackIndex: number;
|
|
35
|
+
status: 'seated' | 'unconfirmed' | 'unplaced';
|
|
36
|
+
why?: 'slot-absent' | 'size-unknown' | 'below-unknown';
|
|
37
|
+
fit?: FitResult;
|
|
38
|
+
outside: boolean;
|
|
39
|
+
anchorId: string | null;
|
|
40
|
+
inSlot: SeatTransform | null;
|
|
41
|
+
inAnchor: SeatTransform | null;
|
|
42
|
+
shrunk: boolean;
|
|
43
|
+
/** The size it is shown at, in mm, before the seat's scale: its own, or the one its holder shows it at; else null */
|
|
44
|
+
dims: ItemDims | null;
|
|
45
|
+
}
|
|
46
|
+
/** What a holder answers for seating: its layout, its slots outside it, and an item's type and size. */
|
|
47
|
+
interface SeatingHolder {
|
|
48
|
+
_items?: any[];
|
|
49
|
+
effectiveLayout?: {
|
|
50
|
+
layout?: SlotLayout;
|
|
51
|
+
};
|
|
52
|
+
outsideSlots?(): OutsideSlot[];
|
|
53
|
+
itemTypeOf?(item: any): string | null;
|
|
54
|
+
itemDimsOf?(item: any): ItemDims | null;
|
|
55
|
+
/** The size an item whose own is not known is shown at, in its slot: for showing only, never judged. */
|
|
56
|
+
itemShownDimsOf?(item: any, slot: ResolvedSlot, slotId: string): ItemDims | null;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Everything a holder holds now, as figure-model reads it: each item's id, slot, place in its slot's stack (0 the
|
|
60
|
+
* bottom), type and size in mm. An item with no id, or an id another of its items has, is numbered `#n` here only.
|
|
61
|
+
*/
|
|
62
|
+
export declare function occupancySnapshotOf(holder: SeatingHolder, revision?: string): FigureOccupancySnapshot;
|
|
63
|
+
/**
|
|
64
|
+
* Every item's seat, the holder's whole occupancy at once. `pending` is an item about to be handed into a slot: it is
|
|
65
|
+
* counted on top of that slot's stack, wherever it is now.
|
|
66
|
+
*/
|
|
67
|
+
export declare function itemSeatsOf(holder: SeatingHolder, pending?: {
|
|
68
|
+
item: any;
|
|
69
|
+
slotId: string;
|
|
70
|
+
}): Map<any, ItemSeat>;
|
|
71
|
+
export {};
|
|
72
|
+
//# sourceMappingURL=item-seating.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-seating.d.ts","sourceRoot":"","sources":["../../src/items/item-seating.ts"],"names":[],"mappings":"AAWA,OAAO,EAOL,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,UAAU,EAChB,MAAM,wBAAwB,CAAA;AAI/B;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAG/E;AAED,wHAAwH;AACxH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,wFAAwF;IACxF,KAAK,EAAE;QAAE,QAAQ,EAAE;YAAE,CAAC,EAAE,MAAM,C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EAAE,QAAQ,SAAK,GAAG,uBAAuB,CAEjG;AA8DD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CA2D9G"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/** The theme type a domain keeps its item types under, unless the app names its own. */
|
|
2
|
+
export declare const ITEM_TYPES_THEME = "item-types";
|
|
3
|
+
/** The longest code a type may have. */
|
|
4
|
+
export declare const ITEM_TYPE_CODE_MAX = 64;
|
|
5
|
+
/** One item type: its code, the name shown, and the figure it is drawn by (null: a box). */
|
|
6
|
+
export interface ItemType {
|
|
7
|
+
code: string;
|
|
8
|
+
name: string;
|
|
9
|
+
figure: string | null;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* What reading a table left out, said:
|
|
13
|
+
* - `item-type-code`: a row with no code, spaces around it, or one too long (`at`: its row)
|
|
14
|
+
* - `item-type-figure`: a figure that is not a name
|
|
15
|
+
* - `item-type-duplicate`: a code written in more than one row; all of them are left out
|
|
16
|
+
* - `item-types-shape`: the value is not `{ types: [...] }`
|
|
17
|
+
* - `item-types-active-many`: more than one active theme of the type; none is used
|
|
18
|
+
*/
|
|
19
|
+
export type ItemTypeIssue = {
|
|
20
|
+
code: 'item-type-code' | 'item-type-figure';
|
|
21
|
+
at: number;
|
|
22
|
+
} | {
|
|
23
|
+
code: 'item-type-duplicate';
|
|
24
|
+
id: string;
|
|
25
|
+
at: number[];
|
|
26
|
+
} | {
|
|
27
|
+
code: 'item-types-shape';
|
|
28
|
+
} | {
|
|
29
|
+
code: 'item-types-active-many';
|
|
30
|
+
names: string[];
|
|
31
|
+
};
|
|
32
|
+
/** A read table: the types by code, and what was left out. */
|
|
33
|
+
export interface ItemTypeTable {
|
|
34
|
+
types: ReadonlyMap<string, ItemType>;
|
|
35
|
+
issues: ItemTypeIssue[];
|
|
36
|
+
}
|
|
37
|
+
/** A table's value read by the one rule: rows that do not hold, and codes written twice, are left out and said. */
|
|
38
|
+
export declare function readItemTypes(value: unknown): ItemTypeTable;
|
|
39
|
+
/** A theme as the theme stores give it: its value may come as text (a store that keeps text). */
|
|
40
|
+
export interface ThemeLike {
|
|
41
|
+
name?: string;
|
|
42
|
+
type?: string;
|
|
43
|
+
active?: boolean | null;
|
|
44
|
+
value?: unknown;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A domain's table: its one active theme of the type, read -- `item-types`, or the type the app keeps them under (fmsim:
|
|
48
|
+
* `carrier-types`). None active is an empty table (every code unconfirmed). More than one active is an empty table too,
|
|
49
|
+
* with their names said -- none is chosen.
|
|
50
|
+
*/
|
|
51
|
+
export declare function itemTypesFromThemes(themes: ReadonlyArray<ThemeLike> | null | undefined, type?: string): ItemTypeTable;
|
|
52
|
+
/** Whether a value is a table already read. */
|
|
53
|
+
export declare function isItemTypeTable(value: unknown): value is ItemTypeTable;
|
|
54
|
+
/**
|
|
55
|
+
* The table of the scene a component stands in, or undefined when the scene was given none (an app that does not use
|
|
56
|
+
* item types).
|
|
57
|
+
*/
|
|
58
|
+
export declare function itemTypeTableOf(component: any): ItemTypeTable | undefined;
|
|
59
|
+
/** The item type of the code an item carries (`state.type`), when the table has it. */
|
|
60
|
+
export declare function itemTypeEntryOf(table: ItemTypeTable, item: any): ItemType | null;
|
|
61
|
+
//# sourceMappingURL=item-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-types.d.ts","sourceRoot":"","sources":["../../src/items/item-types.ts"],"names":[],"mappings":"AAaA,wFAAwF;AACxF,eAAO,MAAM,gBAAgB,eAAe,CAAA;AAE5C,wCAAwC;AACxC,eAAO,MAAM,kBAAkB,KAAK,CAAA;AAEpC,4FAA4F;AAC5F,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MA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