"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getScale = void 0;
const parseTransform_1 = require("../../parseTransform");
function getScale(element) {
    if (element instanceof HTMLElement) {
        const { transform } = element.style;
        const { offsetWidth, offsetHeight } = element;
        const [_transform_x, _transform_y, sx, sy, _rotate_x, _rotate_y, _rotate_z,] = (0, parseTransform_1.parseTransform)(transform, offsetWidth, offsetHeight);
        return { sx, sy };
    }
    else {
        // TODO
        return { sx: 1, sy: 1 };
    }
}
exports.getScale = getScale;
//# sourceMappingURL=getScale.js.map