@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.
16 lines • 440 B
JavaScript
import { equals } from "../../Utils/Utils";
export class Size {
constructor(width = 0, height = 0) {
this.width = width;
this.height = height;
}
equals(other) {
return other != null &&
equals(this.width, other.width) &&
equals(this.height, other.height);
}
clone() {
return new Size(this.width, this.height);
}
}
//# sourceMappingURL=Size.js.map