@3dsource/metabox-front-api 0.0.8 → 0.0.9

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
@@ -71,7 +71,7 @@ Insert this code into your HTML file just before the closing `</body>` tag:
71
71
  setupInitialState();
72
72
  }
73
73
 
74
- if (eventType === 'getFastRender') {
74
+ if (eventType === 'fastRender') {
75
75
  //Catches the render image
76
76
  saveImage(payload, 'Render.png');
77
77
  }
@@ -1,6 +1,7 @@
1
1
  import type { Communicator } from '../lib/initializeCommunicator';
2
2
  /**
3
3
  * Base class for all API actions.
4
+ * @hidden
4
5
  */
5
6
  export declare class ApiAction {
6
7
  protected api: Communicator;
@@ -5,6 +5,7 @@
5
5
  */
6
6
  /**
7
7
  * Base class for all API actions.
8
+ * @hidden
8
9
  */
9
10
  export class ApiAction {
10
11
  constructor() {
@@ -36,7 +36,7 @@ export type MimeType = 'image/png' | 'image/jpeg' | 'image/webp';
36
36
  * new GetFastRender('image/png', { x: 1024, y: 1024 });
37
37
  * }
38
38
  * // Process the fast render response
39
- * if (data.eventType === 'getFastRender') {
39
+ * if (data.eventType === 'fastRender') {
40
40
  * saveImage(data.payload, 'Render.png');
41
41
  * }
42
42
  * });
@@ -36,7 +36,7 @@ import { ToMetaBoxApiAction } from '../interfaces/ToMetaboxMessagePayloads';
36
36
  * new GetFastRender('image/png', { x: 1024, y: 1024 });
37
37
  * }
38
38
  * // Process the fast render response
39
- * if (data.eventType === 'getFastRender') {
39
+ * if (data.eventType === 'fastRender') {
40
40
  * saveImage(data.payload, 'Render.png');
41
41
  * }
42
42
  * });
@@ -105,6 +105,11 @@ export interface FromMetaboxMessagePayloads {
105
105
  /**
106
106
  * Dispatches every time when Unreal is sending ordered render with new GetFastRender() command.
107
107
  */
108
+ fastRender: string | null;
109
+ /**
110
+ * @hidden
111
+ * @Deprecated, use fastRender
112
+ */
108
113
  getFastRender: string | null;
109
114
  /**
110
115
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dsource/metabox-front-api",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "API for MetaBox BASIC configurator",
5
5
  "main": "dist/index.ts",
6
6
  "unpkg": "dist/index.js",