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

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
  * });
@@ -72,7 +72,6 @@ export interface FromMetaboxMessagePayloads {
72
72
  */
73
73
  basicConfiguratorDataWithState: ConfiguratorEnvelope;
74
74
  /**
75
- * @internal
76
75
  * Dispatches Every time when configurator connected/disconnected with Unreal Engine.
77
76
  */
78
77
  dataChannelConnected: boolean;
@@ -81,7 +80,7 @@ export interface FromMetaboxMessagePayloads {
81
80
  */
82
81
  viewportReady: boolean;
83
82
  /**
84
- * Dispatches Every time viewport shows/hides its internal menu .
83
+ * Dispatches Every when user toggle fullscreen button in internal menu.
85
84
  */
86
85
  isFullscreen: boolean;
87
86
  /**
@@ -90,6 +89,7 @@ export interface FromMetaboxMessagePayloads {
90
89
  statusMessage: string | null;
91
90
  /**
92
91
  * @internal
92
+ * @hidden
93
93
  * Dispatches every time when freeze-frame is arrived or updated.
94
94
  */
95
95
  freezeFrame: {
@@ -97,7 +97,7 @@ export interface FromMetaboxMessagePayloads {
97
97
  progress: number | null;
98
98
  };
99
99
  /**
100
- * @internal
100
+ * @experimental
101
101
  * Dispatches every Unreal is sending command callback.
102
102
  * Works only after new WatchCallbacks() command is sent.
103
103
  */
@@ -105,10 +105,14 @@ 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
- * @internal
111
- * @callback
115
+ * @experimental
112
116
  * Dispatches every Unreal state is changing, including all unreal module state.
113
117
  */
114
118
  unrealFeature: object;
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@3dsource/metabox-front-api",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "API for MetaBox BASIC configurator",
5
- "main": "dist/index.ts",
5
+ "main": "dist/index.js",
6
6
  "unpkg": "dist/index.js",
7
+ "jsdelivr": "dist/index.js",
7
8
  "type": "module",
8
9
  "scripts": {
9
10
  "build": "tsc",