@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/README.md
CHANGED
|
@@ -5,10 +5,10 @@ Navara is a 3D globe map engine. Reusable GIS logic (tiling, terrain, styling, c
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pnpm add @navaramap/three @navaramap/
|
|
8
|
+
pnpm add @navaramap/three @navaramap/three-default-plugin three postprocessing
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
`three` and `postprocessing` are peer dependencies. Most apps also want `@navaramap/
|
|
11
|
+
`three` and `postprocessing` are peer dependencies. Most apps also want `@navaramap/three-default-plugin`, which registers the built-in mesh/effect/light descriptors.
|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ import ThreeView from "@navaramap/three";
|
|
|
19
19
|
import {
|
|
20
20
|
DefaultPlugin,
|
|
21
21
|
type DefaultDescriptions,
|
|
22
|
-
} from "@navaramap/
|
|
22
|
+
} from "@navaramap/three-default-plugin";
|
|
23
23
|
|
|
24
24
|
const view = new ThreeView<DefaultDescriptions>({ shadow: true }); // 1. construct
|
|
25
25
|
const defaultPlugin = new DefaultPlugin();
|
|
@@ -56,10 +56,10 @@ Beyond the declarative Source/Layer API, `ThreeView` exposes per-feature styling
|
|
|
56
56
|
|
|
57
57
|
## Related packages
|
|
58
58
|
|
|
59
|
-
- [`@navaramap/
|
|
60
|
-
- [`@navaramap/
|
|
61
|
-
- [`@navaramap/
|
|
62
|
-
- [`@navaramap/
|
|
59
|
+
- [`@navaramap/three-default-plugin`](../navara_three_default_plugin) — registers all built-in descriptors at once
|
|
60
|
+
- [`@navaramap/three-default-descs`](../navara_three_default_descs) — the individual descriptor classes and their config types
|
|
61
|
+
- [`@navaramap/three-plugins`](../navara_three_plugins) — optional feature plugins (first-person walk, DOM overlays, Cesium ion, TileJSON)
|
|
62
|
+
- [`@navaramap/three-react`](../navara_three_react) — React bindings
|
|
63
63
|
|
|
64
64
|
## Documentation
|
|
65
65
|
|
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ import { BufferAttribute } from 'three';
|
|
|
6
6
|
import { BufferGeometry } from 'three';
|
|
7
7
|
import { BufferGeometryEventMap } from 'three';
|
|
8
8
|
import { Camera } from 'three';
|
|
9
|
-
import { CascadedShadowMaps } from '@navaramap/
|
|
9
|
+
import { CascadedShadowMaps } from '@navaramap/three-csm';
|
|
10
10
|
import { Color as Color_3 } from 'three';
|
|
11
11
|
import { CopyPass as CopyPass_2 } from 'postprocessing';
|
|
12
|
-
import { CSMHelper } from '@navaramap/
|
|
12
|
+
import { CSMHelper } from '@navaramap/three-csm';
|
|
13
13
|
import { CssFontFaceFilter } from '@navaramap/font';
|
|
14
14
|
import { DataTexture } from 'three';
|
|
15
15
|
import { DepthCopyPass } from 'postprocessing';
|