"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOpacity = exports.parseOpacity = void 0;
function parseOpacity(opacity) {
    return Number.parseFloat(opacity);
}
exports.parseOpacity = parseOpacity;
function getOpacity(element) {
    if (element instanceof Text) {
        return;
    }
    const { opacity } = element.style;
    if (opacity) {
        return parseOpacity(opacity);
    }
}
exports.getOpacity = getOpacity;
//# sourceMappingURL=getOpacity.js.map