@3dverse/livelink.core 1.1.0 → 1.1.1
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/_prebuild/engine_types/sceneSettings.d.ts +20 -10
- package/dist/_prebuild/messages/editor/LoadingCompleted.d.ts +1 -0
- package/dist/_prebuild/messages/editor/index.d.ts +2 -1
- package/dist/library.cjs +1 -1
- package/dist/library.mjs +1 -1
- package/dist/sources/CoreEvents.d.ts +2 -1
- package/dist/sources/internal/EditorEvents.d.ts +16 -2
- package/package.json +1 -1
- /package/dist/_prebuild/messages/editor/{ConnectConfirmation.d.ts → ConnectionAcknownledged.d.ts} +0 -0
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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
|
+
"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.1");
|
|
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
|
+
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.1");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
3
|
import { AssetLoadingStatusEvent, FrameReceivedEvent, ScriptEventTriggeredEvent } from "./internal/GatewayEvents";
|
|
4
|
-
import { EntitiesUpdatedEvent, EntityVisibilityChangedEvent } from "./internal/EditorEvents";
|
|
4
|
+
import { EntitiesUpdatedEvent, EntityVisibilityChangedEvent, LoadingCompletedEvent } from "./internal/EditorEvents";
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
@@ -36,6 +36,7 @@ export type CoreEvents = {
|
|
|
36
36
|
"on-frame-received": FrameReceivedEvent;
|
|
37
37
|
"on-script-event-received": ScriptEventTriggeredEvent;
|
|
38
38
|
"on-asset-loading-status-received": AssetLoadingStatusEvent;
|
|
39
|
+
"on-loading-completed": LoadingCompletedEvent;
|
|
39
40
|
"on-entities-updated": EntitiesUpdatedEvent;
|
|
40
41
|
"on-entity-visibility-changed": EntityVisibilityChangedEvent;
|
|
41
42
|
};
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import { ComponentsRecord } from "../../_prebuild/engine_types/ComponentsRecord";
|
|
2
|
-
import {
|
|
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
|
*/
|
package/package.json
CHANGED
/package/dist/_prebuild/messages/editor/{ConnectConfirmation.d.ts → ConnectionAcknownledged.d.ts}
RENAMED
|
File without changes
|