@needle-tools/engine 2.55.2-pre → 2.56.1-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 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.56.1-pre] - 2023-01-05
8
+ - Fix: UI setting Image.sprite property did apply vertical flip every time the sprite was set
9
+
10
+ ## [2.56.0-pre] - 2023-01-04
11
+ - Add: file-dropped event to DropListener
12
+ - Add: UI image and raw image components now support updating texture/sprite at runtime
13
+ - Change: Bump needle gltf-transform extensions package adding mesh compression and caching for texture compression leading to significant speedups for subsequent production builds (only changed textures are re-processed)
14
+ - Fix: light normal bias defaults
15
+
7
16
  ## [2.55.2-pre] - 2023-01-02
8
17
  - Add: Rigidbody.gravityScale property
9
18
  - Add: Gizmos.DrawArrow method
@@ -4460,6 +4460,7 @@ declare module "engine-components/ui/Graphic" {
4460
4460
  protected onAfterAddedToScene(): void;
4461
4461
  }
4462
4462
  export class MaskableGraphic extends Graphic {
4463
+ private _flippedObject;
4463
4464
  protected onAfterCreated(): void;
4464
4465
  }
4465
4466
  }
@@ -4474,13 +4475,17 @@ declare module "engine-components/ui/Image" {
4474
4475
  };
4475
4476
  }
4476
4477
  export class Image extends MaskableGraphic {
4477
- sprite?: Sprite;
4478
+ get sprite(): Sprite | undefined;
4479
+ set sprite(sprite: Sprite | undefined);
4480
+ private _sprite?;
4478
4481
  private isBuiltinSprite;
4479
4482
  protected onBeforeCreate(opts: any): void;
4480
4483
  protected onAfterCreated(): void;
4481
4484
  }
4482
4485
  export class RawImage extends MaskableGraphic {
4483
- mainTexture?: Texture;
4486
+ get mainTexture(): Texture | undefined;
4487
+ set mainTexture(texture: Texture | undefined);
4488
+ private _mainTexture?;
4484
4489
  protected onAfterCreated(): void;
4485
4490
  }
4486
4491
  }
@@ -5228,7 +5233,8 @@ declare module "engine-components/Networking" {
5228
5233
  declare module "engine-components/DropListener" {
5229
5234
  import { Behaviour } from "engine-components/Component";
5230
5235
  export enum DropListenerEvents {
5231
- ObjectAdded = "object-added"
5236
+ ObjectAdded = "object-added",
5237
+ FileDropped = "file-dropped"
5232
5238
  }
5233
5239
  export class DropListener extends Behaviour {
5234
5240
  filesBackendUrl?: string;
@@ -5238,6 +5244,7 @@ declare module "engine-components/DropListener" {
5238
5244
  onEnable(): void;
5239
5245
  onDisable(): void;
5240
5246
  private onDrag;
5247
+ addFiles(fileList: Array<File>): Promise<void>;
5241
5248
  private onDrop;
5242
5249
  private addObject;
5243
5250
  }