@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@navaramap/three",
3
3
  "type": "module",
4
- "version": "0.0.3",
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.3",
34
- "@navaramap/engine": "0.0.3",
35
- "@navaramap/font": "0.0.3",
36
- "@navaramap/three_api": "0.0.3",
37
- "@navaramap/engine-api": "0.0.3",
38
- "@navaramap/worker": "0.0.3",
39
- "@navaramap/three_csm": "0.0.3"
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/three_default_descs": "0.0.3",
75
- "@navaramap/three_default_plugin": "0.0.3",
76
- "@navaramap/three_plugins": "0.0.3",
77
- "@navaramap/three_react": "0.0.3"
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",
@@ -1,4 +1,4 @@
1
- import { CascadedDirectionalLights } from "@navaramap/three_csm";
1
+ import { CascadedDirectionalLights } from "@navaramap/three-csm";
2
2
  import type { WebGLRenderer } from "three";
3
3
  import { ShadowMapViewer } from "three-stdlib";
4
4
 
@@ -203,7 +203,7 @@ export class DeclutterManager {
203
203
  camera.near,
204
204
  widthPx,
205
205
  heightPx,
206
- // Plain math instead of @navara/three_api's degreeToRadian — that one
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,
@@ -1,5 +1,5 @@
1
1
  import { ModelMesh as NavaraModelMesh } from "@navaramap/engine";
2
- import { degreeToRadian } from "@navaramap/three_api";
2
+ import { degreeToRadian } from "@navaramap/three-api";
3
3
  import {
4
4
  BufferGeometry,
5
5
  Points,
@@ -15,7 +15,7 @@ import {
15
15
  RenderableFeatureRemovedEvent,
16
16
  Events,
17
17
  } from "@navaramap/engine";
18
- import { radianToDegree } from "@navaramap/three_api";
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/three_default_plugin";
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/three_default_plugin";
10
- export * from "@navaramap/three_default_descs";
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/three_api";
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/three_csm";
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/three_api";
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/three_default_descs`) using the public
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/three_api";
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/three_api", () => ({
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/three_api";
2
+ import { RTE_ONE_UNIFORM } from "@navaramap/three-api";
3
3
  import {
4
4
  type Matrix4,
5
5
  type Texture,
@@ -1,4 +1,4 @@
1
- import { RTE_ONE_UNIFORM } from "@navaramap/three_api";
1
+ import { RTE_ONE_UNIFORM } from "@navaramap/three-api";
2
2
  import type { Matrix4, Texture, Vector3 } from "three";
3
3
  import { Matrix4 as ThreeMatrix4, Vector3 as ThreeVector3 } from "three";
4
4
 
@@ -1,4 +1,4 @@
1
- import { RTE_ONE_UNIFORM } from "@navaramap/three_api";
1
+ import { RTE_ONE_UNIFORM } from "@navaramap/three-api";
2
2
  import {
3
3
  Color as ThreeColor,
4
4
  Matrix4 as ThreeMatrix4,
@@ -1,5 +1,5 @@
1
1
  import { encodePosition } from "@navaramap/engine-api";
2
- import { RTE_ONE_UNIFORM } from "@navaramap/three_api";
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";
@@ -1,5 +1,5 @@
1
1
  import type { Transform } from "@navaramap/engine";
2
- import { calcCameraPosition, calcModelMatrixRTE } from "@navaramap/three_api";
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";
@@ -12,7 +12,7 @@ import {
12
12
  type ShapedGlyph,
13
13
  type ShapeTextResult,
14
14
  } from "@navaramap/font";
15
- import { degreeToRadian } from "@navaramap/three_api";
15
+ import { degreeToRadian } from "@navaramap/three-api";
16
16
  import {
17
17
  BufferAttribute,
18
18
  type Color,
@@ -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/three_api";
5
+ import { degreeToRadian } from "@navaramap/three-api";
6
6
  import {
7
7
  InstancedBufferAttribute,
8
8
  InstancedBufferGeometry,
@@ -1,5 +1,5 @@
1
1
  import type { Nullable, XYZ } from "@navaramap/core";
2
- import { convertScreenToWorld } from "@navaramap/three_api";
2
+ import { convertScreenToWorld } from "@navaramap/three-api";
3
3
  import { Vector2 } from "three";
4
4
 
5
5
  import type ThreeView from "../index";