three-render-objects 1.38.0 → 1.39.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
@@ -56,6 +56,7 @@ new ThreeRenderObjects(<domElement>, { configOptions })
56
56
  | --- | --- | :--: |
57
57
  | <b>width</b>([<i>px</i>]) | Getter/setter for the canvas width. | *&lt;window width&gt;* |
58
58
  | <b>height</b>([<i>px</i>]) | Getter/setter for the canvas height. | *&lt;window height&gt;* |
59
+ | <b>viewOffset</b>([<i>[number, number]</i>]) | Getter/setter for the canvas center offset (`x`, `y`). | `[0, 0]` |
59
60
  | <b>skyRadius</b>([<i>number</i>]) | Radius of the sphere that bounds the scene, in GL units. | 50000 |
60
61
  | <b>backgroundColor</b>([<i>str</i>]) | Getter/setter for the canvas background color. | `#000011` |
61
62
  | <b>backgroundImageUrl</b>([<i>url</i>]) | Getter/setter for the URL of the image to be used as scene background. If no image is provided, the background color is shown instead. | `null` |
@@ -36,6 +36,8 @@ declare class ThreeRenderObjectsGeneric<ChainableInstance> {
36
36
  width(width: number): ChainableInstance;
37
37
  height(): number;
38
38
  height(height: number): ChainableInstance;
39
+ viewOffset(): [number, number];
40
+ viewOffset(offset: [number, number]): ChainableInstance;
39
41
  skyRadius(): number;
40
42
  skyRadius(glUnits: number): ChainableInstance;
41
43
  backgroundColor(): string;