@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
36 lines • 1.16 kB
JavaScript
import { Section } from "./Section";
var AxisResizeData = /** @class */ (function () {
function AxisResizeData(start, target) {
this._start = start;
this._target = target;
}
Object.defineProperty(AxisResizeData.prototype, "start", {
get: function () {
return this._start;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AxisResizeData.prototype, "target", {
get: function () {
return this._target;
},
enumerable: true,
configurable: true
});
AxisResizeData.fromAxisX = function (resizeData, selection) {
return {
start: Section.fromAxisX(resizeData.startRectangle),
target: Section.fromAxisX(selection)
};
};
AxisResizeData.fromAxisY = function (resizeData, selection) {
return {
start: Section.fromAxisY(resizeData.startRectangle),
target: Section.fromAxisY(selection)
};
};
return AxisResizeData;
}());
export { AxisResizeData };
//# sourceMappingURL=AxisResizeData.js.map