@woosh/meep-engine 2.119.80 → 2.119.81
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/editor/Editor.d.ts.map +1 -1
- package/editor/SelectionVisualizer.d.ts +0 -6
- package/editor/SelectionVisualizer.d.ts.map +1 -1
- package/editor/actions/concrete/ComponentAddAction.d.ts +0 -3
- package/editor/actions/concrete/ComponentAddAction.d.ts.map +1 -1
- package/editor/actions/concrete/ComponentRemoveAction.d.ts +0 -4
- package/editor/actions/concrete/ComponentRemoveAction.d.ts.map +1 -1
- package/editor/actions/concrete/EntityCreateAction.d.ts +0 -3
- package/editor/actions/concrete/EntityCreateAction.d.ts.map +1 -1
- package/editor/actions/concrete/EntityRemoveAction.d.ts.map +1 -1
- package/editor/actions/concrete/SelectionAddAction.d.ts.map +1 -1
- package/editor/actions/concrete/SelectionClearAction.d.ts +0 -3
- package/editor/actions/concrete/SelectionClearAction.d.ts.map +1 -1
- package/editor/actions/concrete/SelectionRemoveAction.d.ts +0 -3
- package/editor/actions/concrete/SelectionRemoveAction.d.ts.map +1 -1
- package/editor/ecs/EditorEntity.d.ts +0 -7
- package/editor/ecs/EditorEntity.d.ts.map +1 -1
- package/editor/ecs/component/createObjectEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/ImagePathEditor.d.ts +7 -0
- package/editor/ecs/component/editors/ImagePathEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/LargeStringEditor.d.ts +16 -0
- package/editor/ecs/component/editors/LargeStringEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/Sampler2DEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/common/EnumEditor.d.ts +8 -0
- package/editor/ecs/component/editors/common/EnumEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/GridObstacleEditor.d.ts +7 -0
- package/editor/ecs/component/editors/ecs/GridObstacleEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/MinimapMarkerEditor.d.ts +14 -0
- package/editor/ecs/component/editors/ecs/MinimapMarkerEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.d.ts +67 -0
- package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/ParameterTrackEditor.d.ts +12 -0
- package/editor/ecs/component/editors/ecs/ParameterTrackEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/ParticleEmitterEditor.d.ts +52 -0
- package/editor/ecs/component/editors/ecs/ParticleEmitterEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.d.ts +48 -0
- package/editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/SimulationStepDefinitionEditor.d.ts +16 -0
- package/editor/ecs/component/editors/ecs/SimulationStepDefinitionEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/Trail2DEditor.d.ts +30 -0
- package/editor/ecs/component/editors/ecs/Trail2DEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/TransformEditor.d.ts +20 -0
- package/editor/ecs/component/editors/ecs/TransformEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/terrain/SplatMappingEditor.d.ts +19 -0
- package/editor/ecs/component/editors/ecs/terrain/SplatMappingEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/terrain/TerrainEditor.d.ts +39 -0
- package/editor/ecs/component/editors/ecs/terrain/TerrainEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/terrain/TerrainLayerEditor.d.ts +16 -0
- package/editor/ecs/component/editors/ecs/terrain/TerrainLayerEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/terrain/TerrainLayersEditor.d.ts +19 -0
- package/editor/ecs/component/editors/ecs/terrain/TerrainLayersEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/terrain/TerrainOverlayEditor.d.ts +18 -0
- package/editor/ecs/component/editors/ecs/terrain/TerrainOverlayEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/three/BufferGeometryEditor.d.ts +7 -0
- package/editor/ecs/component/editors/three/BufferGeometryEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/three/MaterialEditor.d.ts +7 -0
- package/editor/ecs/component/editors/three/MaterialEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/three/MeshEditor.d.ts +7 -0
- package/editor/ecs/component/editors/three/MeshEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/three/TextureEditor.d.ts +7 -0
- package/editor/ecs/component/editors/three/TextureEditor.d.ts.map +1 -0
- package/editor/process/DisableGameUIProcess.d.ts +8 -0
- package/editor/process/DisableGameUIProcess.d.ts.map +1 -0
- package/editor/process/ObstacleGridDisplayProcess.d.ts +13 -0
- package/editor/process/ObstacleGridDisplayProcess.d.ts.map +1 -0
- package/editor/process/SymbolicDisplayProcess.d.ts +19 -0
- package/editor/process/SymbolicDisplayProcess.d.ts.map +1 -0
- package/editor/process/symbolic/ComponentSymbolicDisplay.d.ts +11 -0
- package/editor/process/symbolic/ComponentSymbolicDisplay.d.ts.map +1 -0
- package/editor/process/symbolic/SymbolicDisplayInternalAPI.d.ts +65 -0
- package/editor/process/symbolic/SymbolicDisplayInternalAPI.d.ts.map +1 -0
- package/editor/process/symbolic/buildThreeJSHelperEntity.d.ts +9 -0
- package/editor/process/symbolic/buildThreeJSHelperEntity.d.ts.map +1 -0
- package/editor/process/symbolic/make3DSymbolicDisplay.d.ts +10 -0
- package/editor/process/symbolic/make3DSymbolicDisplay.d.ts.map +1 -0
- package/editor/process/symbolic/makeCameraSymbolicDisplay.d.ts +7 -0
- package/editor/process/symbolic/makeCameraSymbolicDisplay.d.ts.map +1 -0
- package/editor/process/symbolic/makeGridPositionSymbolDisplay.d.ts +6 -0
- package/editor/process/symbolic/makeGridPositionSymbolDisplay.d.ts.map +1 -0
- package/editor/process/symbolic/makeLightSymbolicDisplay.d.ts +7 -0
- package/editor/process/symbolic/makeLightSymbolicDisplay.d.ts.map +1 -0
- package/editor/process/symbolic/makeParticleEmitterSymbolicDisplay.d.ts +6 -0
- package/editor/process/symbolic/makeParticleEmitterSymbolicDisplay.d.ts.map +1 -0
- package/editor/process/symbolic/makePathSymbolicDisplay.d.ts +7 -0
- package/editor/process/symbolic/makePathSymbolicDisplay.d.ts.map +1 -0
- package/editor/process/symbolic/makePositionedIconDisplaySymbol.d.ts +9 -0
- package/editor/process/symbolic/makePositionedIconDisplaySymbol.d.ts.map +1 -0
- package/editor/process/symbolic/makeSocketsSymbolicDisplay.d.ts +7 -0
- package/editor/process/symbolic/makeSocketsSymbolicDisplay.d.ts.map +1 -0
- package/editor/process/symbolic/makeSoundEmitterSymbolicDisplay.d.ts +6 -0
- package/editor/process/symbolic/makeSoundEmitterSymbolicDisplay.d.ts.map +1 -0
- package/editor/process/symbolic/synchronizeTransform.d.ts +12 -0
- package/editor/process/symbolic/synchronizeTransform.d.ts.map +1 -0
- package/editor/tools/GridPaintTool.d.ts.map +1 -1
- package/editor/tools/SelectionTool.d.ts +27 -0
- package/editor/tools/SelectionTool.d.ts.map +1 -1
- package/editor/tools/TopDownCameraControlTool.d.ts.map +1 -1
- package/editor/tools/engine/Tool.d.ts +1 -1
- package/editor/tools/engine/Tool.d.ts.map +1 -1
- package/editor/tools/engine/ToolEngine.d.ts +1 -8
- package/editor/tools/engine/ToolEngine.d.ts.map +1 -1
- package/editor/tools/paint/TerrainHeightPaintTool.d.ts.map +1 -1
- package/editor/tools/paint/TerrainPaintTool.d.ts.map +1 -1
- package/editor/tools/paint/TerrainTexturePaintTool.d.ts.map +1 -1
- package/editor/view/EditorView.d.ts.map +1 -1
- package/editor/view/ecs/ComponentControlFactory.d.ts +0 -5
- package/editor/view/ecs/ComponentControlFactory.d.ts.map +1 -1
- package/editor/view/ecs/EntityEditor.d.ts +2 -3
- package/editor/view/ecs/EntityEditor.d.ts.map +1 -1
- package/editor/view/ecs/EntityList.d.ts.map +1 -1
- package/editor/view/ecs/components/GridObstacleController.d.ts +14 -0
- package/editor/view/ecs/components/GridObstacleController.d.ts.map +1 -0
- package/editor/view/tools/ToolView.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/binary/half_to_float_uint16.d.ts +9 -0
- package/src/core/binary/half_to_float_uint16.d.ts.map +1 -0
- package/src/core/binary/half_to_float_uint16.js +41 -0
- package/src/core/localization/Localization.d.ts.map +1 -1
- package/src/core/localization/Localization.js +3 -1
- package/src/engine/ecs/fow/FogOfWarRevealerSystem.d.ts +2 -2
- package/src/engine/ecs/fow/FogOfWarRevealerSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLanderSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLanderSystem.js +14 -8
- package/src/engine/graphics/ecs/path/PathDisplaySystem.d.ts.map +1 -1
- package/src/view/minimap/gl/MinimapTerrainGL.d.ts.map +1 -1
- package/src/view/minimap/gl/MinimapTerrainGL.js +8 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export class BufferGeometryEditor extends TypeEditor<any> {
|
|
2
|
+
constructor();
|
|
3
|
+
build(parent: any, field: any, registry: any): CanvasView;
|
|
4
|
+
}
|
|
5
|
+
import { TypeEditor } from "../../TypeEditor.js";
|
|
6
|
+
import { CanvasView } from "../../../../../src/view/elements/CanvasView.js";
|
|
7
|
+
//# sourceMappingURL=BufferGeometryEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BufferGeometryEditor.d.ts","sourceRoot":"","sources":["BufferGeometryEditor.js"],"names":[],"mappings":"AAQA;;IACI,0DAiBC;CACJ;2BArB0B,qBAAqB;2BADrB,gDAAgD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export class MaterialEditor extends TypeEditor<any> {
|
|
2
|
+
constructor();
|
|
3
|
+
build(parent: any, field: any, registry: any): CanvasView;
|
|
4
|
+
}
|
|
5
|
+
import { TypeEditor } from "../../TypeEditor.js";
|
|
6
|
+
import { CanvasView } from "../../../../../src/view/elements/CanvasView.js";
|
|
7
|
+
//# sourceMappingURL=MaterialEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaterialEditor.d.ts","sourceRoot":"","sources":["MaterialEditor.js"],"names":[],"mappings":"AAOA;;IACI,0DAiBC;CACJ;2BArB0B,qBAAqB;2BADrB,gDAAgD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export class MeshEditor extends TypeEditor<any> {
|
|
2
|
+
constructor();
|
|
3
|
+
build(parent: any, field: any, registry: any): CanvasView;
|
|
4
|
+
}
|
|
5
|
+
import { TypeEditor } from "../../TypeEditor.js";
|
|
6
|
+
import { CanvasView } from "../../../../../src/view/elements/CanvasView.js";
|
|
7
|
+
//# sourceMappingURL=MeshEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MeshEditor.d.ts","sourceRoot":"","sources":["MeshEditor.js"],"names":[],"mappings":"AAQA;;IACI,0DAwBC;CACJ;2BA5B0B,qBAAqB;2BADrB,gDAAgD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export class TextureEditor extends TypeEditor<any> {
|
|
2
|
+
constructor();
|
|
3
|
+
build(parent: any, field: any, registry: any): EmptyView;
|
|
4
|
+
}
|
|
5
|
+
import { TypeEditor } from "../../TypeEditor.js";
|
|
6
|
+
import EmptyView from "../../../../../src/view/elements/EmptyView.js";
|
|
7
|
+
//# sourceMappingURL=TextureEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextureEditor.d.ts","sourceRoot":"","sources":["TextureEditor.js"],"names":[],"mappings":"AAcA;;IAGI,yDA6FC;CACJ;2BArG0B,qBAAqB;sBAD1B,+CAA+C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisableGameUIProcess.d.ts","sourceRoot":"","sources":["DisableGameUIProcess.js"],"names":[],"mappings":"AAGA;IAQI,8BAEC;CAyBJ;;;;8BAtC6B,oBAAoB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class ObstacleGridDisplayProcess extends EditorProcess {
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @type {TerrainOverlay|null}
|
|
5
|
+
*/
|
|
6
|
+
overlay: TerrainOverlay | null;
|
|
7
|
+
draw(): void;
|
|
8
|
+
}
|
|
9
|
+
export namespace ObstacleGridDisplayProcess {
|
|
10
|
+
let Id: string;
|
|
11
|
+
}
|
|
12
|
+
import { EditorProcess } from "./EditorProcess.js";
|
|
13
|
+
//# sourceMappingURL=ObstacleGridDisplayProcess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObstacleGridDisplayProcess.d.ts","sourceRoot":"","sources":["ObstacleGridDisplayProcess.js"],"names":[],"mappings":"AAMA;IAIQ;;;OAGG;IACH,SAFU,iBAAe,IAAI,CAEV;IA4BvB,aAgEC;CASJ;;;;8BAnH6B,oBAAoB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class SymbolicDisplayProcess extends EditorProcess {
|
|
2
|
+
requiredSystems: {
|
|
3
|
+
klass: typeof RenderSystem;
|
|
4
|
+
factory: () => RenderSystem;
|
|
5
|
+
}[];
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @type {EditorProcess[]}
|
|
9
|
+
*/
|
|
10
|
+
displays: EditorProcess[];
|
|
11
|
+
spawnedSystems: any[];
|
|
12
|
+
initialize(editor: any): void;
|
|
13
|
+
}
|
|
14
|
+
export namespace SymbolicDisplayProcess {
|
|
15
|
+
let Id: string;
|
|
16
|
+
}
|
|
17
|
+
import { EditorProcess } from "./EditorProcess.js";
|
|
18
|
+
import RenderSystem from "../../src/engine/ecs/renderable/RenderSystem.js";
|
|
19
|
+
//# sourceMappingURL=SymbolicDisplayProcess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SymbolicDisplayProcess.d.ts","sourceRoot":"","sources":["SymbolicDisplayProcess.js"],"names":[],"mappings":"AAkBA;IAOQ;;;QAKE;IAEF;;;OAGG;IACH,UAFU,aAAa,EAAE,CAEP;IAElB,sBAAwB;IAG5B,8BA2BC;CA2DJ;;;;8BA/H6B,oBAAoB;yBAEzB,iDAAiD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class ComponentSymbolicDisplay extends EditorProcess {
|
|
2
|
+
constructor(components: any, creator: any, destructor: any);
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @type {EntityObserver}
|
|
6
|
+
*/
|
|
7
|
+
observer: EntityObserver;
|
|
8
|
+
}
|
|
9
|
+
import { EditorProcess } from "../EditorProcess.js";
|
|
10
|
+
import { EntityObserver } from "../../../src/engine/ecs/EntityObserver.js";
|
|
11
|
+
//# sourceMappingURL=ComponentSymbolicDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentSymbolicDisplay.d.ts","sourceRoot":"","sources":["ComponentSymbolicDisplay.js"],"names":[],"mappings":"AAGA;IACI,4DAQC;IALG;;;OAGG;IACH,UAFU,cAAc,CAE2C;CAsB1E;8BAjC6B,qBAAqB;+BACpB,2CAA2C"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export class SymbolicDisplayInternalAPI {
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @type {SignalBinding[]}
|
|
5
|
+
*/
|
|
6
|
+
bindings: SignalBinding[];
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @type {Engine}
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
12
|
+
private __engine;
|
|
13
|
+
__requestUpdate: Signal<any, any, any, any, any, any, any, any>;
|
|
14
|
+
random: () => number;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @type {List<Entity>}
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
private __managed_entities;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {ProcessState}
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
private __state;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {EntityComponentDataset}
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
private __dataset;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
private __source_entity;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @param {Entity} entity
|
|
42
|
+
*/
|
|
43
|
+
emit(entity: Entity): void;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @param {number} entity
|
|
47
|
+
* @param {EntityComponentDataset} ecd
|
|
48
|
+
* @param {Engine} engine
|
|
49
|
+
*/
|
|
50
|
+
initialize({ entity, ecd, engine }: number): void;
|
|
51
|
+
finalize(): void;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @param {Transform} source
|
|
55
|
+
* @param {Transform} target
|
|
56
|
+
*/
|
|
57
|
+
bindTransform(source: Transform, target: Transform): void;
|
|
58
|
+
bind(signal: any, action: any, context: any): void;
|
|
59
|
+
onFrame(method: any, thisArg: any): void;
|
|
60
|
+
unbind(signal: any, action: any, context: any): boolean;
|
|
61
|
+
update(): void;
|
|
62
|
+
}
|
|
63
|
+
import { SignalBinding } from "../../../src/core/events/signal/SignalBinding.js";
|
|
64
|
+
import Signal from "../../../src/core/events/signal/Signal.js";
|
|
65
|
+
//# sourceMappingURL=SymbolicDisplayInternalAPI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SymbolicDisplayInternalAPI.d.ts","sourceRoot":"","sources":["SymbolicDisplayInternalAPI.js"],"names":[],"mappings":"AAQA;IAEQ;;;OAGG;IACH,UAFU,aAAa,EAAE,CAEP;IAElB;;;;OAIG;IACH,iBAAoB;IAEpB,gEAAmC;IAEnC,qBAA8B;IAE9B;;;;OAIG;IACH,2BAAoC;IAEpC;;;;OAIG;IACH,gBAA+B;IAE/B;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,wBAAyB;IAG7B;;;OAGG;IACH,2BAaC;IAED;;;;;OAKG;IACH,oCAJW,MAAM,QAchB;IAED,iBAWC;IAED;;;;OAIG;IACH,0DAWC;IAED,mDAIC;IAED,yCAGC;IAED,wDAgBC;IAGD,eAEC;CAEJ;8BA9J6B,kDAAkD;mBAC7D,2CAA2C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {Object3D} helper
|
|
4
|
+
* @param {number} sourceEntity
|
|
5
|
+
* @return {Entity}
|
|
6
|
+
*/
|
|
7
|
+
export function buildThreeJSHelperEntity(helper: Object3D, sourceEntity?: number): Entity;
|
|
8
|
+
import Entity from "../../../src/engine/ecs/Entity.js";
|
|
9
|
+
//# sourceMappingURL=buildThreeJSHelperEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildThreeJSHelperEntity.d.ts","sourceRoot":"","sources":["buildThreeJSHelperEntity.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,0EAHW,MAAM,GACL,MAAM,CAwBjB;mBAnCkB,mCAAmC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {Engine} engine
|
|
4
|
+
* @param {function(components:[], api:{bind:function(Signal, function, thisArg:*), update: function, bindings:SignalBinding[]})} factory
|
|
5
|
+
* @param {Class[]} components
|
|
6
|
+
* @return {ComponentSymbolicDisplay}
|
|
7
|
+
*/
|
|
8
|
+
export function make3DSymbolicDisplay({ engine, factory, components }: Engine): ComponentSymbolicDisplay;
|
|
9
|
+
import { ComponentSymbolicDisplay } from "./ComponentSymbolicDisplay.js";
|
|
10
|
+
//# sourceMappingURL=make3DSymbolicDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"make3DSymbolicDisplay.d.ts","sourceRoot":"","sources":["make3DSymbolicDisplay.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,gFAFY,wBAAwB,CA+EnC;yCAvFwC,+BAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeCameraSymbolicDisplay.d.ts","sourceRoot":"","sources":["makeCameraSymbolicDisplay.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,oFAmBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeGridPositionSymbolDisplay.d.ts","sourceRoot":"","sources":["makeGridPositionSymbolDisplay.js"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,gIA0JC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeLightSymbolicDisplay.d.ts","sourceRoot":"","sources":["makeLightSymbolicDisplay.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,mFAgEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeParticleEmitterSymbolicDisplay.d.ts","sourceRoot":"","sources":["makeParticleEmitterSymbolicDisplay.js"],"names":[],"mappings":"AAUA;;;GAGG;AACH,qIAmIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makePathSymbolicDisplay.d.ts","sourceRoot":"","sources":["makePathSymbolicDisplay.js"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,kFA2FC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @template C,T
|
|
3
|
+
* @param {Engine} engine
|
|
4
|
+
* @param {string} iconURL
|
|
5
|
+
* @param {C} ComponentClass
|
|
6
|
+
* @returns {ComponentSymbolicDisplay}
|
|
7
|
+
*/
|
|
8
|
+
export function makePositionedIconDisplaySymbol<C, T>(engine: Engine, iconURL: string, ComponentClass: C): ComponentSymbolicDisplay;
|
|
9
|
+
//# sourceMappingURL=makePositionedIconDisplaySymbol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makePositionedIconDisplaySymbol.d.ts","sourceRoot":"","sources":["makePositionedIconDisplaySymbol.js"],"names":[],"mappings":"AAUA;;;;;;GAMG;AACH,+EAJW,MAAM,+CA0DhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeSocketsSymbolicDisplay.d.ts","sourceRoot":"","sources":["makeSocketsSymbolicDisplay.js"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,qFAkIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeSoundEmitterSymbolicDisplay.d.ts","sourceRoot":"","sources":["makeSoundEmitterSymbolicDisplay.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH,kIA6EC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {!Transform} source
|
|
4
|
+
* @param {!Transform} target
|
|
5
|
+
* @param {SignalBinding[]} bindings
|
|
6
|
+
* @param {boolean} [syncPosition=true]
|
|
7
|
+
* @param {boolean} [syncRotation=true]
|
|
8
|
+
* @param {boolean} [syncScale=true]
|
|
9
|
+
*/
|
|
10
|
+
export function synchronizeTransform(source: Transform, target: Transform, bindings: SignalBinding[], syncPosition?: boolean, syncRotation?: boolean, syncScale?: boolean): void;
|
|
11
|
+
import { SignalBinding } from "../../../src/core/events/signal/SignalBinding.js";
|
|
12
|
+
//# sourceMappingURL=synchronizeTransform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"synchronizeTransform.d.ts","sourceRoot":"","sources":["synchronizeTransform.js"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,qFALW,aAAa,EAAE,iBACf,OAAO,iBACP,OAAO,cACP,OAAO,QAwCjB;8BAjD6B,kDAAkD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridPaintTool.d.ts","sourceRoot":"","sources":["GridPaintTool.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"GridPaintTool.d.ts","sourceRoot":"","sources":["GridPaintTool.js"],"names":[],"mappings":";AAiBA;IAGQ,aAAwB;IAexB,uEAEE;IAcF;;;MAA2E;IAI/E,sBAQC;IAED,cAyBC;IAED,8BAyBC;IAiBD,mCAuCC;IAED,+CAQC;CAcJ;iBAtLgB,kBAAkB;oBAZf,gCAAgC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {Vector2} point
|
|
4
|
+
* @param {Engine} engine
|
|
5
|
+
* @param {THREE.Camera} camera
|
|
6
|
+
* @returns {number[]} entities
|
|
7
|
+
*/
|
|
8
|
+
export function pickingEntitySelection(point: Vector2, engine: Engine, camera: THREE.Camera): number[];
|
|
9
|
+
export default SelectionTool;
|
|
10
|
+
import Vector2 from '../../src/core/geom/Vector2.js';
|
|
11
|
+
import { Camera } from '../../src/engine/graphics/ecs/camera/Camera.js';
|
|
12
|
+
declare class SelectionTool extends Tool {
|
|
13
|
+
name: string;
|
|
14
|
+
anchorPoint: Vector2;
|
|
15
|
+
targetPoint: Vector2;
|
|
16
|
+
box: AABB2;
|
|
17
|
+
selectionMarker: SelectionView;
|
|
18
|
+
readPosition(target: any): void;
|
|
19
|
+
}
|
|
20
|
+
import Tool from './engine/Tool.js';
|
|
21
|
+
import AABB2 from '../../src/core/geom/2d/aabb/AABB2.js';
|
|
22
|
+
declare class SelectionView extends View<HTMLElement> {
|
|
23
|
+
constructor();
|
|
24
|
+
el: HTMLDivElement;
|
|
25
|
+
}
|
|
26
|
+
import View from '../../src/view/View.js';
|
|
27
|
+
//# sourceMappingURL=SelectionTool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionTool.d.ts","sourceRoot":"","sources":["SelectionTool.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectionTool.d.ts","sourceRoot":"","sources":["SelectionTool.js"],"names":[],"mappings":"AA8MA;;;;;;GAMG;AACH,8CALW,OAAO,0BAEP,YAAY,GACV,MAAM,EAAE,CAkEpB;;oBAnRmB,gCAAgC;uBAE7B,gDAAgD;AA6BvE;IAGQ,aAA+B;IAE/B,qBAAgC;IAChC,qBAAgC;IAChC,WAAsB;IAEtB,+BAA0C;IAG9C,gCAIC;CA2GJ;iBAhJgB,kBAAkB;kBAXjB,sCAAsC;AAaxD;IACI,cAcC;IAZG,mBAAuC;CAa9C;iBAvBgB,wBAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopDownCameraControlTool.d.ts","sourceRoot":"","sources":["TopDownCameraControlTool.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TopDownCameraControlTool.d.ts","sourceRoot":"","sources":["TopDownCameraControlTool.js"],"names":[],"mappings":";AAMA;IAGQ,aAA4B;IAC5B,YAAkB;IAGlB;;;;OAIG;IACH,qBAAwB;CAkC/B;iBAhDgB,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tool.d.ts","sourceRoot":"","sources":["Tool.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Tool.d.ts","sourceRoot":"","sources":["Tool.js"],"names":[],"mappings":";AAIA;IASQ,UAAgB;IAChB,oBAA+B;IAC/B,aAAkB;IAClB;;;MAGC;IACD;;;OAGG;IACH,QAFU,SAAO,IAAI,CAEH;IAClB;;;OAGG;IACH,QAFU,SAAO,IAAI,CAEH;IAElB;;;OAGG;IACH,MAFU,cAAc,CAEU;IAGtC;;;OAGG;IACH,iCAEC;IAED;;;OAGG;IACH,YAFa,SAAS,GAAC,MAAM,CAI5B;IAED,qBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,iBAEC;IAED;;OAEG;IACH,eAEC;IAED;;;OAGG;IACH,cAEC;IAED;;;OAGG;IACH,aAEC;IAED,kCAEC;;CACJ;0BAjGyB,0CAA0C;2BADzC,2CAA2C;0BAE5C,gBAAgB"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
export default ToolEngine;
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @constructor
|
|
5
|
-
* @property {List.<Tool>} tools
|
|
6
|
-
* @property {ObservedValue.<Tool>} active
|
|
7
|
-
*/
|
|
8
|
-
declare function ToolEngine(): void;
|
|
9
2
|
declare class ToolEngine {
|
|
10
3
|
tools: List<any>;
|
|
11
|
-
active: ObservedValue
|
|
4
|
+
active: ObservedValue;
|
|
12
5
|
engine: any;
|
|
13
6
|
isRunning: boolean;
|
|
14
7
|
shutdownCallbacks: any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolEngine.d.ts","sourceRoot":"","sources":["ToolEngine.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ToolEngine.d.ts","sourceRoot":"","sources":["ToolEngine.js"],"names":[],"mappings":";AAaA;IAQQ,iBAAuB;IACvB,sBAAqC;IACrC,YAAkB;IAClB,mBAAsB;IACtB,yBAA2B;IAC3B,uBAAmB;IAGvB,8BAOC;IAED,mBAgDC;IAED;;;;OAIG;IACH,8CAyEC;IAvEG,eAAoB;IAyExB,iBAgBC;CACJ;iBAzLgB,2CAA2C;0BAClC,0CAA0C;8BAGtC,oDAAoD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TerrainHeightPaintTool.d.ts","sourceRoot":"","sources":["TerrainHeightPaintTool.js"],"names":[],"mappings":"AAuFA;IAQQ;;;OAGG;IACH,iBAFU,aAAa,MAAM,CAAC,CAEW;IAG7C,4BAiDC;IA8DD;;;;OAIG;IACH,gCAHW,wBAAwB,GACtB,QAAQ,CAwEpB;CAQJ;
|
|
1
|
+
{"version":3,"file":"TerrainHeightPaintTool.d.ts","sourceRoot":"","sources":["TerrainHeightPaintTool.js"],"names":[],"mappings":"AAuFA;IAQQ;;;OAGG;IACH,iBAFU,aAAa,MAAM,CAAC,CAEW;IAG7C,4BAiDC;IA8DD;;;;OAIG;IACH,gCAHW,wBAAwB,GACtB,QAAQ,CAwEpB;CAQJ;iCA/RgC,uBAAuB;6BAR3B,qDAAqD;yCAKzC,oDAAoD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TerrainPaintTool.d.ts","sourceRoot":"","sources":["TerrainPaintTool.js"],"names":[],"mappings":"AAYA;IAIQ,aAA2B;IAc3B,yBAAoC;IAEpC,gCAAoD;IAEpD,qBAAqB;IACrB,yBAA4B;IAGhC;;;OAGG;IACH,iBAFW,MAAM,iBAIhB;IAED;;;OAGG;IACH,kBAFW,MAAM,QAwBhB;IAED,yBAiCC;IAED,4BAYC;IAED,sBAuBC;IAED;;;;OAIG;IACH,2BAWC;IAUG,0EAEE;IADE,mBAA2B;CAmCtC;
|
|
1
|
+
{"version":3,"file":"TerrainPaintTool.d.ts","sourceRoot":"","sources":["TerrainPaintTool.js"],"names":[],"mappings":"AAYA;IAIQ,aAA2B;IAc3B,yBAAoC;IAEpC,gCAAoD;IAEpD,qBAAqB;IACrB,yBAA4B;IAGhC;;;OAGG;IACH,iBAFW,MAAM,iBAIhB;IAED;;;OAGG;IACH,kBAFW,MAAM,QAwBhB;IAED,yBAiCC;IAED,4BAYC;IAED,sBAuBC;IAED;;;;OAIG;IACH,2BAWC;IAUG,0EAEE;IADE,mBAA2B;CAmCtC;iBAxMgB,mBAAmB;oBARhB,mCAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TerrainTexturePaintTool.d.ts","sourceRoot":"","sources":["TerrainTexturePaintTool.js"],"names":[],"mappings":"AAOA;IAYQ;;;;OAIG;IACH,0BAA4C;IAE5C,iBAAuB;IAI3B,8BA0BC;IAED;;;OAGG;IACH,kCAoBC;IAUD,qCAkFC;CAuBJ;
|
|
1
|
+
{"version":3,"file":"TerrainTexturePaintTool.d.ts","sourceRoot":"","sources":["TerrainTexturePaintTool.js"],"names":[],"mappings":"AAOA;IAYQ;;;;OAIG;IACH,0BAA4C;IAE5C,iBAAuB;IAI3B,8BA0BC;IAED;;;OAGG;IACH,kCAoBC;IAUD,qCAkFC;CAuBJ;iCAhMgC,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorView.d.ts","sourceRoot":"","sources":["EditorView.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EditorView.d.ts","sourceRoot":"","sources":["EditorView.js"],"names":[],"mappings":";AA8GA;IAKI;;;;OAIG;IACH,4BA+IC;IAxJD,gBAAsB;IAEtB,wBAA+B;IAa3B,YAAkB;IAElB;;;OAGG;IACH,eAAoB;IAEpB;;;OAGG;IACH,UAFU,IAAI,GAAC,IAAI,CAEC;IAWpB,+BAAoC;IAMpC,+BAAgC;IAqBhC,+BAAgC;IAwBhC,kBAAsB;IAkBtB,qBAA4B;IAe5B,+BAAkC;IAGlC,uCAAwD;IA6B5D,eAYC;CAuBJ;iBAnSgB,wBAAwB;sBAHnB,sCAAsC;2BAOjC,qBAAqB;6BAFnB,uBAAuB;6BAOvB,6BAA6B;qBAfrC,mCAAmC;4BAC5B,0CAA0C;mCAWnC,6BAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentControlFactory.d.ts","sourceRoot":"","sources":["ComponentControlFactory.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ComponentControlFactory.d.ts","sourceRoot":"","sources":["ComponentControlFactory.js"],"names":[],"mappings":";AAIA;IAMQ,oBAAyB;IAG7B;;;;;OAKG;IACH,4BAJW,MAAM,sBAEJ,uBAAuB,CASnC;IAED;;;;OAIG;IACH,0BAHW,MAAM,GACJ,MAAM,CAKlB;IAED,+BAEC;CACJ"}
|
|
@@ -8,11 +8,11 @@ declare class EntityEditor extends View<HTMLElement> {
|
|
|
8
8
|
*/
|
|
9
9
|
constructor(componentControlFactory: ComponentControlFactory, editor: Editor);
|
|
10
10
|
el: Element;
|
|
11
|
-
model: ObservedValue
|
|
11
|
+
model: ObservedValue;
|
|
12
12
|
/**
|
|
13
13
|
* @type {ObservedValue<EntityManager>}
|
|
14
14
|
*/
|
|
15
|
-
entityManager:
|
|
15
|
+
entityManager: any;
|
|
16
16
|
components: List<any>;
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
@@ -24,7 +24,6 @@ declare class EntityEditor extends View<HTMLElement> {
|
|
|
24
24
|
}
|
|
25
25
|
import View from "../../../src/view/View.js";
|
|
26
26
|
import ObservedValue from '../../../src/core/model/ObservedValue.js';
|
|
27
|
-
import { EntityManager } from "../../../src/engine/ecs/EntityManager.js";
|
|
28
27
|
import List from '../../../src/core/collection/list/List.js';
|
|
29
28
|
import { ComponentControlView } from "./ComponentControlView.js";
|
|
30
29
|
import LabelView from '../../../src/view/common/LabelView.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityEditor.d.ts","sourceRoot":"","sources":["EntityEditor.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EntityEditor.d.ts","sourceRoot":"","sources":["EntityEditor.js"],"names":[],"mappings":";AAiBA;IACI;;;;;OAKG;IACH,8EAuNC;IA9MG,YAAkB;IAGlB,qBAAoC;IACpC;;OAEG;IACH,mBAA4C;IAC5C,sBAA4B;IAU5B;;;OAGG;IACH,sBAFU,mCAAiC,CAEN;IAoFrC,wBAEE;IAiGF,aAAkB;CAYzB;iBAjPgB,2BAA2B;0BARlB,0CAA0C;iBADnD,2CAA2C;qCAavB,2BAA2B;sBAT1C,uCAAuC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityList.d.ts","sourceRoot":"","sources":["EntityList.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EntityList.d.ts","sourceRoot":"","sources":["EntityList.js"],"names":[],"mappings":";AA4DA;IACI;;;;OAIG;IACH,4CAsJC;IAhJG,mBAAuC;IAInC,OAAY;IAQhB,eAAoB;IAyGpB;;;;;;MAUC;IAmBL,eAEC;CAsCJ;iBA1PgB,2BAA2B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {GridObstacle} grid
|
|
4
|
+
* @param {HTMLCanvasElement} canvas
|
|
5
|
+
*/
|
|
6
|
+
export function buildGridObstaclePreview(grid: GridObstacle, canvas: HTMLCanvasElement): void;
|
|
7
|
+
export class GridObstacleController extends View<HTMLElement> {
|
|
8
|
+
constructor();
|
|
9
|
+
el: HTMLDivElement;
|
|
10
|
+
model: ObservedValue;
|
|
11
|
+
}
|
|
12
|
+
import View from "../../../../src/view/View.js";
|
|
13
|
+
import ObservedValue from "../../../../src/core/model/ObservedValue.js";
|
|
14
|
+
//# sourceMappingURL=GridObstacleController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridObstacleController.d.ts","sourceRoot":"","sources":["GridObstacleController.js"],"names":[],"mappings":"AASA;;;;GAIG;AACH,qEAFW,iBAAiB,QAU3B;AAED;IACI,cA6CC;IA1CG,mBAAuC;IAEvC,qBAAoC;CAyC3C;iBAjEgB,8BAA8B;0BALrB,6CAA6C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolView.d.ts","sourceRoot":"","sources":["ToolView.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ToolView.d.ts","sourceRoot":"","sources":["ToolView.js"],"names":[],"mappings":";AAKA;IACI;;;;;OAKG;IACH,oCAmCC;IAzBG,YAAkB;CA0BzB;iBA7CgB,2BAA2B"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert uint16 encoded half float (float16) value to a full 32bit float
|
|
3
|
+
* Useful for decoding 16bit packed data, such as that from serialized files of GPU textures
|
|
4
|
+
* Reverse of {@link to_half_float_uint16}
|
|
5
|
+
* @param {number} uint16val
|
|
6
|
+
* @returns {number} decoded float
|
|
7
|
+
*/
|
|
8
|
+
export function half_to_float_uint16(uint16val: number): number;
|
|
9
|
+
//# sourceMappingURL=half_to_float_uint16.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"half_to_float_uint16.d.ts","sourceRoot":"","sources":["../../../../src/core/binary/half_to_float_uint16.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,gDAHW,MAAM,GACJ,MAAM,CAiClB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { assert } from "../assert.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Convert uint16 encoded half float (float16) value to a full 32bit float
|
|
5
|
+
* Useful for decoding 16bit packed data, such as that from serialized files of GPU textures
|
|
6
|
+
* Reverse of {@link to_half_float_uint16}
|
|
7
|
+
* @param {number} uint16val
|
|
8
|
+
* @returns {number} decoded float
|
|
9
|
+
*/
|
|
10
|
+
export function half_to_float_uint16(uint16val) {
|
|
11
|
+
assert.isNonNegativeInteger(uint16val, 'uint16val');
|
|
12
|
+
|
|
13
|
+
// See https://en.wikipedia.org/wiki/Half-precision_floating-point_format for details
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// PORTED from https://github.com/YoYoGames/GameMaker-HTML5/blob/ada1ca2188b2145f222a8d6f9dda01b6d4770aca/scripts/libWebGL/libWebGL.js#L1808
|
|
17
|
+
// which is Apache 2.0 licensed
|
|
18
|
+
|
|
19
|
+
let ret = 0.0;
|
|
20
|
+
const exponent = (uint16val & 0x7C00) >> 10;
|
|
21
|
+
const fraction = uint16val & 0x03FF;
|
|
22
|
+
let sign = 1.0;
|
|
23
|
+
|
|
24
|
+
if ((uint16val >> 15) !== 0) {
|
|
25
|
+
sign = -1.0;
|
|
26
|
+
}
|
|
27
|
+
if (exponent !== 0) {
|
|
28
|
+
if (exponent === 0x1f) {
|
|
29
|
+
if (fraction !== 0)
|
|
30
|
+
ret = NaN;
|
|
31
|
+
else
|
|
32
|
+
ret = Infinity;
|
|
33
|
+
} else {
|
|
34
|
+
ret = sign * (Math.pow(2, exponent - 15) * (1 + (fraction / 0x400)));
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
ret = sign * (0.00006103515625 * (fraction / 0x400)); // 0.00006103515625 is the minimum exponent value (2 to the power -14)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return ret;
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Localization.d.ts","sourceRoot":"","sources":["../../../../src/core/localization/Localization.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Localization.d.ts","sourceRoot":"","sources":["../../../../src/core/localization/Localization.js"],"names":[],"mappings":"AA8BA;IAEQ;;;OAGG;IACH,cAFU,eAAa,IAAI,CAEH;IAExB,SAAc;IAEd;;;OAGG;IACH,6BAFU,gBAAgB,CAEwB;IAElD;;;OAGG;IACH,QAFU,cAAc,CAEY;IAEpC;;;OAGG;IACH,OAFU,OAAO,CAEA;IAEjB;;;OAGG;IACH,wBAIE;IAGN;;;;OAIG;IACH,4BAEC;IAED;;;;OAIG;IACH,0BAHW,MAAM,GACJ,MAAM,CAMlB;IAED;;;OAGG;IACH,wCAEC;IAED;;;OAGG;IACH,8BAHa,OAAO,CAoBnB;IAED;;;;;;OAMG;IACH,mBAJW,MAAM,SACN,MAAM,gBAgDhB;IAGD;;;OAGG;IACH,gCAFW,MAAM,UAMhB;IAED;;;;;OAKG;IACH,0BA0BC;IAED;;;;;;OAMG;IACH,eALW,MAAM,SACN,MAAM,GAEJ,MAAM,CAoBlB;IAED;;;;OAIG;IACH,eAHW,MAAM,GACL,OAAO,CAIlB;CACJ;iCApPgC,uBAAuB;2BAL7B,4BAA4B"}
|
|
@@ -2,6 +2,7 @@ import { parseTooltipString } from "../../view/tooltip/gml/parser/parseTooltipSt
|
|
|
2
2
|
import { assert } from "../assert.js";
|
|
3
3
|
import { Cache } from "../cache/Cache.js";
|
|
4
4
|
import { computeHashArray } from "../collection/array/computeHashArray.js";
|
|
5
|
+
import { isArrayEqualStrict } from "../collection/array/isArrayEqualStrict.js";
|
|
5
6
|
import ObservedString from "../model/ObservedString.js";
|
|
6
7
|
import { seedVariablesIntoTemplateString } from "../parser/seedVariablesIntoTemplateString.js";
|
|
7
8
|
import { STRING_TEMPLATE_VARIABLE_REGEX } from "../parser/STRING_TEMPLATE_VARIABLE_REGEX.js";
|
|
@@ -61,7 +62,8 @@ export class Localization {
|
|
|
61
62
|
*/
|
|
62
63
|
this.__failure_cache = new Cache({
|
|
63
64
|
maxWeight: 1024,
|
|
64
|
-
keyHashFunction: (key) => computeHashArray(key, computeStringHash)
|
|
65
|
+
keyHashFunction: (key) => computeHashArray(key, computeStringHash),
|
|
66
|
+
keyEqualityFunction: isArrayEqualStrict
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
69
|
|