@navaramap/three 0.0.3 → 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/README.md +7 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +12 -12
- package/src/ShadowMapViewers.ts +1 -1
- package/src/declutter/DeclutterManager.ts +1 -1
- package/src/event/features/model.ts +1 -1
- package/src/event/index.ts +1 -1
- package/src/index.iife.ts +3 -3
- package/src/index.ts +3 -3
- package/src/layers/effect/README.md +1 -1
- package/src/material/enhancer/instancedSprite/instancedSpriteBaseEnhancer/mutates.test.ts +2 -2
- package/src/material/enhancer/instancedSprite/instancedSpriteBaseEnhancer/mutates.ts +1 -1
- package/src/material/enhancer/polygon/polygonBaseEnhancer/mutates.ts +1 -1
- package/src/material/enhancer/polyline/polylineBaseEnhancer/mutates.ts +1 -1
- package/src/material/enhancer/sdfText/sdfTextBaseEnhancer/mutates.ts +1 -1
- package/src/mesh/rtcRteHelper.ts +1 -1
- package/src/mesh/sdfText.ts +1 -1
- package/src/mesh/sprite/instancedSprite.ts +1 -1
- package/src/utils/screen.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navaramap/three",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"main": "dist/index.umd.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"astronomy-engine": "2.1.19",
|
|
31
31
|
"stats.js": "0.17.0",
|
|
32
32
|
"three-stdlib": "2.36.1",
|
|
33
|
-
"@navaramap/core": "0.0.
|
|
34
|
-
"@navaramap/engine": "0.0.
|
|
35
|
-
"@navaramap/
|
|
36
|
-
"@navaramap/
|
|
37
|
-
"@navaramap/
|
|
38
|
-
"@navaramap/
|
|
39
|
-
"@navaramap/
|
|
33
|
+
"@navaramap/core": "0.0.4",
|
|
34
|
+
"@navaramap/engine": "0.0.4",
|
|
35
|
+
"@navaramap/engine-api": "0.0.4",
|
|
36
|
+
"@navaramap/three-api": "0.0.4",
|
|
37
|
+
"@navaramap/three-csm": "0.0.4",
|
|
38
|
+
"@navaramap/font": "0.0.4",
|
|
39
|
+
"@navaramap/worker": "0.0.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@playwright/test": "1.61.1",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"tweakpane": "4.0.5",
|
|
72
72
|
"vite-plugin-glsl": "1.6.0",
|
|
73
73
|
"vite-plugin-static-copy": "4.1.1",
|
|
74
|
-
"@navaramap/
|
|
75
|
-
"@navaramap/
|
|
76
|
-
"@navaramap/
|
|
77
|
-
"@navaramap/
|
|
74
|
+
"@navaramap/three-default-descs": "0.0.4",
|
|
75
|
+
"@navaramap/three-plugins": "0.0.4",
|
|
76
|
+
"@navaramap/three-default-plugin": "0.0.4",
|
|
77
|
+
"@navaramap/three-react": "0.0.4"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"start": "vite",
|
package/src/ShadowMapViewers.ts
CHANGED
|
@@ -203,7 +203,7 @@ export class DeclutterManager {
|
|
|
203
203
|
camera.near,
|
|
204
204
|
widthPx,
|
|
205
205
|
heightPx,
|
|
206
|
-
// Plain math instead of @
|
|
206
|
+
// Plain math instead of @navaramap/three-api's degreeToRadian — that one
|
|
207
207
|
// is a WASM call whose result we'd only marshal straight back in.
|
|
208
208
|
(camera.fov * Math.PI) / 180.0,
|
|
209
209
|
DeclutterManager.PADDING_PX,
|
package/src/event/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
RenderableFeatureRemovedEvent,
|
|
16
16
|
Events,
|
|
17
17
|
} from "@navaramap/engine";
|
|
18
|
-
import { radianToDegree } from "@navaramap/
|
|
18
|
+
import { radianToDegree } from "@navaramap/three-api";
|
|
19
19
|
import { canWorkerProcessImmediately } from "@navaramap/worker";
|
|
20
20
|
import { Mesh, Object3D, Sprite } from "three";
|
|
21
21
|
|
package/src/index.iife.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from "./index";
|
|
2
2
|
export { default } from "./index";
|
|
3
|
-
export { DefaultPlugin } from "@navaramap/
|
|
3
|
+
export { DefaultPlugin } from "@navaramap/three-default-plugin";
|
|
4
4
|
export type {
|
|
5
5
|
DefaultDescriptions,
|
|
6
6
|
DefaultMeshDescription,
|
|
7
7
|
DefaultLightDescription,
|
|
8
8
|
DefaultEffectDescription,
|
|
9
|
-
} from "@navaramap/
|
|
10
|
-
export * from "@navaramap/
|
|
9
|
+
} from "@navaramap/three-default-plugin";
|
|
10
|
+
export * from "@navaramap/three-default-descs";
|
|
11
11
|
export { AttributionPlugin } from "./plugins";
|
package/src/index.ts
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
type FontWorkerMemoryStats,
|
|
24
24
|
} from "@navaramap/font";
|
|
25
25
|
import FontWorkerURL from "@navaramap/font/fontWorker?worker&url";
|
|
26
|
-
import { initNavaraApi } from "@navaramap/
|
|
26
|
+
import { initNavaraApi } from "@navaramap/three-api";
|
|
27
27
|
import {
|
|
28
28
|
initializeWorkerPool,
|
|
29
29
|
probeWorkerPoolHeap,
|
|
@@ -158,7 +158,7 @@ export type {
|
|
|
158
158
|
} from "@navaramap/core";
|
|
159
159
|
export { CameraDirection } from "@navaramap/engine";
|
|
160
160
|
// CSM exports for advanced users
|
|
161
|
-
export { CascadedShadowMaps, CSMHelper } from "@navaramap/
|
|
161
|
+
export { CascadedShadowMaps, CSMHelper } from "@navaramap/three-csm";
|
|
162
162
|
|
|
163
163
|
export * from "./type";
|
|
164
164
|
export * from "./constants";
|
|
@@ -176,7 +176,7 @@ export * from "./layers";
|
|
|
176
176
|
export * from "./passes";
|
|
177
177
|
export * from "./evaluations";
|
|
178
178
|
export { SKY_RENDER_ORDER, STARS_RENDER_ORDER } from "./renderOrder";
|
|
179
|
-
export * from "@navaramap/
|
|
179
|
+
export * from "@navaramap/three-api";
|
|
180
180
|
export * from "./Color";
|
|
181
181
|
export { type BlendMode, blendFunction, createReplacer } from "./utils";
|
|
182
182
|
export { Atmosphere, type AtmosphereOptions } from "./atmosphere";
|
|
@@ -5,5 +5,5 @@ internal rendering pipeline (MRT passes, transparent pass, final copy, selective
|
|
|
5
5
|
effects).
|
|
6
6
|
|
|
7
7
|
Independent, self-contained effect descriptors should be implemented as external
|
|
8
|
-
packages (e.g., `@navaramap/
|
|
8
|
+
packages (e.g., `@navaramap/three-default-descs`) using the public
|
|
9
9
|
`EffectDesc` API and registered via plugins.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { degreeToRadian } from "@navaramap/
|
|
1
|
+
import { degreeToRadian } from "@navaramap/three-api";
|
|
2
2
|
import { Matrix4, type Texture } from "three";
|
|
3
3
|
import { describe, expect, it, vi } from "vitest";
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ import { createBaseMutates } from "./mutates";
|
|
|
8
8
|
import { DEFAULT_BASE_STATE } from "./state";
|
|
9
9
|
import type { InstancedSpriteBaseState } from "./types";
|
|
10
10
|
|
|
11
|
-
vi.mock("@navaramap/
|
|
11
|
+
vi.mock("@navaramap/three-api", () => ({
|
|
12
12
|
degreeToRadian: (degree: number) => (degree * Math.PI) / 180,
|
|
13
13
|
RTE_ONE_UNIFORM: { value: 1.0 },
|
|
14
14
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { encodePosition } from "@navaramap/engine-api";
|
|
2
|
-
import { RTE_ONE_UNIFORM } from "@navaramap/
|
|
2
|
+
import { RTE_ONE_UNIFORM } from "@navaramap/three-api";
|
|
3
3
|
import { Color, DataTexture, type Matrix4, Vector2, Vector3 } from "three";
|
|
4
4
|
|
|
5
5
|
import type { UniformValue } from "../../../types";
|
package/src/mesh/rtcRteHelper.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Transform } from "@navaramap/engine";
|
|
2
|
-
import { calcCameraPosition, calcModelMatrixRTE } from "@navaramap/
|
|
2
|
+
import { calcCameraPosition, calcModelMatrixRTE } from "@navaramap/three-api";
|
|
3
3
|
import { Camera, Matrix4, Object3D, Vector3 } from "three";
|
|
4
4
|
|
|
5
5
|
import { setTransform } from "../event";
|
package/src/mesh/sdfText.ts
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
PointMesh as NavaraPointMesh,
|
|
3
3
|
BillboardMesh as NavaraBillboardMesh,
|
|
4
4
|
} from "@navaramap/engine";
|
|
5
|
-
import { degreeToRadian } from "@navaramap/
|
|
5
|
+
import { degreeToRadian } from "@navaramap/three-api";
|
|
6
6
|
import {
|
|
7
7
|
InstancedBufferAttribute,
|
|
8
8
|
InstancedBufferGeometry,
|
package/src/utils/screen.ts
CHANGED