const isSubset = (sub, obj)=>Object.entries(sub).every(([key, value])=>{
        if ('string' == typeof value) return obj[key] === value;
        if ('number' == typeof value) return obj[key] === value;
        return true;
    });
const ANNOTATION_AREA_TEXT_STYLE_BY_POSITION = {
    top: {
        textAlign: 'center',
        textBaseline: 'top'
    },
    topRight: {
        textAlign: 'right',
        textBaseline: 'top'
    },
    topLeft: {
        textAlign: 'left',
        textBaseline: 'top'
    },
    bottom: {
        textAlign: 'center',
        textBaseline: 'bottom'
    },
    bottomLeft: {
        textAlign: 'left',
        textBaseline: 'bottom'
    },
    bottomRight: {
        textAlign: 'right',
        textBaseline: 'bottom'
    },
    left: {
        textAlign: 'left',
        textBaseline: 'middle'
    },
    right: {
        textAlign: 'right',
        textBaseline: 'middle'
    }
};
export { ANNOTATION_AREA_TEXT_STYLE_BY_POSITION, isSubset };

//# sourceMappingURL=utils.js.map