@aurigma/design-atoms-model
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
20 lines • 506 B
JavaScript
export class SizeF {
constructor(width, height) {
this.width = 0;
this.height = 0;
this.width = width;
this.height = height;
}
clone() {
return new SizeF(this.width, this.height);
}
toString() {
const p = [this.width, this.height];
return p.join(",");
}
updateByMatrix(matrix) {
matrix.updateObjectByMatrix(this, "width", "height");
return this;
}
}
//# sourceMappingURL=SizeF.js.map