@visactor/vchart
Version:
charts lib based @visactor/VGrammar
15 lines (11 loc) • 610 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.addRuntimeState = void 0;
const graphic_state_1 = require("../../util/graphic-state"), addRuntimeState = (g, stateName, attrs, keepCurrentStates = !0, hasAnimation) => {
g.runtimeStateCache || (g.runtimeStateCache = {}), g.runtimeStateCache[stateName] = attrs,
g.hasState(stateName) && (0, graphic_state_1.removeGraphicState)(g, stateName),
(0, graphic_state_1.addGraphicState)(g, stateName, keepCurrentStates, hasAnimation);
};
exports.addRuntimeState = addRuntimeState;
//# sourceMappingURL=glyph.js.map