@pacem/pacem-3d 1.0.0-amaldi → 1.0.0-archimedes
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 +49 -0
- package/dist/browser/pacem-3d.js +1 -1
- package/dist/browser/pacem-3d.min.js +1 -1
- package/dist/bundle/pacem-3d.min.mjs +1 -1
- package/dist/bundle/pacem-3d.mjs +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/converters.js +1 -1
- package/dist/esm/decorators.js +1 -1
- package/dist/esm/detector.js +1 -1
- package/dist/esm/geometry.js +1 -1
- package/dist/esm/index-components-drawing3d.js +1 -1
- package/dist/esm/index-components.js +1 -1
- package/dist/esm/index-drawing3d.js +1 -1
- package/dist/esm/index-iife.js +1 -1
- package/dist/esm/index-root.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/stage.js +1 -1
- package/dist/esm/types.js +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[](https://www.npmjs.com/package/@pacem/pacem-3d)
|
|
2
|
+
[](https://github.com/pacem-it/pacem/blob/main/LICENSE)
|
|
3
|
+
|
|
4
|
+
# @pacem/pacem-3d
|
|
5
|
+
|
|
6
|
+
3D scenes for the [Pacem JS](https://js.pacem.it) ecosystem: a `pacem-3d` stage with `three.js`/WebGPU adapters, an orbit camera, a WGSL script element, and geometric primitives (box, cone, cylinder, sphere, torus, plane, and the platonic solids) — 17 custom elements in total, plus a `Drawing3D` namespace of geometry helpers.
|
|
7
|
+
|
|
8
|
+
Depends on [`@pacem/pacem-foundation`](https://www.npmjs.com/package/@pacem/pacem-foundation), [`@pacem/pacem-core`](https://www.npmjs.com/package/@pacem/pacem-core), and [`@pacem/pacem-numerical`](https://www.npmjs.com/package/@pacem/pacem-numerical).
|
|
9
|
+
|
|
10
|
+
Part of the [Pacem JS](https://js.pacem.it) ecosystem. Install [`@pacem/pacem`](https://www.npmjs.com/package/@pacem/pacem) instead if you want every package bundled together.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install @pacem/pacem-3d
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
### As an ES module
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import { Components, Drawing3D } from '@pacem/pacem-3d';
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### In the browser, without a bundler
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<script src="node_modules/@pacem/pacem-foundation/dist/browser/pacem-foundation.min.js"></script>
|
|
30
|
+
<script src="node_modules/@pacem/pacem-numerical/dist/browser/pacem-numerical.min.js"></script>
|
|
31
|
+
<script src="node_modules/@pacem/pacem-core/dist/browser/pacem-core.min.js"></script>
|
|
32
|
+
<script src="node_modules/@pacem/pacem-3d/dist/browser/pacem-3d.min.js"></script>
|
|
33
|
+
|
|
34
|
+
<pacem-3d>
|
|
35
|
+
<pacem-3d-primitive-box width="1" height="1" depth="1"></pacem-3d-primitive-box>
|
|
36
|
+
</pacem-3d>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### TypeScript
|
|
40
|
+
|
|
41
|
+
Typings ship in `typings/index.d.ts` and are resolved automatically via the package's `exports` field — both for the ES module import style and for the ambient `Pacem` global used by the plain `<script>` include above.
|
|
42
|
+
|
|
43
|
+
## Custom elements
|
|
44
|
+
|
|
45
|
+
`pacem-3d`, `pacem-3d-three-adapter`, `pacem-3d-webgpu-adapter`, `pacem-3d-wgsl-script`, `pacem-3d-orbit-camera`, and the `pacem-3d-primitive-*` shapes (`box`, `cone`, `cylinder`, `sphere`, `torus`, `plane`, `line`, `tetrahedron`, `hexahedron`, `octahedron`, `dodecahedron`, `icosahedron`) — see [`@pacem/pacem`](https://www.npmjs.com/package/@pacem/pacem)'s `dist/vscode.html-custom.json` for attributes and editor IntelliSense support.
|
|
46
|
+
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
|
+
[Apache-2.0](https://github.com/pacem-it/pacem/blob/main/LICENSE) © [Pacem](https://pacem.it)
|
package/dist/browser/pacem-3d.js
CHANGED
package/dist/bundle/pacem-3d.mjs
CHANGED
package/dist/esm/constants.js
CHANGED
package/dist/esm/converters.js
CHANGED
package/dist/esm/decorators.js
CHANGED
package/dist/esm/detector.js
CHANGED
package/dist/esm/geometry.js
CHANGED
package/dist/esm/index-iife.js
CHANGED
package/dist/esm/index-root.js
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/esm/stage.js
CHANGED
package/dist/esm/types.js
CHANGED