@cntrl-site/sdk-nextjs 1.9.14-4 → 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.
@@ -83,9 +83,9 @@ class RichTextGeometryController {
83
83
  setAngle(angle) {
84
84
  this.angle = angle;
85
85
  }
86
- getContentBoundary(isRotatedBoundary) {
86
+ getContentBoundary() {
87
87
  if (this.getAngle() !== 0) {
88
- return this.getBoundary(isRotatedBoundary);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk-nextjs",
3
- "version": "1.9.14-4",
3
+ "version": "1.9.14-5",
4
4
  "description": "SDK for Next.js",
5
5
  "author": "arsen@momdesign.nyc",
6
6
  "license": "MIT",
@@ -111,9 +111,9 @@ export class RichTextGeometryController implements ItemGeometryController {
111
111
  this.angle = angle;
112
112
  }
113
113
 
114
- getContentBoundary(isRotatedBoundary?: boolean): Rect {
114
+ getContentBoundary(): Rect {
115
115
  if (this.getAngle() !== 0) {
116
- return this.getBoundary(isRotatedBoundary);
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