@needle-tools/engine 5.0.0-next.40cc839 → 5.1.0-experimental.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/components.needle.json +1 -1
- package/dist/generateMeshBVH.worker-DT9A2Hrc.js +1 -0
- package/dist/gltf-progressive-3BwW4ETO.min.js +10 -0
- package/dist/gltf-progressive-ByD1UX0A.umd.cjs +10 -0
- package/dist/{gltf-progressive-Cl167Vjx.js → gltf-progressive-DwWaVr0o.js} +412 -394
- package/dist/gltf-progressive.worker-DpfUjn1n.js +3 -0
- package/dist/{materialx-qPScBWhj.min.js → materialx-9KHBidZa.min.js} +1 -1
- package/dist/{materialx-4ApD6Vz5.js → materialx-BBDu8W5P.js} +1 -1
- package/dist/{materialx-D0XUnhBY.umd.cjs → materialx-hLP3E8AA.umd.cjs} +2 -2
- package/dist/{needle-engine.bundle-CAt_h_GH.umd.cjs → needle-engine.bundle-BOAJ6UPK.umd.cjs} +123 -123
- package/dist/{needle-engine.bundle-BLroQ2QT.min.js → needle-engine.bundle-CVsBkUR2.min.js} +110 -110
- package/dist/{needle-engine.bundle-DysB2Idj.js → needle-engine.bundle-TgPY0fGG.js} +2143 -2088
- package/dist/needle-engine.d.ts +102 -44
- package/dist/needle-engine.js +480 -476
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/dist/{postprocessing-B_9sKVU7.min.js → postprocessing-BZfyAdCY.min.js} +1 -1
- package/dist/{postprocessing-WDc9WwI3.js → postprocessing-CXlA3QA6.js} +1 -1
- package/dist/{postprocessing-B2wb6pzI.umd.cjs → postprocessing-Dwy7Hz_T.umd.cjs} +38 -38
- package/dist/three-examples.js +4760 -3641
- package/dist/three-examples.min.js +17 -35
- package/dist/three-examples.umd.cjs +16 -34
- package/dist/three.js +48533 -28562
- package/dist/three.min.js +716 -502
- package/dist/three.umd.cjs +720 -506
- package/dist/{vendor-CntUvmJu.umd.cjs → vendor-BI4TX0aC.umd.cjs} +9 -9
- package/dist/{vendor-DPbfJJ4d.min.js → vendor-BgzAK9of.min.js} +1 -1
- package/dist/{vendor-vHLk8sXu.js → vendor-CwL-uvVy.js} +1 -1
- package/lib/engine/engine_animation.js +1 -1
- package/lib/engine/engine_animation.js.map +1 -1
- package/lib/engine/engine_audio.js.map +1 -1
- package/lib/engine/engine_context.js +3 -6
- package/lib/engine/engine_context.js.map +1 -1
- package/lib/engine/engine_create_objects.js +0 -1
- package/lib/engine/engine_create_objects.js.map +1 -1
- package/lib/engine/engine_element.d.ts +113 -0
- package/lib/engine/engine_element.js +833 -0
- package/lib/engine/engine_element.js.map +1 -0
- package/lib/engine/engine_element_attributes.d.ts +72 -0
- package/lib/engine/engine_element_attributes.js +2 -0
- package/lib/engine/engine_element_attributes.js.map +1 -0
- package/lib/engine/engine_element_extras.d.ts +6 -0
- package/lib/engine/engine_element_extras.js +14 -0
- package/lib/engine/engine_element_extras.js.map +1 -0
- package/lib/engine/engine_element_loading.d.ts +44 -0
- package/lib/engine/engine_element_loading.js +350 -0
- package/lib/engine/engine_element_loading.js.map +1 -0
- package/lib/engine/engine_element_overlay.d.ts +21 -0
- package/lib/engine/engine_element_overlay.js +167 -0
- package/lib/engine/engine_element_overlay.js.map +1 -0
- package/lib/engine/engine_license.js.map +1 -1
- package/lib/engine/engine_pmrem.js +2 -2
- package/lib/engine/engine_pmrem.js.map +1 -1
- package/lib/engine/engine_scenetools.d.ts +62 -0
- package/lib/engine/engine_scenetools.js +337 -0
- package/lib/engine/engine_scenetools.js.map +1 -0
- package/lib/engine/engine_serialization_builtin_serializer.d.ts +1 -1
- package/lib/engine/engine_test_utils.d.ts +39 -0
- package/lib/engine/engine_test_utils.js +84 -0
- package/lib/engine/engine_test_utils.js.map +1 -0
- package/lib/engine/engine_three_utils.js.map +1 -1
- package/lib/engine/engine_time.js +4 -3
- package/lib/engine/engine_time.js.map +1 -1
- package/lib/engine/engine_ui.d.ts +25 -0
- package/lib/engine/engine_ui.dummy_canvas.d.ts +2 -0
- package/lib/engine/engine_ui.dummy_canvas.js +55 -0
- package/lib/engine/engine_ui.dummy_canvas.js.map +1 -0
- package/lib/engine/engine_ui.js +168 -0
- package/lib/engine/engine_ui.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_lightmaps.js +2 -2
- package/lib/engine/extensions/NEEDLE_lightmaps.js.map +1 -1
- package/lib/engine/extensions/NEEDLE_pmrem.d.ts +1 -1
- package/lib/engine/webcomponents/icons.js +3 -2
- package/lib/engine/webcomponents/icons.js.map +1 -1
- package/lib/engine/webcomponents/needle-engine.attributes.d.ts +69 -0
- package/lib/engine/webcomponents/needle-engine.attributes.js +2 -0
- package/lib/engine/webcomponents/needle-engine.attributes.js.map +1 -0
- package/lib/engine-components/AudioSource.js +1 -1
- package/lib/engine-components/AudioSource.js.map +1 -1
- package/lib/engine-components/Light.d.ts +3 -0
- package/lib/engine-components/Light.js +39 -31
- package/lib/engine-components/Light.js.map +1 -1
- package/lib/engine-components/OrbitControls.js +2 -1
- package/lib/engine-components/OrbitControls.js.map +1 -1
- package/lib/engine-components/SpriteRenderer.d.ts +1 -1
- package/lib/engine-components/VideoPlayer.d.ts +1 -1
- package/lib/engine-components/export/usdz/ThreeUSDZExporter.js.map +1 -1
- package/lib/engine-components/export/usdz/extensions/Animation.js +1 -0
- package/lib/engine-components/export/usdz/extensions/Animation.js.map +1 -1
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.d.ts +1 -1
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js.map +1 -1
- package/lib/engine-components/particlesystem/ParticleSystem.d.ts +1 -1
- package/lib/engine-components/postprocessing/Effects/Tonemapping.utils.d.ts +1 -1
- package/lib/engine-components/postprocessing/PostProcessingHandler.js.map +1 -1
- package/lib/engine-components/timeline/TimelineTracks.js.map +1 -1
- package/lib/engine-components/ui/BaseUIComponent_Uikit.d.ts +54 -0
- package/lib/engine-components/ui/BaseUIComponent_Uikit.js +114 -0
- package/lib/engine-components/ui/BaseUIComponent_Uikit.js.map +1 -0
- package/lib/engine-components/ui/BaseUikitComponent.d.ts +54 -0
- package/lib/engine-components/ui/BaseUikitComponent.js +114 -0
- package/lib/engine-components/ui/BaseUikitComponent.js.map +1 -0
- package/lib/engine-components/ui/Button.legacy.d.ts +68 -0
- package/lib/engine-components/ui/Button.legacy.js +320 -0
- package/lib/engine-components/ui/Button.legacy.js.map +1 -0
- package/lib/engine-components/ui/ButtonUikit.d.ts +51 -0
- package/lib/engine-components/ui/ButtonUikit.js +187 -0
- package/lib/engine-components/ui/ButtonUikit.js.map +1 -0
- package/lib/engine-components/ui/Canvas.js +2 -2
- package/lib/engine-components/ui/Canvas.js.map +1 -1
- package/lib/engine-components/ui/Canvas.legacy.d.ts +76 -0
- package/lib/engine-components/ui/Canvas.legacy.js +409 -0
- package/lib/engine-components/ui/Canvas.legacy.js.map +1 -0
- package/lib/engine-components/ui/CanvasUikit.d.ts +68 -0
- package/lib/engine-components/ui/CanvasUikit.js +289 -0
- package/lib/engine-components/ui/CanvasUikit.js.map +1 -0
- package/lib/engine-components/ui/Graphic.d.ts +3 -3
- package/lib/engine-components/ui/Graphic.js +6 -2
- package/lib/engine-components/ui/Graphic.js.map +1 -1
- package/lib/engine-components/ui/Graphic.legacy.d.ts +55 -0
- package/lib/engine-components/ui/Graphic.legacy.js +268 -0
- package/lib/engine-components/ui/Graphic.legacy.js.map +1 -0
- package/lib/engine-components/ui/GraphicUikit.d.ts +21 -0
- package/lib/engine-components/ui/GraphicUikit.js +65 -0
- package/lib/engine-components/ui/GraphicUikit.js.map +1 -0
- package/lib/engine-components/ui/Image.js.map +1 -1
- package/lib/engine-components/ui/Image.legacy.d.ts +39 -0
- package/lib/engine-components/ui/Image.legacy.js +121 -0
- package/lib/engine-components/ui/Image.legacy.js.map +1 -0
- package/lib/engine-components/ui/ImageUikit.d.ts +22 -0
- package/lib/engine-components/ui/ImageUikit.js +97 -0
- package/lib/engine-components/ui/ImageUikit.js.map +1 -0
- package/lib/engine-components/ui/RenderMode.d.ts +14 -0
- package/lib/engine-components/ui/RenderMode.js +16 -0
- package/lib/engine-components/ui/RenderMode.js.map +1 -0
- package/lib/engine-components/ui/Text.d.ts +64 -11
- package/lib/engine-components/ui/Text.js +154 -45
- package/lib/engine-components/ui/Text.js.map +1 -1
- package/lib/engine-components/ui/Text.legacy.d.ts +81 -0
- package/lib/engine-components/ui/Text.legacy.js +548 -0
- package/lib/engine-components/ui/Text.legacy.js.map +1 -0
- package/lib/engine-components/ui/TextUikit.d.ts +42 -0
- package/lib/engine-components/ui/TextUikit.js +164 -0
- package/lib/engine-components/ui/TextUikit.js.map +1 -0
- package/lib/engine-components/ui/index.d.ts +1 -0
- package/lib/engine-components/ui/index.js +1 -0
- package/lib/engine-components/ui/index.js.map +1 -1
- package/lib/engine-components/webxr/WebARCameraBackground.d.ts +1 -1
- package/lib/include/three/EXT_mesh_gpu_instancing_exporter.d.ts +6 -0
- package/lib/include/three/EXT_mesh_gpu_instancing_exporter.js +46 -0
- package/lib/include/three/EXT_mesh_gpu_instancing_exporter.js.map +1 -0
- package/package.json +5 -5
- package/plugins/common/buildinfo.d.ts +6 -0
- package/plugins/vite/ai.d.ts +7 -8
- package/plugins/vite/ai.js +95 -20
- package/plugins/vite/alias.js +6 -0
- package/plugins/vite/dependencies.js +7 -0
- package/src/engine/engine_animation.ts +1 -1
- package/src/engine/engine_audio.ts +1 -1
- package/src/engine/engine_context.ts +3 -6
- package/src/engine/engine_create_objects.ts +0 -1
- package/src/engine/engine_license.ts +0 -2
- package/src/engine/engine_pmrem.ts +3 -3
- package/src/engine/engine_three_utils.ts +2 -2
- package/src/engine/engine_time.ts +4 -3
- package/src/engine/extensions/NEEDLE_lightmaps.ts +3 -3
- package/src/engine/webcomponents/icons.ts +3 -2
- package/src/engine-components/AudioSource.ts +1 -1
- package/src/engine-components/Light.ts +39 -31
- package/src/engine-components/OrbitControls.ts +2 -2
- package/src/engine-components/export/usdz/ThreeUSDZExporter.ts +2 -2
- package/src/engine-components/export/usdz/extensions/Animation.ts +6 -5
- package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +1 -1
- package/src/engine-components/postprocessing/PostProcessingHandler.ts +3 -3
- package/src/engine-components/timeline/TimelineTracks.ts +2 -2
- package/src/engine-components/ui/Canvas.ts +2 -2
- package/src/engine-components/ui/Graphic.ts +7 -3
- package/src/engine-components/ui/Image.ts +1 -1
- package/src/engine-components/ui/Text.ts +170 -52
- package/src/engine-components/ui/index.ts +2 -1
- package/dist/generateMeshBVH.worker-DiCnZlf3.js +0 -21
- package/dist/gltf-progressive-BryRjllq.min.js +0 -10
- package/dist/gltf-progressive-DJBMx-zB.umd.cjs +0 -10
- package/dist/gltf-progressive.worker-BqODMeeW.js +0 -23
package/dist/needle-engine.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { BatchedMesh } from 'three';
|
|
|
7
7
|
import { BloomEffect as BloomEffect_2 } from 'postprocessing';
|
|
8
8
|
import { Box3 } from 'three';
|
|
9
9
|
import { BufferGeometry } from 'three';
|
|
10
|
+
import { BufferGeometryEventMap } from 'three';
|
|
10
11
|
import { Camera as Camera_2 } from 'three';
|
|
11
12
|
import { Collider as Collider_2 } from '@dimforge/rapier3d-compat';
|
|
12
13
|
import { ColliderDesc } from '@dimforge/rapier3d-compat';
|
|
@@ -6432,7 +6433,7 @@ declare enum FogMode {
|
|
|
6432
6433
|
ExponentialSquared = 3
|
|
6433
6434
|
}
|
|
6434
6435
|
|
|
6435
|
-
declare enum FontStyle {
|
|
6436
|
+
export declare enum FontStyle {
|
|
6436
6437
|
Normal = 0,
|
|
6437
6438
|
Bold = 1,
|
|
6438
6439
|
Italic = 2,
|
|
@@ -7280,7 +7281,8 @@ export declare class Gradient {
|
|
|
7280
7281
|
export declare class Graphic extends BaseUIComponent implements IGraphic, IRectTransformChangedReceiver {
|
|
7281
7282
|
get isGraphic(): boolean;
|
|
7282
7283
|
get color(): RGBAColor;
|
|
7283
|
-
set color(col: RGBAColor);
|
|
7284
|
+
set color(col: RGBAColor | Color);
|
|
7285
|
+
private _color;
|
|
7284
7286
|
private _alphaFactor;
|
|
7285
7287
|
setAlphaFactor(factor: number): void;
|
|
7286
7288
|
get alphaFactor(): number;
|
|
@@ -7289,7 +7291,6 @@ export declare class Graphic extends BaseUIComponent implements IGraphic, IRectT
|
|
|
7289
7291
|
private get m_Color();
|
|
7290
7292
|
raycastTarget: boolean;
|
|
7291
7293
|
protected uiObject: ThreeMeshUI.Block | null;
|
|
7292
|
-
private _color;
|
|
7293
7294
|
private _rect;
|
|
7294
7295
|
private _stateManager;
|
|
7295
7296
|
protected get rectTransform(): RectTransform;
|
|
@@ -7631,7 +7632,7 @@ declare abstract class HorizontalOrVerticalLayoutGroup extends LayoutGroup {
|
|
|
7631
7632
|
protected onCalculateLayout(rect: RectTransform): void;
|
|
7632
7633
|
}
|
|
7633
7634
|
|
|
7634
|
-
declare enum HorizontalWrapMode {
|
|
7635
|
+
export declare enum HorizontalWrapMode {
|
|
7635
7636
|
Wrap = 0,
|
|
7636
7637
|
Overflow = 1
|
|
7637
7638
|
}
|
|
@@ -9580,7 +9581,7 @@ declare abstract class LayoutGroup extends Component implements ILayoutGroup {
|
|
|
9580
9581
|
get isDirty(): boolean;
|
|
9581
9582
|
get isLayoutGroup(): boolean;
|
|
9582
9583
|
updateLayout(): void;
|
|
9583
|
-
childAlignment:
|
|
9584
|
+
childAlignment: TextAnchor_2;
|
|
9584
9585
|
reverseArrangement: boolean;
|
|
9585
9586
|
spacing: number;
|
|
9586
9587
|
padding: Padding;
|
|
@@ -9754,6 +9755,9 @@ export declare class Light extends Component implements ILight {
|
|
|
9754
9755
|
* The underlying three.js {@link ThreeLight} instance
|
|
9755
9756
|
*/
|
|
9756
9757
|
private light;
|
|
9758
|
+
/** Access the light as a shadow-casting light (DirectionalLight, SpotLight, PointLight).
|
|
9759
|
+
* In r183 types, the `shadow` property is only on specific light subclasses. */
|
|
9760
|
+
private get shadowLight();
|
|
9757
9761
|
/**
|
|
9758
9762
|
* Gets the world position of the light
|
|
9759
9763
|
* @param vec Vector3 to store the result
|
|
@@ -19193,7 +19197,7 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
19193
19197
|
/**
|
|
19194
19198
|
* The geometry of the sprite that can be used to create a mesh
|
|
19195
19199
|
*/
|
|
19196
|
-
getGeometry(): BufferGeometry<NormalBufferAttributes>;
|
|
19200
|
+
getGeometry(): BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>;
|
|
19197
19201
|
}
|
|
19198
19202
|
|
|
19199
19203
|
declare class Sprite_3 {
|
|
@@ -19796,19 +19800,75 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
19796
19800
|
* @see {@link FontStyle} for bold/italic styles
|
|
19797
19801
|
*/
|
|
19798
19802
|
declare class Text_2 extends Graphic implements IHasAlphaFactor, ICanvasEventReceiver {
|
|
19799
|
-
|
|
19800
|
-
|
|
19801
|
-
|
|
19802
|
-
|
|
19803
|
-
|
|
19804
|
-
|
|
19805
|
-
|
|
19803
|
+
/**
|
|
19804
|
+
* The alignment of the text within its container. This determines how the text is anchored and positioned relative to its RectTransform. For example, `UpperLeft` will anchor the text to the upper left corner of the container, while `MiddleCenter` will center the text both horizontally and vertically. Changing this property will update the underlying three-mesh-ui options and mark the UI as dirty to trigger a re-render.
|
|
19805
|
+
*/
|
|
19806
|
+
set alignment(val: TextAnchor);
|
|
19807
|
+
get alignment(): TextAnchor;
|
|
19808
|
+
private _alignment;
|
|
19809
|
+
/**
|
|
19810
|
+
* Determines how text that exceeds the vertical bounds of the container is handled. If set to `Truncate`, any text that goes beyond the vertical limits of the container will be cut off and not visible. If set to `Overflow`, the text will continue to render outside the container bounds, which may result in it being partially or fully visible depending on the layout and parent containers.
|
|
19811
|
+
* @default VerticalWrapMode.Truncate
|
|
19812
|
+
*/
|
|
19813
|
+
set verticalOverflow(val: VerticalWrapMode);
|
|
19814
|
+
get verticalOverflow(): VerticalWrapMode;
|
|
19815
|
+
private _verticalOverflow;
|
|
19816
|
+
/**
|
|
19817
|
+
* Determines how text that exceeds the horizontal bounds of the container is handled. If set to `Wrap`, the text will automatically wrap to the next line when it reaches the edge of the container. If set to `Overflow`, the text will continue on a single line and may overflow outside the container bounds.
|
|
19818
|
+
* @default HorizontalWrapMode.Wrap
|
|
19819
|
+
*/
|
|
19820
|
+
set horizontalOverflow(val: HorizontalWrapMode);
|
|
19821
|
+
get horizontalOverflow(): HorizontalWrapMode;
|
|
19822
|
+
private _horizontalOverflow;
|
|
19823
|
+
/**
|
|
19824
|
+
* The line spacing multiplier for the text. A value of 1 means normal spacing, 1.5 means 50% more spacing, and 0.5 means 50% less spacing.
|
|
19825
|
+
* @default 1
|
|
19826
|
+
*/
|
|
19827
|
+
set lineSpacing(val: number);
|
|
19828
|
+
get lineSpacing(): number;
|
|
19829
|
+
private _lineSpacing;
|
|
19830
|
+
/**
|
|
19831
|
+
* The style of the font, which can be normal, bold, italic, or bold and italic.
|
|
19832
|
+
*
|
|
19833
|
+
* This is used to determine the correct font variant to use based on the provided `font` property. For example, if you set `font` to "Arial" and `fontStyle` to `FontStyle.Bold`, it will look for a font variant named "Arial-Bold" (or "arial-bold") in the font library. If such a variant exists, it will be used to render the text with the specified style.
|
|
19834
|
+
*
|
|
19835
|
+
* @default FontStyle.Normal
|
|
19836
|
+
*/
|
|
19837
|
+
set fontStyle(val: FontStyle);
|
|
19838
|
+
get fontStyle(): FontStyle;
|
|
19839
|
+
private _fontStyle;
|
|
19840
|
+
/**
|
|
19841
|
+
* The font to use for the text, specified as a URL to a font file.
|
|
19842
|
+
*
|
|
19843
|
+
* The font file must be in MSDF format. You can generate MSDF fonts using tools like [msdf-bmfont-xml](https://github.com/Chlumsky/msdf-bmfont-xml) or by using Needle Engine for Unity where the Needle Engine integration automatically generates MSDF fonts for used font assets.
|
|
19844
|
+
*
|
|
19845
|
+
* @default "https://cdn.needle.tools/static/fonts/msdf/arial/arial"
|
|
19846
|
+
*/
|
|
19847
|
+
set font(val: string | null);
|
|
19848
|
+
get font(): string | null;
|
|
19849
|
+
private _font;
|
|
19850
|
+
/**
|
|
19851
|
+
* Whether to support basic rich text tags in the `text` property. Supported tags include `<b>`, `<i>`, and `<color=hex>`. For example: `Hello <b>World</b>` or `Score: <color=#ff0000>100</color>`
|
|
19852
|
+
* @default false
|
|
19853
|
+
*/
|
|
19854
|
+
set supportRichText(val: boolean);
|
|
19855
|
+
get supportRichText(): boolean;
|
|
19856
|
+
private _supportRichText;
|
|
19857
|
+
/**
|
|
19858
|
+
* Set the alpha factor for the text, which multiplies with the color's alpha to determine overall transparency.
|
|
19859
|
+
*/
|
|
19806
19860
|
setAlphaFactor(factor: number): void;
|
|
19861
|
+
/**
|
|
19862
|
+
* The text content to display. Supports basic rich text tags like `<b>`, `<i>`, and `<color=hex>` if `supportRichText` is enabled.
|
|
19863
|
+
* @default ""
|
|
19864
|
+
*/
|
|
19807
19865
|
get text(): string;
|
|
19808
19866
|
set text(val: string);
|
|
19867
|
+
private _text;
|
|
19809
19868
|
private set_text;
|
|
19810
19869
|
get fontSize(): number;
|
|
19811
19870
|
set fontSize(val: number);
|
|
19871
|
+
private _fontSize;
|
|
19812
19872
|
private sRGBTextColor;
|
|
19813
19873
|
protected onColorChanged(): void;
|
|
19814
19874
|
onParentRectTransformChanged(): void;
|
|
@@ -19816,8 +19876,6 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
19816
19876
|
private updateOverflow;
|
|
19817
19877
|
protected onCreate(_opts: any): void;
|
|
19818
19878
|
onAfterAddedToScene(): void;
|
|
19819
|
-
private _text;
|
|
19820
|
-
private _fontSize;
|
|
19821
19879
|
private _textMeshUi;
|
|
19822
19880
|
private getTextOpts;
|
|
19823
19881
|
onEnable(): void;
|
|
@@ -19844,7 +19902,7 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
19844
19902
|
}
|
|
19845
19903
|
export { Text_2 as Text }
|
|
19846
19904
|
|
|
19847
|
-
declare enum TextAnchor {
|
|
19905
|
+
export declare enum TextAnchor {
|
|
19848
19906
|
UpperLeft = 0,
|
|
19849
19907
|
UpperCenter = 1,
|
|
19850
19908
|
UpperRight = 2,
|
|
@@ -19853,8 +19911,7 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
19853
19911
|
MiddleRight = 5,
|
|
19854
19912
|
LowerLeft = 6,
|
|
19855
19913
|
LowerCenter = 7,
|
|
19856
|
-
LowerRight = 8
|
|
19857
|
-
Custom = 9
|
|
19914
|
+
LowerRight = 8
|
|
19858
19915
|
}
|
|
19859
19916
|
|
|
19860
19917
|
declare enum TextAnchor_2 {
|
|
@@ -19866,7 +19923,8 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
19866
19923
|
MiddleRight = 5,
|
|
19867
19924
|
LowerLeft = 6,
|
|
19868
19925
|
LowerCenter = 7,
|
|
19869
|
-
LowerRight = 8
|
|
19926
|
+
LowerRight = 8,
|
|
19927
|
+
Custom = 9
|
|
19870
19928
|
}
|
|
19871
19929
|
|
|
19872
19930
|
export declare class TextBuilder {
|
|
@@ -20975,7 +21033,7 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
20975
21033
|
protected get primaryAxis(): Axis;
|
|
20976
21034
|
}
|
|
20977
21035
|
|
|
20978
|
-
declare enum VerticalWrapMode {
|
|
21036
|
+
export declare enum VerticalWrapMode {
|
|
20979
21037
|
Truncate = 0,
|
|
20980
21038
|
Overflow = 1
|
|
20981
21039
|
}
|
|
@@ -21080,7 +21138,7 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
21080
21138
|
/**
|
|
21081
21139
|
* the video texture that is used to render the video
|
|
21082
21140
|
*/
|
|
21083
|
-
get videoTexture(): VideoTexture | null;
|
|
21141
|
+
get videoTexture(): VideoTexture<HTMLVideoElement> | null;
|
|
21084
21142
|
/**
|
|
21085
21143
|
* the HTMLVideoElement that is used to play the video
|
|
21086
21144
|
*/
|
|
@@ -21672,7 +21730,7 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
21672
21730
|
* The tint color of the camera feed
|
|
21673
21731
|
*/
|
|
21674
21732
|
backgroundTint: RGBAColor;
|
|
21675
|
-
get background(): Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap> | undefined;
|
|
21733
|
+
get background(): Mesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material | Material[], Object3DEventMap> | undefined;
|
|
21676
21734
|
private backgroundPlane?;
|
|
21677
21735
|
private threeTexture?;
|
|
21678
21736
|
private forceTextureInitialization;
|
|
@@ -22819,28 +22877,6 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
22819
22877
|
export { }
|
|
22820
22878
|
|
|
22821
22879
|
|
|
22822
|
-
declare module 'three' {
|
|
22823
|
-
interface SkinnedMesh {
|
|
22824
|
-
staticGenerator?: StaticGeometryGenerator;
|
|
22825
|
-
staticGeometry?: BufferGeometry;
|
|
22826
|
-
staticGeometryLastUpdate?: number;
|
|
22827
|
-
}
|
|
22828
|
-
interface Mesh {
|
|
22829
|
-
acceleratedRaycast?: any;
|
|
22830
|
-
}
|
|
22831
|
-
interface SkinnedMesh {
|
|
22832
|
-
/** @deprecated use autoUpdateMeshBvhInterval */
|
|
22833
|
-
autoUpdateMeshBVH?: boolean;
|
|
22834
|
-
/**
|
|
22835
|
-
* Interval in milliseconds to automatically update the mesh BVH. When set to >= 0 the BVH will be updated every x milliseconds.
|
|
22836
|
-
* @default undefined (disabled)
|
|
22837
|
-
*/
|
|
22838
|
-
autoUpdateMeshBvhInterval?: number;
|
|
22839
|
-
bvhNeedsUpdate?: boolean;
|
|
22840
|
-
}
|
|
22841
|
-
}
|
|
22842
|
-
|
|
22843
|
-
|
|
22844
22880
|
declare module 'three' {
|
|
22845
22881
|
interface Object3D {
|
|
22846
22882
|
get guid(): string | undefined;
|
|
@@ -22986,3 +23022,25 @@ declare module 'three' {
|
|
|
22986
23022
|
slerp(end: Vector3, t: number): Vector3;
|
|
22987
23023
|
}
|
|
22988
23024
|
}
|
|
23025
|
+
|
|
23026
|
+
|
|
23027
|
+
declare module 'three' {
|
|
23028
|
+
interface SkinnedMesh {
|
|
23029
|
+
staticGenerator?: StaticGeometryGenerator;
|
|
23030
|
+
staticGeometry?: BufferGeometry;
|
|
23031
|
+
staticGeometryLastUpdate?: number;
|
|
23032
|
+
}
|
|
23033
|
+
interface Mesh {
|
|
23034
|
+
acceleratedRaycast?: any;
|
|
23035
|
+
}
|
|
23036
|
+
interface SkinnedMesh {
|
|
23037
|
+
/** @deprecated use autoUpdateMeshBvhInterval */
|
|
23038
|
+
autoUpdateMeshBVH?: boolean;
|
|
23039
|
+
/**
|
|
23040
|
+
* Interval in milliseconds to automatically update the mesh BVH. When set to >= 0 the BVH will be updated every x milliseconds.
|
|
23041
|
+
* @default undefined (disabled)
|
|
23042
|
+
*/
|
|
23043
|
+
autoUpdateMeshBvhInterval?: number;
|
|
23044
|
+
bvhNeedsUpdate?: boolean;
|
|
23045
|
+
}
|
|
23046
|
+
}
|