@vertexvis/geometry
Advanced tools
Comparing version 0.9.16 to 0.9.17
{ | ||
"name": "@vertexvis/geometry", | ||
"version": "0.9.16", | ||
"version": "0.9.17", | ||
"description": "Library for 2D and 3D geometric types.", | ||
@@ -35,3 +35,4 @@ "license": "MIT", | ||
"test": "jest", | ||
"test:coverage": "yarn test --coverage" | ||
"test:coverage": "yarn test --coverage", | ||
"generate:docs": "../../scripts/generate_docs.sh" | ||
}, | ||
@@ -42,3 +43,3 @@ "devDependencies": { | ||
"@vertexvis/jest-config-vertexvis": "0.4.4", | ||
"@vertexwebsdk/build": "0.9.16", | ||
"@vertexwebsdk/build": "0.9.17", | ||
"eslint": "^6.1.0", | ||
@@ -51,5 +52,5 @@ "jest": "^24.9.0", | ||
"peerDependencies": { | ||
"tslib": "^1.10.0" | ||
"tslib": "^2.1.0" | ||
}, | ||
"gitHead": "48fce7648300c18ee4d5bcf3bb65ab5eea9348db" | ||
"gitHead": "5c911e4d07218f20134c13a85782853c8ad81405" | ||
} |
@@ -0,3 +1,41 @@ | ||
<!-- DO NOT EDIT THE README.md DIRECTLY. THIS FILE IS AUTO-GENERATED. --> | ||
<!-- INSTEAD EDIT README.template.md --> | ||
# 2D and 3D Geometry Types for JS | ||
2D and 3D Geometry Types for JS. | ||
## Getting Started | ||
### Script Tag | ||
The easiest way to use the helpers provided in this package is by including a `<script>` | ||
tag in your HTML file that references our published JS bundles from a CDN. These helpers | ||
can then be used in combination with our [Viewer SDK](https://www.npmjs.com/package/@vertexvis/viewer) | ||
to interact with the rendered scene. See the instructions there on getting started to set up a | ||
viewer. | ||
```html | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<script type="module"> | ||
import { Vector3 } from 'https://unpkg.com/@vertexvis/geometry@0.9.17/dist/cdn/bundle.esm.js'; | ||
async function main() { | ||
const viewer = document.querySelector('#viewer'); | ||
const scene = await viewer.scene(); | ||
const camera = scene.camera(); | ||
await camera.update({ | ||
position: Vector3.create(0, 0, 100), | ||
lookAt: Vector3.origin(), | ||
up: Vector3.up(), | ||
}) | ||
.render(); | ||
} | ||
</script> | ||
</body> | ||
</html> | ||
``` |
396611
36
3373
41