@needle-tools/engine 2.35.1-pre → 2.35.2-pre
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 +9 -0
- package/dist/needle-engine.d.ts +3 -2
- package/dist/needle-engine.js +234 -3338
- package/dist/needle-engine.js.map +4 -4
- package/dist/needle-engine.min.js +20 -15
- package/dist/needle-engine.min.js.map +4 -4
- package/lib/engine/engine_components.js +7 -0
- package/lib/engine/engine_components.js.map +1 -1
- package/lib/engine/engine_gltf_builtin_components.d.ts +1 -0
- package/lib/engine/engine_gltf_builtin_components.js +5 -0
- package/lib/engine/engine_gltf_builtin_components.js.map +1 -1
- package/lib/engine-components/OrbitControls.js +16 -4
- package/lib/engine-components/OrbitControls.js.map +1 -1
- package/lib/engine-components/Renderer.d.ts +2 -1
- package/lib/engine-components/Renderer.js +11 -2
- package/lib/engine-components/Renderer.js.map +1 -1
- package/lib/engine-components/WebXR.js +5 -1
- package/lib/engine-components/WebXR.js.map +1 -1
- package/lib/engine-components/ui/RaycastUtils.js +0 -1
- package/lib/engine-components/ui/RaycastUtils.js.map +1 -1
- package/lib/needle-engine.d.ts +0 -1
- package/lib/needle-engine.js +0 -1
- package/lib/needle-engine.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/engine_components.ts +9 -1
- package/src/engine/engine_gltf_builtin_components.ts +4 -0
- package/src/engine-components/OrbitControls.ts +20 -7
- package/src/engine-components/Renderer.ts +13 -3
- package/src/engine-components/WebXR.ts +4 -1
- package/src/engine-components/ui/RaycastUtils.ts +0 -1
- package/src/needle-engine.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@ All notable changes to this package will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [2.35.2-pre] - 2022-10-20
|
|
8
|
+
- Add ``Renderer.mesh`` getter property
|
|
9
|
+
- Change: ``Renderer.material`` now returns first entry in ``sharedMaterials`` array so it automatically works in cases where a Renderer is actually a multi-material object
|
|
10
|
+
- Change: warn when trying to access components using string name instead of type
|
|
11
|
+
- Change: update needle gltf-transform-extensions to 0.6.2
|
|
12
|
+
- Fix: remove log from UIRaycastUtil
|
|
13
|
+
- Fix: move TypeStore import in builtin engine again to not break cases where ``import @needle-engine`` was never used
|
|
14
|
+
- Fix: React3Fiber template and AR overlay container access when using react
|
|
15
|
+
|
|
7
16
|
## [2.35.1-pre] - 2022-10-19
|
|
8
17
|
- Change: unify component access methods, first argument is now always the object with the component type as second argument
|
|
9
18
|
- Fix physics collision events throwing caused by refactoring in last version
|
package/dist/needle-engine.d.ts
CHANGED
|
@@ -2984,7 +2984,7 @@ declare module "engine/extensions/NEEDLE_deferred_texture" {
|
|
|
2984
2984
|
declare module "engine-components/Renderer" {
|
|
2985
2985
|
import { Behaviour } from "engine-components/Component";
|
|
2986
2986
|
import * as THREE from "three";
|
|
2987
|
-
import { Texture } from "three";
|
|
2987
|
+
import { Mesh, Texture } from "three";
|
|
2988
2988
|
import { IRenderer } from "engine/engine_types";
|
|
2989
2989
|
export { InstancingUtil } from "engine/engine_instancing";
|
|
2990
2990
|
export class FieldWithDefault {
|
|
@@ -3015,6 +3015,7 @@ declare module "engine-components/Renderer" {
|
|
|
3015
3015
|
renderOrder: number[] | undefined;
|
|
3016
3016
|
allowOcclusionWhenDynamic: boolean;
|
|
3017
3017
|
private _lightmaps?;
|
|
3018
|
+
get mesh(): Mesh | undefined;
|
|
3018
3019
|
get material(): THREE.Material;
|
|
3019
3020
|
set material(mat: THREE.Material);
|
|
3020
3021
|
private _sharedMaterials;
|
|
@@ -5228,7 +5229,6 @@ declare module "engine-components/codegen/components" {
|
|
|
5228
5229
|
declare module "needle-engine" {
|
|
5229
5230
|
import "engine/engine_element";
|
|
5230
5231
|
import "engine/engine_setup";
|
|
5231
|
-
import "./engine/codegen/register_types";
|
|
5232
5232
|
export { GameObject, Behaviour } from "engine-components/Component";
|
|
5233
5233
|
export { serializeable } from "engine/engine_serialization_decorator";
|
|
5234
5234
|
export { Collision } from "engine/engine_types";
|
|
@@ -5299,6 +5299,7 @@ declare module "engine/extensions/extensions" {
|
|
|
5299
5299
|
export function registerExtensions(loader: GLTFLoader, context: Context, sourceId: SourceIdentifier): void;
|
|
5300
5300
|
}
|
|
5301
5301
|
declare module "engine/engine_gltf_builtin_components" {
|
|
5302
|
+
import "./codegen/register_types";
|
|
5302
5303
|
import { Component } from "engine-components/Component";
|
|
5303
5304
|
import { Context } from "engine/engine_setup";
|
|
5304
5305
|
import { SerializationContext } from "engine/engine_serialization_core";
|