UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

31 lines (30 loc) 815 B
/** * DevExtreme (esm/__internal/common/m_charts.js) * Version: 26.1.3 * Build date: Wed Jun 10 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { getNextDefsSvgId } from "../viz/core/utils"; const graphicObjects = {}; export const registerPattern = options => { const id = getNextDefsSvgId(); graphicObjects[id] = Object.assign({ type: "pattern" }, options); return id }; export const registerGradient = (type, options) => { const id = getNextDefsSvgId(); graphicObjects[id] = Object.assign({ type: type }, options); return id }; const getGraphicObjects = () => graphicObjects; export default { getGraphicObjects: getGraphicObjects };