@3dverse/livelink.core 1.1.0 → 1.1.2

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.
@@ -127,16 +127,6 @@ export type Display = {
127
127
  * @defaultValue 90
128
128
  */
129
129
  framePersistence?: UInt32;
130
- /**
131
- * Toggle frustum culling
132
- * @defaultValue true
133
- */
134
- enableFrustumCulling?: boolean;
135
- /**
136
- * Toggle texture streaming
137
- * @defaultValue false
138
- */
139
- enableTextureStreaming?: boolean;
140
130
  };
141
131
  /**
142
132
  * Settings for the environment
@@ -221,6 +211,26 @@ export type Renderer = {
221
211
  * @defaultValue false
222
212
  */
223
213
  cpuOcclusionCulling?: boolean;
214
+ /**
215
+ * Toggle frustum culling
216
+ * @defaultValue true
217
+ */
218
+ enableFrustumCulling?: boolean;
219
+ /**
220
+ * Toggle texture streaming
221
+ * @defaultValue false
222
+ */
223
+ enableTextureStreaming?: boolean;
224
+ /**
225
+ * Enables geometry culling.
226
+ * @defaultValue true
227
+ */
228
+ enableGeometryCulling?: boolean;
229
+ /**
230
+ * Enables ray tracing.
231
+ * @defaultValue false
232
+ */
233
+ enableRayTracing?: boolean;
224
234
  };
225
235
  /**
226
236
  * Sound settings
@@ -1,4 +1,5 @@
1
- export * from "./ConnectConfirmation";
1
+ export * from "./ConnectionAcknownledged";
2
+ export * from "./LoadingCompleted";
2
3
  export * from "./EditorEntity";
3
4
  export * from "./EntityUpdatedEvent";
4
5
  export * from "./UpdateComponentsCommand";
@@ -0,0 +1,6 @@
1
+ /**
2
+ *
3
+ */
4
+ export type AudioPacket = {
5
+ data: DataView;
6
+ };
@@ -1,3 +1,4 @@
1
1
  export * from "./AssetLoadingEvent";
2
+ export * from "./AudioPacketEvent";
2
3
  export * from "./FrameDataEvent";
3
4
  export * from "./ScriptEvent";
