@cntrl-site/sdk-nextjs 1.9.14-3 → 1.9.14-5
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.
|
Binary file
|
|
@@ -83,9 +83,9 @@ class RichTextGeometryController {
|
|
|
83
83
|
setAngle(angle) {
|
|
84
84
|
this.angle = angle;
|
|
85
85
|
}
|
|
86
|
-
getContentBoundary(
|
|
86
|
+
getContentBoundary() {
|
|
87
87
|
if (this.getAngle() !== 0) {
|
|
88
|
-
return this.getBoundary(
|
|
88
|
+
return this.getBoundary(true);
|
|
89
89
|
}
|
|
90
90
|
const [boundary, xs, ys] = this.getContentGuides();
|
|
91
91
|
const left = Math.min(...xs);
|
package/package.json
CHANGED
|
@@ -111,9 +111,9 @@ export class RichTextGeometryController implements ItemGeometryController {
|
|
|
111
111
|
this.angle = angle;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
getContentBoundary(
|
|
114
|
+
getContentBoundary(): Rect {
|
|
115
115
|
if (this.getAngle() !== 0) {
|
|
116
|
-
return this.getBoundary(
|
|
116
|
+
return this.getBoundary(true);
|
|
117
117
|
}
|
|
118
118
|
const [boundary, xs, ys] = this.getContentGuides();
|
|
119
119
|
const left = Math.min(...xs);
|
|
@@ -170,7 +170,7 @@ export class RichTextGeometryController implements ItemGeometryController {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
setOptions(options?: RichTextGeometryOptions) {
|
|
173
|
-
if(!options) return;
|
|
173
|
+
if (!options) return;
|
|
174
174
|
this.options = options;
|
|
175
175
|
}
|
|
176
176
|
|