UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

3 lines (2 loc) 2.53 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("kendo.charts.cmn.chunk.js"),require("kendo.drawing.js")):"function"==typeof define&&define.amd?define(["exports","kendo.charts.cmn.chunk.min","kendo.drawing.min"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).kendo=e.kendo||{},e.kendo._globals=e.kendo._globals||{},e.kendo._globals.DatavizCore={}),e.kendo._globals.ChartsCmnChunk)}(this,(function(e,t){window.kendo.dataviz=window.kendo.dataviz||{},kendo.deepExtend(kendo.dataviz,kendo.deepExtend({},t.c)),kendo.dataviz.Gradients=t.G;const n=kendo.jQuery;let o=kendo.dataviz,r=kendo.drawing,a=t.s;for(let e in t.c)t.h(e)&&(o[e]=t.c[e]);o.SASS_THEMES=["sass","default-v2","bootstrap-v4","material-v2"],o.ExportMixin={extend:function(e,t){if(!e.exportVisual)throw new Error("Mixin target has no exportVisual method defined.");e.exportSVG=this.exportSVG,e.exportImage=this.exportImage,e.exportPDF=this.exportPDF,t||(e.svg=this.svg,e.imageDataURL=this.imageDataURL)},exportSVG:function(e){return r.exportSVG(this.exportVisual(),e)},exportImage:function(e){return r.exportImage(this.exportVisual(e),e)},exportPDF:function(e){return r.exportPDF(this.exportVisual(),e)},svg:function(){if(r.svg.Surface)return r.svg.exportGroup(this.exportVisual());throw new Error("SVG Export failed. Unable to export instantiate kendo.drawing.svg.Surface")},imageDataURL:function(){if(!kendo.support.canvas)return null;if(r.canvas.Surface){var e=n("<div />").css({display:"none",width:this.element.width(),height:this.element.height()}).appendTo(document.body),t=new r.canvas.Surface(e[0]);t.draw(this.exportVisual());var o=t._rootElement.toDataURL();return t.destroy(),e.remove(),o}throw new Error("Image Export failed. Unable to export instantiate kendo.drawing.canvas.Surface")}},a.IntlService.register({format:function(e){return kendo.format.apply(null,[e].concat(Array.prototype.slice.call(arguments,1)))},toString:kendo.toString,parseDate:kendo.parseDate,firstDay:function(){return kendo.culture().calendars.standard.firstDay}}),a.TemplateService.register({compile:kendo.template}),o.inArray=function(e,t){if(t)return-1!==t.indexOf(e)},o.Point2D=t.P,o.Box2D=t.B,o.mwDelta=function(e){return t.m(e.originalEvent)};var i=kendo;e.__meta__={id:"dataviz.core",name:"Core",description:"The DataViz core functions",category:"dataviz",depends:["core","drawing","charts.cmn.chunk"],hidden:!0},e.default=i,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=kendo.dataviz.core.min.js.map