hilbert-chart-3d 0.7.0 → 0.8.0
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
CHANGED
|
@@ -43,6 +43,7 @@ new HilbertChart3D(<domElement>, { configOptions })
|
|
|
43
43
|
| Config options | Description | Default |
|
|
44
44
|
| --- | --- | :--: |
|
|
45
45
|
| <b>controlType</b>: <i>str</i> or <i>class</i> | Which type of control to use to control the camera. Choice between [trackball](https://threejs.org/examples/misc_controls_trackball.html), [arcball](https://threejs.org/examples/misc_controls_arcball.html), [orbit](https://threejs.org/examples/#misc_controls_orbit), [fly](https://threejs.org/examples/misc_controls_fly.html), or a custom [Three.js controls](https://threejs.org/docs/#Controls) class. | `arcball` |
|
|
46
|
+
| <b>rendererConfig</b>: <i>object</i> | Configuration parameters to pass to the [ThreeJS WebGLRenderer](https://threejs.org/docs/#api/en/renderers/WebGLRenderer) constructor. | `{ antialias: true, alpha: true }` |
|
|
46
47
|
|
|
47
48
|
### Container
|
|
48
49
|
| Method | Description | Default |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Controls, Vector3, Scene, Camera, WebGLRenderer, Light } from 'three';
|
|
1
|
+
import { Controls, WebGLRendererParameters, Vector3, Scene, Camera, WebGLRenderer, Light } from 'three';
|
|
2
2
|
|
|
3
3
|
type Accessor<In, Out> = Out | string | ((obj: In) => Out);
|
|
4
4
|
type NumericValue = number | bigint;
|
|
@@ -12,6 +12,7 @@ type Range =
|
|
|
12
12
|
|
|
13
13
|
interface HilbertChartOptions {
|
|
14
14
|
controlType?: ControlType;
|
|
15
|
+
rendererConfig?: WebGLRendererParameters;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
type RangeBounds = { start: number; length: number } | { start: bigint; length: bigint };
|
package/dist/hilbert-chart-3d.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 0.
|
|
1
|
+
// Version 0.8.0 hilbert-chart-3d - https://github.com/vasturiano/hilbert-chart-3d
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -153564,13 +153564,15 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
153564
153564
|
}
|
|
153565
153565
|
},
|
|
153566
153566
|
stateInit({
|
|
153567
|
-
controlType = 'arcball'
|
|
153567
|
+
controlType = 'arcball',
|
|
153568
|
+
rendererConfig
|
|
153568
153569
|
}) {
|
|
153569
153570
|
const hilbert = new index$1();
|
|
153570
153571
|
return {
|
|
153571
153572
|
hilbert,
|
|
153572
153573
|
renderObjs: threeRenderObjects({
|
|
153573
|
-
controlType
|
|
153574
|
+
controlType,
|
|
153575
|
+
rendererConfig
|
|
153574
153576
|
}).objects([hilbert]).lights([new AmbientLight(0xcccccc, Math.PI), new DirectionalLight(0xffffff, 0.6 * Math.PI)]),
|
|
153575
153577
|
controlType
|
|
153576
153578
|
};
|