@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
26 lines • 729 B
JavaScript
import { Section } from "./Section";
export class AxisResizeData {
constructor(start, target) {
this._start = start;
this._target = target;
}
get start() {
return this._start;
}
get target() {
return this._target;
}
static fromAxisX(resizeData, selection) {
return {
start: Section.fromAxisX(resizeData.startRectangle),
target: Section.fromAxisX(selection)
};
}
static fromAxisY(resizeData, selection) {
return {
start: Section.fromAxisY(resizeData.startRectangle),
target: Section.fromAxisY(selection)
};
}
}
//# sourceMappingURL=AxisResizeData.js.map