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