UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

31 lines (30 loc) 845 B
/** * DevExtreme (esm/__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/ */ 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 };