viral-viewer-2 6.8.8 → 6.9.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/dist/types.d.ts CHANGED
@@ -159,13 +159,26 @@ export declare class DebouncedEventHandler<T> {
159
159
  handleEvent: (event: T) => void;
160
160
  }
161
161
  export declare class BufferElement {
162
+ /**
163
+ * In case this buffer element is instanced mesh this buffer is original geometry
164
+ */
162
165
  buffer: Float32Array | null;
166
+ /**
167
+ * In case this buffer element is instanced mesh this field is null
168
+ */
163
169
  elementId: string;
164
170
  modelId: number;
165
171
  localMaterialIndex?: number;
166
172
  globalMaterialIndex?: number;
167
173
  minPoint?: ViralPoint;
168
174
  maxPoint?: ViralPoint;
175
+ /**
176
+ * In case this buffer element is instanced mesh
177
+ */
178
+ instances: {
179
+ elementId: string;
180
+ transform: number[];
181
+ }[];
169
182
  }
170
183
  export interface LightConfiguration {
171
184
  enabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viral-viewer-2",
3
- "version": "6.8.8",
3
+ "version": "6.9.0",
4
4
  "description": "",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",