@3dverse/livelink.core 1.1.15 → 1.1.16
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/ComponentsRecord.d.ts +4 -0
- package/dist/_prebuild/engine_types/assets.d.ts +12 -4
- package/dist/_prebuild/engine_types/components.d.ts +29 -10
- package/dist/_prebuild/engine_types/sceneSettings.d.ts +5 -0
- package/dist/_prebuild/messages/gateway/enums.d.ts +1 -1
- package/dist/library.cjs +1 -1
- package/dist/library.mjs +1 -1
- package/dist/sources/LivelinkCore.d.ts +6 -0
- package/dist/sources/internal/PromiseWithResolver.d.ts +1 -0
- package/package.json +1 -1
|
@@ -136,6 +136,10 @@ export type ComponentsRecord = {
|
|
|
136
136
|
* Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref.
|
|
137
137
|
*/
|
|
138
138
|
morph_targets: Components.MorphTargets;
|
|
139
|
+
/**
|
|
140
|
+
* Reference to a navigation mesh asset.
|
|
141
|
+
*/
|
|
142
|
+
navmesh_ref: Components.NavmeshRef;
|
|
139
143
|
/**
|
|
140
144
|
* Orthographic projection lens with configurable zoom and depth range.
|
|
141
145
|
*/
|
|
@@ -30,6 +30,10 @@ export type CollisionGeometry = object;
|
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
32
|
export type Cubemap = object;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export type Defs = object;
|
|
33
37
|
/**
|
|
34
38
|
*
|
|
35
39
|
*/
|
|
@@ -46,6 +50,10 @@ export type Mesh = object;
|
|
|
46
50
|
*
|
|
47
51
|
*/
|
|
48
52
|
export type Module = object;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
export type Navmesh = object;
|
|
49
57
|
/**
|
|
50
58
|
*
|
|
51
59
|
*/
|
|
@@ -69,19 +77,19 @@ export type Shader = object;
|
|
|
69
77
|
/**
|
|
70
78
|
*
|
|
71
79
|
*/
|
|
72
|
-
export type
|
|
80
|
+
export type ShaderContext = object;
|
|
73
81
|
/**
|
|
74
82
|
*
|
|
75
83
|
*/
|
|
76
|
-
export type
|
|
84
|
+
export type Skeleton = object;
|
|
77
85
|
/**
|
|
78
86
|
*
|
|
79
87
|
*/
|
|
80
|
-
export type
|
|
88
|
+
export type Sound = object;
|
|
81
89
|
/**
|
|
82
90
|
*
|
|
83
91
|
*/
|
|
84
|
-
export type
|
|
92
|
+
export type Texture = object;
|
|
85
93
|
/**
|
|
86
94
|
*
|
|
87
95
|
*/
|
|
@@ -42,6 +42,16 @@ export type AnimationController = {
|
|
|
42
42
|
* @defaultValue false
|
|
43
43
|
*/
|
|
44
44
|
rootMotionEnabled: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Autoplay when the session starts.
|
|
47
|
+
* @defaultValue true
|
|
48
|
+
*/
|
|
49
|
+
autoPlay: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Current playback state.
|
|
52
|
+
* @defaultValue 0
|
|
53
|
+
*/
|
|
54
|
+
playState: UInt8;
|
|
45
55
|
};
|
|
46
56
|
/**
|
|
47
57
|
* Controls playback of an Animation Sequence; assigns tracks to entities.
|
|
@@ -51,6 +61,11 @@ export type AnimationSequenceController = {
|
|
|
51
61
|
* Referenced Animation Sequence (UUID).
|
|
52
62
|
*/
|
|
53
63
|
animationSequenceRef: AssetRef<Assets.AnimationSequence>;
|
|
64
|
+
/**
|
|
65
|
+
* Current playback state.
|
|
66
|
+
* @defaultValue 0
|
|
67
|
+
*/
|
|
68
|
+
playState: UInt8;
|
|
54
69
|
/**
|
|
55
70
|
* Map from track UUID to assigned entity.
|
|
56
71
|
*/
|
|
@@ -75,11 +90,6 @@ export type AnimationSequenceController = {
|
|
|
75
90
|
* @defaultValue false
|
|
76
91
|
*/
|
|
77
92
|
loop: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Current playback state.
|
|
80
|
-
* @defaultValue 0
|
|
81
|
-
*/
|
|
82
|
-
playState: UInt8;
|
|
83
93
|
/**
|
|
84
94
|
* Normalized offset [0, 1] to seek on the next frame; set to -1 to ignore.
|
|
85
95
|
* @defaultValue -1
|
|
@@ -578,6 +588,15 @@ export type MorphTargets = {
|
|
|
578
588
|
*/
|
|
579
589
|
weights: Record<string, Float>;
|
|
580
590
|
};
|
|
591
|
+
/**
|
|
592
|
+
* Reference to a navigation mesh asset.
|
|
593
|
+
*/
|
|
594
|
+
export type NavmeshRef = {
|
|
595
|
+
/**
|
|
596
|
+
* Referenced navmesh (UUID).
|
|
597
|
+
*/
|
|
598
|
+
value: AssetRef<Assets.Navmesh>;
|
|
599
|
+
};
|
|
581
600
|
/**
|
|
582
601
|
* Orthographic projection lens with configurable zoom and depth range.
|
|
583
602
|
*/
|
|
@@ -705,17 +724,17 @@ export type PointCloudRef = {
|
|
|
705
724
|
*/
|
|
706
725
|
export type PointLight = {
|
|
707
726
|
/**
|
|
708
|
-
* RGB light color in linear space [0
|
|
727
|
+
* RGB light color in linear space [0-1]. Multiplies intensity.
|
|
709
728
|
* @defaultValue [1,1,1]
|
|
710
729
|
*/
|
|
711
730
|
color: Vec3;
|
|
712
731
|
/**
|
|
713
|
-
*
|
|
732
|
+
* Luminous intensity in candela (cd) for point and spot lights. Illuminance in lux (lx) when isDirectional, above the atmosphere when isSun.
|
|
714
733
|
* @defaultValue 1
|
|
715
734
|
*/
|
|
716
735
|
intensity: Float;
|
|
717
736
|
/**
|
|
718
|
-
*
|
|
737
|
+
* Distance in meters at which the inverse-square falloff is windowed to zero. 0 for no cutoff.
|
|
719
738
|
* @defaultValue 0
|
|
720
739
|
*/
|
|
721
740
|
range: Float;
|
|
@@ -725,7 +744,7 @@ export type PointLight = {
|
|
|
725
744
|
*/
|
|
726
745
|
isDirectional: boolean;
|
|
727
746
|
/**
|
|
728
|
-
* Use this light's direction to control the atmosphere sun direction.
|
|
747
|
+
* Use this light's direction to control the atmosphere sun direction.
|
|
729
748
|
* @defaultValue false
|
|
730
749
|
*/
|
|
731
750
|
isSun: boolean;
|
|
@@ -1044,7 +1063,7 @@ export type Spline = {
|
|
|
1044
1063
|
*/
|
|
1045
1064
|
export type SpotLight = {
|
|
1046
1065
|
/**
|
|
1047
|
-
*
|
|
1066
|
+
* Cone half-angle in degrees, from the axis to the edge. Light falls to zero at the cone edge.
|
|
1048
1067
|
* @defaultValue 30
|
|
1049
1068
|
*/
|
|
1050
1069
|
cutoff: Float;
|
|
@@ -269,6 +269,11 @@ export type Streaming = {
|
|
|
269
269
|
* @defaultValue 0
|
|
270
270
|
*/
|
|
271
271
|
streamingUnloadingRadius: Float;
|
|
272
|
+
/**
|
|
273
|
+
* Maximum number of entities that can be loading at the same time. 0 means unlimited.
|
|
274
|
+
* @defaultValue 1000
|
|
275
|
+
*/
|
|
276
|
+
maxInFlightEntities: UInt32;
|
|
272
277
|
};
|
|
273
278
|
/**
|
|
274
279
|
* Settings for voxel rendering
|
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.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
|
+
"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.16");
|
|
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.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
|
+
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.16");export{s as DynamicLoader};
|
|
2
2
|
//# sourceMappingURL=library.mjs.map
|
|
@@ -143,6 +143,12 @@ export declare class LivelinkCore extends TypedEventTarget<CoreEvents> {
|
|
|
143
143
|
* Resume the rendering client.
|
|
144
144
|
*/
|
|
145
145
|
resume(): void;
|
|
146
|
+
/**
|
|
147
|
+
* Have a client encoding still images (codec `jpeg` or `png`) render its next frame, which
|
|
148
|
+
* arrives as any frame does. That frame answers every capture requested before it is rendered,
|
|
149
|
+
* so captures sent close together may share one image.
|
|
150
|
+
*/
|
|
151
|
+
captureFrame(): void;
|
|
146
152
|
/**
|
|
147
153
|
* Set the viewports configuration of the current client.
|
|
148
154
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|