We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e906f6c + f7980d5 commit 2110fd4Copy full SHA for 2110fd4
plugin-packages/spine/src/spine-component.ts
@@ -304,6 +304,14 @@ export class SpineComponent extends RendererComponent implements Maskable {
304
const p2 = new Vector3(centerX + width / 2, centerY + height / 2, 0);
305
const p3 = new Vector3(centerX - width / 2, centerY + height / 2, 0);
306
307
+ // TODO: 优化 Spine 初始大小逻辑
308
+ const startSizeScaleFactor = this.startSize * this.scaleFactor;
309
+
310
+ p0.multiply(startSizeScaleFactor);
311
+ p1.multiply(startSizeScaleFactor);
312
+ p2.multiply(startSizeScaleFactor);
313
+ p3.multiply(startSizeScaleFactor);
314
315
wm.projectPoint(p0);
316
wm.projectPoint(p1);
317
wm.projectPoint(p2);
0 commit comments