@splinetool/runtime 0.9.253 → 0.9.255

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splinetool/runtime",
3
- "version": "0.9.253",
3
+ "version": "0.9.255",
4
4
  "type": "module",
5
5
  "main": "./build/runtime.js",
6
6
  "module": "./build/runtime.js",
package/runtime.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import { ControlsManager, EventManager } from 'spe';
2
+ import { DocumentData } from 'spline-data';
3
+
1
4
  declare module '@splinetool/runtime' {
2
5
  export type SplineEvent = {
3
6
  target: {
@@ -119,6 +122,12 @@ declare module '@splinetool/runtime' {
119
122
 
120
123
  setZoom(zoomValue: number): void;
121
124
 
125
+ /**
126
+ * Manually sets the scene/canvas background color with a css color value.
127
+ * @param color css color style
128
+ */
129
+ setBackgroundColor(color: string): void;
130
+
122
131
  /**
123
132
  * Manually sets the canvas size to a specific value.
124
133
  * When this is called, the canvas will no longer be
@@ -127,5 +136,9 @@ declare module '@splinetool/runtime' {
127
136
  * @param {number} height
128
137
  */
129
138
  setSize(width: number, height: number): void;
139
+
140
+ get data(): DocumentData;
141
+ get eventManager(): EventManager;
142
+ get controls(): ControlsManager;
130
143
  }
131
144
  }