devextreme
Version:
JavaScript/TypeScript Component Suite for Responsive Web Development
36 lines (35 loc) • 1.11 kB
JavaScript
/**
* DevExtreme (cjs/__internal/common/m_charts.js)
* Version: 25.2.7
* Build date: Tue May 05 2026
*
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.registerPattern = exports.registerGradient = exports.default = void 0;
var _utils = require("../viz/core/utils");
const graphicObjects = {};
const registerPattern = options => {
const id = (0, _utils.getNextDefsSvgId)();
graphicObjects[id] = Object.assign({
type: "pattern"
}, options);
return id
};
exports.registerPattern = registerPattern;
const registerGradient = (type, options) => {
const id = (0, _utils.getNextDefsSvgId)();
graphicObjects[id] = Object.assign({
type: type
}, options);
return id
};
exports.registerGradient = registerGradient;
const getGraphicObjects = () => graphicObjects;
var _default = exports.default = {
getGraphicObjects: getGraphicObjects
};