UNPKG

@progress/kendo-ui

Version:

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

1 lines 2.07 kB
module.exports=function(t){function e(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}({0:function(t,e,r){t.exports=r(864)},3:function(t,e){t.exports=function(){throw Error("define cannot be used indirect")}},864:function(t,e,r){var o,n,i;!function(a,define){n=[r(865)],o=a,i="function"==typeof o?o.apply(e,n):o,!(void 0!==i&&(t.exports=i))}(function(){!function(t){var e=kendo.dataviz,r=e.services,o=kendo.drawing;e.SASS_THEMES=["sass","default-v2","bootstrap-v4","material-v2"],e.ExportMixin={extend:function(t,e){if(!t.exportVisual)throw Error("Mixin target has no exportVisual method defined.");t.exportSVG=this.exportSVG,t.exportImage=this.exportImage,t.exportPDF=this.exportPDF,e||(t.svg=this.svg,t.imageDataURL=this.imageDataURL)},exportSVG:function(t){return o.exportSVG(this.exportVisual(),t)},exportImage:function(t){return o.exportImage(this.exportVisual(t),t)},exportPDF:function(t){return o.exportPDF(this.exportVisual(),t)},svg:function(){if(o.svg.Surface)return o.svg.exportGroup(this.exportVisual());throw Error("SVG Export failed. Unable to export instantiate kendo.drawing.svg.Surface")},imageDataURL:function(){var e,r,n;if(!kendo.support.canvas)return null;if(o.canvas.Surface)return e=t("<div />").css({display:"none",width:this.element.width(),height:this.element.height()}).appendTo(document.body),r=new o.canvas.Surface(e[0]),r.draw(this.exportVisual()),n=r._rootElement.toDataURL(),r.destroy(),e.remove(),n;throw Error("Image Export failed. Unable to export instantiate kendo.drawing.canvas.Surface")}},r.IntlService.register({format:function(t){return kendo.format.apply(null,[t].concat(Array.prototype.slice.call(arguments,1)))},toString:kendo.toString,parseDate:kendo.parseDate}),r.TemplateService.register({compile:kendo.template}),e.Point2D=e.Point,e.Box2D=e.Box,e.mwDelta=function(t){return e.mousewheelDelta(t.originalEvent)}}(window.kendo.jQuery)},r(3))},865:function(t,e){t.exports=require("./kendo-core")}});