@needle-tools/engine 2.56.0-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 +3 -0
- package/dist/needle-engine.d.ts +1 -0
- package/dist/needle-engine.js +1 -1
- package/dist/needle-engine.js.map +2 -2
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.min.js.map +2 -2
- package/dist/needle-engine.tsbuildinfo +1 -1
- package/lib/engine-components/ui/Graphic.d.ts +1 -0
- package/lib/engine-components/ui/Graphic.js +4 -1
- package/lib/engine-components/ui/Graphic.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/engine-components/ui/Graphic.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needle-tools/engine",
|
|
3
|
-
"version": "2.56.
|
|
3
|
+
"version": "2.56.1-pre",
|
|
4
4
|
"description": "Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development, and can be deployed anywhere. It is flexible, extensible, and collaboration and XR come naturally.",
|
|
5
5
|
"main": "dist/needle-engine.js",
|
|
6
6
|
"module": "src/needle-engine.ts",
|
|
@@ -167,9 +167,13 @@ export class Graphic extends BaseUIComponent implements IGraphic {
|
|
|
167
167
|
|
|
168
168
|
export class MaskableGraphic extends Graphic {
|
|
169
169
|
|
|
170
|
+
private _flippedObject = false;
|
|
171
|
+
|
|
170
172
|
protected onAfterCreated() {
|
|
171
173
|
// flip image
|
|
172
|
-
if (this.uiObject)
|
|
174
|
+
if (this.uiObject && !this._flippedObject) {
|
|
175
|
+
this._flippedObject = true;
|
|
173
176
|
this.uiObject.scale.y *= -1;
|
|
177
|
+
}
|
|
174
178
|
}
|
|
175
179
|
}
|