Comparing version 2.1.1 to 2.2.0
@@ -7,2 +7,8 @@ # Changelog | ||
## [2.2.0] - 2023-02-05 | ||
### Added | ||
- Added `renderSortOrder` to `Sprite3D`. | ||
- Added `lerp` to `Point3D`. | ||
- Added damping (inertia) support for `CameraOrbitControl`. | ||
## [2.1.1] - 2022-12-23 | ||
@@ -9,0 +15,0 @@ ### Fixed |
{ | ||
"name": "pixi3d", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "The 3D renderer for PixiJS. Seamless integration with 2D applications.", | ||
@@ -51,6 +51,6 @@ "main": "dist/cjs/pixi5/pixi3d.js", | ||
"version": "npm run docs && git add . && git reset -- docs/CNAME", | ||
"test": "PIXI_VERSION=6.5.8 mocha test/puppeteer-test-context.mjs --timeout 10000 --slow 5000", | ||
"test": "PIXI_VERSION=7.1.0 mocha test/puppeteer-test-context.mjs --timeout 10000 --slow 5000", | ||
"test:pixi5": "PIXI_VERSION=5.3.0 mocha test/puppeteer-test-context.mjs --timeout 10000 --slow 5000", | ||
"test:pixi6": "PIXI_VERSION=6.5.8 mocha test/puppeteer-test-context.mjs --timeout 10000 --slow 5000", | ||
"test:pixi7": "PIXI_VERSION=7.0.2 mocha test/puppeteer-test-context.mjs --timeout 10000 --slow 5000", | ||
"test:pixi7": "PIXI_VERSION=7.1.0 mocha test/puppeteer-test-context.mjs --timeout 10000 --slow 5000", | ||
"test:browser": "rollup --watch --config rollup.test.js", | ||
@@ -57,0 +57,0 @@ "types": "rimraf types && tsc --emitDeclarationOnly", |
@@ -8,4 +8,6 @@ import { ObservablePoint } from "@pixi/math"; | ||
camera: Camera; | ||
private _grabbed; | ||
private _dampingAngles; | ||
private _distance; | ||
private _grabbed; | ||
private _dampingDistance; | ||
private _angles; | ||
@@ -17,2 +19,6 @@ /** | ||
get angles(): ObservablePoint<undefined>; | ||
/** Value indicating if damping (inertia) is enabled, which can be used to give a sense of weight to the controls. Default is false. */ | ||
enableDamping: boolean; | ||
/** The damping inertia used if enableDamping is true. Default is 0.1. */ | ||
dampingFactor: number; | ||
/** Target position (x, y, z) to orbit. */ | ||
@@ -19,0 +25,0 @@ target: { |
@@ -35,2 +35,5 @@ import { Renderer, Texture, Resource } from "@pixi/core"; | ||
set pixelsPerUnit(value: number); | ||
/** Used for sorting the sprite before render. */ | ||
get renderSortOrder(): number; | ||
set renderSortOrder(value: number); | ||
/** | ||
@@ -37,0 +40,0 @@ * The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF |
@@ -125,2 +125,10 @@ import { ObservablePoint, IPoint } from "@pixi/math"; | ||
/** | ||
* Performs a linear interpolation between two points. | ||
* @param a The first point. | ||
* @param b The second point. | ||
* @param t The interpolation amount, in the range [0-1], between the two inputs. | ||
* @param out The receiving point. If not supplied, a new point will be created. | ||
*/ | ||
static lerp(a: Point3D, b: Point3D, t: number, out?: Point3D): Point3D; | ||
/** | ||
* Scales a point by a scalar number. | ||
@@ -127,0 +135,0 @@ * @param a The point to scale. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8933553
49219