|
@@ -10,6 +10,7 @@ import { CompTextObj } from ".";
|
|
|
import { Matrix } from "@/modules/editor/controllers/SelectCtrl/matrix";
|
|
|
import { Transform } from "@/modules/editor/controllers/SelectCtrl/objects/transform";
|
|
|
import { DesignComp } from "@/modules/editor/objects/DesignTemp/DesignComp";
|
|
|
+import { Design_Page_Size } from "@/modules/editor/dicts/CompOptions";
|
|
|
|
|
|
export const Component = defineComponent({
|
|
|
props: {
|
|
@@ -43,7 +44,7 @@ export const Component = defineComponent({
|
|
|
m.tx = 0;
|
|
|
m.rotate(-m.getRotate());
|
|
|
|
|
|
- const [w, h] = comp.layout.size;
|
|
|
+ const [w, h] = comp.layout.size || [Design_Page_Size[0], 0];
|
|
|
|
|
|
const currWidth = w * t.scale.x;
|
|
|
const textWidth = currWidth / t.scale.y;
|