package/dist/library.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var u=(o,e)=>{for(var r in e)d(o,r,{get:e[r],enumerable:!0})},L=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of c(e))!l.call(o,i)&&i!==r&&d(o,i,{get:()=>e[i],enumerable:!(t=p(e,i))||t.enumerable});return o};var m=o=>L(d({},"__esModule",{value:!0}),o);var I={};u(I,{DynamicLoader:()=>s});module.exports=m(I);var g=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,s=class o{static#e=null;static#o=null;static get Core(){if(!o.#e)throw new Error("Livelink core not initialized");return o.#e}static load(e="prod"){return o.#o||(o.#o=o.#r(e)),o.#o}static async#r(e){let r=await o.#i(e),{LivelinkCore:t}=await r();o.#e=t;let i={prod:"#FFC700",dev:"#36D399",debug:"#FB4949"};console.info(`%c Livelink Core initialized \u{1F680} %c ${t.VERSION} %c ${t.COMMIT_SHA} %c${e}`,"background: #080A12; color: #FFC700; font-weight: bold; padding: 8px; padding-right: 164px; border-radius: 16px; margin: 16px 0 16px 0","background: #9EA6D6; color: #0A1018; font-weight: bold; padding: 1px; padding-right: 0px; margin-left: -160px; border-radius: 16px 0 0 16px;","background: #6973A8; color: #0A1018; font-weight: bold; padding: 1px; padding-left: 0; border-radius: 0 16px 16px 0;",`background: ${i[e]}; color: #000; font-weight: bold; padding: 6px 16px; border: 4px solid #080A12; border-radius: 16px; margin-left: 16px`)}static async#i(e){let r="https://cdn.3dverse.com/livelink/core/1.1/"+(e!=="prod"?`core.${e}.mjs`:"core.mjs");if(!g)return new Function("return import('"+r+"')");let i=await(await fetch(r)).text(),a=await new Function("return import('node:vm')")();return a.SourceTextModule?(console.info("Using experimental VM SourceTextModule to load Livelink core"),async()=>{let n=new a.SourceTextModule(i,{identifier:r});return await n.link(()=>{}),await n.evaluate(),n.namespace}):new Function("return import('data:text/javascript;base64,"+btoa(i)+"')")}constructor(){}};typeof window<"u"&&(window.__LIVELINK__||(window.__LIVELINK__={}),Object.prototype.hasOwnProperty.call(window.__LIVELINK__,"@3dverse/livelink.core")?console.warn("\u26A0\uFE0F WARNING \u26A0\uFE0F Multiple instances of Livelink Core being imported."):window.__LIVELINK__["@3dverse/livelink.core"]="1.1.0");
1
+ "use strict";var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var u=(o,e)=>{for(var r in e)d(o,r,{get:e[r],enumerable:!0})},L=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of c(e))!l.call(o,i)&&i!==r&&d(o,i,{get:()=>e[i],enumerable:!(t=p(e,i))||t.enumerable});return o};var m=o=>L(d({},"__esModule",{value:!0}),o);var I={};u(I,{DynamicLoader:()=>s});module.exports=m(I);var g=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,s=class o{static#e=null;static#o=null;static get Core(){if(!o.#e)throw new Error("Livelink core not initialized");return o.#e}static load(e="prod"){return o.#o||(o.#o=o.#r(e)),o.#o}static async#r(e){let r=await o.#i(e),{LivelinkCore:t}=await r();o.#e=t;let i={prod:"#FFC700",dev:"#36D399",debug:"#FB4949"};console.info(`%c Livelink Core initialized \u{1F680} %c ${t.VERSION} %c ${t.COMMIT_SHA} %c${e}`,"background: #080A12; color: #FFC700; font-weight: bold; padding: 8px; padding-right: 164px; border-radius: 16px; margin: 16px 0 16px 0","background: #9EA6D6; color: #0A1018; font-weight: bold; padding: 1px; padding-right: 0px; margin-left: -160px; border-radius: 16px 0 0 16px;","background: #6973A8; color: #0A1018; font-weight: bold; padding: 1px; padding-left: 0; border-radius: 0 16px 16px 0;",`background: ${i[e]}; color: #000; font-weight: bold; padding: 6px 16px; border: 4px solid #080A12; border-radius: 16px; margin-left: 16px`)}static async#i(e){let r="https://cdn.3dverse.com/livelink/core/1.0/"+(e!=="prod"?`core.${e}.mjs`:"core.mjs");if(!g)return new Function("return import('"+r+"')");let i=await(await fetch(r)).text(),a=await new Function("return import('node:vm')")();return a.SourceTextModule?(console.info("Using experimental VM SourceTextModule to load Livelink core"),async()=>{let n=new a.SourceTextModule(i,{identifier:r});return await n.link(()=>{}),await n.evaluate(),n.namespace}):new Function("return import('data:text/javascript;base64,"+btoa(i)+"')")}constructor(){}};typeof window<"u"&&(window.__LIVELINK__||(window.__LIVELINK__={}),Object.prototype.hasOwnProperty.call(window.__LIVELINK__,"@3dverse/livelink.core")?console.warn("\u26A0\uFE0F WARNING \u26A0\uFE0F Multiple instances of Livelink Core being imported."):window.__LIVELINK__["@3dverse/livelink.core"]="1.1.2");
2
2
  //# sourceMappingURL=library.cjs.map
package/dist/library.mjs CHANGED
@@ -1,2 +1,2 @@
1
- var a=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,s=class e{static#e=null;static#o=null;static get Core(){if(!e.#e)throw new Error("Livelink core not initialized");return e.#e}static load(o="prod"){return e.#o||(e.#o=e.#r(o)),e.#o}static async#r(o){let r=await e.#i(o),{LivelinkCore:i}=await r();e.#e=i;let t={prod:"#FFC700",dev:"#36D399",debug:"#FB4949"};console.info(`%c Livelink Core initialized \u{1F680} %c ${i.VERSION} %c ${i.COMMIT_SHA} %c${o}`,"background: #080A12; color: #FFC700; font-weight: bold; padding: 8px; padding-right: 164px; border-radius: 16px; margin: 16px 0 16px 0","background: #9EA6D6; color: #0A1018; font-weight: bold; padding: 1px; padding-right: 0px; margin-left: -160px; border-radius: 16px 0 0 16px;","background: #6973A8; color: #0A1018; font-weight: bold; padding: 1px; padding-left: 0; border-radius: 0 16px 16px 0;",`background: ${t[o]}; color: #000; font-weight: bold; padding: 6px 16px; border: 4px solid #080A12; border-radius: 16px; margin-left: 16px`)}static async#i(o){let r="https://cdn.3dverse.com/livelink/core/1.1/"+(o!=="prod"?`core.${o}.mjs`:"core.mjs");if(!a)return new Function("return import('"+r+"')");let t=await(await fetch(r)).text(),d=await new Function("return import('node:vm')")();return d.SourceTextModule?(console.info("Using experimental VM SourceTextModule to load Livelink core"),async()=>{let n=new d.SourceTextModule(t,{identifier:r});return await n.link(()=>{}),await n.evaluate(),n.namespace}):new Function("return import('data:text/javascript;base64,"+btoa(t)+"')")}constructor(){}};typeof window<"u"&&(window.__LIVELINK__||(window.__LIVELINK__={}),Object.prototype.hasOwnProperty.call(window.__LIVELINK__,"@3dverse/livelink.core")?console.warn("\u26A0\uFE0F WARNING \u26A0\uFE0F Multiple instances of Livelink Core being imported."):window.__LIVELINK__["@3dverse/livelink.core"]="1.1.0");export{s as DynamicLoader};
1
+ var a=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,s=class e{static#e=null;static#o=null;static get Core(){if(!e.#e)throw new Error("Livelink core not initialized");return e.#e}static load(o="prod"){return e.#o||(e.#o=e.#r(o)),e.#o}static async#r(o){let r=await e.#i(o),{LivelinkCore:i}=await r();e.#e=i;let t={prod:"#FFC700",dev:"#36D399",debug:"#FB4949"};console.info(`%c Livelink Core initialized \u{1F680} %c ${i.VERSION} %c ${i.COMMIT_SHA} %c${o}`,"background: #080A12; color: #FFC700; font-weight: bold; padding: 8px; padding-right: 164px; border-radius: 16px; margin: 16px 0 16px 0","background: #9EA6D6; color: #0A1018; font-weight: bold; padding: 1px; padding-right: 0px; margin-left: -160px; border-radius: 16px 0 0 16px;","background: #6973A8; color: #0A1018; font-weight: bold; padding: 1px; padding-left: 0; border-radius: 0 16px 16px 0;",`background: ${t[o]}; color: #000; font-weight: bold; padding: 6px 16px; border: 4px solid #080A12; border-radius: 16px; margin-left: 16px`)}static async#i(o){let r="https://cdn.3dverse.com/livelink/core/1.0/"+(o!=="prod"?`core.${o}.mjs`:"core.mjs");if(!a)return new Function("return import('"+r+"')");let t=await(await fetch(r)).text(),d=await new Function("return import('node:vm')")();return d.SourceTextModule?(console.info("Using experimental VM SourceTextModule to load Livelink core"),async()=>{let n=new d.SourceTextModule(t,{identifier:r});return await n.link(()=>{}),await n.evaluate(),n.namespace}):new Function("return import('data:text/javascript;base64,"+btoa(t)+"')")}constructor(){}};typeof window<"u"&&(window.__LIVELINK__||(window.__LIVELINK__={}),Object.prototype.hasOwnProperty.call(window.__LIVELINK__,"@3dverse/livelink.core")?console.warn("\u26A0\uFE0F WARNING \u26A0\uFE0F Multiple instances of Livelink Core being imported."):window.__LIVELINK__["@3dverse/livelink.core"]="1.1.2");export{s as DynamicLoader};
2
2
  //# sourceMappingURL=library.mjs.map
@@ -1,7 +1,7 @@
1
1
  export * from "./internal/GatewayEvents";
2
2
  export * from "./internal/EditorEvents";
3
- import { AssetLoadingStatusEvent, FrameReceivedEvent, ScriptEventTriggeredEvent } from "./internal/GatewayEvents";
4
- import { EntitiesUpdatedEvent, EntityVisibilityChangedEvent } from "./internal/EditorEvents";
3
+ import { AssetLoadingStatusEvent, AudioReceivedEvent, FrameReceivedEvent, ScriptEventTriggeredEvent } from "./internal/GatewayEvents";
4
+ import { EntitiesUpdatedEvent, EntityVisibilityChangedEvent, LoadingCompletedEvent } from "./internal/EditorEvents";
5
5
  /**
6
6
  *
7
7
  */
@@ -34,8 +34,10 @@ export type CoreEvents = {
34
34
  "on-activity-detected": ActivityDetectedEvent;
35
35
  "on-disconnected": DisconnectedEvent;
36
36
  "on-frame-received": FrameReceivedEvent;
37
+ "on-audio-received": AudioReceivedEvent;
37
38
  "on-script-event-received": ScriptEventTriggeredEvent;
38
39
  "on-asset-loading-status-received": AssetLoadingStatusEvent;
40
+ "on-loading-completed": LoadingCompletedEvent;
39
41
  "on-entities-updated": EntitiesUpdatedEvent;
40
42
  "on-entity-visibility-changed": EntityVisibilityChangedEvent;
41
43
  };
@@ -1,5 +1,19 @@
1
- import { ComponentsRecord } from "../../_prebuild/engine_types/ComponentsRecord";
2
- import { RTID, UUID } from "../types";
1
+ import type { ComponentsRecord, EntityCore } from "../../_prebuild/engine_types/ComponentsRecord";
2
+ import type { SceneSettingsRecord } from "../../_prebuild/engine_types/SceneSettingsRecord";
3
+ import type { RTID, UUID } from "../types";
4
+ /**
5
+ *
6
+ */
7
+ export declare class LoadingCompletedEvent extends Event {
8
+ /**
9
+ * An array of entities that are present in the scene at the root level.
10
+ */
11
+ readonly root_entities: Array<EntityCore>;
12
+ /**
13
+ * The settings of the scene.
14
+ */
15
+ readonly scene_settings: SceneSettingsRecord;
16
+ }
3
17
  /**
4
18
  *
5
19
  */
@@ -14,6 +14,15 @@ export declare class FrameReceivedEvent extends Event {
14
14
  */
15
15
  readonly meta_data: RawFrameMetaData;
16
16
  }
17
+ /**
18
+ *
19
+ */
20
+ export declare class AudioReceivedEvent extends Event {
21
+ /**
22
+ *
23
+ */
24
+ readonly packet: DataView;
25
+ }
17
26
  /**
18
27
  *
19
28
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dverse/livelink.core",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "3dverse Livelink Core types.",
5
5
  "main": "./dist/library.cjs",
6
6
  "module": "./dist/library.mjs",