lecodes-sdk 0.19.1 → 0.20.0

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/global.d.ts CHANGED
@@ -24,6 +24,7 @@ declare global {
24
24
  const ClickEvent: typeof SDK.ClickEvent
25
25
  const Color: typeof SDK.Color
26
26
  const DateValue: typeof SDK.DateValue
27
+ const Feet: typeof SDK.Feet
27
28
  const File: typeof SDK.File
28
29
  const FollowPath: typeof SDK.FollowPath
29
30
  const FormData: typeof SDK.FormData
@@ -44,6 +45,7 @@ declare global {
44
45
  const LongPressEvent: typeof SDK.LongPressEvent
45
46
  const LookAt: typeof SDK.LookAt
46
47
  const Loop: typeof SDK.Loop
48
+ const MapView: typeof SDK.MapView
47
49
  const Mat4: typeof SDK.Mat4
48
50
  const Material: typeof SDK.Material
49
51
  const MaterialHandle: typeof SDK.MaterialHandle
@@ -127,6 +129,7 @@ declare global {
127
129
  const Vec3: typeof SDK.Vec3
128
130
  const Vehicle: typeof SDK.Vehicle
129
131
  const VideoPlayer: typeof SDK.VideoPlayer
132
+ const Warp: typeof SDK.Warp
130
133
  const WebSocket: typeof SDK.WebSocket
131
134
  const Wheel: typeof SDK.Wheel
132
135
  const __GizmoBuffer: typeof SDK.__GizmoBuffer
@@ -214,6 +217,7 @@ declare global {
214
217
  type AutoPaintRules = SDK.AutoPaintRules
215
218
  type Autotile2D = SDK.Autotile2D
216
219
  type Bitmap = SDK.Bitmap
220
+ type BlendMember = SDK.BlendMember
217
221
  type BlendPosition = SDK.BlendPosition
218
222
  type BlockEntry = SDK.BlockEntry
219
223
  type Camera = SDK.Camera
@@ -221,6 +225,7 @@ declare global {
221
225
  type Camera2dNodeDef = SDK.Camera2dNodeDef
222
226
  type CameraFacing = SDK.CameraFacing
223
227
  type CameraFollow = SDK.CameraFollow
228
+ type CameraMove = SDK.CameraMove
224
229
  type CameraNodeDef = SDK.CameraNodeDef
225
230
  type CameraPlace = SDK.CameraPlace
226
231
  type CameraView = SDK.CameraView
@@ -230,7 +235,11 @@ declare global {
230
235
  type CharacterController2D = SDK.CharacterController2D
231
236
  type ClickEvent<T = any> = SDK.ClickEvent<T>
232
237
  type ClientChannel<E extends Record<string, unknown> = Record<string, unknown>> = SDK.ClientChannel<E>
238
+ type ClipAlign = SDK.ClipAlign
239
+ type ClipCycle = SDK.ClipCycle
233
240
  type ClipDef = SDK.ClipDef
241
+ type ClipEventHandler = SDK.ClipEventHandler
242
+ type ClipInfo = SDK.ClipInfo
234
243
  type ClipKey<V> = SDK.ClipKey<V>
235
244
  type ClipTrackDef = SDK.ClipTrackDef
236
245
  type CompAxis = SDK.CompAxis
@@ -249,12 +258,14 @@ declare global {
249
258
  type EditorWindowFn = SDK.EditorWindowFn
250
259
  type EngineConfig = SDK.EngineConfig
251
260
  type EventMap = SDK.EventMap
261
+ type Feet = SDK.Feet
252
262
  type FeetOptions = SDK.FeetOptions
253
263
  type FetchResponse = SDK.FetchResponse
254
264
  type FieldMeta<T = unknown> = SDK.FieldMeta<T>
255
265
  type File = SDK.File
256
266
  type FileData = SDK.FileData
257
267
  type FillBlock = SDK.FillBlock
268
+ type FitOptions = SDK.FitOptions
258
269
  type FollowPath = SDK.FollowPath
259
270
  type FootState = SDK.FootState
260
271
  type FormData = SDK.FormData
@@ -277,6 +288,7 @@ declare global {
277
288
  type InspectorUI = SDK.InspectorUI
278
289
  type InstanceTransform = SDK.InstanceTransform
279
290
  type InstancedMesh = SDK.InstancedMesh
291
+ type KneeAxisReport = SDK.KneeAxisReport
280
292
  type Layer = SDK.Layer
281
293
  type LayerOptions = SDK.LayerOptions
282
294
  type LevelBuild = SDK.LevelBuild
@@ -290,7 +302,10 @@ declare global {
290
302
  type Light = SDK.Light
291
303
  type LightDef = SDK.LightDef
292
304
  type Lightmap = SDK.Lightmap
305
+ type LineLayer = SDK.LineLayer
306
+ type LineLayerOptions = SDK.LineLayerOptions
293
307
  type LitMaterialDef = SDK.LitMaterialDef
308
+ type LngLat = SDK.LngLat
294
309
  type LoadedScene<D extends SceneDef> = SDK.LoadedScene<D>
295
310
  type LoadedScene2d<D extends Scene2dDef> = SDK.LoadedScene2d<D>
296
311
  type Locale = SDK.Locale
@@ -300,12 +315,24 @@ declare global {
300
315
  type LocomotionSet = SDK.LocomotionSet
301
316
  type LocomotionState = SDK.LocomotionState
302
317
  type LocomotionTuning = SDK.LocomotionTuning
318
+ type LodMode = SDK.LodMode
303
319
  type LongPressEvent<T = any> = SDK.LongPressEvent<T>
304
320
  type LookAt = SDK.LookAt
305
321
  type Loop = SDK.Loop
306
322
  type LoopDef = SDK.LoopDef
307
323
  type LoopOptions = SDK.LoopOptions
308
324
  type MakeEntry<A extends Record<string, unknown> = Record<string, unknown>> = SDK.MakeEntry<A>
325
+ type MapCamera = SDK.MapCamera
326
+ type MapOptions = SDK.MapOptions
327
+ type MapPaddingValues = SDK.MapPaddingValues
328
+ type MapStyle = SDK.MapStyle
329
+ type MapStyleName = SDK.MapStyleName
330
+ type MapTap = SDK.MapTap
331
+ type MapView = SDK.MapView
332
+ type MarkerItem = SDK.MarkerItem
333
+ type MarkerLayer = SDK.MarkerLayer
334
+ type MarkerLayerOptions = SDK.MarkerLayerOptions
335
+ type MarkerTap = SDK.MarkerTap
309
336
  type Mat4 = SDK.Mat4
310
337
  type Material = SDK.Material
311
338
  type MaterialData = SDK.MaterialData
@@ -405,6 +432,8 @@ declare global {
405
432
  type StateMachineEvents = SDK.StateMachineEvents
406
433
  type StatesDef<C> = SDK.StatesDef<C>
407
434
  type SteeringConfig = SDK.SteeringConfig
435
+ type StepHandler = SDK.StepHandler
436
+ type StepWarpOptions = SDK.StepWarpOptions
408
437
  type StopOptions = SDK.StopOptions
409
438
  type System<K extends string, S extends SystemHost = Scene, E extends EventMap = {}> = SDK.System<K, S, E>
410
439
  type SystemHost = SDK.SystemHost
@@ -475,11 +504,13 @@ declare global {
475
504
  type UIWidgetStyle = SDK.UIWidgetStyle
476
505
  type Unit = SDK.Unit
477
506
  type UnlitMaterialDef = SDK.UnlitMaterialDef
507
+ type UserLocationOptions = SDK.UserLocationOptions
478
508
  type VRScene = SDK.VRScene
479
509
  type Vec2 = SDK.Vec2
480
510
  type Vec3 = SDK.Vec3
481
511
  type Vehicle = SDK.Vehicle
482
512
  type VideoPlayer = SDK.VideoPlayer
513
+ type Warp = SDK.Warp
483
514
  type WarpOptions = SDK.WarpOptions
484
515
  type WebSocket = SDK.WebSocket
485
516
  type Wheel = SDK.Wheel
package/dist/host.d.ts CHANGED
@@ -29,6 +29,9 @@ declare global {
29
29
  error(...data: any[]): void
30
30
  }
31
31
 
32
+ /** Compile-time macro: `asset('./data.json')` yields the file's PARSED data (a .json file is
33
+ * data, not code — it ships inside the bundle). See the `string` overload for everything else. */
34
+ function asset(path: `${string}.json`): any
32
35
  /** Compile-time macro: `asset('./hero.png')` is desugared by the bundler into the module import
33
36
  * for that resource. The file must exist — a path that resolves to nothing fails the compile
34
37
  * (`asset not found: ./hero.png (main.ts:3)`); there is no runtime fallback. Calls inside