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.12 kB
module.exports=function(r){var o={};function n(e){if(o[e])return o[e].exports;var t=o[e]={exports:{},id:e,loaded:!1};return r[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}return n.m=r,n.c=o,n.p="",n(0)}({0:function(e,t,r){e.exports=r(898)},3:function(e,t){e.exports=function(){throw Error("define cannot be used indirect")}},898:function(e,t,r){var o;r(3),r=[r(899)],void 0===(t="function"==typeof(o=function(){var o=window.kendo.jQuery,t=kendo.dataviz,e=t.services,n=kendo.drawing;t.SASS_THEMES=["sass","default-v2","bootstrap-v4","material-v2"],t.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;if(!t){e.svg=this.svg;e.imageDataURL=this.imageDataURL}},exportSVG:function(e){return n.exportSVG(this.exportVisual(),e)},exportImage:function(e){return n.exportImage(this.exportVisual(e),e)},exportPDF:function(e){return n.exportPDF(this.exportVisual(),e)},svg:function(){if(n.svg.Surface)return n.svg.exportGroup(this.exportVisual());else throw new Error("SVG Export failed. Unable to export instantiate kendo.drawing.svg.Surface")},imageDataURL:function(){if(!kendo.support.canvas)return null;if(n.canvas.Surface){var e=o("<div />").css({display:"none",width:this.element.width(),height:this.element.height()}).appendTo(document.body);var t=new n.canvas.Surface(e[0]);t.draw(this.exportVisual());var r=t._rootElement.toDataURL();t.destroy();e.remove();return r}else throw new Error("Image Export failed. Unable to export instantiate kendo.drawing.canvas.Surface")}},e.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}}),e.TemplateService.register({compile:kendo.template}),t.Point2D=t.Point,t.Box2D=t.Box,t.mwDelta=function(e){return t.mousewheelDelta(e.originalEvent)}})?o.apply(t,r):o)||(e.exports=t)},899:function(e,t){e.exports=require("./kendo-core")}});