@needle-tools/engine 2.55.2-pre → 2.56.0-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,12 @@ 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.0-pre] - 2023-01-04
8
+ - Add: file-dropped event to DropListener
9
+ - Add: UI image and raw image components now support updating texture/sprite at runtime
10
+ - 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)
11
+ - Fix: light normal bias defaults
12
+
7
13
  ## [2.55.2-pre] - 2023-01-02
8
14
  - Add: Rigidbody.gravityScale property
9
15
  - Add: Gizmos.DrawArrow method
@@ -4474,13 +4474,17 @@ declare module "engine-components/ui/Image" {
4474
4474
  };
4475
4475
  }
4476
4476
  export class Image extends MaskableGraphic {
4477
- sprite?: Sprite;
4477
+ get sprite(): Sprite | undefined;
4478
+ set sprite(sprite: Sprite | undefined);
4479
+ private _sprite?;
4478
4480
  private isBuiltinSprite;
4479
4481
  protected onBeforeCreate(opts: any): void;
4480
4482
  protected onAfterCreated(): void;
4481
4483
  }
4482
4484
  export class RawImage extends MaskableGraphic {
4483
- mainTexture?: Texture;
4485
+ get mainTexture(): Texture | undefined;
4486
+ set mainTexture(texture: Texture | undefined);
4487
+ private _mainTexture?;
4484
4488
  protected onAfterCreated(): void;
4485
4489
  }
4486
4490
  }
@@ -5228,7 +5232,8 @@ declare module "engine-components/Networking" {
5228
5232
  declare module "engine-components/DropListener" {
5229
5233
  import { Behaviour } from "engine-components/Component";
5230
5234
  export enum DropListenerEvents {
5231
- ObjectAdded = "object-added"
5235
+ ObjectAdded = "object-added",
5236
+ FileDropped = "file-dropped"
5232
5237
  }
5233
5238
  export class DropListener extends Behaviour {
5234
5239
  filesBackendUrl?: string;
@@ -5238,6 +5243,7 @@ declare module "engine-components/DropListener" {
5238
5243
  onEnable(): void;
5239
5244
  onDisable(): void;
5240
5245
  private onDrag;
5246
+ addFiles(fileList: Array<File>): Promise<void>;
5241
5247
  private onDrop;
5242
5248
  private addObject;
5243
5249
  }