@opsydyn/effect-three 0.3.0 → 0.6.4
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/CHANGELOG.md +56 -0
- package/README.md +15 -1
- package/dist/{index-8cf8t6by.js → index-re3rrfwd.js} +2935 -104
- package/dist/index-re3rrfwd.js.map +56 -0
- package/dist/index-ttwy0znv.js +145 -0
- package/dist/index-ttwy0znv.js.map +12 -0
- package/dist/index.js +557 -147
- package/dist/index.js.map +8 -6
- package/dist/kernel/bodies.d.ts +20 -1
- package/dist/kernel/bodies.d.ts.map +1 -1
- package/dist/kernel/boxSelect.d.ts +22 -0
- package/dist/kernel/boxSelect.d.ts.map +1 -0
- package/dist/kernel/build.d.ts +165 -7
- package/dist/kernel/build.d.ts.map +1 -1
- package/dist/kernel/cameraShake.d.ts.map +1 -1
- package/dist/kernel/describeScene.d.ts +50 -0
- package/dist/kernel/describeScene.d.ts.map +1 -0
- package/dist/kernel/description.d.ts +223 -1
- package/dist/kernel/description.d.ts.map +1 -1
- package/dist/kernel/diff.d.ts +15 -0
- package/dist/kernel/diff.d.ts.map +1 -1
- package/dist/kernel/equality.d.ts +11 -1
- package/dist/kernel/equality.d.ts.map +1 -1
- package/dist/kernel/gizmo.d.ts +69 -0
- package/dist/kernel/gizmo.d.ts.map +1 -0
- package/dist/kernel/history.d.ts +61 -0
- package/dist/kernel/history.d.ts.map +1 -0
- package/dist/kernel/index.d.ts +19 -6
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/kernel/index.js +124 -3
- package/dist/kernel/index.js.map +1 -1
- package/dist/kernel/inspect.d.ts +85 -0
- package/dist/kernel/inspect.d.ts.map +1 -0
- package/dist/kernel/lineGeometry.d.ts +25 -0
- package/dist/kernel/lineGeometry.d.ts.map +1 -0
- package/dist/kernel/lockstep.d.ts +114 -0
- package/dist/kernel/lockstep.d.ts.map +1 -0
- package/dist/kernel/loop.d.ts.map +1 -1
- package/dist/kernel/materials.d.ts.map +1 -1
- package/dist/kernel/paintOrder.d.ts +53 -0
- package/dist/kernel/paintOrder.d.ts.map +1 -0
- package/dist/kernel/physics.d.ts +39 -0
- package/dist/kernel/physics.d.ts.map +1 -1
- package/dist/kernel/pivot.d.ts +54 -0
- package/dist/kernel/pivot.d.ts.map +1 -0
- package/dist/kernel/pointBuffers.d.ts +17 -0
- package/dist/kernel/pointBuffers.d.ts.map +1 -0
- package/dist/kernel/pointer.d.ts +31 -1
- package/dist/kernel/pointer.d.ts.map +1 -1
- package/dist/kernel/preview.d.ts +32 -0
- package/dist/kernel/preview.d.ts.map +1 -0
- package/dist/kernel/renderKit.d.ts +21 -1
- package/dist/kernel/renderKit.d.ts.map +1 -1
- package/dist/kernel/renderer.d.ts +6 -0
- package/dist/kernel/renderer.d.ts.map +1 -1
- package/dist/kernel/sceneChanges.d.ts +87 -0
- package/dist/kernel/sceneChanges.d.ts.map +1 -0
- package/dist/kernel/sceneGraph.d.ts +9 -1
- package/dist/kernel/sceneGraph.d.ts.map +1 -1
- package/dist/kernel/sceneIndex.d.ts +5 -0
- package/dist/kernel/sceneIndex.d.ts.map +1 -1
- package/dist/kernel/seeded.d.ts +9 -0
- package/dist/kernel/seeded.d.ts.map +1 -0
- package/dist/kernel/shots.d.ts +26 -0
- package/dist/kernel/shots.d.ts.map +1 -0
- package/dist/kernel/tape.d.ts +38 -0
- package/dist/kernel/tape.d.ts.map +1 -0
- package/dist/kernel/timeline.d.ts +60 -0
- package/dist/kernel/timeline.d.ts.map +1 -0
- package/dist/kernel/trail.d.ts +31 -0
- package/dist/kernel/trail.d.ts.map +1 -0
- package/dist/kernel/viewportGizmo.d.ts +25 -0
- package/dist/kernel/viewportGizmo.d.ts.map +1 -0
- package/dist/runtime/Inspector.d.ts +20 -0
- package/dist/runtime/Inspector.d.ts.map +1 -0
- package/dist/runtime/SceneFile.d.ts +462 -0
- package/dist/runtime/SceneFile.d.ts.map +1 -0
- package/dist/runtime/SceneSchema.d.ts +404 -0
- package/dist/runtime/SceneSchema.d.ts.map +1 -1
- package/dist/runtime/errors.d.ts +9 -0
- package/dist/runtime/errors.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +3 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/webgl/index.d.ts.map +1 -1
- package/dist/webgl/index.js +228 -3
- package/dist/webgl/index.js.map +6 -4
- package/dist/webgl/line.d.ts +4 -0
- package/dist/webgl/line.d.ts.map +1 -0
- package/dist/webgl/points.d.ts +4 -0
- package/dist/webgl/points.d.ts.map +1 -0
- package/dist/webgpu/index.d.ts.map +1 -1
- package/dist/webgpu/index.js +206 -26
- package/dist/webgpu/index.js.map +6 -4
- package/dist/webgpu/line.d.ts +4 -0
- package/dist/webgpu/line.d.ts.map +1 -0
- package/dist/webgpu/points.d.ts +4 -0
- package/dist/webgpu/points.d.ts.map +1 -0
- package/package.json +4 -2
- package/src/kernel/bodies.ts +299 -17
- package/src/kernel/boxSelect.ts +73 -0
- package/src/kernel/build.ts +374 -1
- package/src/kernel/cameraShake.ts +3 -13
- package/src/kernel/describeScene.ts +224 -0
- package/src/kernel/description.ts +243 -0
- package/src/kernel/diff.ts +39 -0
- package/src/kernel/equality.ts +123 -0
- package/src/kernel/gizmo.ts +478 -0
- package/src/kernel/history.ts +118 -0
- package/src/kernel/index.ts +110 -1
- package/src/kernel/inspect.ts +214 -0
- package/src/kernel/lineGeometry.ts +75 -0
- package/src/kernel/lockstep.ts +237 -0
- package/src/kernel/loop.ts +7 -0
- package/src/kernel/materials.ts +3 -0
- package/src/kernel/paintOrder.ts +274 -0
- package/src/kernel/physics.ts +86 -1
- package/src/kernel/pivot.ts +418 -0
- package/src/kernel/pointBuffers.ts +115 -0
- package/src/kernel/pointer.ts +98 -17
- package/src/kernel/preview.ts +467 -0
- package/src/kernel/renderKit.ts +23 -1
- package/src/kernel/renderer.ts +6 -0
- package/src/kernel/sceneChanges.ts +265 -0
- package/src/kernel/sceneGraph.ts +354 -11
- package/src/kernel/sceneIndex.ts +8 -0
- package/src/kernel/seeded.ts +18 -0
- package/src/kernel/shots.ts +167 -0
- package/src/kernel/tape.ts +124 -0
- package/src/kernel/timeline.ts +93 -0
- package/src/kernel/trail.ts +170 -0
- package/src/kernel/viewportGizmo.ts +194 -0
- package/src/runtime/Inspector.ts +43 -0
- package/src/runtime/SceneFile.ts +46 -0
- package/src/runtime/SceneSchema.ts +319 -0
- package/src/runtime/errors.ts +6 -0
- package/src/runtime/index.ts +3 -1
- package/src/webgl/index.ts +4 -0
- package/src/webgl/line.ts +66 -0
- package/src/webgl/points.ts +205 -0
- package/src/webgpu/index.ts +4 -0
- package/src/webgpu/line.ts +67 -0
- package/src/webgpu/points.ts +193 -0
- package/dist/index-8cf8t6by.js.map +0 -41
|
@@ -205,6 +205,7 @@ export declare const BasicMaterial: Schema.TaggedStruct<"Basic", {
|
|
|
205
205
|
readonly wireframe: Schema.Boolean;
|
|
206
206
|
readonly color: Schema.Int;
|
|
207
207
|
readonly map: Schema.NullOr<Schema.String>;
|
|
208
|
+
readonly depthTest: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
208
209
|
}>;
|
|
209
210
|
/** Matte material parameters. */
|
|
210
211
|
export declare const LambertMaterial: Schema.TaggedStruct<"Lambert", {
|
|
@@ -286,6 +287,7 @@ export declare const SurfaceMaterial: Schema.Union<readonly [Schema.TaggedStruct
|
|
|
286
287
|
readonly wireframe: Schema.Boolean;
|
|
287
288
|
readonly color: Schema.Int;
|
|
288
289
|
readonly map: Schema.NullOr<Schema.String>;
|
|
290
|
+
readonly depthTest: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
289
291
|
}>, Schema.TaggedStruct<"Lambert", {
|
|
290
292
|
readonly opacity: Schema.Finite;
|
|
291
293
|
readonly transparent: Schema.Boolean;
|
|
@@ -423,6 +425,7 @@ export declare const MaterialRef: Schema.Union<readonly [Schema.TaggedStruct<"Sh
|
|
|
423
425
|
readonly wireframe: Schema.Boolean;
|
|
424
426
|
readonly color: Schema.Int;
|
|
425
427
|
readonly map: Schema.NullOr<Schema.String>;
|
|
428
|
+
readonly depthTest: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
426
429
|
}>, Schema.TaggedStruct<"Lambert", {
|
|
427
430
|
readonly opacity: Schema.Finite;
|
|
428
431
|
readonly transparent: Schema.Boolean;
|
|
@@ -563,6 +566,7 @@ export declare const ResourceDefinitions: Schema.Struct<{
|
|
|
563
566
|
readonly wireframe: Schema.Boolean;
|
|
564
567
|
readonly color: Schema.Int;
|
|
565
568
|
readonly map: Schema.NullOr<Schema.String>;
|
|
569
|
+
readonly depthTest: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
566
570
|
}>, Schema.TaggedStruct<"Lambert", {
|
|
567
571
|
readonly opacity: Schema.Finite;
|
|
568
572
|
readonly transparent: Schema.Boolean;
|
|
@@ -749,6 +753,18 @@ export declare const JointKind: Schema.Union<readonly [Schema.TaggedStruct<"Fixe
|
|
|
749
753
|
readonly stiffness: Schema.Finite;
|
|
750
754
|
readonly damping: Schema.Finite;
|
|
751
755
|
}>]>;
|
|
756
|
+
/** A trail behind a moving node (Drei's `Trail`). */
|
|
757
|
+
export declare const Trail: Schema.withDecodingDefaultKey<Schema.NullOr<Schema.Struct<{
|
|
758
|
+
readonly width: Schema.Finite;
|
|
759
|
+
readonly length: Schema.Finite;
|
|
760
|
+
readonly decay: Schema.Finite;
|
|
761
|
+
readonly local: Schema.Boolean;
|
|
762
|
+
readonly stride: Schema.Finite;
|
|
763
|
+
readonly interval: Schema.Finite;
|
|
764
|
+
readonly color: Schema.Int;
|
|
765
|
+
readonly taper: Schema.Literals<readonly ["none", "linear", "quadratic"]>;
|
|
766
|
+
readonly fade: Schema.Boolean;
|
|
767
|
+
}>>, never>;
|
|
752
768
|
/** A joint between two bodies. */
|
|
753
769
|
export declare const Joint: Schema.Struct<{
|
|
754
770
|
readonly key: Schema.String;
|
|
@@ -797,6 +813,14 @@ export declare const Physics: Schema.Struct<{
|
|
|
797
813
|
readonly paused: Schema.Boolean;
|
|
798
814
|
readonly timeStep: Schema.Finite;
|
|
799
815
|
readonly interpolate: Schema.Boolean;
|
|
816
|
+
readonly until: Schema.withDecodingDefaultKey<Schema.NullOr<Schema.Int>, never>;
|
|
817
|
+
readonly run: Schema.withDecodingDefaultKey<Schema.Int, never>;
|
|
818
|
+
readonly snapshotAt: Schema.withDecodingDefaultKey<Schema.NullOr<Schema.Int>, never>;
|
|
819
|
+
readonly from: Schema.withDecodingDefaultKey<Schema.NullOr<Schema.Struct<{
|
|
820
|
+
readonly step: Schema.Int;
|
|
821
|
+
readonly snapshot: Schema.NullOr<Schema.String>;
|
|
822
|
+
}>>, never>;
|
|
823
|
+
readonly keep: Schema.withDecodingDefaultKey<Schema.Int, never>;
|
|
800
824
|
readonly debug: Schema.Boolean;
|
|
801
825
|
readonly joints: Schema.$Array<Schema.Struct<{
|
|
802
826
|
readonly key: Schema.String;
|
|
@@ -944,6 +968,7 @@ export declare const MeshNode: Schema.TaggedStruct<"Mesh", {
|
|
|
944
968
|
readonly wireframe: Schema.Boolean;
|
|
945
969
|
readonly color: Schema.Int;
|
|
946
970
|
readonly map: Schema.NullOr<Schema.String>;
|
|
971
|
+
readonly depthTest: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
947
972
|
}>, Schema.TaggedStruct<"Lambert", {
|
|
948
973
|
readonly opacity: Schema.Finite;
|
|
949
974
|
readonly transparent: Schema.Boolean;
|
|
@@ -1050,6 +1075,28 @@ export declare const MeshNode: Schema.TaggedStruct<"Mesh", {
|
|
|
1050
1075
|
readonly filters: Schema.NullOr<Schema.$Array<Schema.Int>>;
|
|
1051
1076
|
}>>;
|
|
1052
1077
|
}>>;
|
|
1078
|
+
readonly edges: Schema.withDecodingDefaultKey<Schema.NullOr<Schema.Struct<{
|
|
1079
|
+
readonly threshold: Schema.Finite;
|
|
1080
|
+
readonly color: Schema.Int;
|
|
1081
|
+
readonly width: Schema.Finite;
|
|
1082
|
+
readonly worldUnits: Schema.Boolean;
|
|
1083
|
+
readonly dashed: Schema.Boolean;
|
|
1084
|
+
readonly dashSize: Schema.Finite;
|
|
1085
|
+
readonly gapSize: Schema.Finite;
|
|
1086
|
+
readonly opacity: Schema.Finite;
|
|
1087
|
+
readonly transparent: Schema.Boolean;
|
|
1088
|
+
}>>, never>;
|
|
1089
|
+
readonly trail: Schema.withDecodingDefaultKey<Schema.NullOr<Schema.Struct<{
|
|
1090
|
+
readonly width: Schema.Finite;
|
|
1091
|
+
readonly length: Schema.Finite;
|
|
1092
|
+
readonly decay: Schema.Finite;
|
|
1093
|
+
readonly local: Schema.Boolean;
|
|
1094
|
+
readonly stride: Schema.Finite;
|
|
1095
|
+
readonly interval: Schema.Finite;
|
|
1096
|
+
readonly color: Schema.Int;
|
|
1097
|
+
readonly taper: Schema.Literals<readonly ["none", "linear", "quadratic"]>;
|
|
1098
|
+
readonly fade: Schema.Boolean;
|
|
1099
|
+
}>>, never>;
|
|
1053
1100
|
}>;
|
|
1054
1101
|
/** One instance of an instances node. */
|
|
1055
1102
|
export declare const Instance: Schema.Struct<{
|
|
@@ -1163,6 +1210,7 @@ export declare const InstancesNode: Schema.TaggedStruct<"Instances", {
|
|
|
1163
1210
|
readonly wireframe: Schema.Boolean;
|
|
1164
1211
|
readonly color: Schema.Int;
|
|
1165
1212
|
readonly map: Schema.NullOr<Schema.String>;
|
|
1213
|
+
readonly depthTest: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
1166
1214
|
}>, Schema.TaggedStruct<"Lambert", {
|
|
1167
1215
|
readonly opacity: Schema.Finite;
|
|
1168
1216
|
readonly transparent: Schema.Boolean;
|
|
@@ -1417,6 +1465,7 @@ export declare const LabelNode: Schema.TaggedStruct<"Label", {
|
|
|
1417
1465
|
readonly wireframe: Schema.Boolean;
|
|
1418
1466
|
readonly color: Schema.Int;
|
|
1419
1467
|
readonly map: Schema.NullOr<Schema.String>;
|
|
1468
|
+
readonly depthTest: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
1420
1469
|
}>, Schema.TaggedStruct<"Lambert", {
|
|
1421
1470
|
readonly opacity: Schema.Finite;
|
|
1422
1471
|
readonly transparent: Schema.Boolean;
|
|
@@ -1554,6 +1603,129 @@ export declare const HemisphereLightNode: Schema.TaggedStruct<"HemisphereLight",
|
|
|
1554
1603
|
readonly intensity: Schema.Finite;
|
|
1555
1604
|
readonly position: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1556
1605
|
}>;
|
|
1606
|
+
/** What points look like: dots, Drei's sparkles, or its stars. */
|
|
1607
|
+
export declare const PointLook: Schema.Union<readonly [Schema.TaggedStruct<"Dots", {
|
|
1608
|
+
readonly positions: Schema.$Array<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
1609
|
+
readonly colors: Schema.NullOr<Schema.$Array<Schema.Int>>;
|
|
1610
|
+
readonly sizes: Schema.NullOr<Schema.$Array<Schema.Finite>>;
|
|
1611
|
+
readonly color: Schema.Int;
|
|
1612
|
+
readonly size: Schema.Finite;
|
|
1613
|
+
readonly sizeAttenuation: Schema.Boolean;
|
|
1614
|
+
readonly round: Schema.Boolean;
|
|
1615
|
+
readonly opacity: Schema.Finite;
|
|
1616
|
+
readonly transparent: Schema.Boolean;
|
|
1617
|
+
}>, Schema.TaggedStruct<"Sparkles", {
|
|
1618
|
+
readonly count: Schema.Int;
|
|
1619
|
+
readonly speed: Schema.Finite;
|
|
1620
|
+
readonly opacity: Schema.Finite;
|
|
1621
|
+
readonly scale: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1622
|
+
readonly size: Schema.NullOr<Schema.Finite>;
|
|
1623
|
+
readonly color: Schema.Int;
|
|
1624
|
+
readonly noise: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1625
|
+
readonly seed: Schema.Finite;
|
|
1626
|
+
}>, Schema.TaggedStruct<"Stars", {
|
|
1627
|
+
readonly radius: Schema.Finite;
|
|
1628
|
+
readonly depth: Schema.Finite;
|
|
1629
|
+
readonly count: Schema.Int;
|
|
1630
|
+
readonly factor: Schema.Finite;
|
|
1631
|
+
readonly saturation: Schema.Finite;
|
|
1632
|
+
readonly fade: Schema.Boolean;
|
|
1633
|
+
readonly speed: Schema.Finite;
|
|
1634
|
+
readonly seed: Schema.Finite;
|
|
1635
|
+
}>]>;
|
|
1636
|
+
/** Points (Drei's `Points`, `Sparkles` or `Stars`), drawn by the render kit. */
|
|
1637
|
+
export declare const PointsNode: Schema.TaggedStruct<"Points", {
|
|
1638
|
+
readonly key: Schema.String;
|
|
1639
|
+
readonly position: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1640
|
+
readonly rotation: Schema.Union<readonly [Schema.TaggedStruct<"Fixed", {
|
|
1641
|
+
readonly euler: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1642
|
+
}>, Schema.TaggedStruct<"Spin", {
|
|
1643
|
+
readonly axis: Schema.Literals<readonly ["x", "y", "z"]>;
|
|
1644
|
+
readonly radiansPerSecond: Schema.Finite;
|
|
1645
|
+
readonly phase: Schema.Finite;
|
|
1646
|
+
}>, Schema.TaggedStruct<"Billboard", {
|
|
1647
|
+
readonly lockX: Schema.Boolean;
|
|
1648
|
+
readonly lockY: Schema.Boolean;
|
|
1649
|
+
readonly lockZ: Schema.Boolean;
|
|
1650
|
+
}>]>;
|
|
1651
|
+
readonly scale: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1652
|
+
readonly transition: Schema.Union<readonly [Schema.TaggedStruct<"Instant", {}>, Schema.TaggedStruct<"Ease", {
|
|
1653
|
+
readonly seconds: Schema.Finite;
|
|
1654
|
+
readonly easing: Schema.Literals<readonly ["linear", "easeInOutCubic", "easeOutCubic", "easeOutBack"]>;
|
|
1655
|
+
}>]>;
|
|
1656
|
+
readonly behaviour: Schema.NullOr<Schema.Struct<{
|
|
1657
|
+
readonly name: Schema.String;
|
|
1658
|
+
readonly params: Schema.$Record<Schema.String, Schema.Finite>;
|
|
1659
|
+
}>>;
|
|
1660
|
+
readonly look: Schema.Union<readonly [Schema.TaggedStruct<"Dots", {
|
|
1661
|
+
readonly positions: Schema.$Array<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
1662
|
+
readonly colors: Schema.NullOr<Schema.$Array<Schema.Int>>;
|
|
1663
|
+
readonly sizes: Schema.NullOr<Schema.$Array<Schema.Finite>>;
|
|
1664
|
+
readonly color: Schema.Int;
|
|
1665
|
+
readonly size: Schema.Finite;
|
|
1666
|
+
readonly sizeAttenuation: Schema.Boolean;
|
|
1667
|
+
readonly round: Schema.Boolean;
|
|
1668
|
+
readonly opacity: Schema.Finite;
|
|
1669
|
+
readonly transparent: Schema.Boolean;
|
|
1670
|
+
}>, Schema.TaggedStruct<"Sparkles", {
|
|
1671
|
+
readonly count: Schema.Int;
|
|
1672
|
+
readonly speed: Schema.Finite;
|
|
1673
|
+
readonly opacity: Schema.Finite;
|
|
1674
|
+
readonly scale: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1675
|
+
readonly size: Schema.NullOr<Schema.Finite>;
|
|
1676
|
+
readonly color: Schema.Int;
|
|
1677
|
+
readonly noise: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1678
|
+
readonly seed: Schema.Finite;
|
|
1679
|
+
}>, Schema.TaggedStruct<"Stars", {
|
|
1680
|
+
readonly radius: Schema.Finite;
|
|
1681
|
+
readonly depth: Schema.Finite;
|
|
1682
|
+
readonly count: Schema.Int;
|
|
1683
|
+
readonly factor: Schema.Finite;
|
|
1684
|
+
readonly saturation: Schema.Finite;
|
|
1685
|
+
readonly fade: Schema.Boolean;
|
|
1686
|
+
readonly speed: Schema.Finite;
|
|
1687
|
+
readonly seed: Schema.Finite;
|
|
1688
|
+
}>]>;
|
|
1689
|
+
}>;
|
|
1690
|
+
/** A line through points (Drei's `Line`), drawn by the render kit. */
|
|
1691
|
+
export declare const LineNode: Schema.TaggedStruct<"Line", {
|
|
1692
|
+
readonly key: Schema.String;
|
|
1693
|
+
readonly position: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1694
|
+
readonly rotation: Schema.Union<readonly [Schema.TaggedStruct<"Fixed", {
|
|
1695
|
+
readonly euler: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1696
|
+
}>, Schema.TaggedStruct<"Spin", {
|
|
1697
|
+
readonly axis: Schema.Literals<readonly ["x", "y", "z"]>;
|
|
1698
|
+
readonly radiansPerSecond: Schema.Finite;
|
|
1699
|
+
readonly phase: Schema.Finite;
|
|
1700
|
+
}>, Schema.TaggedStruct<"Billboard", {
|
|
1701
|
+
readonly lockX: Schema.Boolean;
|
|
1702
|
+
readonly lockY: Schema.Boolean;
|
|
1703
|
+
readonly lockZ: Schema.Boolean;
|
|
1704
|
+
}>]>;
|
|
1705
|
+
readonly scale: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
1706
|
+
readonly transition: Schema.Union<readonly [Schema.TaggedStruct<"Instant", {}>, Schema.TaggedStruct<"Ease", {
|
|
1707
|
+
readonly seconds: Schema.Finite;
|
|
1708
|
+
readonly easing: Schema.Literals<readonly ["linear", "easeInOutCubic", "easeOutCubic", "easeOutBack"]>;
|
|
1709
|
+
}>]>;
|
|
1710
|
+
readonly behaviour: Schema.NullOr<Schema.Struct<{
|
|
1711
|
+
readonly name: Schema.String;
|
|
1712
|
+
readonly params: Schema.$Record<Schema.String, Schema.Finite>;
|
|
1713
|
+
}>>;
|
|
1714
|
+
readonly interactive: Schema.Boolean;
|
|
1715
|
+
readonly points: Schema.$Array<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
1716
|
+
readonly segments: Schema.Boolean;
|
|
1717
|
+
readonly color: Schema.Int;
|
|
1718
|
+
readonly vertexColors: Schema.NullOr<Schema.$Array<Schema.Int>>;
|
|
1719
|
+
readonly width: Schema.Finite;
|
|
1720
|
+
readonly worldUnits: Schema.Boolean;
|
|
1721
|
+
readonly dashed: Schema.Boolean;
|
|
1722
|
+
readonly dashSize: Schema.Finite;
|
|
1723
|
+
readonly gapSize: Schema.Finite;
|
|
1724
|
+
readonly dashScale: Schema.Finite;
|
|
1725
|
+
readonly dashOffset: Schema.Finite;
|
|
1726
|
+
readonly opacity: Schema.Finite;
|
|
1727
|
+
readonly transparent: Schema.Boolean;
|
|
1728
|
+
}>;
|
|
1557
1729
|
/** Any scene node. Groups nest recursively. */
|
|
1558
1730
|
export declare const SceneNode: Schema.Codec<KernelSceneNode, unknown>;
|
|
1559
1731
|
/** Camera shake (Drei's `CameraShake`). */
|
|
@@ -1787,6 +1959,14 @@ export declare const RenderTexture: Schema.Struct<{
|
|
|
1787
1959
|
readonly background: Schema.NullOr<Schema.Int>;
|
|
1788
1960
|
readonly children: Schema.$Array<Schema.Codec<KernelSceneNode, unknown, never, never>>;
|
|
1789
1961
|
}>;
|
|
1962
|
+
/** Where a HUD's origin sits on the canvas. */
|
|
1963
|
+
export declare const HudAlignment: Schema.Literals<readonly ["top-left", "top-center", "top-right", "center-left", "center-center", "center-right", "bottom-left", "bottom-center", "bottom-right"]>;
|
|
1964
|
+
/** Nodes drawn over the scene, with their own camera in CSS pixels. */
|
|
1965
|
+
export declare const Hud: Schema.Struct<{
|
|
1966
|
+
readonly alignment: Schema.Literals<readonly ["top-left", "top-center", "top-right", "center-left", "center-center", "center-right", "bottom-left", "bottom-center", "bottom-right"]>;
|
|
1967
|
+
readonly margin: Schema.Tuple<readonly [Schema.Finite, Schema.Finite]>;
|
|
1968
|
+
readonly children: Schema.$Array<Schema.Codec<KernelSceneNode, unknown, never, never>>;
|
|
1969
|
+
}>;
|
|
1790
1970
|
/** A complete scene description. */
|
|
1791
1971
|
/** A point to show HTML at. */
|
|
1792
1972
|
export declare const Overlay: Schema.Struct<{
|
|
@@ -1860,6 +2040,15 @@ export declare const Xr: Schema.Struct<{
|
|
|
1860
2040
|
}>;
|
|
1861
2041
|
/** Whether the scene claims the pointer's gestures from the page. */
|
|
1862
2042
|
export declare const Gestures: Schema.Literals<readonly ["page", "scene"]>;
|
|
2043
|
+
/** What an asset is: a glTF or GLB model, a colour texture, an HDR panorama, a typeface font. */
|
|
2044
|
+
export declare const AssetKind: Schema.Literals<readonly ["model", "texture", "environment", "font"]>;
|
|
2045
|
+
/** An asset a scene asks for (`modelAsset` and the rest). */
|
|
2046
|
+
export declare const Asset: Schema.Struct<{
|
|
2047
|
+
readonly kind: Schema.Literals<readonly ["model", "texture", "environment", "font"]>;
|
|
2048
|
+
readonly id: Schema.String;
|
|
2049
|
+
readonly url: Schema.String;
|
|
2050
|
+
readonly levels: Schema.withDecodingDefaultKey<Schema.$Array<Schema.String>, never>;
|
|
2051
|
+
}>;
|
|
1863
2052
|
export declare const SceneDescription: Schema.Struct<{
|
|
1864
2053
|
readonly camera: Schema.Union<readonly [Schema.TaggedStruct<"Perspective", {
|
|
1865
2054
|
readonly fov: Schema.Finite;
|
|
@@ -2001,6 +2190,11 @@ export declare const SceneDescription: Schema.Struct<{
|
|
|
2001
2190
|
readonly background: Schema.NullOr<Schema.Int>;
|
|
2002
2191
|
readonly children: Schema.$Array<Schema.Codec<KernelSceneNode, unknown, never, never>>;
|
|
2003
2192
|
}>>;
|
|
2193
|
+
readonly hud: Schema.withDecodingDefaultKey<Schema.NullOr<Schema.Struct<{
|
|
2194
|
+
readonly alignment: Schema.Literals<readonly ["top-left", "top-center", "top-right", "center-left", "center-center", "center-right", "bottom-left", "bottom-center", "bottom-right"]>;
|
|
2195
|
+
readonly margin: Schema.Tuple<readonly [Schema.Finite, Schema.Finite]>;
|
|
2196
|
+
readonly children: Schema.$Array<Schema.Codec<KernelSceneNode, unknown, never, never>>;
|
|
2197
|
+
}>>, never>;
|
|
2004
2198
|
readonly overlays: Schema.$Array<Schema.Struct<{
|
|
2005
2199
|
readonly key: Schema.String;
|
|
2006
2200
|
readonly node: Schema.NullOr<Schema.String>;
|
|
@@ -2043,6 +2237,14 @@ export declare const SceneDescription: Schema.Struct<{
|
|
|
2043
2237
|
readonly paused: Schema.Boolean;
|
|
2044
2238
|
readonly timeStep: Schema.Finite;
|
|
2045
2239
|
readonly interpolate: Schema.Boolean;
|
|
2240
|
+
readonly until: Schema.withDecodingDefaultKey<Schema.NullOr<Schema.Int>, never>;
|
|
2241
|
+
readonly run: Schema.withDecodingDefaultKey<Schema.Int, never>;
|
|
2242
|
+
readonly snapshotAt: Schema.withDecodingDefaultKey<Schema.NullOr<Schema.Int>, never>;
|
|
2243
|
+
readonly from: Schema.withDecodingDefaultKey<Schema.NullOr<Schema.Struct<{
|
|
2244
|
+
readonly step: Schema.Int;
|
|
2245
|
+
readonly snapshot: Schema.NullOr<Schema.String>;
|
|
2246
|
+
}>>, never>;
|
|
2247
|
+
readonly keep: Schema.withDecodingDefaultKey<Schema.Int, never>;
|
|
2046
2248
|
readonly debug: Schema.Boolean;
|
|
2047
2249
|
readonly joints: Schema.$Array<Schema.Struct<{
|
|
2048
2250
|
readonly key: Schema.String;
|
|
@@ -2110,6 +2312,12 @@ export declare const SceneDescription: Schema.Struct<{
|
|
|
2110
2312
|
}>>;
|
|
2111
2313
|
}>>;
|
|
2112
2314
|
readonly measure: Schema.$Array<Schema.String>;
|
|
2315
|
+
readonly assets: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Struct<{
|
|
2316
|
+
readonly kind: Schema.Literals<readonly ["model", "texture", "environment", "font"]>;
|
|
2317
|
+
readonly id: Schema.String;
|
|
2318
|
+
readonly url: Schema.String;
|
|
2319
|
+
readonly levels: Schema.withDecodingDefaultKey<Schema.$Array<Schema.String>, never>;
|
|
2320
|
+
}>>, never>;
|
|
2113
2321
|
readonly render: Schema.Struct<{
|
|
2114
2322
|
readonly effects: Schema.$Array<Schema.Union<readonly [Schema.TaggedStruct<"Bloom", {
|
|
2115
2323
|
readonly strength: Schema.Finite;
|
|
@@ -2211,6 +2419,7 @@ export declare const SceneDescription: Schema.Struct<{
|
|
|
2211
2419
|
readonly wireframe: Schema.Boolean;
|
|
2212
2420
|
readonly color: Schema.Int;
|
|
2213
2421
|
readonly map: Schema.NullOr<Schema.String>;
|
|
2422
|
+
readonly depthTest: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
2214
2423
|
}>, Schema.TaggedStruct<"Lambert", {
|
|
2215
2424
|
readonly opacity: Schema.Finite;
|
|
2216
2425
|
readonly transparent: Schema.Boolean;
|
|
@@ -2270,6 +2479,34 @@ export declare const SceneDescription: Schema.Struct<{
|
|
|
2270
2479
|
}>;
|
|
2271
2480
|
readonly children: Schema.$Array<Schema.Codec<KernelSceneNode, unknown, never, never>>;
|
|
2272
2481
|
}>;
|
|
2482
|
+
/**
|
|
2483
|
+
* Detail of asset loaded events: the asset, the level of detail now shown (0 for the
|
|
2484
|
+
* coarsest of its `levels`, as many as it has levels for `url` itself) and whether that is
|
|
2485
|
+
* the finest, and for a model its parts and clips.
|
|
2486
|
+
*/
|
|
2487
|
+
export declare const AssetLoadedDetail: Schema.Struct<{
|
|
2488
|
+
readonly kind: Schema.Literals<readonly ["model", "texture", "environment", "font"]>;
|
|
2489
|
+
readonly id: Schema.String;
|
|
2490
|
+
readonly url: Schema.String;
|
|
2491
|
+
readonly levels: Schema.$Array<Schema.String>;
|
|
2492
|
+
readonly level: Schema.Int;
|
|
2493
|
+
readonly final: Schema.Boolean;
|
|
2494
|
+
/** Names of the objects inside a model, as hits report them in `part`. */
|
|
2495
|
+
readonly parts: Schema.$Array<Schema.String>;
|
|
2496
|
+
/** Names of a model's animation clips. */
|
|
2497
|
+
readonly clips: Schema.$Array<Schema.String>;
|
|
2498
|
+
}>;
|
|
2499
|
+
/**
|
|
2500
|
+
* Detail of asset failed events: the asset, and why its finest level could not be loaded
|
|
2501
|
+
* (a coarser level shown before stays).
|
|
2502
|
+
*/
|
|
2503
|
+
export declare const AssetFailedDetail: Schema.Struct<{
|
|
2504
|
+
readonly kind: Schema.Literals<readonly ["model", "texture", "environment", "font"]>;
|
|
2505
|
+
readonly id: Schema.String;
|
|
2506
|
+
readonly url: Schema.String;
|
|
2507
|
+
readonly levels: Schema.$Array<Schema.String>;
|
|
2508
|
+
readonly reason: Schema.String;
|
|
2509
|
+
}>;
|
|
2273
2510
|
/** Detail of pointer-leave events: the interactive mesh's key. */
|
|
2274
2511
|
export declare const KeyDetail: Schema.Struct<{
|
|
2275
2512
|
readonly key: Schema.String;
|
|
@@ -2413,6 +2650,16 @@ export declare const CollisionDetail: Schema.Struct<{
|
|
|
2413
2650
|
readonly bPart: Schema.optionalKey<Schema.String>;
|
|
2414
2651
|
readonly started: Schema.Boolean;
|
|
2415
2652
|
}>;
|
|
2653
|
+
/**
|
|
2654
|
+
* Detail of physics reached events: the run and step a world on `physics({ until })`
|
|
2655
|
+
* reached, a checksum of its bodies' poses there, and at `snapshotAt` a snapshot of it.
|
|
2656
|
+
*/
|
|
2657
|
+
export declare const PhysicsReachedDetail: Schema.Struct<{
|
|
2658
|
+
readonly run: Schema.Int;
|
|
2659
|
+
readonly step: Schema.Int;
|
|
2660
|
+
readonly checksum: Schema.String;
|
|
2661
|
+
readonly snapshot: Schema.optionalKey<Schema.String>;
|
|
2662
|
+
}>;
|
|
2416
2663
|
/** Detail of XR stick events: a thumbstick pushed past halfway, or let back. */
|
|
2417
2664
|
export declare const XrStickDetail: Schema.Struct<{
|
|
2418
2665
|
readonly hand: Schema.Literals<readonly ["left", "right", "none"]>;
|
|
@@ -2544,6 +2791,18 @@ export declare const GestureDetail: Schema.Struct<{
|
|
|
2544
2791
|
readonly deltaY: Schema.Finite;
|
|
2545
2792
|
}>]>;
|
|
2546
2793
|
}>;
|
|
2794
|
+
/** Detail of the end of a gesture that moved: the press's button, modifiers, mesh and view. */
|
|
2795
|
+
export declare const GestureEndDetail: Schema.Struct<{
|
|
2796
|
+
readonly button: Schema.Int;
|
|
2797
|
+
readonly modifiers: Schema.Struct<{
|
|
2798
|
+
readonly shift: Schema.Boolean;
|
|
2799
|
+
readonly control: Schema.Boolean;
|
|
2800
|
+
readonly meta: Schema.Boolean;
|
|
2801
|
+
readonly alt: Schema.Boolean;
|
|
2802
|
+
}>;
|
|
2803
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
2804
|
+
readonly view: Schema.optionalKey<Schema.String>;
|
|
2805
|
+
}>;
|
|
2547
2806
|
/** A pointer interaction with an interactive mesh, or a miss. */
|
|
2548
2807
|
export declare const SceneEvent: Schema.Union<readonly [Schema.TaggedStruct<"PointerEnter", {
|
|
2549
2808
|
readonly key: Schema.String;
|
|
@@ -2722,6 +2981,16 @@ export declare const SceneEvent: Schema.Union<readonly [Schema.TaggedStruct<"Poi
|
|
|
2722
2981
|
readonly deltaX: Schema.Finite;
|
|
2723
2982
|
readonly deltaY: Schema.Finite;
|
|
2724
2983
|
}>]>;
|
|
2984
|
+
}>, Schema.TaggedStruct<"GestureEnd", {
|
|
2985
|
+
readonly button: Schema.Int;
|
|
2986
|
+
readonly modifiers: Schema.Struct<{
|
|
2987
|
+
readonly shift: Schema.Boolean;
|
|
2988
|
+
readonly control: Schema.Boolean;
|
|
2989
|
+
readonly meta: Schema.Boolean;
|
|
2990
|
+
readonly alt: Schema.Boolean;
|
|
2991
|
+
}>;
|
|
2992
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
2993
|
+
readonly view: Schema.optionalKey<Schema.String>;
|
|
2725
2994
|
}>, Schema.TaggedStruct<"AutoRotated", {
|
|
2726
2995
|
readonly view: Schema.optionalKey<Schema.String>;
|
|
2727
2996
|
readonly position: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
@@ -2752,6 +3021,11 @@ export declare const SceneEvent: Schema.Union<readonly [Schema.TaggedStruct<"Poi
|
|
|
2752
3021
|
readonly totalForceMagnitude: Schema.Finite;
|
|
2753
3022
|
readonly maxForceDirection: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
2754
3023
|
readonly maxForceMagnitude: Schema.Finite;
|
|
3024
|
+
}>, Schema.TaggedStruct<"PhysicsReached", {
|
|
3025
|
+
readonly run: Schema.Int;
|
|
3026
|
+
readonly step: Schema.Int;
|
|
3027
|
+
readonly checksum: Schema.String;
|
|
3028
|
+
readonly snapshot: Schema.optionalKey<Schema.String>;
|
|
2755
3029
|
}>, Schema.TaggedStruct<"XrStick", {
|
|
2756
3030
|
readonly hand: Schema.Literals<readonly ["left", "right", "none"]>;
|
|
2757
3031
|
readonly direction: Schema.Literals<readonly ["center", "left", "right", "forward", "back"]>;
|
|
@@ -2816,6 +3090,8 @@ export declare const DescriptionError: Schema.Union<readonly [Schema.TaggedStruc
|
|
|
2816
3090
|
readonly view: Schema.String;
|
|
2817
3091
|
}>, Schema.TaggedStruct<"UnknownMeasuredNode", {
|
|
2818
3092
|
readonly key: Schema.String;
|
|
3093
|
+
}>, Schema.TaggedStruct<"DuplicateAssetId", {
|
|
3094
|
+
readonly id: Schema.String;
|
|
2819
3095
|
}>, Schema.TaggedStruct<"DuplicateJointKey", {
|
|
2820
3096
|
readonly key: Schema.String;
|
|
2821
3097
|
}>, Schema.TaggedStruct<"UnknownJointBody", {
|
|
@@ -2824,4 +3100,132 @@ export declare const DescriptionError: Schema.Union<readonly [Schema.TaggedStruc
|
|
|
2824
3100
|
}>, Schema.TaggedStruct<"DuplicateRenderTextureId", {
|
|
2825
3101
|
readonly id: Schema.String;
|
|
2826
3102
|
}>]>;
|
|
3103
|
+
/** Where an object is, for a transform gizmo: position, Euler angles and scale. */
|
|
3104
|
+
export declare const Placement: Schema.Struct<{
|
|
3105
|
+
readonly position: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3106
|
+
readonly rotation: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3107
|
+
readonly scale: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3108
|
+
}>;
|
|
3109
|
+
/** A transform gizmo's state, for keeping in a Model. */
|
|
3110
|
+
export declare const Gizmo: Schema.Struct<{
|
|
3111
|
+
readonly mode: Schema.Literals<readonly ["translate", "rotate", "scale"]>;
|
|
3112
|
+
readonly space: Schema.Literals<readonly ["world", "local"]>;
|
|
3113
|
+
readonly size: Schema.Finite;
|
|
3114
|
+
readonly translationSnap: Schema.NullOr<Schema.Finite>;
|
|
3115
|
+
readonly rotationSnap: Schema.NullOr<Schema.Finite>;
|
|
3116
|
+
readonly scaleSnap: Schema.NullOr<Schema.Finite>;
|
|
3117
|
+
readonly showX: Schema.Boolean;
|
|
3118
|
+
readonly showY: Schema.Boolean;
|
|
3119
|
+
readonly showZ: Schema.Boolean;
|
|
3120
|
+
readonly hovered: Schema.NullOr<Schema.Literals<readonly ["x", "y", "z", "xy", "yz", "xz", "xyz"]>>;
|
|
3121
|
+
readonly grab: Schema.NullOr<Schema.Struct<{
|
|
3122
|
+
readonly handle: Schema.Literals<readonly ["x", "y", "z", "xy", "yz", "xz", "xyz"]>;
|
|
3123
|
+
readonly start: Schema.Struct<{
|
|
3124
|
+
readonly position: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3125
|
+
readonly rotation: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3126
|
+
readonly scale: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3127
|
+
}>;
|
|
3128
|
+
readonly from: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3129
|
+
readonly plane: Schema.Struct<{
|
|
3130
|
+
readonly normal: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3131
|
+
readonly constant: Schema.Finite;
|
|
3132
|
+
}>;
|
|
3133
|
+
readonly eye: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3134
|
+
readonly distance: Schema.Finite;
|
|
3135
|
+
}>>;
|
|
3136
|
+
}>;
|
|
3137
|
+
/** A branching history of `value`s (`History.make`), for a Model that keeps one. */
|
|
3138
|
+
export declare const History: <S extends Schema.Top>(value: S) => Schema.Struct<{
|
|
3139
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
3140
|
+
readonly id: Schema.Int;
|
|
3141
|
+
readonly parent: Schema.NullOr<Schema.Int>;
|
|
3142
|
+
readonly label: Schema.String;
|
|
3143
|
+
readonly value: S;
|
|
3144
|
+
readonly next: Schema.NullOr<Schema.Int>;
|
|
3145
|
+
}>>;
|
|
3146
|
+
readonly current: Schema.Int;
|
|
3147
|
+
}>;
|
|
3148
|
+
/** One peer's lockstep packet for one turn, carrying the app's `input`s. */
|
|
3149
|
+
export declare const LockstepPacket: <S extends Schema.Top>(input: S) => Schema.Struct<{
|
|
3150
|
+
readonly peer: Schema.String;
|
|
3151
|
+
readonly turn: Schema.Int;
|
|
3152
|
+
readonly entries: Schema.$Array<Schema.Union<readonly [Schema.TaggedStruct<"Input", {
|
|
3153
|
+
readonly input: S;
|
|
3154
|
+
}>, Schema.TaggedStruct<"Admit", {
|
|
3155
|
+
readonly peer: Schema.String;
|
|
3156
|
+
}>]>>;
|
|
3157
|
+
}>;
|
|
3158
|
+
/** A lockstep member: the first turn it sends for, and the turn it stopped before. */
|
|
3159
|
+
export declare const LockstepMember: Schema.Struct<{
|
|
3160
|
+
readonly peer: Schema.String;
|
|
3161
|
+
readonly from: Schema.Int;
|
|
3162
|
+
readonly until: Schema.NullOr<Schema.Int>;
|
|
3163
|
+
}>;
|
|
3164
|
+
/** A lockstep session (`Lockstep.make`) over the app's `input`s, for a Model. */
|
|
3165
|
+
export declare const Lockstep: <S extends Schema.Top>(input: S) => Schema.Struct<{
|
|
3166
|
+
readonly self: Schema.String;
|
|
3167
|
+
readonly members: Schema.$Array<Schema.Struct<{
|
|
3168
|
+
readonly peer: Schema.String;
|
|
3169
|
+
readonly from: Schema.Int;
|
|
3170
|
+
readonly until: Schema.NullOr<Schema.Int>;
|
|
3171
|
+
}>>;
|
|
3172
|
+
readonly turn: Schema.Int;
|
|
3173
|
+
readonly sent: Schema.Int;
|
|
3174
|
+
readonly lead: Schema.Int;
|
|
3175
|
+
readonly pending: Schema.$Array<Schema.Union<readonly [Schema.TaggedStruct<"Input", {
|
|
3176
|
+
readonly input: S;
|
|
3177
|
+
}>, Schema.TaggedStruct<"Admit", {
|
|
3178
|
+
readonly peer: Schema.String;
|
|
3179
|
+
}>]>>;
|
|
3180
|
+
readonly received: Schema.$Array<Schema.Struct<{
|
|
3181
|
+
readonly peer: Schema.String;
|
|
3182
|
+
readonly turn: Schema.Int;
|
|
3183
|
+
readonly entries: Schema.$Array<Schema.Union<readonly [Schema.TaggedStruct<"Input", {
|
|
3184
|
+
readonly input: S;
|
|
3185
|
+
}>, Schema.TaggedStruct<"Admit", {
|
|
3186
|
+
readonly peer: Schema.String;
|
|
3187
|
+
}>]>>;
|
|
3188
|
+
}>>;
|
|
3189
|
+
}>;
|
|
3190
|
+
/** A timeline of physics steps (`Timeline.make`) over the app's `input`s, for a Model. */
|
|
3191
|
+
export declare const Timeline: <S extends Schema.Top>(input: S) => Schema.Struct<{
|
|
3192
|
+
readonly inputs: Schema.$Array<Schema.Struct<{
|
|
3193
|
+
readonly step: Schema.Int;
|
|
3194
|
+
readonly input: S;
|
|
3195
|
+
}>>;
|
|
3196
|
+
readonly applied: Schema.Int;
|
|
3197
|
+
readonly reached: Schema.NullOr<Schema.Int>;
|
|
3198
|
+
readonly frontier: Schema.Int;
|
|
3199
|
+
}>;
|
|
3200
|
+
/** A measuring tape as data (`tape`), for a Model that keeps it. */
|
|
3201
|
+
export declare const Tape: Schema.Struct<{
|
|
3202
|
+
readonly from: Schema.NullOr<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
3203
|
+
readonly to: Schema.NullOr<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
3204
|
+
readonly pointer: Schema.NullOr<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
3205
|
+
readonly snap: Schema.NullOr<Schema.Finite>;
|
|
3206
|
+
}>;
|
|
3207
|
+
/** A pivot handle: what it does, and its axis. */
|
|
3208
|
+
export declare const PivotHandle: Schema.Literals<("arrow-x" | "arrow-y" | "arrow-z" | "rotator-x" | "rotator-y" | "rotator-z" | "slider-x" | "slider-y" | "slider-z" | "sphere-x" | "sphere-y" | "sphere-z")[]>;
|
|
3209
|
+
/** Pivot controls as data (`pivot`), for a Model that keeps them. */
|
|
3210
|
+
export declare const Pivot: Schema.Struct<{
|
|
3211
|
+
readonly scale: Schema.Finite;
|
|
3212
|
+
readonly depthTest: Schema.Boolean;
|
|
3213
|
+
readonly disableAxes: Schema.Boolean;
|
|
3214
|
+
readonly disableSliders: Schema.Boolean;
|
|
3215
|
+
readonly disableRotations: Schema.Boolean;
|
|
3216
|
+
readonly disableScaling: Schema.Boolean;
|
|
3217
|
+
readonly hovered: Schema.NullOr<Schema.Literals<("arrow-x" | "arrow-y" | "arrow-z" | "rotator-x" | "rotator-y" | "rotator-z" | "slider-x" | "slider-y" | "slider-z" | "sphere-x" | "sphere-y" | "sphere-z")[]>>;
|
|
3218
|
+
readonly grab: Schema.NullOr<Schema.Struct<{
|
|
3219
|
+
readonly handle: Schema.Literals<("arrow-x" | "arrow-y" | "arrow-z" | "rotator-x" | "rotator-y" | "rotator-z" | "slider-x" | "slider-y" | "slider-z" | "sphere-x" | "sphere-y" | "sphere-z")[]>;
|
|
3220
|
+
readonly start: Schema.Struct<{
|
|
3221
|
+
readonly position: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3222
|
+
readonly rotation: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3223
|
+
readonly scale: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3224
|
+
}>;
|
|
3225
|
+
readonly point: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3226
|
+
readonly e1: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3227
|
+
readonly e2: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3228
|
+
readonly normal: Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>;
|
|
3229
|
+
}>>;
|
|
3230
|
+
}>;
|
|
2827
3231
|
//# sourceMappingURL=SceneSchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SceneSchema.d.ts","sourceRoot":"","sources":["../../src/runtime/SceneSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAc,KAAK,SAAS,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAMzF,8DAA8D;AAC9D,eAAO,MAAM,IAAI,sEAA8D,CAAC;AAEhF,uBAAuB;AACvB,eAAO,MAAM,IAAI,2CAAmC,CAAC;AAUrD,mDAAmD;AACnD,eAAO,MAAM,GAAG,YAAwE,CAAC;AAEzF,sFAAsF;AACtF,eAAO,MAAM,QAAQ;;;;;;;;;;IAYnB,CAAC;AAEH,+BAA+B;AAC/B,eAAO,MAAM,WAAW;;;;EAItB,CAAC;AAIH,kCAAkC;AAClC,eAAO,MAAM,cAAc;;;;EAIzB,CAAC;AAEH,iCAAiC;AACjC,eAAO,MAAM,aAAa;;;EAAsE,CAAC;AAEjG,gEAAgE;AAChE,eAAO,MAAM,gBAAgB;;;;;EAK3B,CAAC;AAEH,iCAAiC;AACjC,eAAO,MAAM,aAAa;;;;;EAKxB,CAAC;AAEH,gCAAgC;AAChC,eAAO,MAAM,YAAY;;;;EAIvB,CAAC;AAEH,mCAAmC;AACnC,eAAO,M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|
10
|
+
declare const UnreadableScene_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
11
|
+
readonly _tag: "UnreadableScene";
|
|
12
|
+
} & Readonly<A>;
|
|
13
|
+
/** A scene file could not be read: not JSON, not a scene file, or not a scene. */
|
|
14
|
+
export declare class UnreadableScene extends UnreadableScene_base<{
|
|
15
|
+
/** Where and why, as the schema reports it. */
|
|
16
|
+
readonly issue: string;
|
|
17
|
+
}> {
|
|
18
|
+
}
|
|
10
19
|
declare const RendererUnavailable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
11
20
|
readonly _tag: "RendererUnavailable";
|
|
12
21
|
} & Readonly<A>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/runtime/errors.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;;;;AAE3D,6DAA6D;AAC7D,qBAAa,YAAa,SAAQ,kBAAiC;IACjE,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;CAClC,CAAC;CAAG;;;;AAEL,kFAAkF;AAClF,qBAAa,mBAAoB,SAAQ,yBAAwC;IAC/E,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB,CAAC;CAAG"}
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/runtime/errors.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;;;;AAE3D,6DAA6D;AAC7D,qBAAa,YAAa,SAAQ,kBAAiC;IACjE,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;CAClC,CAAC;CAAG;;;;AAEL,kFAAkF;AAClF,qBAAa,eAAgB,SAAQ,qBAAoC;IACvE,+CAA+C;IAC/C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;CAAG;;;;AAEL,kFAAkF;AAClF,qBAAa,mBAAoB,SAAQ,yBAAwC;IAC/E,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB,CAAC;CAAG"}
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
export { InvalidScene, RendererUnavailable } from './errors.ts';
|
|
6
|
+
export { InvalidScene, RendererUnavailable, UnreadableScene } from './errors.ts';
|
|
7
7
|
export * as FrameSource from './FrameSource.ts';
|
|
8
|
+
export * as Inspector from './Inspector.ts';
|
|
8
9
|
export * as ResourceRegistry from './ResourceRegistry.ts';
|
|
10
|
+
export * as SceneFile from './SceneFile.ts';
|
|
9
11
|
export * as SceneRuntime from './SceneRuntime.ts';
|
|
10
12
|
export * as SceneSchema from './SceneSchema.ts';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/webgl/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/webgl/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAOxD,eAAO,MAAM,QAAQ,EAAE,SAOtB,CAAC"}
|