diff --git a/dist/amd/aurelia-syncfusion-bridge.d.ts b/dist/amd/aurelia-syncfusion-bridge.d.ts index c40e7f9e..4678f777 100644 --- a/dist/amd/aurelia-syncfusion-bridge.d.ts +++ b/dist/amd/aurelia-syncfusion-bridge.d.ts @@ -163,84 +163,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejColorPicker extends WidgetBase { constructor(element?: any); } - export { - customAttribute, - bindable, - inject, - inlineView, - customElement, - children, - TemplatingEngine - }; - export const constants: any; - export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; - export function delayed(): any; - - /** - * To get binded events from the element - * @param element The Element from which events acquired - */ - export function getEventOption(element?: any): any; - - /** - * Fire DOM event on an element - * @param element The Element which the DOM event will be fired on - * @param name The Event's name - * @param data Addition data to attach to an event - */ - export function fireEvent(element: Element, name: string, data?: any): any; - export class TemplateProcessor { - constructor(context?: any, templateEngine?: any); - initTemplate(): any; - initWidgetDependancies(): any; - renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; - compileTemplate(element?: any): any; - clearTempalte(): any; - unbindViews(obj?: any): any; - } - export class Template { - template: any; - constructor(target?: any); - } - export class Util { - getBindablePropertyName(propertyName: string): string; - _unhyphenate(name: string): string; - getOptions(model?: any, properties?: any): any; - getControlPropertyName(options?: any, propertyName?: any): any; - hasValue(prop?: any): any; - processData(value?: any): any; - } - export class WidgetBase { - - /** - * To Create an widget - * @param option Object which contains Element in which widget will be created - */ - createWidget(option?: any): any; - bind(ctx?: any, overrideCtx?: any): any; - createTwoWays(): any; - addTwoways(prop?: any): any; - - /** - * To get property and event options from the element - * @param element Element from which options are acquired - */ - getWidgetOptions(element?: any): any; - getChildProperties(options?: any): any; - attached(): any; - unsubscribe(): any; - unbind(): any; - - /** - * To change widget model value - * @param property The viewModel property name - * @param newValue New value of the property - * @param oldvalue Pld value of the property - */ - propertyChanged(property?: any, newValue?: any, oldValue?: any): any; - update(e?: any): any; - detached(): any; - } export class ejComboBox extends WidgetBase { constructor(element?: any); } @@ -417,6 +339,84 @@ declare module 'aurelia-syncfusion-bridge' { export class ejSplitter extends WidgetBase { constructor(element?: any); } + export { + customAttribute, + bindable, + inject, + inlineView, + customElement, + children, + TemplatingEngine + }; + export const constants: any; + export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; + export function delayed(): any; + + /** + * To get binded events from the element + * @param element The Element from which events acquired + */ + export function getEventOption(element?: any): any; + + /** + * Fire DOM event on an element + * @param element The Element which the DOM event will be fired on + * @param name The Event's name + * @param data Addition data to attach to an event + */ + export function fireEvent(element: Element, name: string, data?: any): any; + export class TemplateProcessor { + constructor(context?: any, templateEngine?: any); + initTemplate(): any; + initWidgetDependancies(): any; + renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; + compileTemplate(element?: any): any; + clearTempalte(): any; + unbindViews(obj?: any): any; + } + export class Template { + template: any; + constructor(target?: any); + } + export class Util { + getBindablePropertyName(propertyName: string): string; + _unhyphenate(name: string): string; + getOptions(model?: any, properties?: any): any; + getControlPropertyName(options?: any, propertyName?: any): any; + hasValue(prop?: any): any; + processData(value?: any): any; + } + export class WidgetBase { + + /** + * To Create an widget + * @param option Object which contains Element in which widget will be created + */ + createWidget(option?: any): any; + bind(ctx?: any, overrideCtx?: any): any; + createTwoWays(): any; + addTwoways(prop?: any): any; + + /** + * To get property and event options from the element + * @param element Element from which options are acquired + */ + getWidgetOptions(element?: any): any; + getChildProperties(options?: any): any; + attached(): any; + unsubscribe(): any; + unbind(): any; + + /** + * To change widget model value + * @param property The viewModel property name + * @param newValue New value of the property + * @param oldvalue Pld value of the property + */ + propertyChanged(property?: any, newValue?: any, oldValue?: any): any; + update(e?: any): any; + detached(): any; + } export class Sheet { } diff --git a/dist/aurelia-syncfusion-bridge.d.ts b/dist/aurelia-syncfusion-bridge.d.ts index 497acd76..94e0fe85 100644 --- a/dist/aurelia-syncfusion-bridge.d.ts +++ b/dist/aurelia-syncfusion-bridge.d.ts @@ -159,84 +159,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejColorPicker extends WidgetBase { constructor(element?: any); } - export { - customAttribute, - bindable, - inject, - inlineView, - customElement, - children, - TemplatingEngine - }; - export const constants: any; - export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; - export function delayed(): any; - - /** - * To get binded events from the element - * @param element The Element from which events acquired - */ - export function getEventOption(element?: any): any; - - /** - * Fire DOM event on an element - * @param element The Element which the DOM event will be fired on - * @param name The Event's name - * @param data Addition data to attach to an event - */ - export function fireEvent(element: Element, name: string, data?: any): any; - export class TemplateProcessor { - constructor(context?: any, templateEngine?: any); - initTemplate(): any; - initWidgetDependancies(): any; - renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; - compileTemplate(element?: any): any; - clearTempalte(): any; - unbindViews(obj?: any): any; - } - export class Template { - template: any; - constructor(target?: any); - } - export class Util { - getBindablePropertyName(propertyName: string): string; - _unhyphenate(name: string): string; - getOptions(model?: any, properties?: any): any; - getControlPropertyName(options?: any, propertyName?: any): any; - hasValue(prop?: any): any; - processData(value?: any): any; - } - export class WidgetBase { - - /** - * To Create an widget - * @param option Object which contains Element in which widget will be created - */ - createWidget(option?: any): any; - bind(ctx?: any, overrideCtx?: any): any; - createTwoWays(): any; - addTwoways(prop?: any): any; - - /** - * To get property and event options from the element - * @param element Element from which options are acquired - */ - getWidgetOptions(element?: any): any; - getChildProperties(options?: any): any; - attached(): any; - unsubscribe(): any; - unbind(): any; - - /** - * To change widget model value - * @param property The viewModel property name - * @param newValue New value of the property - * @param oldvalue Pld value of the property - */ - propertyChanged(property?: any, newValue?: any, oldValue?: any): any; - update(e?: any): any; - detached(): any; - } export class ejComboBox extends WidgetBase { constructor(element?: any); } @@ -413,6 +335,84 @@ declare module 'aurelia-syncfusion-bridge' { export class ejSplitter extends WidgetBase { constructor(element?: any); } + export { + customAttribute, + bindable, + inject, + inlineView, + customElement, + children, + TemplatingEngine + }; + export const constants: any; + export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; + export function delayed(): any; + + /** + * To get binded events from the element + * @param element The Element from which events acquired + */ + export function getEventOption(element?: any): any; + + /** + * Fire DOM event on an element + * @param element The Element which the DOM event will be fired on + * @param name The Event's name + * @param data Addition data to attach to an event + */ + export function fireEvent(element: Element, name: string, data?: any): any; + export class TemplateProcessor { + constructor(context?: any, templateEngine?: any); + initTemplate(): any; + initWidgetDependancies(): any; + renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; + compileTemplate(element?: any): any; + clearTempalte(): any; + unbindViews(obj?: any): any; + } + export class Template { + template: any; + constructor(target?: any); + } + export class Util { + getBindablePropertyName(propertyName: string): string; + _unhyphenate(name: string): string; + getOptions(model?: any, properties?: any): any; + getControlPropertyName(options?: any, propertyName?: any): any; + hasValue(prop?: any): any; + processData(value?: any): any; + } + export class WidgetBase { + + /** + * To Create an widget + * @param option Object which contains Element in which widget will be created + */ + createWidget(option?: any): any; + bind(ctx?: any, overrideCtx?: any): any; + createTwoWays(): any; + addTwoways(prop?: any): any; + + /** + * To get property and event options from the element + * @param element Element from which options are acquired + */ + getWidgetOptions(element?: any): any; + getChildProperties(options?: any): any; + attached(): any; + unsubscribe(): any; + unbind(): any; + + /** + * To change widget model value + * @param property The viewModel property name + * @param newValue New value of the property + * @param oldvalue Pld value of the property + */ + propertyChanged(property?: any, newValue?: any, oldValue?: any): any; + update(e?: any): any; + detached(): any; + } export class Sheet { } diff --git a/dist/aurelia-syncfusion-bridge.js b/dist/aurelia-syncfusion-bridge.js index 5a28d889..34fb0b4f 100644 --- a/dist/aurelia-syncfusion-bridge.js +++ b/dist/aurelia-syncfusion-bridge.js @@ -561,557 +561,305 @@ export class ejColorPicker extends WidgetBase { } -export {customAttribute, bindable, inject, inlineView, customElement, children, TemplatingEngine}; +@customAttribute(`${constants.attributePrefix}combo-box`) +@generateBindables('ejComboBox', ['actionFailureTemplate', 'allowCustom', 'allowFiltering', 'autofill', 'cssClass', 'dataSource', 'enableRtl', 'enabled', 'fields', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'htmlAttributes', 'index', 'itemTemplate', 'locale', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'showClearButton', 'sortOrder', 'text', 'value', 'width'], ['value']) +@inject(Element) +export class ejComboBox extends WidgetBase { + constructor(element) { + super(); + this.isEditor = true; + this.element = element; + } +} -export const constants = { - eventPrefix: 'e-on-', - bindablePrefix: 'e-', - attributePrefix: 'ej-', - elementPrefix: 'ej-', - aureliaTemplateString: '' -}; -export function generateBindables(controlName, inputs, twoWayProperties, abbrevProperties, observerCollection) { - return function(target, key, descriptor) { - let behaviorResource = metadata.getOrCreateOwn(metadata.resource, HtmlBehaviorResource, target); - let container = (Container.instance || new Container()); - let util = container.get(Util); - let bindingInstance = container.get(BindingEngine); - inputs.push('options'); - inputs.push('widget'); - let len = inputs.length; - if (observerCollection) { - target.prototype.arrayObserver = []; - observerCollection.forEach((element) => { - target.prototype.arrayObserver.push(util.getBindablePropertyName(element)); - }); - target.prototype.bindingInstance = bindingInstance; - } - target.prototype.controlName = controlName; - target.prototype.twoWays = twoWayProperties ? twoWayProperties : []; - target.prototype.abbrevProperties = abbrevProperties ? abbrevProperties : []; - if (len) { - target.prototype.controlProperties = inputs; - for (let i = 0; i < len; i++) { - let option = inputs[i]; - if (abbrevProperties && option in abbrevProperties) { - option = abbrevProperties[option]; - option.forEach((prop) => { - registerProp(util, prop, target, behaviorResource, descriptor); - }); - } else { - registerProp(util, option, target, behaviorResource, descriptor); - } - } - } - }; +@customAttribute(`${constants.attributePrefix}currency-textbox`) + @generateBindables('ejCurrencyTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], {'enableRTL': ['enableRtl']}) +@inject(Element) +export class ejCurrencyTextbox extends WidgetBase { + constructor(element) { + super(); + this.isEditor = true; + this.element = element; + } } -function registerProp(util, option, target, behaviorResource, descriptor) { - let nameOrConfigOrTarget = { - name: util.getBindablePropertyName(option) - }; - if (option === 'widget') { - nameOrConfigOrTarget.defaultBindingMode = bindingMode.twoWay; +@customAttribute(`${constants.attributePrefix}date-picker`) + @generateBindables('ejDatePicker', ['allowEdit', 'allowDrillDown', 'blackoutDates', 'buttonText', 'cssClass', 'dateFormat', 'dayHeaderFormat', 'depthLevel', 'displayInline', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'fields', 'headerFormat', 'height', 'highlightSection', 'highlightWeekend', 'htmlAttributes', 'locale', 'maxDate', 'minDate', 'readOnly', 'showDisabledRange', 'showFooter', 'showOtherMonths', 'showPopupButton', 'showRoundedCorner', 'showTooltip', 'specialDates', 'startDay', 'startLevel', 'stepMonths', 'tooltipFormat', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'weekNumber', 'width'], ['value'], {'enableRTL': ['enableRtl']}) +@inject(Element) +export class ejDatePicker extends WidgetBase { + constructor(element) { + super(); + this.isEditor = true; + this.element = element; } - - let prop = new BindableProperty(nameOrConfigOrTarget); - prop.registerWith(target, behaviorResource, descriptor); } -export function delayed() { - return function(target, key, descriptor) { - let taskQueue = (Container.instance || new Container()).get(TaskQueue); - let ptr = descriptor.value; - - descriptor.value = function(...args) { - if (this.childPropertyName) { - taskQueue.queueTask(() => ptr.apply(this, args)); - } else { - ptr.apply(this, args); - } - }; - return descriptor; - }; +@customAttribute(`${constants.attributePrefix}date-range-picker`) +@generateBindables('ejDateRangePicker', ['allowEdit', 'buttonText', 'cssClass', 'dateFormat', 'enableTimePicker', 'enabled', 'enablePersistence', 'endDate', 'height', 'locale', 'maxDate', 'minDate', 'ranges', 'separator', 'startDate', 'showPopupButton', 'showRoundedCorner', 'timeFormat', 'value', 'watermarkText', 'width'], ['value']) +@inject(Element) +export class ejDateRangePicker extends WidgetBase { + constructor(element) { + super(); + this.isEditor = true; + this.element = element; + } } -/** -* To get binded events from the element -* @param element The Element from which events acquired -*/ -export function getEventOption(element) { - let name; - let attr; - let attributes = element.attributes; - let option = {}; - let container = (Container.instance || new Container()); - let util = container.get(Util); - for (let i = 0, len = attributes.length; i < len; i++) { - attr = attributes[i]; - name = attr.name; - if (!name.startsWith(constants.eventPrefix)) { - continue; - } - let actualEventName = name.split('.')[0];//Event name with constants event prefix - let eventName = util._unhyphenate(actualEventName.split(constants.eventPrefix)[1]); - option[eventName] = e => fireEvent(element, actualEventName, e); // eslint-disable-line no-loop-func + +@customAttribute(`${constants.attributePrefix}date-time-picker`) + @generateBindables('ejDateTimePicker', ['allowEdit', 'buttonText', 'blackoutDates', 'cssClass', 'dateTimeFormat', 'dayHeaderFormat', 'depthLevel', 'disableTimeRanges', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'headerFormat', 'height', 'htmlAttributes', 'interval', 'locale', 'maxDateTime', 'minDateTime', 'popupPosition', 'readOnly', 'showOtherMonths', 'showPopupButton', 'showRoundedCorner', 'specialDates', 'startDay', 'startLevel', 'stepMonths', 'timeDisplayFormat', 'timeDrillDown', 'timePopupWidth', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], {'enableRTL': ['enableRtl']}) +@inject(Element) +export class ejDateTimePicker extends WidgetBase { + constructor(element) { + super(); + this.isEditor = true; + this.element = element; } - return option; -} -/** -* Fire DOM event on an element -* @param element The Element which the DOM event will be fired on -* @param name The Event's name -* @param data Addition data to attach to an event -*/ -export function fireEvent(element: Element, name: string, data? = {}) { - let event = new CustomEvent(name, { - detail: data, - bubbles: true - }); - element.dispatchEvent(event); - return event; } -@inject(TemplatingEngine, Util) -export class TemplateProcessor { - constructor(context, templateEngine) { - this.context = context; - this.templatingEngine = templateEngine; - this.util = new Util(); +@customElement(`${constants.elementPrefix}diagram`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejDiagram', ['backgroundColor', 'backgroundImage', 'bridgeDirection', 'commandManager', 'connectors', 'connectorTemplate', 'constraints', 'contextMenu', 'dataSourceSettings', 'defaultSettings', 'drawType', 'enableAutoScroll', 'enableContextMenu', 'height', 'historyManager', 'labelRenderingMode', 'layout', 'locale', 'nodes', 'layers', 'nodeTemplate', 'pageSettings', 'scrollSettings', 'selectedItems', 'showTooltip', 'serializationSettings', 'rulerSettings', 'snapSettings', 'tool', 'tooltip', 'width', 'zoomFactor']) +@inject(Element) +export class ejDiagram extends WidgetBase { + constructor(element) { + super(); + this.element = element; } +} - initTemplate() { - let proxy = this; - ej.template.render = function(self, selector, data, index) { - return proxy.renderStringTemplate(self, selector, data, index); - }; - } - initWidgetDependancies() { - if ( this.context.widget.aureliaTemplate) { - this.compileTemplate(this.context.widget.element); - } - let proxy = this.context; - let element = this.context.widget.element; - element.on( this.context.widget.pluginName + 'refresh', function() { - if (proxy.widget.aureliaTemplate) { - proxy.templateProcessor.compileTemplate(element); - } - }); +@customElement(`${constants.elementPrefix}dialog`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejDialog', ['actionButtons', 'ajaxSettings', 'allowDraggable', 'allowKeyboardNavigation', 'animation', 'backgroundScroll', 'closeOnEscape', 'containment', 'contentType', 'contentUrl', 'cssClass', 'enableAnimation', 'enabled', 'enableModal', 'enablePersistence', 'enableResize', 'enableRTL', 'faviconCSS', 'height', 'htmlAttributes', 'isResponsive', 'locale', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'position', 'showHeader', 'showOnInit', 'showRoundedCorner', 'target', 'title', 'tooltip', 'width', 'zIndex', 'showFooter', 'footerTemplateId'], [], {'enableRTL': ['enableRtl']}) +@inject(Element) +export class ejDialog extends WidgetBase { + constructor(element) { + super(); + this.element = element; } +} - renderStringTemplate(self, selector, data, index) { - let templateObject = self.aureliaTemplate; - if (!templateObject || !templateObject[selector]) { - templateObject = templateObject || {}; - templateObject[selector] = { key: ej.getGuid('aurtmpl'), itemData: [], views: [] }; - self.aureliaTemplate = templateObject; - } - let scope = templateObject[selector]; - if (this.util.hasValue(index)) { - scope.itemData[index] = data; - } else { - scope.itemData = [data]; - } - let actElement = $(selector).html(); - let tempElement = "
" + actElement + '
'; - return tempElement; - } - compileTemplate(element) { - let templates = $(element).find('.ej-aurelia-template'); - let templateObject = this.context.widget.aureliaTemplate; - for (let template in templateObject) { - let tmplElement = templates.filter('.' + templateObject[template].key); - if (tmplElement.length) { - for (let i = 0; i < tmplElement.length; i++) { - let dataIndex = parseInt($(tmplElement[i]).attr('ej-prop'));// eslint-disable-line radix - let view = this.templatingEngine.enhance(tmplElement[i]); - view.bind(templateObject[template].itemData[dataIndex], this.context.parentCtx); - templateObject[template].views[dataIndex] = view; - } - } else { - this.unbindViews(templateObject[template]); - delete templateObject[template]; - } - } +@customElement(`${constants.elementPrefix}digital-gauge`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejDigitalGauge', ['exportSettings', 'frame', 'height', 'isResponsive', 'enableResize', 'items', 'matrixSegmentData', 'segmentData', 'themes', 'value', 'width'], ['value']) +@inject(Element) +export class ejDigitalGauge extends WidgetBase { + constructor(element) { + super(); + this.element = element; } +} - clearTempalte() { - let templateObject = this.context.widget.aureliaTemplate; - if (templateObject && Object.keys(templateObject).length) { - for (let t in templateObject) { - this.unbindViews(templateObject[t]); - delete templateObject[t]; - } - } - } - unbindViews(obj) { - for (let i = 0; i < obj.views.length; i++) { - let view = obj.views[i]; - view.unbind(); - } +@customAttribute(`${constants.attributePrefix}drop-down-list`) + @generateBindables('ejDropDownList', ['allowVirtualScrolling', 'cascadeTo', 'caseSensitiveSearch', 'cssClass', 'dataSource', 'delimiterChar', 'enableAnimation', 'enabled', 'enableIncrementalSearch', 'enableFilterSearch', 'enableServerFiltering', 'enablePersistence', 'enablePopupResize', 'enableRTL', 'enableSorting', 'loadOnDemand', 'fields', 'filterType', 'headerTemplate', 'height', 'htmlAttributes', 'itemsCount', 'locale', 'maxPopupHeight', 'minPopupHeight', 'maxPopupWidth', 'minPopupWidth', 'multiSelectMode', 'popupHeight', 'popupWidth', 'query', 'readOnly', 'selectedIndex', 'selectedIndices', 'showCheckbox', 'showPopupOnLoad', 'showRoundedCorner', 'sortOrder', 'targetID', 'template', 'text', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width', 'virtualScrollMode'], ['value'], {'enableRTL': ['enableRtl'], 'targetID': ['targetId']}) +@inject(Element) +export class ejDropDownList extends WidgetBase { + constructor(element) { + super(); + this.isEditor = true; + this.element = element; } - } -@customElement(`${constants.elementPrefix}template`) -@noView() -@processContent((compiler, resources, element, instruction) => { - let html = element.innerHTML; - if (html !== '') { - instruction.template = html; - } - element.innerHTML = ''; -}) -@inject(TargetInstruction) -export class Template { - @bindable template; - constructor(target) { - this.template = target.elementInstruction.template; - } +@customElement(`${constants.elementPrefix}file-explorer`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejFileExplorer', ['ajaxAction', 'ajaxDataType', 'ajaxSettings', 'allowDragAndDrop', 'allowKeyboardNavigation', 'allowMultiSelection', 'contextMenuSettings', 'cssClass', 'enablePersistence', 'enableResize', 'enableRTL', 'enableThumbnailCompress', 'fileTypes', 'filterSettings', 'gridSettings', 'height', 'isResponsive', 'layout', 'locale', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'path', 'rootFolderName', 'selectedFolder', 'selectedItems', 'showCheckbox', 'showContextMenu', 'showFooter', 'showRoundedCorner', 'showThumbnail', 'showToolbar', 'showNavigationPane', 'tools', 'toolsList', 'uploadSettings', 'virtualItemCount', 'width'], [], {'enableRTL': ['enableRtl']}) +@inject(Element) +export class ejFileExplorer extends WidgetBase { + constructor(element) { + super(); + this.element = element; + } } -export class Util { - getBindablePropertyName(propertyName: string): string { - let name = `${constants.bindablePrefix}${propertyName}`; - return this._unhyphenate(name); +@customElement(`${constants.elementPrefix}gantt`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejGantt', ['addDialogFields', 'allowColumnResize', 'allowDragAndDrop', 'allowGanttChartEditing', 'allowKeyboardNavigation', 'allowMultiSorting', 'allowMultipleExporting', 'allowSelection', 'allowSorting', 'allowUnscheduledTask', 'baselineColor', 'baselineEndDateMapping', 'baselineStartDateMapping', 'cellTooltipTemplate', 'childMapping', 'columnDialogFields', 'connectorLineBackground', 'connectorlineWidth', 'cssClass', 'dataSource', 'dateFormat', 'dayWorkingTime', 'dragTooltip', 'durationMapping', 'durationUnit', 'durationUnitMapping', 'editDialogFields', 'editSettings', 'enableAltRow', 'enableCollapseAll', 'enableContextMenu', 'enablePredecessorValidation', 'enableProgressBarResizing', 'enableResize', 'enableSerialNumber', 'enableTaskbarDragTooltip', 'enableTaskbarTooltip', 'enableVirtualization', 'enableWBS', 'enableWBSPredecessor', 'endDateMapping', 'expandStateMapping', 'filterSettings', 'groupCollection', 'groupIdMapping', 'groupNameMapping', 'highlightNonWorkingTime', 'highlightWeekends', 'holidays', 'includeWeekend', 'isResponsive', 'leftTaskLabelMapping', 'leftTaskLabelTemplate', 'locale', 'milestoneMapping', 'milestoneTemplate', 'nonWorkingBackground', 'notesMapping', 'parentProgressbarBackground', 'parentTaskIdMapping', 'parentTaskbarBackground', 'parentTaskbarTemplate', 'predecessorMapping', 'predecessorTooltipTemplate', 'progressMapping', 'progressbarBackground', 'progressbarHeight', 'progressbarTooltipTemplate', 'progressbarTooltipTemplateId', 'query', 'readOnly', 'renderBaseline', 'resourceCollectionMapping', 'resourceIdMapping', 'resourceInfoMapping', 'resourceNameMapping', 'resourceUnitMapping', 'resources', 'rightTaskLabelMapping', 'rightTaskLabelTemplate', 'roundOffDayworkingTime', 'rowHeight', 'scheduleEndDate', 'scheduleHeaderSettings', 'scheduleStartDate', 'selectedCellIndexes', 'selectedRowIndex', 'selectionType', 'selectionMode', 'showColumnChooser', 'showColumnOptions', 'showGridCellTooltip', 'showGridExpandCellTooltip', 'showProgressStatus', 'showResourceNames', 'showTaskNames', 'sizeSettings', 'sortSettings', 'splitterPosition', 'splitterSettings', 'startDateMapping', 'stripLines', 'taskCollectionMapping', 'taskIdMapping', 'taskNameMapping', 'taskSchedulingMode', 'taskSchedulingModeMapping', 'taskType', 'taskbarBackground', 'taskbarEditingTooltipTemplate', 'taskbarEditingTooltipTemplateId', 'taskbarHeight', 'taskbarTemplate', 'taskbarTooltipTemplate', 'taskbarTooltipTemplateId', 'toolbarSettings', 'treeColumnIndex', 'validateManualTasksOnLinking', 'viewType', 'weekendBackground', 'workMapping', 'workUnit', 'workWeek', 'workingTimeScale'], ['dataSource', 'selectedRowIndex', 'selectedCellIndexes'], {}, ['dataSource']) +@inject(Element) +export class ejGantt extends WidgetBase { + constructor(element) { + super(); + this.element = element; } +} - _unhyphenate(name: string): string { - return name.replace(/-([a-z])/g, (g) => g[1].toUpperCase()); - } - getOptions(model, properties ) { - let bindableproperites = {}; - let value; - for (let prop of properties) { - if (model.abbrevProperties && prop in model.abbrevProperties && model.abbrevProperties.hasOwnProperty(prop)) { - model.abbrevProperties[prop].some(property => { - value = model[this.getBindablePropertyName(property)]; - return this.hasValue(value); - }); - } else { - value = model[this.getBindablePropertyName(prop)]; - } - if (this.hasValue(value)) { - if (typeof value === 'string' ) { - value = this.processData(value); - } - bindableproperites[prop] = value; - } - } - return bindableproperites; - } +@inlineView(`${constants.aureliaTemplateString}`) +@customElement(`${constants.elementPrefix}column`) - getControlPropertyName(options, propertyName) { - let property; - for (let prop of options.controlProperties) { - if (options.abbrevProperties && prop in options.abbrevProperties && options.abbrevProperties.hasOwnProperty(prop)) { - options.abbrevProperties[prop].some(props => { - property = propertyName === this.getBindablePropertyName(props) ? prop : undefined; - return property; - }); - if (property) break; - } else if (propertyName === this.getBindablePropertyName(prop)) { - property = prop; - break; - } +@generateBindables('columns', ['clipMode', 'allowEditing', 'allowFiltering', 'allowGrouping', 'allowSorting', 'allowResizing', 'commands', 'commands', 'commands', 'cssClass', 'customAttributes', 'dataSource', 'defaultValue', 'disableHtmlEncode', 'displayAsCheckbox', 'editParams', 'editTemplate', 'editType', 'enableGroupByFormat', 'field', 'filterBarTemplate', 'filterType', 'foreignKeyField', 'foreignKeyValue', 'format', 'headerTemplateID', 'headerText', 'headerTextAlign', 'headerTooltip', 'isFrozen', 'isIdentity', 'isPrimaryKey', 'priority', 'showInColumnChooser', 'template', 'textAlign', 'tooltip', 'type', 'validationRules', 'visible', 'width'], [], {'headerTemplateID': ['headerTemplateId', 'headerTemplateID']}) + +export class Column { + @children(`${constants.elementPrefix}template`) template = []; + setTemplates() { + if (this.template[0]) { + let util = new Util(); + this[util.getBindablePropertyName('template')] = this.template[0].template; } - return property; } +} - hasValue(prop) { - return typeof (prop) !== 'undefined' && prop !== null; - } - processData(value) { - if (value === 'true') { - return true; - } else if (value === 'false') { - return false; - } else if (+value + '' === value) { - return +value; - } - return value; +@customElement(`${constants.elementPrefix}grid`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejGrid', ['allowCellMerging', 'allowGrouping', 'allowKeyboardNavigation', 'allowFiltering', 'allowSorting', 'allowMultiSorting', 'allowPaging', 'allowReordering', 'allowResizeToFit', 'allowResizing', 'allowRowDragAndDrop', 'allowScrolling', 'allowSearching', 'allowSelection', 'allowTextWrap', 'allowMultipleExporting', 'commonWidth', 'gridLines', 'childGrid', 'columnLayout', 'columns', 'contextMenuSettings', 'cssClass', 'dataSource', 'detailsTemplate', 'editSettings', 'enableAltRow', 'enableAutoSaveOnSelectionChange', 'enableHeaderHover', 'enablePersistence', 'enableResponsiveRow', 'enableRowHover', 'enableRTL', 'enableTouch', 'enableToolbarItems', 'exportToExcelAction', 'exportToPdfAction', 'exportToWordAction', 'filterSettings', 'groupSettings', 'isResponsive', 'keySettings', 'locale', 'minWidth', 'pageSettings', 'query', 'resizeSettings', 'rowTemplate', 'rowDropSettings', 'searchSettings', 'selectedRecords', 'selectedRowIndex', 'selectedRowIndices', 'selectionSettings', 'selectionType', 'scrollSettings', 'showColumnChooser', 'showStackedHeader', 'showSummary', 'sortSettings', 'stackedHeaderRows', 'summaryRows', 'textWrapSettings', 'toolbarSettings'], ['dataSource', 'selectedRowIndices'], {'enableRTL': ['enableRtl']}, ['dataSource']) +@inject(Element, TemplatingEngine) +export class ejGrid extends WidgetBase { + @children(`${constants.elementPrefix}column`) columns = []; + constructor(element, templateEngine) { + super(); + this.element = element; + this.hasChildProperty = true; + this.childPropertyName = 'columns'; + this.templateProcessor = new TemplateProcessor(this, templateEngine); + this.templateProcessor.initTemplate(); } } -let firstValue = {}; -export class WidgetBase { -/** -* To Create an widget -* @param option Object which contains Element in which widget will be created -*/ - createWidget(option) { - this.allOption = this.getWidgetOptions(option.element); - if (!this.ejOptions && !this.isEditor) { - this.createTwoWays(); - } - this.eWidget = this.widget = jQuery($(option.element))[this.controlName](this.allOption).data(this.controlName); - if (this.templateProcessor) { - this.templateProcessor.initWidgetDependancies(); - } - if (this.isEditor) { - this.widget.model._change = (evt) => { - if ('eValue' in this) { - this[this.util.getBindablePropertyName('value')] = evt.value; - } - }; - } - } - bind(ctx, overrideCtx) { - this.parentCtx = overrideCtx; - if (this.widget && this.widget.element && this.isEditor) { - this.widget.option('value', (this.eValue === undefined ? null : this.eValue)); - } +@customAttribute(`${constants.attributePrefix}group-button`) +@generateBindables('ejGroupButton', ['cssClass', 'dataSource', 'enableRTL', 'enabled', 'fields', 'groupButtonMode', 'height', 'htmlAttributes', 'orientation', 'query', 'selectedItemIndex', 'showRoundedCorner', 'size', 'width'], [], {'enableRTL': ['enableRtl']}) +@inject(Element) +export class ejGroupButton extends WidgetBase { + constructor(element) { + super(); + this.element = element; } +} - createTwoWays() { - let model = this.allOption; - let twoWays = this.twoWays; - let len = twoWays.length; - for (let i = 0; i < len; i++) { - let prop = twoWays[i]; - ej.createObject(prop, this.addTwoways(prop), model); - } - } - addTwoways(prop) { - let model = this; - let value = firstValue; - return function(newVal, isApp) { - if (value === firstValue) { - let viewModelProp = model.util.getBindablePropertyName(prop); - value = model[viewModelProp]; - if (value === undefined) { - value = this.defaults[prop]; - } - return value; - } - if (newVal === undefined) { - return value; - } - if (value === newVal) { - return null; - } - value = newVal; - if (!isApp && model.util.hasValue(newVal) ) { - let viewModelProp = model.util.getBindablePropertyName(prop); - model[viewModelProp] = newVal; - } - return null; - }; - } -/** -* To get property and event options from the element -* @param element Element from which options are acquired -*/ - getWidgetOptions(element) { - let propOptions; - if (this.ejOptions) { - propOptions = this.ejOptions; - } else { - propOptions = this.util.getOptions(this, this.controlProperties); - } - let eventOption = getEventOption(element); - if (this.hasChildProperty) { - this.getChildProperties(propOptions); - } - return Object.assign({}, propOptions, eventOption); +@customElement(`${constants.elementPrefix}heat-map`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejHeatMap', ['width', 'height', 'id', 'showTooltip', 'tooltipSettings', 'itemsSource', 'heatMapCell', 'isResponsive', 'enableVirtualization', 'defaultColumnStyle', 'legendCollection', 'itemsMapping', 'colorMappingCollection']) +@inject(Element) +export class ejHeatMap extends WidgetBase { + constructor(element) { + super(); + this.element = element; } +} - getChildProperties(options) { - let PropertyName = this.childPropertyName; - let childCollection = this[PropertyName]; - let len = childCollection.length; - if (len) { - options[PropertyName] = []; - let childProperties = childCollection[0].controlProperties; - for (let i = 0; i < len; i++) { - options[PropertyName].push(this.util.getOptions(childCollection[i], childProperties)); - } - } - } - @delayed() - attached() { - if (this.templateProcessor) { - this[this.childPropertyName].forEach(template => template.setTemplates()); - } - this.util = new Util(); - this.createWidget({ element: this.element }); +@customElement(`${constants.elementPrefix}heat-map-legend`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejHeatMapLegend', ['width', 'height', 'isResponsive', 'showLabel', 'colorMappingCollection', 'orientation', 'legendMode']) +@inject(Element) +export class ejHeatMapLegend extends WidgetBase { + constructor(element) { + super(); + this.element = element; } +} - unsubscribe() { - if (this.subscription) { - this.subscription.dispose(); - this.subscription = null; - } - } - unbind() { - this.unsubscribe(); +@customElement(`${constants.elementPrefix}kanban`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejKanban', ['allowDragAndDrop', 'allowExternalDragAndDrop', 'allowTitle', 'swimlaneSettings', 'allowToggleColumn', 'allowSearching', 'allowFiltering', 'allowSelection', 'allowHover', 'allowKeyboardNavigation', 'allowScrolling', 'allowPrinting', 'contextMenuSettings', 'columns', 'cardSettings', 'customToolbarItems', 'cssClass', 'dataSource', 'enableTouch', 'enableRTL', 'enableTotalCount', 'editSettings', 'fields', 'keyField', 'isResponsive', 'minWidth', 'filterSettings', 'query', 'keySettings', 'scrollSettings', 'searchSettings', 'selectionType', 'stackedHeaderRows', 'tooltipSettings', 'workflows', 'locale', 'showColumnWhenEmpty'], ['dataSource'], {'enableRTL': ['enableRtl']}, ['dataSource']) +@inject(Element) +export class ejKanban extends WidgetBase { + @children(`${constants.elementPrefix}kanban-column`) columns = []; + constructor(element) { + super(); + this.element = element; + this.hasChildProperty = true; + this.childPropertyName = 'columns'; } +} -/** - * To change widget model value - * @param property The viewModel property name - * @param newValue New value of the property - * @param oldvalue Pld value of the property - */ - propertyChanged(property, newValue, oldValue) { - if (this.widget) { - let modelValue; - let prop = this.util.getControlPropertyName(this, property); - this.unsubscribe(); - if (this.arrayObserver) { - this.arrayObserver.forEach((arrayProp) => { - if (this[arrayProp] instanceof Array) { - this.subscription = this.bindingInstance.collectionObserver(this[arrayProp]).subscribe((e) => { - this.update(e); - }); - } - }); - } - if (prop) { - if (prop === 'widget') { - return; - } else if (prop !== 'options') { - modelValue = this.widget.model[prop]; - let isTwoway = typeof modelValue === 'function'; - if (isTwoway) { - modelValue = modelValue(); - } - if (modelValue !== newValue) { - if (isTwoway) { - newValue = this.addTwoways(prop); - } - this.widget.option(prop, newValue); - } - } else { - this.widget.option(newValue); - } - } - } - } - update(e) { - let modelValue; - let newVal; - if (e.length) { - this.arrayObserver.forEach((arrayProp) => { - if (this[arrayProp] instanceof Array) { - let prop = this.util.getControlPropertyName(this, arrayProp); - modelValue = this.widget.model[prop]; - if (typeof modelValue === 'function') { - modelValue = modelValue(); - newVal = modelValue; - newVal = this.addTwoways(prop); - this.widget.option(prop, newVal); - } else { - this.widget.option(prop, modelValue); - } - } - }); - } - } +@inlineView(`${constants.aureliaTemplateString}`) +@customElement(`${constants.elementPrefix}kanban-column`) - detached() { - if (this.templateProcessor) { - this.templateProcessor.clearTempalte(); - } - if (this.widget) { - this.widget.destroy(); - } - } +@generateBindables('columns', ['headerText', 'totalCount', 'totalCount', 'key', 'allowDrop', 'allowDrag', 'isCollapsed', 'constraints', 'constraints', 'constraints', 'constraints', 'headerTemplate', 'width', 'visible', 'showAddButton']) + +export class KanbanColumn { } -@customAttribute(`${constants.attributePrefix}combo-box`) -@generateBindables('ejComboBox', ['actionFailureTemplate', 'allowCustom', 'allowFiltering', 'autofill', 'cssClass', 'dataSource', 'enableRtl', 'enabled', 'fields', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'htmlAttributes', 'index', 'itemTemplate', 'locale', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'showClearButton', 'sortOrder', 'text', 'value', 'width'], ['value']) + +@customElement(`${constants.elementPrefix}linear-gauge`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejLinearGauge', ['animationSpeed', 'backgroundColor', 'borderColor', 'enableAnimation', 'enableMarkerPointerAnimation', 'exportSettings', 'isResponsive', 'enableGroupSeparator', 'enableResize', 'frame', 'height', 'labelColor', 'locale', 'maximum', 'minimum', 'orientation', 'outerCustomLabelPosition', 'pointerGradient1', 'pointerGradient2', 'readOnly', 'scales', 'theme', 'tickColor', 'tooltip', 'value', 'width'], ['value', 'minimum', 'maximum']) @inject(Element) -export class ejComboBox extends WidgetBase { +export class ejLinearGauge extends WidgetBase { constructor(element) { super(); - this.isEditor = true; this.element = element; } } -@customAttribute(`${constants.attributePrefix}currency-textbox`) - @generateBindables('ejCurrencyTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], {'enableRTL': ['enableRtl']}) +@customAttribute(`${constants.attributePrefix}list-box`) + @generateBindables('ejListBox', ['allowDrag', 'allowDrop', 'allowMultiSelection', 'allowVirtualScrolling', 'caseSensitiveSearch', 'cascadeTo', 'checkedIndices', 'cssClass', 'dataSource', 'enabled', 'enableIncrementalSearch', 'enablePersistence', 'enableRTL', 'enableWordWrap', 'fields', 'height', 'itemHeight', 'itemsCount', 'totalItemsCount', 'itemRequestCount', 'loadDataOnInit', 'query', 'selectedIndex', 'selectedIndices', 'showCheckbox', 'showRoundedCorner', 'sortOrder', 'template', 'value', 'virtualScrollMode', 'width', 'targetID'], ['value', 'dataSource'], {'enableRTL': ['enableRtl'], 'targetID': ['targetId']}) @inject(Element) -export class ejCurrencyTextbox extends WidgetBase { +export class ejListBox extends WidgetBase { constructor(element) { super(); - this.isEditor = true; this.element = element; } } -@customAttribute(`${constants.attributePrefix}date-picker`) - @generateBindables('ejDatePicker', ['allowEdit', 'allowDrillDown', 'blackoutDates', 'buttonText', 'cssClass', 'dateFormat', 'dayHeaderFormat', 'depthLevel', 'displayInline', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'fields', 'headerFormat', 'height', 'highlightSection', 'highlightWeekend', 'htmlAttributes', 'locale', 'maxDate', 'minDate', 'readOnly', 'showDisabledRange', 'showFooter', 'showOtherMonths', 'showPopupButton', 'showRoundedCorner', 'showTooltip', 'specialDates', 'startDay', 'startLevel', 'stepMonths', 'tooltipFormat', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'weekNumber', 'width'], ['value'], {'enableRTL': ['enableRtl']}) +@customElement(`${constants.elementPrefix}list-view`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejListView', ['ajaxSettings', 'checkedIndices', 'cssClass', 'dataSource', 'enableAjax', 'enableCache', 'enableCheckMark', 'enableFiltering', 'enableGroupList', 'enablePersistence', 'fieldSettings', 'items', 'headerBackButtonText', 'headerTitle', 'height', 'locale', 'persistSelection', 'preventSelection', 'query', 'renderTemplate', 'selectedItemIndex', 'showHeader', 'showHeaderBackButton', 'templateId', 'width', 'itemRequestCount', 'totalItemsCount', 'allowVirtualScrolling', 'virtualScrollMode'], ['dataSource', 'selectedItemIndex'], {}, ['dataSource']) @inject(Element) -export class ejDatePicker extends WidgetBase { +export class ejListView extends WidgetBase { constructor(element) { super(); - this.isEditor = true; this.element = element; } } -@customAttribute(`${constants.attributePrefix}date-range-picker`) -@generateBindables('ejDateRangePicker', ['allowEdit', 'buttonText', 'cssClass', 'dateFormat', 'enableTimePicker', 'enabled', 'enablePersistence', 'endDate', 'height', 'locale', 'maxDate', 'minDate', 'ranges', 'separator', 'startDate', 'showPopupButton', 'showRoundedCorner', 'timeFormat', 'value', 'watermarkText', 'width'], ['value']) -@inject(Element) -export class ejDateRangePicker extends WidgetBase { - constructor(element) { - super(); - this.isEditor = true; - this.element = element; - } +@inlineView(`${constants.aureliaTemplateString}`) +@customElement(`${constants.elementPrefix}layer`) + +@generateBindables('layers', ['bingMapType', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'dataSource', 'shapeDataPath', 'shapePropertyPath', 'enableMouseHover', 'enableSelection', 'key', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'geometryType', 'layerType', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'mapItemsTemplate', 'markers', 'markerTemplate', 'selectedMapShapes', 'selectionMode', 'shapeData', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'showMapItems', 'showTooltip', 'tooltipTemplate', 'urlTemplate', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers']) + +export class Layer { } -@customAttribute(`${constants.attributePrefix}date-time-picker`) - @generateBindables('ejDateTimePicker', ['allowEdit', 'buttonText', 'blackoutDates', 'cssClass', 'dateTimeFormat', 'dayHeaderFormat', 'depthLevel', 'disableTimeRanges', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'headerFormat', 'height', 'htmlAttributes', 'interval', 'locale', 'maxDateTime', 'minDateTime', 'popupPosition', 'readOnly', 'showOtherMonths', 'showPopupButton', 'showRoundedCorner', 'specialDates', 'startDay', 'startLevel', 'stepMonths', 'timeDisplayFormat', 'timeDrillDown', 'timePopupWidth', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], {'enableRTL': ['enableRtl']}) +@customElement(`${constants.elementPrefix}map`) +@inlineView(`${constants.aureliaTemplateString}`) + @generateBindables('ejMap', ['background', 'baseMapIndex', 'centerPosition', 'draggingOnSelection', 'enableAnimation', 'enableRTL', 'enableLayerChangeAnimation', 'enablePan', 'enableResize', 'isResponsive', 'zoomSettings', 'navigationControl', 'locale', 'layers'], ['baseMapIndex', 'enablePan', 'enableResize', 'enableAnimation', 'zoomSettings.level', 'zoomSettings.minValue', 'zoomSettings.maxValue', 'zoomSettings.factor', 'zoomSettings.enableZoom', 'zoomSettings.enableZoomOnSelection', 'navigationControl.enableNavigation', 'navigationControl.orientation', 'navigationControl.absolutePosition', 'navigationControl.dockPosition'], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejDateTimePicker extends WidgetBase { +export class ejMap extends WidgetBase { + @children(`${constants.elementPrefix}layer`) layers = []; constructor(element) { super(); - this.isEditor = true; this.element = element; + this.hasChildProperty = true; + this.childPropertyName = 'layers'; } } -@customElement(`${constants.elementPrefix}diagram`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejDiagram', ['backgroundColor', 'backgroundImage', 'bridgeDirection', 'commandManager', 'connectors', 'connectorTemplate', 'constraints', 'contextMenu', 'dataSourceSettings', 'defaultSettings', 'drawType', 'enableAutoScroll', 'enableContextMenu', 'height', 'historyManager', 'labelRenderingMode', 'layout', 'locale', 'nodes', 'layers', 'nodeTemplate', 'pageSettings', 'scrollSettings', 'selectedItems', 'showTooltip', 'serializationSettings', 'rulerSettings', 'snapSettings', 'tool', 'tooltip', 'width', 'zoomFactor']) +@customAttribute(`${constants.attributePrefix}mask-edit`) +@generateBindables('ejMaskEdit', ['cssClass', 'customCharacter', 'enabled', 'enablePersistence', 'height', 'hidePromptOnLeave', 'htmlAttributes', 'inputMode', 'locale', 'maskFormat', 'name', 'readOnly', 'showError', 'showPromptChar', 'showRoundedCorner', 'textAlign', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value']) @inject(Element) -export class ejDiagram extends WidgetBase { +export class ejMaskEdit extends WidgetBase { constructor(element) { super(); + this.isEditor = true; this.element = element; } } -@customElement(`${constants.elementPrefix}dialog`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejDialog', ['actionButtons', 'ajaxSettings', 'allowDraggable', 'allowKeyboardNavigation', 'animation', 'backgroundScroll', 'closeOnEscape', 'containment', 'contentType', 'contentUrl', 'cssClass', 'enableAnimation', 'enabled', 'enableModal', 'enablePersistence', 'enableResize', 'enableRTL', 'faviconCSS', 'height', 'htmlAttributes', 'isResponsive', 'locale', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'position', 'showHeader', 'showOnInit', 'showRoundedCorner', 'target', 'title', 'tooltip', 'width', 'zIndex', 'showFooter', 'footerTemplateId'], [], {'enableRTL': ['enableRtl']}) +@customAttribute(`${constants.attributePrefix}menu`) +@generateBindables('ejMenu', ['animationType', 'contextMenuTarget', 'container', 'cssClass', 'enableAnimation', 'enableCenterAlign', 'enabled', 'enableRTL', 'enableSeparator', 'excludeTarget', 'fields', 'height', 'htmlAttributes', 'isResponsive', 'menuType', 'openOnClick', 'orientation', 'showRootLevelArrows', 'showSubLevelArrows', 'subMenuDirection', 'titleText', 'width', 'overflowHeight', 'overflowWidth'], [], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejDialog extends WidgetBase { +export class ejMenu extends WidgetBase { constructor(element) { super(); this.element = element; @@ -1119,11 +867,11 @@ export class ejDialog extends WidgetBase { } -@customElement(`${constants.elementPrefix}digital-gauge`) +@customElement(`${constants.elementPrefix}navigation-drawer`) @inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejDigitalGauge', ['exportSettings', 'frame', 'height', 'isResponsive', 'enableResize', 'items', 'matrixSegmentData', 'segmentData', 'themes', 'value', 'width'], ['value']) +@generateBindables('ejNavigationDrawer', ['ajaxSettings', 'contentId', 'cssClass', 'direction', 'enableListView', 'items', 'listViewSettings', 'position', 'targetId', 'type', 'width', 'isPaneOpen']) @inject(Element) -export class ejDigitalGauge extends WidgetBase { +export class ejNavigationDrawer extends WidgetBase { constructor(element) { super(); this.element = element; @@ -1131,10 +879,10 @@ export class ejDigitalGauge extends WidgetBase { } -@customAttribute(`${constants.attributePrefix}drop-down-list`) - @generateBindables('ejDropDownList', ['allowVirtualScrolling', 'cascadeTo', 'caseSensitiveSearch', 'cssClass', 'dataSource', 'delimiterChar', 'enableAnimation', 'enabled', 'enableIncrementalSearch', 'enableFilterSearch', 'enableServerFiltering', 'enablePersistence', 'enablePopupResize', 'enableRTL', 'enableSorting', 'loadOnDemand', 'fields', 'filterType', 'headerTemplate', 'height', 'htmlAttributes', 'itemsCount', 'locale', 'maxPopupHeight', 'minPopupHeight', 'maxPopupWidth', 'minPopupWidth', 'multiSelectMode', 'popupHeight', 'popupWidth', 'query', 'readOnly', 'selectedIndex', 'selectedIndices', 'showCheckbox', 'showPopupOnLoad', 'showRoundedCorner', 'sortOrder', 'targetID', 'template', 'text', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width', 'virtualScrollMode'], ['value'], {'enableRTL': ['enableRtl'], 'targetID': ['targetId']}) +@customAttribute(`${constants.attributePrefix}numeric-textbox`) + @generateBindables('ejNumericTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejDropDownList extends WidgetBase { +export class ejNumericTextbox extends WidgetBase { constructor(element) { super(); this.isEditor = true; @@ -1143,11 +891,11 @@ export class ejDropDownList extends WidgetBase { } -@customElement(`${constants.elementPrefix}file-explorer`) +@customElement(`${constants.elementPrefix}overview`) @inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejFileExplorer', ['ajaxAction', 'ajaxDataType', 'ajaxSettings', 'allowDragAndDrop', 'allowKeyboardNavigation', 'allowMultiSelection', 'contextMenuSettings', 'cssClass', 'enablePersistence', 'enableResize', 'enableRTL', 'enableThumbnailCompress', 'fileTypes', 'filterSettings', 'gridSettings', 'height', 'isResponsive', 'layout', 'locale', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'path', 'rootFolderName', 'selectedFolder', 'selectedItems', 'showCheckbox', 'showContextMenu', 'showFooter', 'showRoundedCorner', 'showThumbnail', 'showToolbar', 'showNavigationPane', 'tools', 'toolsList', 'uploadSettings', 'virtualItemCount', 'width'], [], {'enableRTL': ['enableRtl']}) +@generateBindables('ejOverview', ['sourceID', 'height', 'width'], [], {'sourceID': ['sourceId']}) @inject(Element) -export class ejFileExplorer extends WidgetBase { +export class ejOverview extends WidgetBase { constructor(element) { super(); this.element = element; @@ -1155,11 +903,11 @@ export class ejFileExplorer extends WidgetBase { } -@customElement(`${constants.elementPrefix}gantt`) +@customElement(`${constants.elementPrefix}pager`) @inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejGantt', ['addDialogFields', 'allowColumnResize', 'allowDragAndDrop', 'allowGanttChartEditing', 'allowKeyboardNavigation', 'allowMultiSorting', 'allowMultipleExporting', 'allowSelection', 'allowSorting', 'allowUnscheduledTask', 'baselineColor', 'baselineEndDateMapping', 'baselineStartDateMapping', 'cellTooltipTemplate', 'childMapping', 'columnDialogFields', 'connectorLineBackground', 'connectorlineWidth', 'cssClass', 'dataSource', 'dateFormat', 'dayWorkingTime', 'dragTooltip', 'durationMapping', 'durationUnit', 'durationUnitMapping', 'editDialogFields', 'editSettings', 'enableAltRow', 'enableCollapseAll', 'enableContextMenu', 'enablePredecessorValidation', 'enableProgressBarResizing', 'enableResize', 'enableSerialNumber', 'enableTaskbarDragTooltip', 'enableTaskbarTooltip', 'enableVirtualization', 'enableWBS', 'enableWBSPredecessor', 'endDateMapping', 'expandStateMapping', 'filterSettings', 'groupCollection', 'groupIdMapping', 'groupNameMapping', 'highlightNonWorkingTime', 'highlightWeekends', 'holidays', 'includeWeekend', 'isResponsive', 'leftTaskLabelMapping', 'leftTaskLabelTemplate', 'locale', 'milestoneMapping', 'milestoneTemplate', 'nonWorkingBackground', 'notesMapping', 'parentProgressbarBackground', 'parentTaskIdMapping', 'parentTaskbarBackground', 'parentTaskbarTemplate', 'predecessorMapping', 'predecessorTooltipTemplate', 'progressMapping', 'progressbarBackground', 'progressbarHeight', 'progressbarTooltipTemplate', 'progressbarTooltipTemplateId', 'query', 'readOnly', 'renderBaseline', 'resourceCollectionMapping', 'resourceIdMapping', 'resourceInfoMapping', 'resourceNameMapping', 'resourceUnitMapping', 'resources', 'rightTaskLabelMapping', 'rightTaskLabelTemplate', 'roundOffDayworkingTime', 'rowHeight', 'scheduleEndDate', 'scheduleHeaderSettings', 'scheduleStartDate', 'selectedCellIndexes', 'selectedRowIndex', 'selectionType', 'selectionMode', 'showColumnChooser', 'showColumnOptions', 'showGridCellTooltip', 'showGridExpandCellTooltip', 'showProgressStatus', 'showResourceNames', 'showTaskNames', 'sizeSettings', 'sortSettings', 'splitterPosition', 'splitterSettings', 'startDateMapping', 'stripLines', 'taskCollectionMapping', 'taskIdMapping', 'taskNameMapping', 'taskSchedulingMode', 'taskSchedulingModeMapping', 'taskType', 'taskbarBackground', 'taskbarEditingTooltipTemplate', 'taskbarEditingTooltipTemplateId', 'taskbarHeight', 'taskbarTemplate', 'taskbarTooltipTemplate', 'taskbarTooltipTemplateId', 'toolbarSettings', 'treeColumnIndex', 'validateManualTasksOnLinking', 'viewType', 'weekendBackground', 'workMapping', 'workUnit', 'workWeek', 'workingTimeScale'], ['dataSource', 'selectedRowIndex', 'selectedCellIndexes'], {}, ['dataSource']) +@generateBindables('ejPager', ['customText', 'currentPage', 'cssClass', 'enabled', 'enableExternalMessage', 'enableQueryString', 'enableRTL', 'externalMessage', 'isResponsive', 'locale', 'pageCount', 'pageSize', 'pageSizeList', 'pageSizeMessage', 'template', 'totalPages', 'totalRecordsCount', 'showPageInfo'], [], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejGantt extends WidgetBase { +export class ejPager extends WidgetBase { constructor(element) { super(); this.element = element; @@ -1167,55 +915,35 @@ export class ejGantt extends WidgetBase { } +@customElement(`${constants.elementPrefix}pdf-viewer`) @inlineView(`${constants.aureliaTemplateString}`) -@customElement(`${constants.elementPrefix}column`) - -@generateBindables('columns', ['clipMode', 'allowEditing', 'allowFiltering', 'allowGrouping', 'allowSorting', 'allowResizing', 'commands', 'commands', 'commands', 'cssClass', 'customAttributes', 'dataSource', 'defaultValue', 'disableHtmlEncode', 'displayAsCheckbox', 'editParams', 'editTemplate', 'editType', 'enableGroupByFormat', 'field', 'filterBarTemplate', 'filterType', 'foreignKeyField', 'foreignKeyValue', 'format', 'headerTemplateID', 'headerText', 'headerTextAlign', 'headerTooltip', 'isFrozen', 'isIdentity', 'isPrimaryKey', 'priority', 'showInColumnChooser', 'template', 'textAlign', 'tooltip', 'type', 'validationRules', 'visible', 'width'], [], {'headerTemplateID': ['headerTemplateId', 'headerTemplateID']}) - -export class Column { - @children(`${constants.elementPrefix}template`) template = []; - setTemplates() { - if (this.template[0]) { - let util = new Util(); - this[util.getBindablePropertyName('template')] = this.template[0].template; - } - } -} - - -@customElement(`${constants.elementPrefix}grid`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejGrid', ['allowCellMerging', 'allowGrouping', 'allowKeyboardNavigation', 'allowFiltering', 'allowSorting', 'allowMultiSorting', 'allowPaging', 'allowReordering', 'allowResizeToFit', 'allowResizing', 'allowRowDragAndDrop', 'allowScrolling', 'allowSearching', 'allowSelection', 'allowTextWrap', 'allowMultipleExporting', 'commonWidth', 'gridLines', 'childGrid', 'columnLayout', 'columns', 'contextMenuSettings', 'cssClass', 'dataSource', 'detailsTemplate', 'editSettings', 'enableAltRow', 'enableAutoSaveOnSelectionChange', 'enableHeaderHover', 'enablePersistence', 'enableResponsiveRow', 'enableRowHover', 'enableRTL', 'enableTouch', 'enableToolbarItems', 'exportToExcelAction', 'exportToPdfAction', 'exportToWordAction', 'filterSettings', 'groupSettings', 'isResponsive', 'keySettings', 'locale', 'minWidth', 'pageSettings', 'query', 'resizeSettings', 'rowTemplate', 'rowDropSettings', 'searchSettings', 'selectedRecords', 'selectedRowIndex', 'selectedRowIndices', 'selectionSettings', 'selectionType', 'scrollSettings', 'showColumnChooser', 'showStackedHeader', 'showSummary', 'sortSettings', 'stackedHeaderRows', 'summaryRows', 'textWrapSettings', 'toolbarSettings'], ['dataSource', 'selectedRowIndices'], {'enableRTL': ['enableRtl']}, ['dataSource']) -@inject(Element, TemplatingEngine) -export class ejGrid extends WidgetBase { - @children(`${constants.elementPrefix}column`) columns = []; - constructor(element, templateEngine) { +@generateBindables('ejPdfViewer', ['locale', 'toolbarSettings', 'serverActionSettings', 'serviceUrl', 'documentPath', 'enableTextMarkupAnnotations', 'enableHighlightAnnotation', 'enableUnderlineAnnotation', 'enableStrikethroughAnnotation', 'enableSignature', 'strikethroughSettings', 'underlineSettings', 'highlightSettings', 'signatureSettings', 'textSelectionContextMenu', 'annotationContextMenu', 'annotationType', 'pageCount', 'currentPageNumber', 'zoomPercentage', 'pdfService', 'interactionMode', 'bufferingMode', 'hyperlinkOpenState', 'enableHyperlink', 'enableTextSelection', 'isResponsive', 'isDocumentEdited', 'allowClientBuffering', 'fileName']) +@inject(Element) +export class ejPdfViewer extends WidgetBase { + constructor(element) { super(); this.element = element; - this.hasChildProperty = true; - this.childPropertyName = 'columns'; - this.templateProcessor = new TemplateProcessor(this, templateEngine); - this.templateProcessor.initTemplate(); } } -@customAttribute(`${constants.attributePrefix}group-button`) -@generateBindables('ejGroupButton', ['cssClass', 'dataSource', 'enableRTL', 'enabled', 'fields', 'groupButtonMode', 'height', 'htmlAttributes', 'orientation', 'query', 'selectedItemIndex', 'showRoundedCorner', 'size', 'width'], [], {'enableRTL': ['enableRtl']}) +@customAttribute(`${constants.attributePrefix}percentage-textbox`) + @generateBindables('ejPercentageTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejGroupButton extends WidgetBase { +export class ejPercentageTextbox extends WidgetBase { constructor(element) { super(); + this.isEditor = true; this.element = element; } } -@customElement(`${constants.elementPrefix}heat-map`) +@customElement(`${constants.elementPrefix}pivot-chart`) @inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejHeatMap', ['width', 'height', 'id', 'showTooltip', 'tooltipSettings', 'itemsSource', 'heatMapCell', 'isResponsive', 'enableVirtualization', 'defaultColumnStyle', 'legendCollection', 'itemsMapping', 'colorMappingCollection']) +@generateBindables('ejPivotChart', ['analysisMode', 'cssClass', 'zooming', 'commonSeriesOptions', 'dataSource', 'customObject', 'enable3D', 'enableRTL', 'enableMultiLevelLabels', 'isResponsive', 'legend', 'locale', 'operationalMode', 'axes', 'primaryXAxis', 'primaryYAxis', 'rotation', 'enableContextMenu', 'serviceMethodSettings', 'size', 'title', 'url', 'enableXHRCredentials'], [], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejHeatMap extends WidgetBase { +export class ejPivotChart extends WidgetBase { constructor(element) { super(); this.element = element; @@ -1223,11 +951,11 @@ export class ejHeatMap extends WidgetBase { } -@customElement(`${constants.elementPrefix}heat-map-legend`) +@customElement(`${constants.elementPrefix}pivot-gauge`) @inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejHeatMapLegend', ['width', 'height', 'isResponsive', 'showLabel', 'colorMappingCollection', 'orientation', 'legendMode']) +@generateBindables('ejPivotGauge', ['columnsCount', 'cssClass', 'customObject', 'dataSource', 'enableAnimation', 'enableTooltip', 'enableRTL', 'frame', 'isResponsive', 'labelFormatSettings', 'locale', 'rowsCount', 'scales', 'serviceMethodSettings', 'showHeaderLabel', 'url', 'analysisMode', 'operationalMode', 'enableXHRCredentials'], [], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejHeatMapLegend extends WidgetBase { +export class ejPivotGauge extends WidgetBase { constructor(element) { super(); this.element = element; @@ -1235,35 +963,23 @@ export class ejHeatMapLegend extends WidgetBase { } -@customElement(`${constants.elementPrefix}kanban`) +@customElement(`${constants.elementPrefix}pivot-grid`) @inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejKanban', ['allowDragAndDrop', 'allowExternalDragAndDrop', 'allowTitle', 'swimlaneSettings', 'allowToggleColumn', 'allowSearching', 'allowFiltering', 'allowSelection', 'allowHover', 'allowKeyboardNavigation', 'allowScrolling', 'allowPrinting', 'contextMenuSettings', 'columns', 'cardSettings', 'customToolbarItems', 'cssClass', 'dataSource', 'enableTouch', 'enableRTL', 'enableTotalCount', 'editSettings', 'fields', 'keyField', 'isResponsive', 'minWidth', 'filterSettings', 'query', 'keySettings', 'scrollSettings', 'searchSettings', 'selectionType', 'stackedHeaderRows', 'tooltipSettings', 'workflows', 'locale', 'showColumnWhenEmpty'], ['dataSource'], {'enableRTL': ['enableRtl']}, ['dataSource']) +@generateBindables('ejPivotGrid', ['analysisMode', 'cssClass', 'pivotTableFieldListID', 'dataSource', 'valueSortSettings', 'frozenHeaderSettings', 'headerSettings', 'showUniqueNameOnPivotButton', 'customObject', 'collapsedMembers', 'enableCellContext', 'enableCellSelection', 'enableDrillThrough', 'enableCellClick', 'enableCellDoubleClick', 'enableCellEditing', 'enableCollapseByDefault', 'enableColumnGrandTotal', 'enableConditionalFormatting', 'enableAdvancedFilter', 'enableDeferUpdate', 'enableGroupingBar', 'maxNodeLimitInMemberEditor', 'enableMemberEditorPaging', 'memberEditorPageSize', 'enableMemberEditorSorting', 'enableGrandTotal', 'enableJSONRendering', 'enablePivotFieldList', 'enableRowGrandTotal', 'enableRTL', 'enableToolTip', 'enableToolTipAnimation', 'enableColumnResizing', 'resizeColumnsToFit', 'enableContextMenu', 'enableVirtualScrolling', 'enablePaging', 'hyperlinkSettings', 'isResponsive', 'jsonRecords', 'layout', 'locale', 'operationalMode', 'serviceMethodSettings', 'url', 'enableCompleteDataExport', 'enableXHRCredentials'], [], {'pivotTableFieldListID': ['pivotTableFieldListId'], 'enableRTL': ['enableRtl']}) @inject(Element) -export class ejKanban extends WidgetBase { - @children(`${constants.elementPrefix}kanban-column`) columns = []; +export class ejPivotGrid extends WidgetBase { constructor(element) { super(); this.element = element; - this.hasChildProperty = true; - this.childPropertyName = 'columns'; } } +@customElement(`${constants.elementPrefix}pivot-schema-designer`) @inlineView(`${constants.aureliaTemplateString}`) -@customElement(`${constants.elementPrefix}kanban-column`) - -@generateBindables('columns', ['headerText', 'totalCount', 'totalCount', 'key', 'allowDrop', 'allowDrag', 'isCollapsed', 'constraints', 'constraints', 'constraints', 'constraints', 'headerTemplate', 'width', 'visible', 'showAddButton']) - -export class KanbanColumn { -} - - -@customElement(`${constants.elementPrefix}linear-gauge`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejLinearGauge', ['animationSpeed', 'backgroundColor', 'borderColor', 'enableAnimation', 'enableMarkerPointerAnimation', 'exportSettings', 'isResponsive', 'enableGroupSeparator', 'enableResize', 'frame', 'height', 'labelColor', 'locale', 'maximum', 'minimum', 'orientation', 'outerCustomLabelPosition', 'pointerGradient1', 'pointerGradient2', 'readOnly', 'scales', 'theme', 'tickColor', 'tooltip', 'value', 'width'], ['value', 'minimum', 'maximum']) +@generateBindables('ejPivotSchemaDesigner', ['cssClass', 'customObject', 'enableWrapper', 'enableRTL', 'olap', 'enableDragDrop', 'height', 'locale', 'pivotControl', 'serviceMethods', 'url', 'width', 'layout'], [], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejLinearGauge extends WidgetBase { +export class ejPivotSchemaDesigner extends WidgetBase { constructor(element) { super(); this.element = element; @@ -1271,10 +987,11 @@ export class ejLinearGauge extends WidgetBase { } -@customAttribute(`${constants.attributePrefix}list-box`) - @generateBindables('ejListBox', ['allowDrag', 'allowDrop', 'allowMultiSelection', 'allowVirtualScrolling', 'caseSensitiveSearch', 'cascadeTo', 'checkedIndices', 'cssClass', 'dataSource', 'enabled', 'enableIncrementalSearch', 'enablePersistence', 'enableRTL', 'enableWordWrap', 'fields', 'height', 'itemHeight', 'itemsCount', 'totalItemsCount', 'itemRequestCount', 'loadDataOnInit', 'query', 'selectedIndex', 'selectedIndices', 'showCheckbox', 'showRoundedCorner', 'sortOrder', 'template', 'value', 'virtualScrollMode', 'width', 'targetID'], ['value', 'dataSource'], {'enableRTL': ['enableRtl'], 'targetID': ['targetId']}) +@customElement(`${constants.elementPrefix}pivot-tree-map`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejPivotTreeMap', ['cssClass', 'dataSource', 'customObject', 'isResponsive', 'locale', 'operationalMode', 'serviceMethodSettings', 'url', 'enableXHRCredentials']) @inject(Element) -export class ejListBox extends WidgetBase { +export class ejPivotTreeMap extends WidgetBase { constructor(element) { super(); this.element = element; @@ -1282,11 +999,10 @@ export class ejListBox extends WidgetBase { } -@customElement(`${constants.elementPrefix}list-view`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejListView', ['ajaxSettings', 'checkedIndices', 'cssClass', 'dataSource', 'enableAjax', 'enableCache', 'enableCheckMark', 'enableFiltering', 'enableGroupList', 'enablePersistence', 'fieldSettings', 'items', 'headerBackButtonText', 'headerTitle', 'height', 'locale', 'persistSelection', 'preventSelection', 'query', 'renderTemplate', 'selectedItemIndex', 'showHeader', 'showHeaderBackButton', 'templateId', 'width', 'itemRequestCount', 'totalItemsCount', 'allowVirtualScrolling', 'virtualScrollMode'], ['dataSource', 'selectedItemIndex'], {}, ['dataSource']) +@customAttribute(`${constants.attributePrefix}progress-bar`) +@generateBindables('ejProgressBar', ['cssClass', 'enabled', 'enablePersistence', 'enableRTL', 'height', 'htmlAttributes', 'maxValue', 'minValue', 'percentage', 'showRoundedCorner', 'text', 'value', 'width'], [], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejListView extends WidgetBase { +export class ejProgressBar extends WidgetBase { constructor(element) { super(); this.element = element; @@ -1295,199 +1011,9 @@ export class ejListView extends WidgetBase { @inlineView(`${constants.aureliaTemplateString}`) -@customElement(`${constants.elementPrefix}layer`) - -@generateBindables('layers', ['bingMapType', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'dataSource', 'shapeDataPath', 'shapePropertyPath', 'enableMouseHover', 'enableSelection', 'key', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'geometryType', 'layerType', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'mapItemsTemplate', 'markers', 'markerTemplate', 'selectedMapShapes', 'selectionMode', 'shapeData', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'showMapItems', 'showTooltip', 'tooltipTemplate', 'urlTemplate', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers']) - -export class Layer { -} +@customElement(`${constants.elementPrefix}item`) - -@customElement(`${constants.elementPrefix}map`) -@inlineView(`${constants.aureliaTemplateString}`) - @generateBindables('ejMap', ['background', 'baseMapIndex', 'centerPosition', 'draggingOnSelection', 'enableAnimation', 'enableRTL', 'enableLayerChangeAnimation', 'enablePan', 'enableResize', 'isResponsive', 'zoomSettings', 'navigationControl', 'locale', 'layers'], ['baseMapIndex', 'enablePan', 'enableResize', 'enableAnimation', 'zoomSettings.level', 'zoomSettings.minValue', 'zoomSettings.maxValue', 'zoomSettings.factor', 'zoomSettings.enableZoom', 'zoomSettings.enableZoomOnSelection', 'navigationControl.enableNavigation', 'navigationControl.orientation', 'navigationControl.absolutePosition', 'navigationControl.dockPosition'], {'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejMap extends WidgetBase { - @children(`${constants.elementPrefix}layer`) layers = []; - constructor(element) { - super(); - this.element = element; - this.hasChildProperty = true; - this.childPropertyName = 'layers'; - } -} - - -@customAttribute(`${constants.attributePrefix}mask-edit`) -@generateBindables('ejMaskEdit', ['cssClass', 'customCharacter', 'enabled', 'enablePersistence', 'height', 'hidePromptOnLeave', 'htmlAttributes', 'inputMode', 'locale', 'maskFormat', 'name', 'readOnly', 'showError', 'showPromptChar', 'showRoundedCorner', 'textAlign', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value']) -@inject(Element) -export class ejMaskEdit extends WidgetBase { - constructor(element) { - super(); - this.isEditor = true; - this.element = element; - } -} - - -@customAttribute(`${constants.attributePrefix}menu`) -@generateBindables('ejMenu', ['animationType', 'contextMenuTarget', 'container', 'cssClass', 'enableAnimation', 'enableCenterAlign', 'enabled', 'enableRTL', 'enableSeparator', 'excludeTarget', 'fields', 'height', 'htmlAttributes', 'isResponsive', 'menuType', 'openOnClick', 'orientation', 'showRootLevelArrows', 'showSubLevelArrows', 'subMenuDirection', 'titleText', 'width', 'overflowHeight', 'overflowWidth'], [], {'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejMenu extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@customElement(`${constants.elementPrefix}navigation-drawer`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejNavigationDrawer', ['ajaxSettings', 'contentId', 'cssClass', 'direction', 'enableListView', 'items', 'listViewSettings', 'position', 'targetId', 'type', 'width', 'isPaneOpen']) -@inject(Element) -export class ejNavigationDrawer extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@customAttribute(`${constants.attributePrefix}numeric-textbox`) - @generateBindables('ejNumericTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], {'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejNumericTextbox extends WidgetBase { - constructor(element) { - super(); - this.isEditor = true; - this.element = element; - } -} - - -@customElement(`${constants.elementPrefix}overview`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejOverview', ['sourceID', 'height', 'width'], [], {'sourceID': ['sourceId']}) -@inject(Element) -export class ejOverview extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@customElement(`${constants.elementPrefix}pager`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejPager', ['customText', 'currentPage', 'cssClass', 'enabled', 'enableExternalMessage', 'enableQueryString', 'enableRTL', 'externalMessage', 'isResponsive', 'locale', 'pageCount', 'pageSize', 'pageSizeList', 'pageSizeMessage', 'template', 'totalPages', 'totalRecordsCount', 'showPageInfo'], [], {'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejPager extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@customElement(`${constants.elementPrefix}pdf-viewer`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejPdfViewer', ['locale', 'toolbarSettings', 'serverActionSettings', 'serviceUrl', 'documentPath', 'enableTextMarkupAnnotations', 'enableHighlightAnnotation', 'enableUnderlineAnnotation', 'enableStrikethroughAnnotation', 'enableSignature', 'strikethroughSettings', 'underlineSettings', 'highlightSettings', 'signatureSettings', 'textSelectionContextMenu', 'annotationContextMenu', 'annotationType', 'pageCount', 'currentPageNumber', 'zoomPercentage', 'pdfService', 'interactionMode', 'bufferingMode', 'hyperlinkOpenState', 'enableHyperlink', 'enableTextSelection', 'isResponsive', 'isDocumentEdited', 'allowClientBuffering', 'fileName']) -@inject(Element) -export class ejPdfViewer extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@customAttribute(`${constants.attributePrefix}percentage-textbox`) - @generateBindables('ejPercentageTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], {'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejPercentageTextbox extends WidgetBase { - constructor(element) { - super(); - this.isEditor = true; - this.element = element; - } -} - - -@customElement(`${constants.elementPrefix}pivot-chart`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejPivotChart', ['analysisMode', 'cssClass', 'zooming', 'commonSeriesOptions', 'dataSource', 'customObject', 'enable3D', 'enableRTL', 'enableMultiLevelLabels', 'isResponsive', 'legend', 'locale', 'operationalMode', 'axes', 'primaryXAxis', 'primaryYAxis', 'rotation', 'enableContextMenu', 'serviceMethodSettings', 'size', 'title', 'url', 'enableXHRCredentials'], [], {'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejPivotChart extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@customElement(`${constants.elementPrefix}pivot-gauge`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejPivotGauge', ['columnsCount', 'cssClass', 'customObject', 'dataSource', 'enableAnimation', 'enableTooltip', 'enableRTL', 'frame', 'isResponsive', 'labelFormatSettings', 'locale', 'rowsCount', 'scales', 'serviceMethodSettings', 'showHeaderLabel', 'url', 'analysisMode', 'operationalMode', 'enableXHRCredentials'], [], {'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejPivotGauge extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@customElement(`${constants.elementPrefix}pivot-grid`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejPivotGrid', ['analysisMode', 'cssClass', 'pivotTableFieldListID', 'dataSource', 'valueSortSettings', 'frozenHeaderSettings', 'headerSettings', 'showUniqueNameOnPivotButton', 'customObject', 'collapsedMembers', 'enableCellContext', 'enableCellSelection', 'enableDrillThrough', 'enableCellClick', 'enableCellDoubleClick', 'enableCellEditing', 'enableCollapseByDefault', 'enableColumnGrandTotal', 'enableConditionalFormatting', 'enableAdvancedFilter', 'enableDeferUpdate', 'enableGroupingBar', 'maxNodeLimitInMemberEditor', 'enableMemberEditorPaging', 'memberEditorPageSize', 'enableMemberEditorSorting', 'enableGrandTotal', 'enableJSONRendering', 'enablePivotFieldList', 'enableRowGrandTotal', 'enableRTL', 'enableToolTip', 'enableToolTipAnimation', 'enableColumnResizing', 'resizeColumnsToFit', 'enableContextMenu', 'enableVirtualScrolling', 'enablePaging', 'hyperlinkSettings', 'isResponsive', 'jsonRecords', 'layout', 'locale', 'operationalMode', 'serviceMethodSettings', 'url', 'enableCompleteDataExport', 'enableXHRCredentials'], [], {'pivotTableFieldListID': ['pivotTableFieldListId'], 'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejPivotGrid extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@customElement(`${constants.elementPrefix}pivot-schema-designer`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejPivotSchemaDesigner', ['cssClass', 'customObject', 'enableWrapper', 'enableRTL', 'olap', 'enableDragDrop', 'height', 'locale', 'pivotControl', 'serviceMethods', 'url', 'width', 'layout'], [], {'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejPivotSchemaDesigner extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@customElement(`${constants.elementPrefix}pivot-tree-map`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejPivotTreeMap', ['cssClass', 'dataSource', 'customObject', 'isResponsive', 'locale', 'operationalMode', 'serviceMethodSettings', 'url', 'enableXHRCredentials']) -@inject(Element) -export class ejPivotTreeMap extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@customAttribute(`${constants.attributePrefix}progress-bar`) -@generateBindables('ejProgressBar', ['cssClass', 'enabled', 'enablePersistence', 'enableRTL', 'height', 'htmlAttributes', 'maxValue', 'minValue', 'percentage', 'showRoundedCorner', 'text', 'value', 'width'], [], {'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejProgressBar extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - -@inlineView(`${constants.aureliaTemplateString}`) -@customElement(`${constants.elementPrefix}item`) - -@generateBindables('items', ['imageUrl', 'prependTo', 'text', 'enabled', 'click', 'badge', 'badge', 'badge', 'type', 'sliderSettings', 'sliderSettings', 'sliderSettings', 'sliderSettings', 'items']) +@generateBindables('items', ['imageUrl', 'prependTo', 'text', 'enabled', 'click', 'badge', 'badge', 'badge', 'type', 'sliderSettings', 'sliderSettings', 'sliderSettings', 'sliderSettings', 'items']) export class Item { @children(`${constants.elementPrefix}template`) template = []; @@ -1714,6 +1240,480 @@ export class ejSplitter extends WidgetBase { } +export {customAttribute, bindable, inject, inlineView, customElement, children, TemplatingEngine}; + +export const constants = { + eventPrefix: 'e-on-', + bindablePrefix: 'e-', + attributePrefix: 'ej-', + elementPrefix: 'ej-', + aureliaTemplateString: '' +}; + +export function generateBindables(controlName, inputs, twoWayProperties, abbrevProperties, observerCollection) { + return function(target, key, descriptor) { + let behaviorResource = metadata.getOrCreateOwn(metadata.resource, HtmlBehaviorResource, target); + let container = (Container.instance || new Container()); + let util = container.get(Util); + let bindingInstance = container.get(BindingEngine); + inputs.push('options'); + inputs.push('widget'); + let len = inputs.length; + if (observerCollection) { + target.prototype.arrayObserver = []; + observerCollection.forEach((element) => { + target.prototype.arrayObserver.push(util.getBindablePropertyName(element)); + }); + target.prototype.bindingInstance = bindingInstance; + } + target.prototype.controlName = controlName; + target.prototype.twoWays = twoWayProperties ? twoWayProperties : []; + target.prototype.abbrevProperties = abbrevProperties ? abbrevProperties : []; + if (len) { + target.prototype.controlProperties = inputs; + for (let i = 0; i < len; i++) { + let option = inputs[i]; + if (abbrevProperties && option in abbrevProperties) { + option = abbrevProperties[option]; + option.forEach((prop) => { + registerProp(util, prop, target, behaviorResource, descriptor); + }); + } else { + registerProp(util, option, target, behaviorResource, descriptor); + } + } + } + }; +} + +function registerProp(util, option, target, behaviorResource, descriptor) { + let nameOrConfigOrTarget = { + name: util.getBindablePropertyName(option) + }; + + if (option === 'widget') { + nameOrConfigOrTarget.defaultBindingMode = bindingMode.twoWay; + } + + let prop = new BindableProperty(nameOrConfigOrTarget); + prop.registerWith(target, behaviorResource, descriptor); +} + +export function delayed() { + return function(target, key, descriptor) { + let taskQueue = (Container.instance || new Container()).get(TaskQueue); + let ptr = descriptor.value; + + descriptor.value = function(...args) { + if (this.childPropertyName) { + taskQueue.queueTask(() => ptr.apply(this, args)); + } else { + ptr.apply(this, args); + } + }; + + return descriptor; + }; +} + +/** +* To get binded events from the element +* @param element The Element from which events acquired +*/ +export function getEventOption(element) { + let name; + let attr; + let attributes = element.attributes; + let option = {}; + let container = (Container.instance || new Container()); + let util = container.get(Util); + for (let i = 0, len = attributes.length; i < len; i++) { + attr = attributes[i]; + name = attr.name; + if (!name.startsWith(constants.eventPrefix)) { + continue; + } + let actualEventName = name.split('.')[0];//Event name with constants event prefix + let eventName = util._unhyphenate(actualEventName.split(constants.eventPrefix)[1]); + option[eventName] = e => fireEvent(element, actualEventName, e); // eslint-disable-line no-loop-func + } + return option; +} +/** +* Fire DOM event on an element +* @param element The Element which the DOM event will be fired on +* @param name The Event's name +* @param data Addition data to attach to an event +*/ +export function fireEvent(element: Element, name: string, data? = {}) { + let event = new CustomEvent(name, { + detail: data, + bubbles: true + }); + element.dispatchEvent(event); + return event; +} + +@inject(TemplatingEngine, Util) +export class TemplateProcessor { + + constructor(context, templateEngine) { + this.context = context; + this.templatingEngine = templateEngine; + this.util = new Util(); + } + + initTemplate() { + let proxy = this; + ej.template.render = function(self, selector, data, index) { + return proxy.renderStringTemplate(self, selector, data, index); + }; + } + + initWidgetDependancies() { + if ( this.context.widget.aureliaTemplate) { + this.compileTemplate(this.context.widget.element); + } + let proxy = this.context; + let element = this.context.widget.element; + element.on( this.context.widget.pluginName + 'refresh', function() { + if (proxy.widget.aureliaTemplate) { + proxy.templateProcessor.compileTemplate(element); + } + }); + } + + renderStringTemplate(self, selector, data, index) { + let templateObject = self.aureliaTemplate; + if (!templateObject || !templateObject[selector]) { + templateObject = templateObject || {}; + templateObject[selector] = { key: ej.getGuid('aurtmpl'), itemData: [], views: [] }; + self.aureliaTemplate = templateObject; + } + let scope = templateObject[selector]; + if (this.util.hasValue(index)) { + scope.itemData[index] = data; + } else { + scope.itemData = [data]; + } + let actElement = $(selector).html(); + let tempElement = "
" + actElement + '
'; + return tempElement; + } + + compileTemplate(element) { + let templates = $(element).find('.ej-aurelia-template'); + let templateObject = this.context.widget.aureliaTemplate; + for (let template in templateObject) { + let tmplElement = templates.filter('.' + templateObject[template].key); + if (tmplElement.length) { + for (let i = 0; i < tmplElement.length; i++) { + let dataIndex = parseInt($(tmplElement[i]).attr('ej-prop'));// eslint-disable-line radix + let view = this.templatingEngine.enhance(tmplElement[i]); + view.bind(templateObject[template].itemData[dataIndex], this.context.parentCtx); + templateObject[template].views[dataIndex] = view; + } + } else { + this.unbindViews(templateObject[template]); + delete templateObject[template]; + } + } + } + + clearTempalte() { + let templateObject = this.context.widget.aureliaTemplate; + if (templateObject && Object.keys(templateObject).length) { + for (let t in templateObject) { + this.unbindViews(templateObject[t]); + delete templateObject[t]; + } + } + } + + unbindViews(obj) { + for (let i = 0; i < obj.views.length; i++) { + let view = obj.views[i]; + view.unbind(); + } + } + +} + +@customElement(`${constants.elementPrefix}template`) +@noView() +@processContent((compiler, resources, element, instruction) => { + let html = element.innerHTML; + if (html !== '') { + instruction.template = html; + } + element.innerHTML = ''; +}) +@inject(TargetInstruction) +export class Template { + @bindable template; + constructor(target) { + this.template = target.elementInstruction.template; + } + +} + +export class Util { + + getBindablePropertyName(propertyName: string): string { + let name = `${constants.bindablePrefix}${propertyName}`; + return this._unhyphenate(name); + } + + _unhyphenate(name: string): string { + return name.replace(/-([a-z])/g, (g) => g[1].toUpperCase()); + } + + getOptions(model, properties ) { + let bindableproperites = {}; + let value; + for (let prop of properties) { + if (model.abbrevProperties && prop in model.abbrevProperties && model.abbrevProperties.hasOwnProperty(prop)) { + model.abbrevProperties[prop].some(property => { + value = model[this.getBindablePropertyName(property)]; + return this.hasValue(value); + }); + } else { + value = model[this.getBindablePropertyName(prop)]; + } + if (this.hasValue(value)) { + if (typeof value === 'string' ) { + value = this.processData(value); + } + bindableproperites[prop] = value; + } + } + return bindableproperites; + } + + getControlPropertyName(options, propertyName) { + let property; + for (let prop of options.controlProperties) { + if (options.abbrevProperties && prop in options.abbrevProperties && options.abbrevProperties.hasOwnProperty(prop)) { + options.abbrevProperties[prop].some(props => { + property = propertyName === this.getBindablePropertyName(props) ? prop : undefined; + return property; + }); + if (property) break; + } else if (propertyName === this.getBindablePropertyName(prop)) { + property = prop; + break; + } + } + return property; + } + + hasValue(prop) { + return typeof (prop) !== 'undefined' && prop !== null; + } + + processData(value) { + if (value === 'true') { + return true; + } else if (value === 'false') { + return false; + } else if (+value + '' === value) { + return +value; + } + return value; + } +} + +let firstValue = {}; +export class WidgetBase { +/** +* To Create an widget +* @param option Object which contains Element in which widget will be created +*/ + createWidget(option) { + this.allOption = this.getWidgetOptions(option.element); + if (!this.ejOptions && !this.isEditor) { + this.createTwoWays(); + } + this.eWidget = this.widget = jQuery($(option.element))[this.controlName](this.allOption).data(this.controlName); + if (this.templateProcessor) { + this.templateProcessor.initWidgetDependancies(); + } + if (this.isEditor) { + this.widget.model._change = (evt) => { + if ('eValue' in this) { + this[this.util.getBindablePropertyName('value')] = evt.value; + } + }; + } + } + + bind(ctx, overrideCtx) { + this.parentCtx = overrideCtx; + if (this.widget && this.widget.element && this.isEditor) { + this.widget.option('value', (this.eValue === undefined ? null : this.eValue)); + } + } + + createTwoWays() { + let model = this.allOption; + let twoWays = this.twoWays; + let len = twoWays.length; + for (let i = 0; i < len; i++) { + let prop = twoWays[i]; + ej.createObject(prop, this.addTwoways(prop), model); + } + } + + addTwoways(prop) { + let model = this; + let value = firstValue; + return function(newVal, isApp) { + if (value === firstValue) { + let viewModelProp = model.util.getBindablePropertyName(prop); + value = model[viewModelProp]; + if (value === undefined) { + value = this.defaults[prop]; + } + return value; + } + if (newVal === undefined) { + return value; + } + if (value === newVal) { + return null; + } + value = newVal; + if (!isApp && model.util.hasValue(newVal) ) { + let viewModelProp = model.util.getBindablePropertyName(prop); + model[viewModelProp] = newVal; + } + return null; + }; + } +/** +* To get property and event options from the element +* @param element Element from which options are acquired +*/ + getWidgetOptions(element) { + let propOptions; + if (this.ejOptions) { + propOptions = this.ejOptions; + } else { + propOptions = this.util.getOptions(this, this.controlProperties); + } + let eventOption = getEventOption(element); + if (this.hasChildProperty) { + this.getChildProperties(propOptions); + } + return Object.assign({}, propOptions, eventOption); + } + + getChildProperties(options) { + let PropertyName = this.childPropertyName; + let childCollection = this[PropertyName]; + let len = childCollection.length; + if (len) { + options[PropertyName] = []; + let childProperties = childCollection[0].controlProperties; + for (let i = 0; i < len; i++) { + options[PropertyName].push(this.util.getOptions(childCollection[i], childProperties)); + } + } + } + + @delayed() + attached() { + if (this.templateProcessor) { + this[this.childPropertyName].forEach(template => template.setTemplates()); + } + this.util = new Util(); + this.createWidget({ element: this.element }); + } + + unsubscribe() { + if (this.subscription) { + this.subscription.dispose(); + this.subscription = null; + } + } + + unbind() { + this.unsubscribe(); + } + +/** + * To change widget model value + * @param property The viewModel property name + * @param newValue New value of the property + * @param oldvalue Pld value of the property + */ + propertyChanged(property, newValue, oldValue) { + if (this.widget) { + let modelValue; + let prop = this.util.getControlPropertyName(this, property); + this.unsubscribe(); + if (this.arrayObserver) { + this.arrayObserver.forEach((arrayProp) => { + if (this[arrayProp] instanceof Array) { + this.subscription = this.bindingInstance.collectionObserver(this[arrayProp]).subscribe((e) => { + this.update(e); + }); + } + }); + } + if (prop) { + if (prop === 'widget') { + return; + } else if (prop !== 'options') { + modelValue = this.widget.model[prop]; + let isTwoway = typeof modelValue === 'function'; + if (isTwoway) { + modelValue = modelValue(); + } + if (modelValue !== newValue) { + if (isTwoway) { + newValue = this.addTwoways(prop); + } + this.widget.option(prop, newValue); + } + } else { + this.widget.option(newValue); + } + } + } + } + + update(e) { + let modelValue; + let newVal; + if (e.length) { + this.arrayObserver.forEach((arrayProp) => { + if (this[arrayProp] instanceof Array) { + let prop = this.util.getControlPropertyName(this, arrayProp); + modelValue = this.widget.model[prop]; + if (typeof modelValue === 'function') { + modelValue = modelValue(); + newVal = modelValue; + newVal = this.addTwoways(prop); + this.widget.option(prop, newVal); + } else { + this.widget.option(prop, modelValue); + } + } + }); + } + } + + detached() { + if (this.templateProcessor) { + this.templateProcessor.clearTempalte(); + } + if (this.widget) { + this.widget.destroy(); + } + } +} + @inlineView(`${constants.aureliaTemplateString}`) @customElement(`${constants.elementPrefix}sheet`) diff --git a/dist/commonjs/aurelia-syncfusion-bridge.d.ts b/dist/commonjs/aurelia-syncfusion-bridge.d.ts index c40e7f9e..4678f777 100644 --- a/dist/commonjs/aurelia-syncfusion-bridge.d.ts +++ b/dist/commonjs/aurelia-syncfusion-bridge.d.ts @@ -163,84 +163,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejColorPicker extends WidgetBase { constructor(element?: any); } - export { - customAttribute, - bindable, - inject, - inlineView, - customElement, - children, - TemplatingEngine - }; - export const constants: any; - export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; - export function delayed(): any; - - /** - * To get binded events from the element - * @param element The Element from which events acquired - */ - export function getEventOption(element?: any): any; - - /** - * Fire DOM event on an element - * @param element The Element which the DOM event will be fired on - * @param name The Event's name - * @param data Addition data to attach to an event - */ - export function fireEvent(element: Element, name: string, data?: any): any; - export class TemplateProcessor { - constructor(context?: any, templateEngine?: any); - initTemplate(): any; - initWidgetDependancies(): any; - renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; - compileTemplate(element?: any): any; - clearTempalte(): any; - unbindViews(obj?: any): any; - } - export class Template { - template: any; - constructor(target?: any); - } - export class Util { - getBindablePropertyName(propertyName: string): string; - _unhyphenate(name: string): string; - getOptions(model?: any, properties?: any): any; - getControlPropertyName(options?: any, propertyName?: any): any; - hasValue(prop?: any): any; - processData(value?: any): any; - } - export class WidgetBase { - - /** - * To Create an widget - * @param option Object which contains Element in which widget will be created - */ - createWidget(option?: any): any; - bind(ctx?: any, overrideCtx?: any): any; - createTwoWays(): any; - addTwoways(prop?: any): any; - - /** - * To get property and event options from the element - * @param element Element from which options are acquired - */ - getWidgetOptions(element?: any): any; - getChildProperties(options?: any): any; - attached(): any; - unsubscribe(): any; - unbind(): any; - - /** - * To change widget model value - * @param property The viewModel property name - * @param newValue New value of the property - * @param oldvalue Pld value of the property - */ - propertyChanged(property?: any, newValue?: any, oldValue?: any): any; - update(e?: any): any; - detached(): any; - } export class ejComboBox extends WidgetBase { constructor(element?: any); } @@ -417,6 +339,84 @@ declare module 'aurelia-syncfusion-bridge' { export class ejSplitter extends WidgetBase { constructor(element?: any); } + export { + customAttribute, + bindable, + inject, + inlineView, + customElement, + children, + TemplatingEngine + }; + export const constants: any; + export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; + export function delayed(): any; + + /** + * To get binded events from the element + * @param element The Element from which events acquired + */ + export function getEventOption(element?: any): any; + + /** + * Fire DOM event on an element + * @param element The Element which the DOM event will be fired on + * @param name The Event's name + * @param data Addition data to attach to an event + */ + export function fireEvent(element: Element, name: string, data?: any): any; + export class TemplateProcessor { + constructor(context?: any, templateEngine?: any); + initTemplate(): any; + initWidgetDependancies(): any; + renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; + compileTemplate(element?: any): any; + clearTempalte(): any; + unbindViews(obj?: any): any; + } + export class Template { + template: any; + constructor(target?: any); + } + export class Util { + getBindablePropertyName(propertyName: string): string; + _unhyphenate(name: string): string; + getOptions(model?: any, properties?: any): any; + getControlPropertyName(options?: any, propertyName?: any): any; + hasValue(prop?: any): any; + processData(value?: any): any; + } + export class WidgetBase { + + /** + * To Create an widget + * @param option Object which contains Element in which widget will be created + */ + createWidget(option?: any): any; + bind(ctx?: any, overrideCtx?: any): any; + createTwoWays(): any; + addTwoways(prop?: any): any; + + /** + * To get property and event options from the element + * @param element Element from which options are acquired + */ + getWidgetOptions(element?: any): any; + getChildProperties(options?: any): any; + attached(): any; + unsubscribe(): any; + unbind(): any; + + /** + * To change widget model value + * @param property The viewModel property name + * @param newValue New value of the property + * @param oldvalue Pld value of the property + */ + propertyChanged(property?: any, newValue?: any, oldValue?: any): any; + update(e?: any): any; + detached(): any; + } export class Sheet { } diff --git a/dist/dev/aurelia-syncfusion-bridge.d.ts b/dist/dev/aurelia-syncfusion-bridge.d.ts index c40e7f9e..4678f777 100644 --- a/dist/dev/aurelia-syncfusion-bridge.d.ts +++ b/dist/dev/aurelia-syncfusion-bridge.d.ts @@ -163,84 +163,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejColorPicker extends WidgetBase { constructor(element?: any); } - export { - customAttribute, - bindable, - inject, - inlineView, - customElement, - children, - TemplatingEngine - }; - export const constants: any; - export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; - export function delayed(): any; - - /** - * To get binded events from the element - * @param element The Element from which events acquired - */ - export function getEventOption(element?: any): any; - - /** - * Fire DOM event on an element - * @param element The Element which the DOM event will be fired on - * @param name The Event's name - * @param data Addition data to attach to an event - */ - export function fireEvent(element: Element, name: string, data?: any): any; - export class TemplateProcessor { - constructor(context?: any, templateEngine?: any); - initTemplate(): any; - initWidgetDependancies(): any; - renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; - compileTemplate(element?: any): any; - clearTempalte(): any; - unbindViews(obj?: any): any; - } - export class Template { - template: any; - constructor(target?: any); - } - export class Util { - getBindablePropertyName(propertyName: string): string; - _unhyphenate(name: string): string; - getOptions(model?: any, properties?: any): any; - getControlPropertyName(options?: any, propertyName?: any): any; - hasValue(prop?: any): any; - processData(value?: any): any; - } - export class WidgetBase { - - /** - * To Create an widget - * @param option Object which contains Element in which widget will be created - */ - createWidget(option?: any): any; - bind(ctx?: any, overrideCtx?: any): any; - createTwoWays(): any; - addTwoways(prop?: any): any; - - /** - * To get property and event options from the element - * @param element Element from which options are acquired - */ - getWidgetOptions(element?: any): any; - getChildProperties(options?: any): any; - attached(): any; - unsubscribe(): any; - unbind(): any; - - /** - * To change widget model value - * @param property The viewModel property name - * @param newValue New value of the property - * @param oldvalue Pld value of the property - */ - propertyChanged(property?: any, newValue?: any, oldValue?: any): any; - update(e?: any): any; - detached(): any; - } export class ejComboBox extends WidgetBase { constructor(element?: any); } @@ -417,6 +339,84 @@ declare module 'aurelia-syncfusion-bridge' { export class ejSplitter extends WidgetBase { constructor(element?: any); } + export { + customAttribute, + bindable, + inject, + inlineView, + customElement, + children, + TemplatingEngine + }; + export const constants: any; + export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; + export function delayed(): any; + + /** + * To get binded events from the element + * @param element The Element from which events acquired + */ + export function getEventOption(element?: any): any; + + /** + * Fire DOM event on an element + * @param element The Element which the DOM event will be fired on + * @param name The Event's name + * @param data Addition data to attach to an event + */ + export function fireEvent(element: Element, name: string, data?: any): any; + export class TemplateProcessor { + constructor(context?: any, templateEngine?: any); + initTemplate(): any; + initWidgetDependancies(): any; + renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; + compileTemplate(element?: any): any; + clearTempalte(): any; + unbindViews(obj?: any): any; + } + export class Template { + template: any; + constructor(target?: any); + } + export class Util { + getBindablePropertyName(propertyName: string): string; + _unhyphenate(name: string): string; + getOptions(model?: any, properties?: any): any; + getControlPropertyName(options?: any, propertyName?: any): any; + hasValue(prop?: any): any; + processData(value?: any): any; + } + export class WidgetBase { + + /** + * To Create an widget + * @param option Object which contains Element in which widget will be created + */ + createWidget(option?: any): any; + bind(ctx?: any, overrideCtx?: any): any; + createTwoWays(): any; + addTwoways(prop?: any): any; + + /** + * To get property and event options from the element + * @param element Element from which options are acquired + */ + getWidgetOptions(element?: any): any; + getChildProperties(options?: any): any; + attached(): any; + unsubscribe(): any; + unbind(): any; + + /** + * To change widget model value + * @param property The viewModel property name + * @param newValue New value of the property + * @param oldvalue Pld value of the property + */ + propertyChanged(property?: any, newValue?: any, oldValue?: any): any; + update(e?: any): any; + detached(): any; + } export class Sheet { } diff --git a/dist/es6/aurelia-syncfusion-bridge.d.ts b/dist/es6/aurelia-syncfusion-bridge.d.ts index c40e7f9e..4678f777 100644 --- a/dist/es6/aurelia-syncfusion-bridge.d.ts +++ b/dist/es6/aurelia-syncfusion-bridge.d.ts @@ -163,84 +163,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejColorPicker extends WidgetBase { constructor(element?: any); } - export { - customAttribute, - bindable, - inject, - inlineView, - customElement, - children, - TemplatingEngine - }; - export const constants: any; - export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; - export function delayed(): any; - - /** - * To get binded events from the element - * @param element The Element from which events acquired - */ - export function getEventOption(element?: any): any; - - /** - * Fire DOM event on an element - * @param element The Element which the DOM event will be fired on - * @param name The Event's name - * @param data Addition data to attach to an event - */ - export function fireEvent(element: Element, name: string, data?: any): any; - export class TemplateProcessor { - constructor(context?: any, templateEngine?: any); - initTemplate(): any; - initWidgetDependancies(): any; - renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; - compileTemplate(element?: any): any; - clearTempalte(): any; - unbindViews(obj?: any): any; - } - export class Template { - template: any; - constructor(target?: any); - } - export class Util { - getBindablePropertyName(propertyName: string): string; - _unhyphenate(name: string): string; - getOptions(model?: any, properties?: any): any; - getControlPropertyName(options?: any, propertyName?: any): any; - hasValue(prop?: any): any; - processData(value?: any): any; - } - export class WidgetBase { - - /** - * To Create an widget - * @param option Object which contains Element in which widget will be created - */ - createWidget(option?: any): any; - bind(ctx?: any, overrideCtx?: any): any; - createTwoWays(): any; - addTwoways(prop?: any): any; - - /** - * To get property and event options from the element - * @param element Element from which options are acquired - */ - getWidgetOptions(element?: any): any; - getChildProperties(options?: any): any; - attached(): any; - unsubscribe(): any; - unbind(): any; - - /** - * To change widget model value - * @param property The viewModel property name - * @param newValue New value of the property - * @param oldvalue Pld value of the property - */ - propertyChanged(property?: any, newValue?: any, oldValue?: any): any; - update(e?: any): any; - detached(): any; - } export class ejComboBox extends WidgetBase { constructor(element?: any); } @@ -417,6 +339,84 @@ declare module 'aurelia-syncfusion-bridge' { export class ejSplitter extends WidgetBase { constructor(element?: any); } + export { + customAttribute, + bindable, + inject, + inlineView, + customElement, + children, + TemplatingEngine + }; + export const constants: any; + export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; + export function delayed(): any; + + /** + * To get binded events from the element + * @param element The Element from which events acquired + */ + export function getEventOption(element?: any): any; + + /** + * Fire DOM event on an element + * @param element The Element which the DOM event will be fired on + * @param name The Event's name + * @param data Addition data to attach to an event + */ + export function fireEvent(element: Element, name: string, data?: any): any; + export class TemplateProcessor { + constructor(context?: any, templateEngine?: any); + initTemplate(): any; + initWidgetDependancies(): any; + renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; + compileTemplate(element?: any): any; + clearTempalte(): any; + unbindViews(obj?: any): any; + } + export class Template { + template: any; + constructor(target?: any); + } + export class Util { + getBindablePropertyName(propertyName: string): string; + _unhyphenate(name: string): string; + getOptions(model?: any, properties?: any): any; + getControlPropertyName(options?: any, propertyName?: any): any; + hasValue(prop?: any): any; + processData(value?: any): any; + } + export class WidgetBase { + + /** + * To Create an widget + * @param option Object which contains Element in which widget will be created + */ + createWidget(option?: any): any; + bind(ctx?: any, overrideCtx?: any): any; + createTwoWays(): any; + addTwoways(prop?: any): any; + + /** + * To get property and event options from the element + * @param element Element from which options are acquired + */ + getWidgetOptions(element?: any): any; + getChildProperties(options?: any): any; + attached(): any; + unsubscribe(): any; + unbind(): any; + + /** + * To change widget model value + * @param property The viewModel property name + * @param newValue New value of the property + * @param oldvalue Pld value of the property + */ + propertyChanged(property?: any, newValue?: any, oldValue?: any): any; + update(e?: any): any; + detached(): any; + } export class Sheet { } diff --git a/dist/system/aurelia-syncfusion-bridge.d.ts b/dist/system/aurelia-syncfusion-bridge.d.ts index c40e7f9e..4678f777 100644 --- a/dist/system/aurelia-syncfusion-bridge.d.ts +++ b/dist/system/aurelia-syncfusion-bridge.d.ts @@ -163,84 +163,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejColorPicker extends WidgetBase { constructor(element?: any); } - export { - customAttribute, - bindable, - inject, - inlineView, - customElement, - children, - TemplatingEngine - }; - export const constants: any; - export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; - export function delayed(): any; - - /** - * To get binded events from the element - * @param element The Element from which events acquired - */ - export function getEventOption(element?: any): any; - - /** - * Fire DOM event on an element - * @param element The Element which the DOM event will be fired on - * @param name The Event's name - * @param data Addition data to attach to an event - */ - export function fireEvent(element: Element, name: string, data?: any): any; - export class TemplateProcessor { - constructor(context?: any, templateEngine?: any); - initTemplate(): any; - initWidgetDependancies(): any; - renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; - compileTemplate(element?: any): any; - clearTempalte(): any; - unbindViews(obj?: any): any; - } - export class Template { - template: any; - constructor(target?: any); - } - export class Util { - getBindablePropertyName(propertyName: string): string; - _unhyphenate(name: string): string; - getOptions(model?: any, properties?: any): any; - getControlPropertyName(options?: any, propertyName?: any): any; - hasValue(prop?: any): any; - processData(value?: any): any; - } - export class WidgetBase { - - /** - * To Create an widget - * @param option Object which contains Element in which widget will be created - */ - createWidget(option?: any): any; - bind(ctx?: any, overrideCtx?: any): any; - createTwoWays(): any; - addTwoways(prop?: any): any; - - /** - * To get property and event options from the element - * @param element Element from which options are acquired - */ - getWidgetOptions(element?: any): any; - getChildProperties(options?: any): any; - attached(): any; - unsubscribe(): any; - unbind(): any; - - /** - * To change widget model value - * @param property The viewModel property name - * @param newValue New value of the property - * @param oldvalue Pld value of the property - */ - propertyChanged(property?: any, newValue?: any, oldValue?: any): any; - update(e?: any): any; - detached(): any; - } export class ejComboBox extends WidgetBase { constructor(element?: any); } @@ -417,6 +339,84 @@ declare module 'aurelia-syncfusion-bridge' { export class ejSplitter extends WidgetBase { constructor(element?: any); } + export { + customAttribute, + bindable, + inject, + inlineView, + customElement, + children, + TemplatingEngine + }; + export const constants: any; + export function generateBindables(controlName?: any, inputs?: any, twoWayProperties?: any, abbrevProperties?: any, observerCollection?: any): any; + export function delayed(): any; + + /** + * To get binded events from the element + * @param element The Element from which events acquired + */ + export function getEventOption(element?: any): any; + + /** + * Fire DOM event on an element + * @param element The Element which the DOM event will be fired on + * @param name The Event's name + * @param data Addition data to attach to an event + */ + export function fireEvent(element: Element, name: string, data?: any): any; + export class TemplateProcessor { + constructor(context?: any, templateEngine?: any); + initTemplate(): any; + initWidgetDependancies(): any; + renderStringTemplate(self?: any, selector?: any, data?: any, index?: any): any; + compileTemplate(element?: any): any; + clearTempalte(): any; + unbindViews(obj?: any): any; + } + export class Template { + template: any; + constructor(target?: any); + } + export class Util { + getBindablePropertyName(propertyName: string): string; + _unhyphenate(name: string): string; + getOptions(model?: any, properties?: any): any; + getControlPropertyName(options?: any, propertyName?: any): any; + hasValue(prop?: any): any; + processData(value?: any): any; + } + export class WidgetBase { + + /** + * To Create an widget + * @param option Object which contains Element in which widget will be created + */ + createWidget(option?: any): any; + bind(ctx?: any, overrideCtx?: any): any; + createTwoWays(): any; + addTwoways(prop?: any): any; + + /** + * To get property and event options from the element + * @param element Element from which options are acquired + */ + getWidgetOptions(element?: any): any; + getChildProperties(options?: any): any; + attached(): any; + unsubscribe(): any; + unbind(): any; + + /** + * To change widget model value + * @param property The viewModel property name + * @param newValue New value of the property + * @param oldvalue Pld value of the property + */ + propertyChanged(property?: any, newValue?: any, oldValue?: any): any; + update(e?: any): any; + detached(): any; + } export class Sheet { } diff --git a/dist/temp/aurelia-syncfusion-bridge.js b/dist/temp/aurelia-syncfusion-bridge.js index 196bb33b..825d2812 100644 --- a/dist/temp/aurelia-syncfusion-bridge.js +++ b/dist/temp/aurelia-syncfusion-bridge.js @@ -1,9 +1,9 @@ 'use strict'; exports.__esModule = true; -exports.ejWaitingPopup = exports.ejUploadbox = exports.ejTreeView = exports.ejTreeMap = exports.Level = exports.TreeGridColumn = exports.ejTreeGrid = exports.ejTooltip = exports.ejToolbar = exports.ejToggleButton = exports.ejTimePicker = exports.ejTile = exports.ejTagCloud = exports.ejTab = exports.ejSymbolPalette = exports.SunburstLevels = exports.ejSunburstChart = exports.ejSpreadsheet = exports.Sheet = exports.ejSplitter = exports.ejSplitButton = exports.ejSpellCheck = exports.ejSparkline = exports.ejSlider = exports.ejSignature = exports.ejScroller = exports.ScheduleResource = exports.ejSchedule = exports.ejRte = exports.ejRotator = exports.ejRibbon = exports.ejRating = exports.RangeSeries = exports.ejRangeNavigator = exports.ejRadioButton = exports.ejRadialSlider = exports.ejRadialMenu = exports.Item = exports.ejProgressBar = exports.ejPivotTreeMap = exports.ejPivotSchemaDesigner = exports.ejPivotGrid = exports.ejPivotGauge = exports.ejPivotChart = exports.ejPercentageTextbox = exports.ejPdfViewer = exports.ejPager = exports.ejOverview = exports.ejNumericTextbox = exports.ejNavigationDrawer = exports.ejMenu = exports.ejMaskEdit = exports.ejMap = exports.Layer = exports.ejListView = exports.ejListBox = exports.ejLinearGauge = exports.KanbanColumn = exports.ejKanban = exports.ejHeatMapLegend = exports.ejHeatMap = exports.ejGroupButton = exports.ejGrid = exports.Column = exports.ejGantt = exports.ejFileExplorer = exports.ejDropDownList = exports.ejDigitalGauge = exports.ejDialog = exports.ejDiagram = exports.ejDateTimePicker = exports.ejDateRangePicker = exports.ejDatePicker = exports.ejCurrencyTextbox = exports.ejComboBox = exports.WidgetBase = exports.Util = exports.Template = exports.TemplateProcessor = exports.constants = exports.TemplatingEngine = exports.children = exports.customElement = exports.inlineView = exports.inject = exports.bindable = exports.customAttribute = exports.ejColorPicker = exports.ejCircularGauge = exports.ejCheckBox = exports.Series = exports.ejChart = exports.ejButton = exports.QualitativeRange = exports.ejBulletGraph = exports.ejBarcode = exports.ejAutocomplete = exports.ejAccordion = exports.EjConfigBuilder = undefined; +exports.ejWaitingPopup = exports.ejUploadbox = exports.ejTreeView = exports.ejTreeMap = exports.Level = exports.TreeGridColumn = exports.ejTreeGrid = exports.ejTooltip = exports.ejToolbar = exports.ejToggleButton = exports.ejTimePicker = exports.ejTile = exports.ejTagCloud = exports.ejTab = exports.ejSymbolPalette = exports.SunburstLevels = exports.ejSunburstChart = exports.ejSpreadsheet = exports.Sheet = exports.WidgetBase = exports.Util = exports.Template = exports.TemplateProcessor = exports.constants = exports.TemplatingEngine = exports.children = exports.customElement = exports.inlineView = exports.inject = exports.bindable = exports.customAttribute = exports.ejSplitter = exports.ejSplitButton = exports.ejSpellCheck = exports.ejSparkline = exports.ejSlider = exports.ejSignature = exports.ejScroller = exports.ScheduleResource = exports.ejSchedule = exports.ejRte = exports.ejRotator = exports.ejRibbon = exports.ejRating = exports.RangeSeries = exports.ejRangeNavigator = exports.ejRadioButton = exports.ejRadialSlider = exports.ejRadialMenu = exports.Item = exports.ejProgressBar = exports.ejPivotTreeMap = exports.ejPivotSchemaDesigner = exports.ejPivotGrid = exports.ejPivotGauge = exports.ejPivotChart = exports.ejPercentageTextbox = exports.ejPdfViewer = exports.ejPager = exports.ejOverview = exports.ejNumericTextbox = exports.ejNavigationDrawer = exports.ejMenu = exports.ejMaskEdit = exports.ejMap = exports.Layer = exports.ejListView = exports.ejListBox = exports.ejLinearGauge = exports.KanbanColumn = exports.ejKanban = exports.ejHeatMapLegend = exports.ejHeatMap = exports.ejGroupButton = exports.ejGrid = exports.Column = exports.ejGantt = exports.ejFileExplorer = exports.ejDropDownList = exports.ejDigitalGauge = exports.ejDialog = exports.ejDiagram = exports.ejDateTimePicker = exports.ejDateRangePicker = exports.ejDatePicker = exports.ejCurrencyTextbox = exports.ejComboBox = exports.ejColorPicker = exports.ejCircularGauge = exports.ejCheckBox = exports.Series = exports.ejChart = exports.ejButton = exports.QualitativeRange = exports.ejBulletGraph = exports.ejBarcode = exports.ejAutocomplete = exports.ejAccordion = exports.EjConfigBuilder = undefined; -var _dec, _dec2, _dec3, _dec4, _class2, _dec5, _dec6, _dec7, _class3, _dec8, _dec9, _dec10, _dec11, _class4, _dec12, _dec13, _dec14, _dec15, _dec16, _class5, _desc, _value, _class6, _descriptor, _dec17, _dec18, _dec19, _class8, _dec20, _dec21, _dec22, _class9, _dec23, _dec24, _dec25, _dec26, _dec27, _class10, _desc2, _value2, _class11, _descriptor2, _dec28, _dec29, _dec30, _class13, _dec31, _dec32, _dec33, _class14, _dec34, _dec35, _dec36, _dec37, _class15, _dec38, _dec39, _dec40, _class16, _dec41, _class17, _dec42, _dec43, _dec44, _dec45, _class18, _desc3, _value3, _class19, _descriptor3, _dec46, _desc4, _value4, _class21, _dec47, _dec48, _dec49, _class22, _dec50, _dec51, _dec52, _class23, _dec53, _dec54, _dec55, _class24, _dec56, _dec57, _dec58, _class25, _dec59, _dec60, _dec61, _class26, _dec62, _dec63, _dec64, _dec65, _class27, _dec66, _dec67, _dec68, _dec69, _class28, _dec70, _dec71, _dec72, _dec73, _class29, _dec74, _dec75, _dec76, _class30, _dec77, _dec78, _dec79, _dec80, _class31, _dec81, _dec82, _dec83, _dec84, _class32, _dec85, _dec86, _dec87, _dec88, _class33, _desc5, _value5, _class34, _descriptor4, _dec89, _dec90, _dec91, _dec92, _dec93, _class36, _desc6, _value6, _class37, _descriptor5, _dec94, _dec95, _dec96, _class39, _dec97, _dec98, _dec99, _dec100, _class40, _dec101, _dec102, _dec103, _dec104, _class41, _dec105, _dec106, _dec107, _dec108, _dec109, _class42, _desc7, _value7, _class43, _descriptor6, _dec110, _dec111, _dec112, _class45, _dec113, _dec114, _dec115, _dec116, _class46, _dec117, _dec118, _dec119, _class47, _dec120, _dec121, _dec122, _dec123, _class48, _dec124, _dec125, _dec126, _class49, _dec127, _dec128, _dec129, _dec130, _dec131, _class50, _desc8, _value8, _class51, _descriptor7, _dec132, _dec133, _dec134, _class53, _dec135, _dec136, _dec137, _class54, _dec138, _dec139, _dec140, _dec141, _class55, _dec142, _dec143, _dec144, _class56, _dec145, _dec146, _dec147, _dec148, _class57, _dec149, _dec150, _dec151, _dec152, _class58, _dec153, _dec154, _dec155, _dec156, _class59, _dec157, _dec158, _dec159, _class60, _dec160, _dec161, _dec162, _dec163, _class61, _dec164, _dec165, _dec166, _dec167, _class62, _dec168, _dec169, _dec170, _dec171, _class63, _dec172, _dec173, _dec174, _dec175, _class64, _dec176, _dec177, _dec178, _dec179, _class65, _dec180, _dec181, _dec182, _class66, _dec183, _dec184, _dec185, _dec186, _class67, _desc9, _value9, _class68, _descriptor8, _dec187, _dec188, _dec189, _dec190, _dec191, _class70, _desc10, _value10, _class71, _descriptor9, _dec192, _dec193, _dec194, _dec195, _class73, _dec196, _dec197, _dec198, _class74, _dec199, _dec200, _dec201, _dec202, _dec203, _class75, _desc11, _value11, _class76, _descriptor10, _dec204, _dec205, _dec206, _class78, _dec207, _dec208, _dec209, _class79, _dec210, _dec211, _dec212, _dec213, _class80, _dec214, _dec215, _dec216, _class81, _dec217, _dec218, _dec219, _class82, _dec220, _dec221, _dec222, _dec223, _dec224, _class83, _desc12, _value12, _class84, _descriptor11, _dec225, _dec226, _dec227, _class86, _dec228, _dec229, _dec230, _class87, _dec231, _dec232, _dec233, _dec234, _class88, _dec235, _dec236, _dec237, _class89, _dec238, _dec239, _dec240, _dec241, _class90, _dec242, _dec243, _dec244, _dec245, _class91, _dec246, _dec247, _dec248, _class92, _dec249, _dec250, _dec251, _dec252, _class93, _dec253, _dec254, _dec255, _class94, _dec256, _dec257, _dec258, _dec259, _dec260, _class95, _desc13, _value13, _class96, _descriptor12, _dec261, _dec262, _dec263, _dec264, _dec265, _class98, _desc14, _value14, _class99, _descriptor13, _dec266, _dec267, _dec268, _class101, _dec269, _dec270, _dec271, _dec272, _class102, _dec273, _dec274, _dec275, _dec276, _class103, _dec277, _dec278, _dec279, _dec280, _class104, _dec281, _dec282, _dec283, _dec284, _class105, _dec285, _dec286, _dec287, _class106, _dec288, _dec289, _dec290, _class107, _dec291, _dec292, _dec293, _class108, _dec294, _dec295, _dec296, _class109, _dec297, _dec298, _dec299, _dec300, _dec301, _class110, _desc15, _value15, _class111, _descriptor14, _dec302, _dec303, _dec304, _dec305, _class113, _desc16, _value16, _class114, _descriptor15, _dec306, _dec307, _dec308, _class116, _dec309, _dec310, _dec311, _dec312, _dec313, _class117, _desc17, _value17, _class118, _descriptor16, _dec314, _dec315, _dec316, _class120, _dec317, _dec318, _dec319, _dec320, _class121, _dec321, _dec322, _dec323, _class122; +var _dec, _dec2, _dec3, _dec4, _class2, _dec5, _dec6, _dec7, _class3, _dec8, _dec9, _dec10, _dec11, _class4, _dec12, _dec13, _dec14, _dec15, _dec16, _class5, _desc, _value, _class6, _descriptor, _dec17, _dec18, _dec19, _class8, _dec20, _dec21, _dec22, _class9, _dec23, _dec24, _dec25, _dec26, _dec27, _class10, _desc2, _value2, _class11, _descriptor2, _dec28, _dec29, _dec30, _class13, _dec31, _dec32, _dec33, _class14, _dec34, _dec35, _dec36, _dec37, _class15, _dec38, _dec39, _dec40, _class16, _dec41, _dec42, _dec43, _class17, _dec44, _dec45, _dec46, _class18, _dec47, _dec48, _dec49, _class19, _dec50, _dec51, _dec52, _class20, _dec53, _dec54, _dec55, _class21, _dec56, _dec57, _dec58, _dec59, _class22, _dec60, _dec61, _dec62, _dec63, _class23, _dec64, _dec65, _dec66, _dec67, _class24, _dec68, _dec69, _dec70, _class25, _dec71, _dec72, _dec73, _dec74, _class26, _dec75, _dec76, _dec77, _dec78, _class27, _dec79, _dec80, _dec81, _dec82, _class28, _desc3, _value3, _class29, _descriptor3, _dec83, _dec84, _dec85, _dec86, _dec87, _class31, _desc4, _value4, _class32, _descriptor4, _dec88, _dec89, _dec90, _class34, _dec91, _dec92, _dec93, _dec94, _class35, _dec95, _dec96, _dec97, _dec98, _class36, _dec99, _dec100, _dec101, _dec102, _dec103, _class37, _desc5, _value5, _class38, _descriptor5, _dec104, _dec105, _dec106, _class40, _dec107, _dec108, _dec109, _dec110, _class41, _dec111, _dec112, _dec113, _class42, _dec114, _dec115, _dec116, _dec117, _class43, _dec118, _dec119, _dec120, _class44, _dec121, _dec122, _dec123, _dec124, _dec125, _class45, _desc6, _value6, _class46, _descriptor6, _dec126, _dec127, _dec128, _class48, _dec129, _dec130, _dec131, _class49, _dec132, _dec133, _dec134, _dec135, _class50, _dec136, _dec137, _dec138, _class51, _dec139, _dec140, _dec141, _dec142, _class52, _dec143, _dec144, _dec145, _dec146, _class53, _dec147, _dec148, _dec149, _dec150, _class54, _dec151, _dec152, _dec153, _class55, _dec154, _dec155, _dec156, _dec157, _class56, _dec158, _dec159, _dec160, _dec161, _class57, _dec162, _dec163, _dec164, _dec165, _class58, _dec166, _dec167, _dec168, _dec169, _class59, _dec170, _dec171, _dec172, _dec173, _class60, _dec174, _dec175, _dec176, _class61, _dec177, _dec178, _dec179, _dec180, _class62, _desc7, _value7, _class63, _descriptor7, _dec181, _dec182, _dec183, _dec184, _dec185, _class65, _desc8, _value8, _class66, _descriptor8, _dec186, _dec187, _dec188, _dec189, _class68, _dec190, _dec191, _dec192, _class69, _dec193, _dec194, _dec195, _dec196, _dec197, _class70, _desc9, _value9, _class71, _descriptor9, _dec198, _dec199, _dec200, _class73, _dec201, _dec202, _dec203, _class74, _dec204, _dec205, _dec206, _dec207, _class75, _dec208, _dec209, _dec210, _class76, _dec211, _dec212, _dec213, _class77, _dec214, _dec215, _dec216, _dec217, _dec218, _class78, _desc10, _value10, _class79, _descriptor10, _dec219, _dec220, _dec221, _class81, _dec222, _dec223, _dec224, _class82, _dec225, _dec226, _dec227, _dec228, _class83, _dec229, _dec230, _dec231, _class84, _dec232, _dec233, _dec234, _dec235, _class85, _dec236, _dec237, _dec238, _dec239, _class86, _dec240, _dec241, _dec242, _class87, _dec243, _dec244, _dec245, _dec246, _class88, _dec247, _class89, _dec248, _dec249, _dec250, _dec251, _class90, _desc11, _value11, _class91, _descriptor11, _dec252, _desc12, _value12, _class93, _dec253, _dec254, _dec255, _class94, _dec256, _dec257, _dec258, _dec259, _dec260, _class95, _desc13, _value13, _class96, _descriptor12, _dec261, _dec262, _dec263, _dec264, _dec265, _class98, _desc14, _value14, _class99, _descriptor13, _dec266, _dec267, _dec268, _class101, _dec269, _dec270, _dec271, _dec272, _class102, _dec273, _dec274, _dec275, _dec276, _class103, _dec277, _dec278, _dec279, _dec280, _class104, _dec281, _dec282, _dec283, _dec284, _class105, _dec285, _dec286, _dec287, _class106, _dec288, _dec289, _dec290, _class107, _dec291, _dec292, _dec293, _class108, _dec294, _dec295, _dec296, _class109, _dec297, _dec298, _dec299, _dec300, _dec301, _class110, _desc15, _value15, _class111, _descriptor14, _dec302, _dec303, _dec304, _dec305, _class113, _desc16, _value16, _class114, _descriptor15, _dec306, _dec307, _dec308, _class116, _dec309, _dec310, _dec311, _dec312, _dec313, _class117, _desc17, _value17, _class118, _descriptor16, _dec314, _dec315, _dec316, _class120, _dec317, _dec318, _dec319, _dec320, _class121, _dec321, _dec322, _dec323, _class122; exports.configure = configure; exports.generateBindables = generateBindables; @@ -644,701 +644,171 @@ var ejColorPicker = exports.ejColorPicker = (_dec38 = (0, _aureliaTemplating.cus return ejColorPicker; }(WidgetBase)) || _class16) || _class16) || _class16); -exports.customAttribute = _aureliaTemplating.customAttribute; -exports.bindable = _aureliaTemplating.bindable; -exports.inject = _aureliaDependencyInjection.inject; -exports.inlineView = _aureliaTemplating.inlineView; -exports.customElement = _aureliaTemplating.customElement; -exports.children = _aureliaTemplating.children; -exports.TemplatingEngine = _aureliaTemplating.TemplatingEngine; -var constants = exports.constants = { - eventPrefix: 'e-on-', - bindablePrefix: 'e-', - attributePrefix: 'ej-', - elementPrefix: 'ej-', - aureliaTemplateString: '' -}; +var ejComboBox = exports.ejComboBox = (_dec41 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'combo-box'), _dec42 = generateBindables('ejComboBox', ['actionFailureTemplate', 'allowCustom', 'allowFiltering', 'autofill', 'cssClass', 'dataSource', 'enableRtl', 'enabled', 'fields', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'htmlAttributes', 'index', 'itemTemplate', 'locale', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'showClearButton', 'sortOrder', 'text', 'value', 'width'], ['value']), _dec43 = (0, _aureliaDependencyInjection.inject)(Element), _dec41(_class17 = _dec42(_class17 = _dec43(_class17 = function (_WidgetBase10) { + _inherits(ejComboBox, _WidgetBase10); -function generateBindables(controlName, inputs, twoWayProperties, abbrevProperties, observerCollection) { - return function (target, key, descriptor) { - var behaviorResource = _aureliaMetadata.metadata.getOrCreateOwn(_aureliaMetadata.metadata.resource, _aureliaTemplating.HtmlBehaviorResource, target); - var container = _aureliaDependencyInjection.Container.instance || new _aureliaDependencyInjection.Container(); - var util = container.get(Util); - var bindingInstance = container.get(_aureliaBinding.BindingEngine); - inputs.push('options'); - inputs.push('widget'); - var len = inputs.length; - if (observerCollection) { - target.prototype.arrayObserver = []; - observerCollection.forEach(function (element) { - target.prototype.arrayObserver.push(util.getBindablePropertyName(element)); - }); - target.prototype.bindingInstance = bindingInstance; - } - target.prototype.controlName = controlName; - target.prototype.twoWays = twoWayProperties ? twoWayProperties : []; - target.prototype.abbrevProperties = abbrevProperties ? abbrevProperties : []; - if (len) { - target.prototype.controlProperties = inputs; - for (var i = 0; i < len; i++) { - var option = inputs[i]; - if (abbrevProperties && option in abbrevProperties) { - option = abbrevProperties[option]; - option.forEach(function (prop) { - registerProp(util, prop, target, behaviorResource, descriptor); - }); - } else { - registerProp(util, option, target, behaviorResource, descriptor); - } - } - } - }; -} + function ejComboBox(element) { + _classCallCheck(this, ejComboBox); -function registerProp(util, option, target, behaviorResource, descriptor) { - var nameOrConfigOrTarget = { - name: util.getBindablePropertyName(option) - }; + var _this10 = _possibleConstructorReturn(this, _WidgetBase10.call(this)); - if (option === 'widget') { - nameOrConfigOrTarget.defaultBindingMode = _aureliaBinding.bindingMode.twoWay; + _this10.isEditor = true; + _this10.element = element; + return _this10; } - var prop = new _aureliaTemplating.BindableProperty(nameOrConfigOrTarget); - prop.registerWith(target, behaviorResource, descriptor); -} + return ejComboBox; +}(WidgetBase)) || _class17) || _class17) || _class17); +var ejCurrencyTextbox = exports.ejCurrencyTextbox = (_dec44 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'currency-textbox'), _dec45 = generateBindables('ejCurrencyTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec46 = (0, _aureliaDependencyInjection.inject)(Element), _dec44(_class18 = _dec45(_class18 = _dec46(_class18 = function (_WidgetBase11) { + _inherits(ejCurrencyTextbox, _WidgetBase11); -function delayed() { - return function (target, key, descriptor) { - var taskQueue = (_aureliaDependencyInjection.Container.instance || new _aureliaDependencyInjection.Container()).get(_aureliaTaskQueue.TaskQueue); - var ptr = descriptor.value; + function ejCurrencyTextbox(element) { + _classCallCheck(this, ejCurrencyTextbox); - descriptor.value = function () { - var _this10 = this; + var _this11 = _possibleConstructorReturn(this, _WidgetBase11.call(this)); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + _this11.isEditor = true; + _this11.element = element; + return _this11; + } - if (this.childPropertyName) { - taskQueue.queueTask(function () { - return ptr.apply(_this10, args); - }); - } else { - ptr.apply(this, args); - } - }; + return ejCurrencyTextbox; +}(WidgetBase)) || _class18) || _class18) || _class18); +var ejDatePicker = exports.ejDatePicker = (_dec47 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'date-picker'), _dec48 = generateBindables('ejDatePicker', ['allowEdit', 'allowDrillDown', 'blackoutDates', 'buttonText', 'cssClass', 'dateFormat', 'dayHeaderFormat', 'depthLevel', 'displayInline', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'fields', 'headerFormat', 'height', 'highlightSection', 'highlightWeekend', 'htmlAttributes', 'locale', 'maxDate', 'minDate', 'readOnly', 'showDisabledRange', 'showFooter', 'showOtherMonths', 'showPopupButton', 'showRoundedCorner', 'showTooltip', 'specialDates', 'startDay', 'startLevel', 'stepMonths', 'tooltipFormat', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'weekNumber', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec49 = (0, _aureliaDependencyInjection.inject)(Element), _dec47(_class19 = _dec48(_class19 = _dec49(_class19 = function (_WidgetBase12) { + _inherits(ejDatePicker, _WidgetBase12); - return descriptor; - }; -} + function ejDatePicker(element) { + _classCallCheck(this, ejDatePicker); -function getEventOption(element) { - var name = void 0; - var attr = void 0; - var attributes = element.attributes; - var option = {}; - var container = _aureliaDependencyInjection.Container.instance || new _aureliaDependencyInjection.Container(); - var util = container.get(Util); + var _this12 = _possibleConstructorReturn(this, _WidgetBase12.call(this)); - var _loop = function _loop(i, len) { - attr = attributes[i]; - name = attr.name; - if (!name.startsWith(constants.eventPrefix)) { - return 'continue'; - } - var actualEventName = name.split('.')[0]; - var eventName = util._unhyphenate(actualEventName.split(constants.eventPrefix)[1]); - option[eventName] = function (e) { - return fireEvent(element, actualEventName, e); - }; - }; + _this12.isEditor = true; + _this12.element = element; + return _this12; + } - for (var i = 0, len = attributes.length; i < len; i++) { - var _ret = _loop(i, len); + return ejDatePicker; +}(WidgetBase)) || _class19) || _class19) || _class19); +var ejDateRangePicker = exports.ejDateRangePicker = (_dec50 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'date-range-picker'), _dec51 = generateBindables('ejDateRangePicker', ['allowEdit', 'buttonText', 'cssClass', 'dateFormat', 'enableTimePicker', 'enabled', 'enablePersistence', 'endDate', 'height', 'locale', 'maxDate', 'minDate', 'ranges', 'separator', 'startDate', 'showPopupButton', 'showRoundedCorner', 'timeFormat', 'value', 'watermarkText', 'width'], ['value']), _dec52 = (0, _aureliaDependencyInjection.inject)(Element), _dec50(_class20 = _dec51(_class20 = _dec52(_class20 = function (_WidgetBase13) { + _inherits(ejDateRangePicker, _WidgetBase13); - if (_ret === 'continue') continue; + function ejDateRangePicker(element) { + _classCallCheck(this, ejDateRangePicker); + + var _this13 = _possibleConstructorReturn(this, _WidgetBase13.call(this)); + + _this13.isEditor = true; + _this13.element = element; + return _this13; } - return option; -} -function fireEvent(element, name) { - var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var event = new CustomEvent(name, { - detail: data, - bubbles: true - }); - element.dispatchEvent(event); - return event; -} + return ejDateRangePicker; +}(WidgetBase)) || _class20) || _class20) || _class20); +var ejDateTimePicker = exports.ejDateTimePicker = (_dec53 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'date-time-picker'), _dec54 = generateBindables('ejDateTimePicker', ['allowEdit', 'buttonText', 'blackoutDates', 'cssClass', 'dateTimeFormat', 'dayHeaderFormat', 'depthLevel', 'disableTimeRanges', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'headerFormat', 'height', 'htmlAttributes', 'interval', 'locale', 'maxDateTime', 'minDateTime', 'popupPosition', 'readOnly', 'showOtherMonths', 'showPopupButton', 'showRoundedCorner', 'specialDates', 'startDay', 'startLevel', 'stepMonths', 'timeDisplayFormat', 'timeDrillDown', 'timePopupWidth', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec55 = (0, _aureliaDependencyInjection.inject)(Element), _dec53(_class21 = _dec54(_class21 = _dec55(_class21 = function (_WidgetBase14) { + _inherits(ejDateTimePicker, _WidgetBase14); -var TemplateProcessor = exports.TemplateProcessor = (_dec41 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.TemplatingEngine, Util), _dec41(_class17 = function () { - function TemplateProcessor(context, templateEngine) { - _classCallCheck(this, TemplateProcessor); + function ejDateTimePicker(element) { + _classCallCheck(this, ejDateTimePicker); - this.context = context; - this.templatingEngine = templateEngine; - this.util = new Util(); + var _this14 = _possibleConstructorReturn(this, _WidgetBase14.call(this)); + + _this14.isEditor = true; + _this14.element = element; + return _this14; } - TemplateProcessor.prototype.initTemplate = function initTemplate() { - var proxy = this; - ej.template.render = function (self, selector, data, index) { - return proxy.renderStringTemplate(self, selector, data, index); - }; - }; + return ejDateTimePicker; +}(WidgetBase)) || _class21) || _class21) || _class21); +var ejDiagram = exports.ejDiagram = (_dec56 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'diagram'), _dec57 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec58 = generateBindables('ejDiagram', ['backgroundColor', 'backgroundImage', 'bridgeDirection', 'commandManager', 'connectors', 'connectorTemplate', 'constraints', 'contextMenu', 'dataSourceSettings', 'defaultSettings', 'drawType', 'enableAutoScroll', 'enableContextMenu', 'height', 'historyManager', 'labelRenderingMode', 'layout', 'locale', 'nodes', 'layers', 'nodeTemplate', 'pageSettings', 'scrollSettings', 'selectedItems', 'showTooltip', 'serializationSettings', 'rulerSettings', 'snapSettings', 'tool', 'tooltip', 'width', 'zoomFactor']), _dec59 = (0, _aureliaDependencyInjection.inject)(Element), _dec56(_class22 = _dec57(_class22 = _dec58(_class22 = _dec59(_class22 = function (_WidgetBase15) { + _inherits(ejDiagram, _WidgetBase15); - TemplateProcessor.prototype.initWidgetDependancies = function initWidgetDependancies() { - if (this.context.widget.aureliaTemplate) { - this.compileTemplate(this.context.widget.element); - } - var proxy = this.context; - var element = this.context.widget.element; - element.on(this.context.widget.pluginName + 'refresh', function () { - if (proxy.widget.aureliaTemplate) { - proxy.templateProcessor.compileTemplate(element); - } - }); - }; + function ejDiagram(element) { + _classCallCheck(this, ejDiagram); - TemplateProcessor.prototype.renderStringTemplate = function renderStringTemplate(self, selector, data, index) { - var templateObject = self.aureliaTemplate; - if (!templateObject || !templateObject[selector]) { - templateObject = templateObject || {}; - templateObject[selector] = { key: ej.getGuid('aurtmpl'), itemData: [], views: [] }; - self.aureliaTemplate = templateObject; - } - var scope = templateObject[selector]; - if (this.util.hasValue(index)) { - scope.itemData[index] = data; - } else { - scope.itemData = [data]; - } - var actElement = $(selector).html(); - var tempElement = "
" + actElement + '
'; - return tempElement; - }; + var _this15 = _possibleConstructorReturn(this, _WidgetBase15.call(this)); - TemplateProcessor.prototype.compileTemplate = function compileTemplate(element) { - var templates = $(element).find('.ej-aurelia-template'); - var templateObject = this.context.widget.aureliaTemplate; - for (var template in templateObject) { - var tmplElement = templates.filter('.' + templateObject[template].key); - if (tmplElement.length) { - for (var i = 0; i < tmplElement.length; i++) { - var dataIndex = parseInt($(tmplElement[i]).attr('ej-prop')); - var view = this.templatingEngine.enhance(tmplElement[i]); - view.bind(templateObject[template].itemData[dataIndex], this.context.parentCtx); - templateObject[template].views[dataIndex] = view; - } - } else { - this.unbindViews(templateObject[template]); - delete templateObject[template]; - } - } - }; + _this15.element = element; + return _this15; + } - TemplateProcessor.prototype.clearTempalte = function clearTempalte() { - var templateObject = this.context.widget.aureliaTemplate; - if (templateObject && Object.keys(templateObject).length) { - for (var t in templateObject) { - this.unbindViews(templateObject[t]); - delete templateObject[t]; - } - } - }; + return ejDiagram; +}(WidgetBase)) || _class22) || _class22) || _class22) || _class22); +var ejDialog = exports.ejDialog = (_dec60 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'dialog'), _dec61 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec62 = generateBindables('ejDialog', ['actionButtons', 'ajaxSettings', 'allowDraggable', 'allowKeyboardNavigation', 'animation', 'backgroundScroll', 'closeOnEscape', 'containment', 'contentType', 'contentUrl', 'cssClass', 'enableAnimation', 'enabled', 'enableModal', 'enablePersistence', 'enableResize', 'enableRTL', 'faviconCSS', 'height', 'htmlAttributes', 'isResponsive', 'locale', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'position', 'showHeader', 'showOnInit', 'showRoundedCorner', 'target', 'title', 'tooltip', 'width', 'zIndex', 'showFooter', 'footerTemplateId'], [], { 'enableRTL': ['enableRtl'] }), _dec63 = (0, _aureliaDependencyInjection.inject)(Element), _dec60(_class23 = _dec61(_class23 = _dec62(_class23 = _dec63(_class23 = function (_WidgetBase16) { + _inherits(ejDialog, _WidgetBase16); - TemplateProcessor.prototype.unbindViews = function unbindViews(obj) { - for (var i = 0; i < obj.views.length; i++) { - var view = obj.views[i]; - view.unbind(); - } - }; + function ejDialog(element) { + _classCallCheck(this, ejDialog); - return TemplateProcessor; -}()) || _class17); -var Template = exports.Template = (_dec42 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'template'), _dec43 = (0, _aureliaTemplating.noView)(), _dec44 = (0, _aureliaTemplating.processContent)(function (compiler, resources, element, instruction) { - var html = element.innerHTML; - if (html !== '') { - instruction.template = html; + var _this16 = _possibleConstructorReturn(this, _WidgetBase16.call(this)); + + _this16.element = element; + return _this16; } - element.innerHTML = ''; -}), _dec45 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.TargetInstruction), _dec42(_class18 = _dec43(_class18 = _dec44(_class18 = _dec45(_class18 = (_class19 = function Template(target) { - _classCallCheck(this, Template); - _initDefineProp(this, 'template', _descriptor3, this); + return ejDialog; +}(WidgetBase)) || _class23) || _class23) || _class23) || _class23); +var ejDigitalGauge = exports.ejDigitalGauge = (_dec64 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'digital-gauge'), _dec65 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec66 = generateBindables('ejDigitalGauge', ['exportSettings', 'frame', 'height', 'isResponsive', 'enableResize', 'items', 'matrixSegmentData', 'segmentData', 'themes', 'value', 'width'], ['value']), _dec67 = (0, _aureliaDependencyInjection.inject)(Element), _dec64(_class24 = _dec65(_class24 = _dec66(_class24 = _dec67(_class24 = function (_WidgetBase17) { + _inherits(ejDigitalGauge, _WidgetBase17); - this.template = target.elementInstruction.template; -}, (_descriptor3 = _applyDecoratedDescriptor(_class19.prototype, 'template', [_aureliaTemplating.bindable], { - enumerable: true, - initializer: null -})), _class19)) || _class18) || _class18) || _class18) || _class18); + function ejDigitalGauge(element) { + _classCallCheck(this, ejDigitalGauge); -var Util = exports.Util = function () { - function Util() { - _classCallCheck(this, Util); - } + var _this17 = _possibleConstructorReturn(this, _WidgetBase17.call(this)); - Util.prototype.getBindablePropertyName = function getBindablePropertyName(propertyName) { - var name = '' + constants.bindablePrefix + propertyName; - return this._unhyphenate(name); - }; + _this17.element = element; + return _this17; + } - Util.prototype._unhyphenate = function _unhyphenate(name) { - return name.replace(/-([a-z])/g, function (g) { - return g[1].toUpperCase(); - }); - }; + return ejDigitalGauge; +}(WidgetBase)) || _class24) || _class24) || _class24) || _class24); +var ejDropDownList = exports.ejDropDownList = (_dec68 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'drop-down-list'), _dec69 = generateBindables('ejDropDownList', ['allowVirtualScrolling', 'cascadeTo', 'caseSensitiveSearch', 'cssClass', 'dataSource', 'delimiterChar', 'enableAnimation', 'enabled', 'enableIncrementalSearch', 'enableFilterSearch', 'enableServerFiltering', 'enablePersistence', 'enablePopupResize', 'enableRTL', 'enableSorting', 'loadOnDemand', 'fields', 'filterType', 'headerTemplate', 'height', 'htmlAttributes', 'itemsCount', 'locale', 'maxPopupHeight', 'minPopupHeight', 'maxPopupWidth', 'minPopupWidth', 'multiSelectMode', 'popupHeight', 'popupWidth', 'query', 'readOnly', 'selectedIndex', 'selectedIndices', 'showCheckbox', 'showPopupOnLoad', 'showRoundedCorner', 'sortOrder', 'targetID', 'template', 'text', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width', 'virtualScrollMode'], ['value'], { 'enableRTL': ['enableRtl'], 'targetID': ['targetId'] }), _dec70 = (0, _aureliaDependencyInjection.inject)(Element), _dec68(_class25 = _dec69(_class25 = _dec70(_class25 = function (_WidgetBase18) { + _inherits(ejDropDownList, _WidgetBase18); - Util.prototype.getOptions = function getOptions(model, properties) { - var _this11 = this; + function ejDropDownList(element) { + _classCallCheck(this, ejDropDownList); - var bindableproperites = {}; - var value = void 0; - for (var _iterator = properties, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; + var _this18 = _possibleConstructorReturn(this, _WidgetBase18.call(this)); - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var prop = _ref; - - if (model.abbrevProperties && prop in model.abbrevProperties && model.abbrevProperties.hasOwnProperty(prop)) { - model.abbrevProperties[prop].some(function (property) { - value = model[_this11.getBindablePropertyName(property)]; - return _this11.hasValue(value); - }); - } else { - value = model[this.getBindablePropertyName(prop)]; - } - if (this.hasValue(value)) { - if (typeof value === 'string') { - value = this.processData(value); - } - bindableproperites[prop] = value; - } - } - return bindableproperites; - }; - - Util.prototype.getControlPropertyName = function getControlPropertyName(options, propertyName) { - var _this12 = this; - - var property = void 0; - - var _loop2 = function _loop2() { - if (_isArray2) { - if (_i2 >= _iterator2.length) return 'break'; - _ref2 = _iterator2[_i2++]; - } else { - _i2 = _iterator2.next(); - if (_i2.done) return 'break'; - _ref2 = _i2.value; - } - - var prop = _ref2; - - if (options.abbrevProperties && prop in options.abbrevProperties && options.abbrevProperties.hasOwnProperty(prop)) { - options.abbrevProperties[prop].some(function (props) { - property = propertyName === _this12.getBindablePropertyName(props) ? prop : undefined; - return property; - }); - if (property) return 'break'; - } else if (propertyName === _this12.getBindablePropertyName(prop)) { - property = prop; - return 'break'; - } - }; - - for (var _iterator2 = options.controlProperties, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { - var _ref2; - - var _ret2 = _loop2(); - - if (_ret2 === 'break') break; - } - return property; - }; - - Util.prototype.hasValue = function hasValue(prop) { - return typeof prop !== 'undefined' && prop !== null; - }; - - Util.prototype.processData = function processData(value) { - if (value === 'true') { - return true; - } else if (value === 'false') { - return false; - } else if (+value + '' === value) { - return +value; - } - return value; - }; - - return Util; -}(); - -var firstValue = {}; -var WidgetBase = exports.WidgetBase = (_dec46 = delayed(), (_class21 = function () { - function WidgetBase() { - _classCallCheck(this, WidgetBase); - } - - WidgetBase.prototype.createWidget = function createWidget(option) { - var _this13 = this; - - this.allOption = this.getWidgetOptions(option.element); - if (!this.ejOptions && !this.isEditor) { - this.createTwoWays(); - } - this.eWidget = this.widget = jQuery($(option.element))[this.controlName](this.allOption).data(this.controlName); - if (this.templateProcessor) { - this.templateProcessor.initWidgetDependancies(); - } - if (this.isEditor) { - this.widget.model._change = function (evt) { - if ('eValue' in _this13) { - _this13[_this13.util.getBindablePropertyName('value')] = evt.value; - } - }; - } - }; - - WidgetBase.prototype.bind = function bind(ctx, overrideCtx) { - this.parentCtx = overrideCtx; - if (this.widget && this.widget.element && this.isEditor) { - this.widget.option('value', this.eValue === undefined ? null : this.eValue); - } - }; - - WidgetBase.prototype.createTwoWays = function createTwoWays() { - var model = this.allOption; - var twoWays = this.twoWays; - var len = twoWays.length; - for (var i = 0; i < len; i++) { - var _prop = twoWays[i]; - ej.createObject(_prop, this.addTwoways(_prop), model); - } - }; - - WidgetBase.prototype.addTwoways = function addTwoways(prop) { - var model = this; - var value = firstValue; - return function (newVal, isApp) { - if (value === firstValue) { - var viewModelProp = model.util.getBindablePropertyName(prop); - value = model[viewModelProp]; - if (value === undefined) { - value = this.defaults[prop]; - } - return value; - } - if (newVal === undefined) { - return value; - } - if (value === newVal) { - return null; - } - value = newVal; - if (!isApp && model.util.hasValue(newVal)) { - var _viewModelProp = model.util.getBindablePropertyName(prop); - model[_viewModelProp] = newVal; - } - return null; - }; - }; - - WidgetBase.prototype.getWidgetOptions = function getWidgetOptions(element) { - var propOptions = void 0; - if (this.ejOptions) { - propOptions = this.ejOptions; - } else { - propOptions = this.util.getOptions(this, this.controlProperties); - } - var eventOption = getEventOption(element); - if (this.hasChildProperty) { - this.getChildProperties(propOptions); - } - return Object.assign({}, propOptions, eventOption); - }; - - WidgetBase.prototype.getChildProperties = function getChildProperties(options) { - var PropertyName = this.childPropertyName; - var childCollection = this[PropertyName]; - var len = childCollection.length; - if (len) { - options[PropertyName] = []; - var childProperties = childCollection[0].controlProperties; - for (var i = 0; i < len; i++) { - options[PropertyName].push(this.util.getOptions(childCollection[i], childProperties)); - } - } - }; - - WidgetBase.prototype.attached = function attached() { - if (this.templateProcessor) { - this[this.childPropertyName].forEach(function (template) { - return template.setTemplates(); - }); - } - this.util = new Util(); - this.createWidget({ element: this.element }); - }; - - WidgetBase.prototype.unsubscribe = function unsubscribe() { - if (this.subscription) { - this.subscription.dispose(); - this.subscription = null; - } - }; - - WidgetBase.prototype.unbind = function unbind() { - this.unsubscribe(); - }; - - WidgetBase.prototype.propertyChanged = function propertyChanged(property, newValue, oldValue) { - var _this14 = this; - - if (this.widget) { - var modelValue = void 0; - var _prop2 = this.util.getControlPropertyName(this, property); - this.unsubscribe(); - if (this.arrayObserver) { - this.arrayObserver.forEach(function (arrayProp) { - if (_this14[arrayProp] instanceof Array) { - _this14.subscription = _this14.bindingInstance.collectionObserver(_this14[arrayProp]).subscribe(function (e) { - _this14.update(e); - }); - } - }); - } - if (_prop2) { - if (_prop2 === 'widget') { - return; - } else if (_prop2 !== 'options') { - modelValue = this.widget.model[_prop2]; - var isTwoway = typeof modelValue === 'function'; - if (isTwoway) { - modelValue = modelValue(); - } - if (modelValue !== newValue) { - if (isTwoway) { - newValue = this.addTwoways(_prop2); - } - this.widget.option(_prop2, newValue); - } - } else { - this.widget.option(newValue); - } - } - } - }; - - WidgetBase.prototype.update = function update(e) { - var _this15 = this; - - var modelValue = void 0; - var newVal = void 0; - if (e.length) { - this.arrayObserver.forEach(function (arrayProp) { - if (_this15[arrayProp] instanceof Array) { - var _prop3 = _this15.util.getControlPropertyName(_this15, arrayProp); - modelValue = _this15.widget.model[_prop3]; - if (typeof modelValue === 'function') { - modelValue = modelValue(); - newVal = modelValue; - newVal = _this15.addTwoways(_prop3); - _this15.widget.option(_prop3, newVal); - } else { - _this15.widget.option(_prop3, modelValue); - } - } - }); - } - }; - - WidgetBase.prototype.detached = function detached() { - if (this.templateProcessor) { - this.templateProcessor.clearTempalte(); - } - if (this.widget) { - this.widget.destroy(); - } - }; - - return WidgetBase; -}(), (_applyDecoratedDescriptor(_class21.prototype, 'attached', [_dec46], Object.getOwnPropertyDescriptor(_class21.prototype, 'attached'), _class21.prototype)), _class21)); -var ejComboBox = exports.ejComboBox = (_dec47 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'combo-box'), _dec48 = generateBindables('ejComboBox', ['actionFailureTemplate', 'allowCustom', 'allowFiltering', 'autofill', 'cssClass', 'dataSource', 'enableRtl', 'enabled', 'fields', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'htmlAttributes', 'index', 'itemTemplate', 'locale', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'showClearButton', 'sortOrder', 'text', 'value', 'width'], ['value']), _dec49 = (0, _aureliaDependencyInjection.inject)(Element), _dec47(_class22 = _dec48(_class22 = _dec49(_class22 = function (_WidgetBase10) { - _inherits(ejComboBox, _WidgetBase10); - - function ejComboBox(element) { - _classCallCheck(this, ejComboBox); - - var _this16 = _possibleConstructorReturn(this, _WidgetBase10.call(this)); - - _this16.isEditor = true; - _this16.element = element; - return _this16; - } - - return ejComboBox; -}(WidgetBase)) || _class22) || _class22) || _class22); -var ejCurrencyTextbox = exports.ejCurrencyTextbox = (_dec50 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'currency-textbox'), _dec51 = generateBindables('ejCurrencyTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec52 = (0, _aureliaDependencyInjection.inject)(Element), _dec50(_class23 = _dec51(_class23 = _dec52(_class23 = function (_WidgetBase11) { - _inherits(ejCurrencyTextbox, _WidgetBase11); - - function ejCurrencyTextbox(element) { - _classCallCheck(this, ejCurrencyTextbox); - - var _this17 = _possibleConstructorReturn(this, _WidgetBase11.call(this)); - - _this17.isEditor = true; - _this17.element = element; - return _this17; - } - - return ejCurrencyTextbox; -}(WidgetBase)) || _class23) || _class23) || _class23); -var ejDatePicker = exports.ejDatePicker = (_dec53 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'date-picker'), _dec54 = generateBindables('ejDatePicker', ['allowEdit', 'allowDrillDown', 'blackoutDates', 'buttonText', 'cssClass', 'dateFormat', 'dayHeaderFormat', 'depthLevel', 'displayInline', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'fields', 'headerFormat', 'height', 'highlightSection', 'highlightWeekend', 'htmlAttributes', 'locale', 'maxDate', 'minDate', 'readOnly', 'showDisabledRange', 'showFooter', 'showOtherMonths', 'showPopupButton', 'showRoundedCorner', 'showTooltip', 'specialDates', 'startDay', 'startLevel', 'stepMonths', 'tooltipFormat', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'weekNumber', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec55 = (0, _aureliaDependencyInjection.inject)(Element), _dec53(_class24 = _dec54(_class24 = _dec55(_class24 = function (_WidgetBase12) { - _inherits(ejDatePicker, _WidgetBase12); - - function ejDatePicker(element) { - _classCallCheck(this, ejDatePicker); - - var _this18 = _possibleConstructorReturn(this, _WidgetBase12.call(this)); - - _this18.isEditor = true; - _this18.element = element; - return _this18; - } - - return ejDatePicker; -}(WidgetBase)) || _class24) || _class24) || _class24); -var ejDateRangePicker = exports.ejDateRangePicker = (_dec56 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'date-range-picker'), _dec57 = generateBindables('ejDateRangePicker', ['allowEdit', 'buttonText', 'cssClass', 'dateFormat', 'enableTimePicker', 'enabled', 'enablePersistence', 'endDate', 'height', 'locale', 'maxDate', 'minDate', 'ranges', 'separator', 'startDate', 'showPopupButton', 'showRoundedCorner', 'timeFormat', 'value', 'watermarkText', 'width'], ['value']), _dec58 = (0, _aureliaDependencyInjection.inject)(Element), _dec56(_class25 = _dec57(_class25 = _dec58(_class25 = function (_WidgetBase13) { - _inherits(ejDateRangePicker, _WidgetBase13); - - function ejDateRangePicker(element) { - _classCallCheck(this, ejDateRangePicker); - - var _this19 = _possibleConstructorReturn(this, _WidgetBase13.call(this)); - - _this19.isEditor = true; - _this19.element = element; - return _this19; - } - - return ejDateRangePicker; -}(WidgetBase)) || _class25) || _class25) || _class25); -var ejDateTimePicker = exports.ejDateTimePicker = (_dec59 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'date-time-picker'), _dec60 = generateBindables('ejDateTimePicker', ['allowEdit', 'buttonText', 'blackoutDates', 'cssClass', 'dateTimeFormat', 'dayHeaderFormat', 'depthLevel', 'disableTimeRanges', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'headerFormat', 'height', 'htmlAttributes', 'interval', 'locale', 'maxDateTime', 'minDateTime', 'popupPosition', 'readOnly', 'showOtherMonths', 'showPopupButton', 'showRoundedCorner', 'specialDates', 'startDay', 'startLevel', 'stepMonths', 'timeDisplayFormat', 'timeDrillDown', 'timePopupWidth', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec61 = (0, _aureliaDependencyInjection.inject)(Element), _dec59(_class26 = _dec60(_class26 = _dec61(_class26 = function (_WidgetBase14) { - _inherits(ejDateTimePicker, _WidgetBase14); - - function ejDateTimePicker(element) { - _classCallCheck(this, ejDateTimePicker); - - var _this20 = _possibleConstructorReturn(this, _WidgetBase14.call(this)); - - _this20.isEditor = true; - _this20.element = element; - return _this20; - } - - return ejDateTimePicker; -}(WidgetBase)) || _class26) || _class26) || _class26); -var ejDiagram = exports.ejDiagram = (_dec62 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'diagram'), _dec63 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec64 = generateBindables('ejDiagram', ['backgroundColor', 'backgroundImage', 'bridgeDirection', 'commandManager', 'connectors', 'connectorTemplate', 'constraints', 'contextMenu', 'dataSourceSettings', 'defaultSettings', 'drawType', 'enableAutoScroll', 'enableContextMenu', 'height', 'historyManager', 'labelRenderingMode', 'layout', 'locale', 'nodes', 'layers', 'nodeTemplate', 'pageSettings', 'scrollSettings', 'selectedItems', 'showTooltip', 'serializationSettings', 'rulerSettings', 'snapSettings', 'tool', 'tooltip', 'width', 'zoomFactor']), _dec65 = (0, _aureliaDependencyInjection.inject)(Element), _dec62(_class27 = _dec63(_class27 = _dec64(_class27 = _dec65(_class27 = function (_WidgetBase15) { - _inherits(ejDiagram, _WidgetBase15); - - function ejDiagram(element) { - _classCallCheck(this, ejDiagram); - - var _this21 = _possibleConstructorReturn(this, _WidgetBase15.call(this)); - - _this21.element = element; - return _this21; - } - - return ejDiagram; -}(WidgetBase)) || _class27) || _class27) || _class27) || _class27); -var ejDialog = exports.ejDialog = (_dec66 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'dialog'), _dec67 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec68 = generateBindables('ejDialog', ['actionButtons', 'ajaxSettings', 'allowDraggable', 'allowKeyboardNavigation', 'animation', 'backgroundScroll', 'closeOnEscape', 'containment', 'contentType', 'contentUrl', 'cssClass', 'enableAnimation', 'enabled', 'enableModal', 'enablePersistence', 'enableResize', 'enableRTL', 'faviconCSS', 'height', 'htmlAttributes', 'isResponsive', 'locale', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'position', 'showHeader', 'showOnInit', 'showRoundedCorner', 'target', 'title', 'tooltip', 'width', 'zIndex', 'showFooter', 'footerTemplateId'], [], { 'enableRTL': ['enableRtl'] }), _dec69 = (0, _aureliaDependencyInjection.inject)(Element), _dec66(_class28 = _dec67(_class28 = _dec68(_class28 = _dec69(_class28 = function (_WidgetBase16) { - _inherits(ejDialog, _WidgetBase16); - - function ejDialog(element) { - _classCallCheck(this, ejDialog); - - var _this22 = _possibleConstructorReturn(this, _WidgetBase16.call(this)); - - _this22.element = element; - return _this22; - } - - return ejDialog; -}(WidgetBase)) || _class28) || _class28) || _class28) || _class28); -var ejDigitalGauge = exports.ejDigitalGauge = (_dec70 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'digital-gauge'), _dec71 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec72 = generateBindables('ejDigitalGauge', ['exportSettings', 'frame', 'height', 'isResponsive', 'enableResize', 'items', 'matrixSegmentData', 'segmentData', 'themes', 'value', 'width'], ['value']), _dec73 = (0, _aureliaDependencyInjection.inject)(Element), _dec70(_class29 = _dec71(_class29 = _dec72(_class29 = _dec73(_class29 = function (_WidgetBase17) { - _inherits(ejDigitalGauge, _WidgetBase17); - - function ejDigitalGauge(element) { - _classCallCheck(this, ejDigitalGauge); - - var _this23 = _possibleConstructorReturn(this, _WidgetBase17.call(this)); - - _this23.element = element; - return _this23; - } - - return ejDigitalGauge; -}(WidgetBase)) || _class29) || _class29) || _class29) || _class29); -var ejDropDownList = exports.ejDropDownList = (_dec74 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'drop-down-list'), _dec75 = generateBindables('ejDropDownList', ['allowVirtualScrolling', 'cascadeTo', 'caseSensitiveSearch', 'cssClass', 'dataSource', 'delimiterChar', 'enableAnimation', 'enabled', 'enableIncrementalSearch', 'enableFilterSearch', 'enableServerFiltering', 'enablePersistence', 'enablePopupResize', 'enableRTL', 'enableSorting', 'loadOnDemand', 'fields', 'filterType', 'headerTemplate', 'height', 'htmlAttributes', 'itemsCount', 'locale', 'maxPopupHeight', 'minPopupHeight', 'maxPopupWidth', 'minPopupWidth', 'multiSelectMode', 'popupHeight', 'popupWidth', 'query', 'readOnly', 'selectedIndex', 'selectedIndices', 'showCheckbox', 'showPopupOnLoad', 'showRoundedCorner', 'sortOrder', 'targetID', 'template', 'text', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width', 'virtualScrollMode'], ['value'], { 'enableRTL': ['enableRtl'], 'targetID': ['targetId'] }), _dec76 = (0, _aureliaDependencyInjection.inject)(Element), _dec74(_class30 = _dec75(_class30 = _dec76(_class30 = function (_WidgetBase18) { - _inherits(ejDropDownList, _WidgetBase18); - - function ejDropDownList(element) { - _classCallCheck(this, ejDropDownList); - - var _this24 = _possibleConstructorReturn(this, _WidgetBase18.call(this)); - - _this24.isEditor = true; - _this24.element = element; - return _this24; + _this18.isEditor = true; + _this18.element = element; + return _this18; } return ejDropDownList; -}(WidgetBase)) || _class30) || _class30) || _class30); -var ejFileExplorer = exports.ejFileExplorer = (_dec77 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'file-explorer'), _dec78 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec79 = generateBindables('ejFileExplorer', ['ajaxAction', 'ajaxDataType', 'ajaxSettings', 'allowDragAndDrop', 'allowKeyboardNavigation', 'allowMultiSelection', 'contextMenuSettings', 'cssClass', 'enablePersistence', 'enableResize', 'enableRTL', 'enableThumbnailCompress', 'fileTypes', 'filterSettings', 'gridSettings', 'height', 'isResponsive', 'layout', 'locale', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'path', 'rootFolderName', 'selectedFolder', 'selectedItems', 'showCheckbox', 'showContextMenu', 'showFooter', 'showRoundedCorner', 'showThumbnail', 'showToolbar', 'showNavigationPane', 'tools', 'toolsList', 'uploadSettings', 'virtualItemCount', 'width'], [], { 'enableRTL': ['enableRtl'] }), _dec80 = (0, _aureliaDependencyInjection.inject)(Element), _dec77(_class31 = _dec78(_class31 = _dec79(_class31 = _dec80(_class31 = function (_WidgetBase19) { +}(WidgetBase)) || _class25) || _class25) || _class25); +var ejFileExplorer = exports.ejFileExplorer = (_dec71 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'file-explorer'), _dec72 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec73 = generateBindables('ejFileExplorer', ['ajaxAction', 'ajaxDataType', 'ajaxSettings', 'allowDragAndDrop', 'allowKeyboardNavigation', 'allowMultiSelection', 'contextMenuSettings', 'cssClass', 'enablePersistence', 'enableResize', 'enableRTL', 'enableThumbnailCompress', 'fileTypes', 'filterSettings', 'gridSettings', 'height', 'isResponsive', 'layout', 'locale', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'path', 'rootFolderName', 'selectedFolder', 'selectedItems', 'showCheckbox', 'showContextMenu', 'showFooter', 'showRoundedCorner', 'showThumbnail', 'showToolbar', 'showNavigationPane', 'tools', 'toolsList', 'uploadSettings', 'virtualItemCount', 'width'], [], { 'enableRTL': ['enableRtl'] }), _dec74 = (0, _aureliaDependencyInjection.inject)(Element), _dec71(_class26 = _dec72(_class26 = _dec73(_class26 = _dec74(_class26 = function (_WidgetBase19) { _inherits(ejFileExplorer, _WidgetBase19); function ejFileExplorer(element) { _classCallCheck(this, ejFileExplorer); - var _this25 = _possibleConstructorReturn(this, _WidgetBase19.call(this)); + var _this19 = _possibleConstructorReturn(this, _WidgetBase19.call(this)); - _this25.element = element; - return _this25; + _this19.element = element; + return _this19; } return ejFileExplorer; -}(WidgetBase)) || _class31) || _class31) || _class31) || _class31); -var ejGantt = exports.ejGantt = (_dec81 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'gantt'), _dec82 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec83 = generateBindables('ejGantt', ['addDialogFields', 'allowColumnResize', 'allowDragAndDrop', 'allowGanttChartEditing', 'allowKeyboardNavigation', 'allowMultiSorting', 'allowMultipleExporting', 'allowSelection', 'allowSorting', 'allowUnscheduledTask', 'baselineColor', 'baselineEndDateMapping', 'baselineStartDateMapping', 'cellTooltipTemplate', 'childMapping', 'columnDialogFields', 'connectorLineBackground', 'connectorlineWidth', 'cssClass', 'dataSource', 'dateFormat', 'dayWorkingTime', 'dragTooltip', 'durationMapping', 'durationUnit', 'durationUnitMapping', 'editDialogFields', 'editSettings', 'enableAltRow', 'enableCollapseAll', 'enableContextMenu', 'enablePredecessorValidation', 'enableProgressBarResizing', 'enableResize', 'enableSerialNumber', 'enableTaskbarDragTooltip', 'enableTaskbarTooltip', 'enableVirtualization', 'enableWBS', 'enableWBSPredecessor', 'endDateMapping', 'expandStateMapping', 'filterSettings', 'groupCollection', 'groupIdMapping', 'groupNameMapping', 'highlightNonWorkingTime', 'highlightWeekends', 'holidays', 'includeWeekend', 'isResponsive', 'leftTaskLabelMapping', 'leftTaskLabelTemplate', 'locale', 'milestoneMapping', 'milestoneTemplate', 'nonWorkingBackground', 'notesMapping', 'parentProgressbarBackground', 'parentTaskIdMapping', 'parentTaskbarBackground', 'parentTaskbarTemplate', 'predecessorMapping', 'predecessorTooltipTemplate', 'progressMapping', 'progressbarBackground', 'progressbarHeight', 'progressbarTooltipTemplate', 'progressbarTooltipTemplateId', 'query', 'readOnly', 'renderBaseline', 'resourceCollectionMapping', 'resourceIdMapping', 'resourceInfoMapping', 'resourceNameMapping', 'resourceUnitMapping', 'resources', 'rightTaskLabelMapping', 'rightTaskLabelTemplate', 'roundOffDayworkingTime', 'rowHeight', 'scheduleEndDate', 'scheduleHeaderSettings', 'scheduleStartDate', 'selectedCellIndexes', 'selectedRowIndex', 'selectionType', 'selectionMode', 'showColumnChooser', 'showColumnOptions', 'showGridCellTooltip', 'showGridExpandCellTooltip', 'showProgressStatus', 'showResourceNames', 'showTaskNames', 'sizeSettings', 'sortSettings', 'splitterPosition', 'splitterSettings', 'startDateMapping', 'stripLines', 'taskCollectionMapping', 'taskIdMapping', 'taskNameMapping', 'taskSchedulingMode', 'taskSchedulingModeMapping', 'taskType', 'taskbarBackground', 'taskbarEditingTooltipTemplate', 'taskbarEditingTooltipTemplateId', 'taskbarHeight', 'taskbarTemplate', 'taskbarTooltipTemplate', 'taskbarTooltipTemplateId', 'toolbarSettings', 'treeColumnIndex', 'validateManualTasksOnLinking', 'viewType', 'weekendBackground', 'workMapping', 'workUnit', 'workWeek', 'workingTimeScale'], ['dataSource', 'selectedRowIndex', 'selectedCellIndexes'], {}, ['dataSource']), _dec84 = (0, _aureliaDependencyInjection.inject)(Element), _dec81(_class32 = _dec82(_class32 = _dec83(_class32 = _dec84(_class32 = function (_WidgetBase20) { +}(WidgetBase)) || _class26) || _class26) || _class26) || _class26); +var ejGantt = exports.ejGantt = (_dec75 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'gantt'), _dec76 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec77 = generateBindables('ejGantt', ['addDialogFields', 'allowColumnResize', 'allowDragAndDrop', 'allowGanttChartEditing', 'allowKeyboardNavigation', 'allowMultiSorting', 'allowMultipleExporting', 'allowSelection', 'allowSorting', 'allowUnscheduledTask', 'baselineColor', 'baselineEndDateMapping', 'baselineStartDateMapping', 'cellTooltipTemplate', 'childMapping', 'columnDialogFields', 'connectorLineBackground', 'connectorlineWidth', 'cssClass', 'dataSource', 'dateFormat', 'dayWorkingTime', 'dragTooltip', 'durationMapping', 'durationUnit', 'durationUnitMapping', 'editDialogFields', 'editSettings', 'enableAltRow', 'enableCollapseAll', 'enableContextMenu', 'enablePredecessorValidation', 'enableProgressBarResizing', 'enableResize', 'enableSerialNumber', 'enableTaskbarDragTooltip', 'enableTaskbarTooltip', 'enableVirtualization', 'enableWBS', 'enableWBSPredecessor', 'endDateMapping', 'expandStateMapping', 'filterSettings', 'groupCollection', 'groupIdMapping', 'groupNameMapping', 'highlightNonWorkingTime', 'highlightWeekends', 'holidays', 'includeWeekend', 'isResponsive', 'leftTaskLabelMapping', 'leftTaskLabelTemplate', 'locale', 'milestoneMapping', 'milestoneTemplate', 'nonWorkingBackground', 'notesMapping', 'parentProgressbarBackground', 'parentTaskIdMapping', 'parentTaskbarBackground', 'parentTaskbarTemplate', 'predecessorMapping', 'predecessorTooltipTemplate', 'progressMapping', 'progressbarBackground', 'progressbarHeight', 'progressbarTooltipTemplate', 'progressbarTooltipTemplateId', 'query', 'readOnly', 'renderBaseline', 'resourceCollectionMapping', 'resourceIdMapping', 'resourceInfoMapping', 'resourceNameMapping', 'resourceUnitMapping', 'resources', 'rightTaskLabelMapping', 'rightTaskLabelTemplate', 'roundOffDayworkingTime', 'rowHeight', 'scheduleEndDate', 'scheduleHeaderSettings', 'scheduleStartDate', 'selectedCellIndexes', 'selectedRowIndex', 'selectionType', 'selectionMode', 'showColumnChooser', 'showColumnOptions', 'showGridCellTooltip', 'showGridExpandCellTooltip', 'showProgressStatus', 'showResourceNames', 'showTaskNames', 'sizeSettings', 'sortSettings', 'splitterPosition', 'splitterSettings', 'startDateMapping', 'stripLines', 'taskCollectionMapping', 'taskIdMapping', 'taskNameMapping', 'taskSchedulingMode', 'taskSchedulingModeMapping', 'taskType', 'taskbarBackground', 'taskbarEditingTooltipTemplate', 'taskbarEditingTooltipTemplateId', 'taskbarHeight', 'taskbarTemplate', 'taskbarTooltipTemplate', 'taskbarTooltipTemplateId', 'toolbarSettings', 'treeColumnIndex', 'validateManualTasksOnLinking', 'viewType', 'weekendBackground', 'workMapping', 'workUnit', 'workWeek', 'workingTimeScale'], ['dataSource', 'selectedRowIndex', 'selectedCellIndexes'], {}, ['dataSource']), _dec78 = (0, _aureliaDependencyInjection.inject)(Element), _dec75(_class27 = _dec76(_class27 = _dec77(_class27 = _dec78(_class27 = function (_WidgetBase20) { _inherits(ejGantt, _WidgetBase20); function ejGantt(element) { _classCallCheck(this, ejGantt); - var _this26 = _possibleConstructorReturn(this, _WidgetBase20.call(this)); + var _this20 = _possibleConstructorReturn(this, _WidgetBase20.call(this)); - _this26.element = element; - return _this26; + _this20.element = element; + return _this20; } return ejGantt; -}(WidgetBase)) || _class32) || _class32) || _class32) || _class32); -var Column = exports.Column = (_dec85 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec86 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'column'), _dec87 = generateBindables('columns', ['clipMode', 'allowEditing', 'allowFiltering', 'allowGrouping', 'allowSorting', 'allowResizing', 'commands', 'commands', 'commands', 'cssClass', 'customAttributes', 'dataSource', 'defaultValue', 'disableHtmlEncode', 'displayAsCheckbox', 'editParams', 'editTemplate', 'editType', 'enableGroupByFormat', 'field', 'filterBarTemplate', 'filterType', 'foreignKeyField', 'foreignKeyValue', 'format', 'headerTemplateID', 'headerText', 'headerTextAlign', 'headerTooltip', 'isFrozen', 'isIdentity', 'isPrimaryKey', 'priority', 'showInColumnChooser', 'template', 'textAlign', 'tooltip', 'type', 'validationRules', 'visible', 'width'], [], { 'headerTemplateID': ['headerTemplateId', 'headerTemplateID'] }), _dec88 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'template'), _dec85(_class33 = _dec86(_class33 = _dec87(_class33 = (_class34 = function () { +}(WidgetBase)) || _class27) || _class27) || _class27) || _class27); +var Column = exports.Column = (_dec79 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec80 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'column'), _dec81 = generateBindables('columns', ['clipMode', 'allowEditing', 'allowFiltering', 'allowGrouping', 'allowSorting', 'allowResizing', 'commands', 'commands', 'commands', 'cssClass', 'customAttributes', 'dataSource', 'defaultValue', 'disableHtmlEncode', 'displayAsCheckbox', 'editParams', 'editTemplate', 'editType', 'enableGroupByFormat', 'field', 'filterBarTemplate', 'filterType', 'foreignKeyField', 'foreignKeyValue', 'format', 'headerTemplateID', 'headerText', 'headerTextAlign', 'headerTooltip', 'isFrozen', 'isIdentity', 'isPrimaryKey', 'priority', 'showInColumnChooser', 'template', 'textAlign', 'tooltip', 'type', 'validationRules', 'visible', 'width'], [], { 'headerTemplateID': ['headerTemplateId', 'headerTemplateID'] }), _dec82 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'template'), _dec79(_class28 = _dec80(_class28 = _dec81(_class28 = (_class29 = function () { function Column() { _classCallCheck(this, Column); - _initDefineProp(this, 'template', _descriptor4, this); + _initDefineProp(this, 'template', _descriptor3, this); } Column.prototype.setTemplates = function setTemplates() { @@ -1349,652 +819,1182 @@ var Column = exports.Column = (_dec85 = (0, _aureliaTemplating.inlineView)('' + }; return Column; -}(), (_descriptor4 = _applyDecoratedDescriptor(_class34.prototype, 'template', [_dec88], { +}(), (_descriptor3 = _applyDecoratedDescriptor(_class29.prototype, 'template', [_dec82], { enumerable: true, initializer: function initializer() { return []; } -})), _class34)) || _class33) || _class33) || _class33); -var ejGrid = exports.ejGrid = (_dec89 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'grid'), _dec90 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec91 = generateBindables('ejGrid', ['allowCellMerging', 'allowGrouping', 'allowKeyboardNavigation', 'allowFiltering', 'allowSorting', 'allowMultiSorting', 'allowPaging', 'allowReordering', 'allowResizeToFit', 'allowResizing', 'allowRowDragAndDrop', 'allowScrolling', 'allowSearching', 'allowSelection', 'allowTextWrap', 'allowMultipleExporting', 'commonWidth', 'gridLines', 'childGrid', 'columnLayout', 'columns', 'contextMenuSettings', 'cssClass', 'dataSource', 'detailsTemplate', 'editSettings', 'enableAltRow', 'enableAutoSaveOnSelectionChange', 'enableHeaderHover', 'enablePersistence', 'enableResponsiveRow', 'enableRowHover', 'enableRTL', 'enableTouch', 'enableToolbarItems', 'exportToExcelAction', 'exportToPdfAction', 'exportToWordAction', 'filterSettings', 'groupSettings', 'isResponsive', 'keySettings', 'locale', 'minWidth', 'pageSettings', 'query', 'resizeSettings', 'rowTemplate', 'rowDropSettings', 'searchSettings', 'selectedRecords', 'selectedRowIndex', 'selectedRowIndices', 'selectionSettings', 'selectionType', 'scrollSettings', 'showColumnChooser', 'showStackedHeader', 'showSummary', 'sortSettings', 'stackedHeaderRows', 'summaryRows', 'textWrapSettings', 'toolbarSettings'], ['dataSource', 'selectedRowIndices'], { 'enableRTL': ['enableRtl'] }, ['dataSource']), _dec92 = (0, _aureliaDependencyInjection.inject)(Element, _aureliaTemplating.TemplatingEngine), _dec93 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'column'), _dec89(_class36 = _dec90(_class36 = _dec91(_class36 = _dec92(_class36 = (_class37 = function (_WidgetBase21) { +})), _class29)) || _class28) || _class28) || _class28); +var ejGrid = exports.ejGrid = (_dec83 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'grid'), _dec84 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec85 = generateBindables('ejGrid', ['allowCellMerging', 'allowGrouping', 'allowKeyboardNavigation', 'allowFiltering', 'allowSorting', 'allowMultiSorting', 'allowPaging', 'allowReordering', 'allowResizeToFit', 'allowResizing', 'allowRowDragAndDrop', 'allowScrolling', 'allowSearching', 'allowSelection', 'allowTextWrap', 'allowMultipleExporting', 'commonWidth', 'gridLines', 'childGrid', 'columnLayout', 'columns', 'contextMenuSettings', 'cssClass', 'dataSource', 'detailsTemplate', 'editSettings', 'enableAltRow', 'enableAutoSaveOnSelectionChange', 'enableHeaderHover', 'enablePersistence', 'enableResponsiveRow', 'enableRowHover', 'enableRTL', 'enableTouch', 'enableToolbarItems', 'exportToExcelAction', 'exportToPdfAction', 'exportToWordAction', 'filterSettings', 'groupSettings', 'isResponsive', 'keySettings', 'locale', 'minWidth', 'pageSettings', 'query', 'resizeSettings', 'rowTemplate', 'rowDropSettings', 'searchSettings', 'selectedRecords', 'selectedRowIndex', 'selectedRowIndices', 'selectionSettings', 'selectionType', 'scrollSettings', 'showColumnChooser', 'showStackedHeader', 'showSummary', 'sortSettings', 'stackedHeaderRows', 'summaryRows', 'textWrapSettings', 'toolbarSettings'], ['dataSource', 'selectedRowIndices'], { 'enableRTL': ['enableRtl'] }, ['dataSource']), _dec86 = (0, _aureliaDependencyInjection.inject)(Element, _aureliaTemplating.TemplatingEngine), _dec87 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'column'), _dec83(_class31 = _dec84(_class31 = _dec85(_class31 = _dec86(_class31 = (_class32 = function (_WidgetBase21) { _inherits(ejGrid, _WidgetBase21); function ejGrid(element, templateEngine) { _classCallCheck(this, ejGrid); - var _this27 = _possibleConstructorReturn(this, _WidgetBase21.call(this)); + var _this21 = _possibleConstructorReturn(this, _WidgetBase21.call(this)); - _initDefineProp(_this27, 'columns', _descriptor5, _this27); + _initDefineProp(_this21, 'columns', _descriptor4, _this21); - _this27.element = element; - _this27.hasChildProperty = true; - _this27.childPropertyName = 'columns'; - _this27.templateProcessor = new TemplateProcessor(_this27, templateEngine); - _this27.templateProcessor.initTemplate(); - return _this27; + _this21.element = element; + _this21.hasChildProperty = true; + _this21.childPropertyName = 'columns'; + _this21.templateProcessor = new TemplateProcessor(_this21, templateEngine); + _this21.templateProcessor.initTemplate(); + return _this21; } return ejGrid; -}(WidgetBase), (_descriptor5 = _applyDecoratedDescriptor(_class37.prototype, 'columns', [_dec93], { +}(WidgetBase), (_descriptor4 = _applyDecoratedDescriptor(_class32.prototype, 'columns', [_dec87], { enumerable: true, initializer: function initializer() { return []; } -})), _class37)) || _class36) || _class36) || _class36) || _class36); -var ejGroupButton = exports.ejGroupButton = (_dec94 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'group-button'), _dec95 = generateBindables('ejGroupButton', ['cssClass', 'dataSource', 'enableRTL', 'enabled', 'fields', 'groupButtonMode', 'height', 'htmlAttributes', 'orientation', 'query', 'selectedItemIndex', 'showRoundedCorner', 'size', 'width'], [], { 'enableRTL': ['enableRtl'] }), _dec96 = (0, _aureliaDependencyInjection.inject)(Element), _dec94(_class39 = _dec95(_class39 = _dec96(_class39 = function (_WidgetBase22) { +})), _class32)) || _class31) || _class31) || _class31) || _class31); +var ejGroupButton = exports.ejGroupButton = (_dec88 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'group-button'), _dec89 = generateBindables('ejGroupButton', ['cssClass', 'dataSource', 'enableRTL', 'enabled', 'fields', 'groupButtonMode', 'height', 'htmlAttributes', 'orientation', 'query', 'selectedItemIndex', 'showRoundedCorner', 'size', 'width'], [], { 'enableRTL': ['enableRtl'] }), _dec90 = (0, _aureliaDependencyInjection.inject)(Element), _dec88(_class34 = _dec89(_class34 = _dec90(_class34 = function (_WidgetBase22) { _inherits(ejGroupButton, _WidgetBase22); function ejGroupButton(element) { _classCallCheck(this, ejGroupButton); - var _this28 = _possibleConstructorReturn(this, _WidgetBase22.call(this)); + var _this22 = _possibleConstructorReturn(this, _WidgetBase22.call(this)); - _this28.element = element; - return _this28; + _this22.element = element; + return _this22; } return ejGroupButton; -}(WidgetBase)) || _class39) || _class39) || _class39); -var ejHeatMap = exports.ejHeatMap = (_dec97 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'heat-map'), _dec98 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec99 = generateBindables('ejHeatMap', ['width', 'height', 'id', 'showTooltip', 'tooltipSettings', 'itemsSource', 'heatMapCell', 'isResponsive', 'enableVirtualization', 'defaultColumnStyle', 'legendCollection', 'itemsMapping', 'colorMappingCollection']), _dec100 = (0, _aureliaDependencyInjection.inject)(Element), _dec97(_class40 = _dec98(_class40 = _dec99(_class40 = _dec100(_class40 = function (_WidgetBase23) { +}(WidgetBase)) || _class34) || _class34) || _class34); +var ejHeatMap = exports.ejHeatMap = (_dec91 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'heat-map'), _dec92 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec93 = generateBindables('ejHeatMap', ['width', 'height', 'id', 'showTooltip', 'tooltipSettings', 'itemsSource', 'heatMapCell', 'isResponsive', 'enableVirtualization', 'defaultColumnStyle', 'legendCollection', 'itemsMapping', 'colorMappingCollection']), _dec94 = (0, _aureliaDependencyInjection.inject)(Element), _dec91(_class35 = _dec92(_class35 = _dec93(_class35 = _dec94(_class35 = function (_WidgetBase23) { _inherits(ejHeatMap, _WidgetBase23); function ejHeatMap(element) { _classCallCheck(this, ejHeatMap); - var _this29 = _possibleConstructorReturn(this, _WidgetBase23.call(this)); + var _this23 = _possibleConstructorReturn(this, _WidgetBase23.call(this)); - _this29.element = element; - return _this29; + _this23.element = element; + return _this23; } return ejHeatMap; -}(WidgetBase)) || _class40) || _class40) || _class40) || _class40); -var ejHeatMapLegend = exports.ejHeatMapLegend = (_dec101 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'heat-map-legend'), _dec102 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec103 = generateBindables('ejHeatMapLegend', ['width', 'height', 'isResponsive', 'showLabel', 'colorMappingCollection', 'orientation', 'legendMode']), _dec104 = (0, _aureliaDependencyInjection.inject)(Element), _dec101(_class41 = _dec102(_class41 = _dec103(_class41 = _dec104(_class41 = function (_WidgetBase24) { +}(WidgetBase)) || _class35) || _class35) || _class35) || _class35); +var ejHeatMapLegend = exports.ejHeatMapLegend = (_dec95 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'heat-map-legend'), _dec96 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec97 = generateBindables('ejHeatMapLegend', ['width', 'height', 'isResponsive', 'showLabel', 'colorMappingCollection', 'orientation', 'legendMode']), _dec98 = (0, _aureliaDependencyInjection.inject)(Element), _dec95(_class36 = _dec96(_class36 = _dec97(_class36 = _dec98(_class36 = function (_WidgetBase24) { _inherits(ejHeatMapLegend, _WidgetBase24); function ejHeatMapLegend(element) { _classCallCheck(this, ejHeatMapLegend); - var _this30 = _possibleConstructorReturn(this, _WidgetBase24.call(this)); + var _this24 = _possibleConstructorReturn(this, _WidgetBase24.call(this)); - _this30.element = element; - return _this30; + _this24.element = element; + return _this24; } return ejHeatMapLegend; -}(WidgetBase)) || _class41) || _class41) || _class41) || _class41); -var ejKanban = exports.ejKanban = (_dec105 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'kanban'), _dec106 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec107 = generateBindables('ejKanban', ['allowDragAndDrop', 'allowExternalDragAndDrop', 'allowTitle', 'swimlaneSettings', 'allowToggleColumn', 'allowSearching', 'allowFiltering', 'allowSelection', 'allowHover', 'allowKeyboardNavigation', 'allowScrolling', 'allowPrinting', 'contextMenuSettings', 'columns', 'cardSettings', 'customToolbarItems', 'cssClass', 'dataSource', 'enableTouch', 'enableRTL', 'enableTotalCount', 'editSettings', 'fields', 'keyField', 'isResponsive', 'minWidth', 'filterSettings', 'query', 'keySettings', 'scrollSettings', 'searchSettings', 'selectionType', 'stackedHeaderRows', 'tooltipSettings', 'workflows', 'locale', 'showColumnWhenEmpty'], ['dataSource'], { 'enableRTL': ['enableRtl'] }, ['dataSource']), _dec108 = (0, _aureliaDependencyInjection.inject)(Element), _dec109 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'kanban-column'), _dec105(_class42 = _dec106(_class42 = _dec107(_class42 = _dec108(_class42 = (_class43 = function (_WidgetBase25) { +}(WidgetBase)) || _class36) || _class36) || _class36) || _class36); +var ejKanban = exports.ejKanban = (_dec99 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'kanban'), _dec100 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec101 = generateBindables('ejKanban', ['allowDragAndDrop', 'allowExternalDragAndDrop', 'allowTitle', 'swimlaneSettings', 'allowToggleColumn', 'allowSearching', 'allowFiltering', 'allowSelection', 'allowHover', 'allowKeyboardNavigation', 'allowScrolling', 'allowPrinting', 'contextMenuSettings', 'columns', 'cardSettings', 'customToolbarItems', 'cssClass', 'dataSource', 'enableTouch', 'enableRTL', 'enableTotalCount', 'editSettings', 'fields', 'keyField', 'isResponsive', 'minWidth', 'filterSettings', 'query', 'keySettings', 'scrollSettings', 'searchSettings', 'selectionType', 'stackedHeaderRows', 'tooltipSettings', 'workflows', 'locale', 'showColumnWhenEmpty'], ['dataSource'], { 'enableRTL': ['enableRtl'] }, ['dataSource']), _dec102 = (0, _aureliaDependencyInjection.inject)(Element), _dec103 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'kanban-column'), _dec99(_class37 = _dec100(_class37 = _dec101(_class37 = _dec102(_class37 = (_class38 = function (_WidgetBase25) { _inherits(ejKanban, _WidgetBase25); function ejKanban(element) { _classCallCheck(this, ejKanban); - var _this31 = _possibleConstructorReturn(this, _WidgetBase25.call(this)); + var _this25 = _possibleConstructorReturn(this, _WidgetBase25.call(this)); - _initDefineProp(_this31, 'columns', _descriptor6, _this31); + _initDefineProp(_this25, 'columns', _descriptor5, _this25); - _this31.element = element; - _this31.hasChildProperty = true; - _this31.childPropertyName = 'columns'; - return _this31; + _this25.element = element; + _this25.hasChildProperty = true; + _this25.childPropertyName = 'columns'; + return _this25; } return ejKanban; -}(WidgetBase), (_descriptor6 = _applyDecoratedDescriptor(_class43.prototype, 'columns', [_dec109], { +}(WidgetBase), (_descriptor5 = _applyDecoratedDescriptor(_class38.prototype, 'columns', [_dec103], { enumerable: true, initializer: function initializer() { return []; } -})), _class43)) || _class42) || _class42) || _class42) || _class42); -var KanbanColumn = exports.KanbanColumn = (_dec110 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec111 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'kanban-column'), _dec112 = generateBindables('columns', ['headerText', 'totalCount', 'totalCount', 'key', 'allowDrop', 'allowDrag', 'isCollapsed', 'constraints', 'constraints', 'constraints', 'constraints', 'headerTemplate', 'width', 'visible', 'showAddButton']), _dec110(_class45 = _dec111(_class45 = _dec112(_class45 = function KanbanColumn() { +})), _class38)) || _class37) || _class37) || _class37) || _class37); +var KanbanColumn = exports.KanbanColumn = (_dec104 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec105 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'kanban-column'), _dec106 = generateBindables('columns', ['headerText', 'totalCount', 'totalCount', 'key', 'allowDrop', 'allowDrag', 'isCollapsed', 'constraints', 'constraints', 'constraints', 'constraints', 'headerTemplate', 'width', 'visible', 'showAddButton']), _dec104(_class40 = _dec105(_class40 = _dec106(_class40 = function KanbanColumn() { _classCallCheck(this, KanbanColumn); -}) || _class45) || _class45) || _class45); -var ejLinearGauge = exports.ejLinearGauge = (_dec113 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'linear-gauge'), _dec114 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec115 = generateBindables('ejLinearGauge', ['animationSpeed', 'backgroundColor', 'borderColor', 'enableAnimation', 'enableMarkerPointerAnimation', 'exportSettings', 'isResponsive', 'enableGroupSeparator', 'enableResize', 'frame', 'height', 'labelColor', 'locale', 'maximum', 'minimum', 'orientation', 'outerCustomLabelPosition', 'pointerGradient1', 'pointerGradient2', 'readOnly', 'scales', 'theme', 'tickColor', 'tooltip', 'value', 'width'], ['value', 'minimum', 'maximum']), _dec116 = (0, _aureliaDependencyInjection.inject)(Element), _dec113(_class46 = _dec114(_class46 = _dec115(_class46 = _dec116(_class46 = function (_WidgetBase26) { +}) || _class40) || _class40) || _class40); +var ejLinearGauge = exports.ejLinearGauge = (_dec107 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'linear-gauge'), _dec108 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec109 = generateBindables('ejLinearGauge', ['animationSpeed', 'backgroundColor', 'borderColor', 'enableAnimation', 'enableMarkerPointerAnimation', 'exportSettings', 'isResponsive', 'enableGroupSeparator', 'enableResize', 'frame', 'height', 'labelColor', 'locale', 'maximum', 'minimum', 'orientation', 'outerCustomLabelPosition', 'pointerGradient1', 'pointerGradient2', 'readOnly', 'scales', 'theme', 'tickColor', 'tooltip', 'value', 'width'], ['value', 'minimum', 'maximum']), _dec110 = (0, _aureliaDependencyInjection.inject)(Element), _dec107(_class41 = _dec108(_class41 = _dec109(_class41 = _dec110(_class41 = function (_WidgetBase26) { _inherits(ejLinearGauge, _WidgetBase26); function ejLinearGauge(element) { _classCallCheck(this, ejLinearGauge); - var _this32 = _possibleConstructorReturn(this, _WidgetBase26.call(this)); + var _this26 = _possibleConstructorReturn(this, _WidgetBase26.call(this)); - _this32.element = element; - return _this32; + _this26.element = element; + return _this26; } return ejLinearGauge; -}(WidgetBase)) || _class46) || _class46) || _class46) || _class46); -var ejListBox = exports.ejListBox = (_dec117 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'list-box'), _dec118 = generateBindables('ejListBox', ['allowDrag', 'allowDrop', 'allowMultiSelection', 'allowVirtualScrolling', 'caseSensitiveSearch', 'cascadeTo', 'checkedIndices', 'cssClass', 'dataSource', 'enabled', 'enableIncrementalSearch', 'enablePersistence', 'enableRTL', 'enableWordWrap', 'fields', 'height', 'itemHeight', 'itemsCount', 'totalItemsCount', 'itemRequestCount', 'loadDataOnInit', 'query', 'selectedIndex', 'selectedIndices', 'showCheckbox', 'showRoundedCorner', 'sortOrder', 'template', 'value', 'virtualScrollMode', 'width', 'targetID'], ['value', 'dataSource'], { 'enableRTL': ['enableRtl'], 'targetID': ['targetId'] }), _dec119 = (0, _aureliaDependencyInjection.inject)(Element), _dec117(_class47 = _dec118(_class47 = _dec119(_class47 = function (_WidgetBase27) { +}(WidgetBase)) || _class41) || _class41) || _class41) || _class41); +var ejListBox = exports.ejListBox = (_dec111 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'list-box'), _dec112 = generateBindables('ejListBox', ['allowDrag', 'allowDrop', 'allowMultiSelection', 'allowVirtualScrolling', 'caseSensitiveSearch', 'cascadeTo', 'checkedIndices', 'cssClass', 'dataSource', 'enabled', 'enableIncrementalSearch', 'enablePersistence', 'enableRTL', 'enableWordWrap', 'fields', 'height', 'itemHeight', 'itemsCount', 'totalItemsCount', 'itemRequestCount', 'loadDataOnInit', 'query', 'selectedIndex', 'selectedIndices', 'showCheckbox', 'showRoundedCorner', 'sortOrder', 'template', 'value', 'virtualScrollMode', 'width', 'targetID'], ['value', 'dataSource'], { 'enableRTL': ['enableRtl'], 'targetID': ['targetId'] }), _dec113 = (0, _aureliaDependencyInjection.inject)(Element), _dec111(_class42 = _dec112(_class42 = _dec113(_class42 = function (_WidgetBase27) { _inherits(ejListBox, _WidgetBase27); function ejListBox(element) { _classCallCheck(this, ejListBox); - var _this33 = _possibleConstructorReturn(this, _WidgetBase27.call(this)); + var _this27 = _possibleConstructorReturn(this, _WidgetBase27.call(this)); - _this33.element = element; - return _this33; + _this27.element = element; + return _this27; } return ejListBox; -}(WidgetBase)) || _class47) || _class47) || _class47); -var ejListView = exports.ejListView = (_dec120 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'list-view'), _dec121 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec122 = generateBindables('ejListView', ['ajaxSettings', 'checkedIndices', 'cssClass', 'dataSource', 'enableAjax', 'enableCache', 'enableCheckMark', 'enableFiltering', 'enableGroupList', 'enablePersistence', 'fieldSettings', 'items', 'headerBackButtonText', 'headerTitle', 'height', 'locale', 'persistSelection', 'preventSelection', 'query', 'renderTemplate', 'selectedItemIndex', 'showHeader', 'showHeaderBackButton', 'templateId', 'width', 'itemRequestCount', 'totalItemsCount', 'allowVirtualScrolling', 'virtualScrollMode'], ['dataSource', 'selectedItemIndex'], {}, ['dataSource']), _dec123 = (0, _aureliaDependencyInjection.inject)(Element), _dec120(_class48 = _dec121(_class48 = _dec122(_class48 = _dec123(_class48 = function (_WidgetBase28) { +}(WidgetBase)) || _class42) || _class42) || _class42); +var ejListView = exports.ejListView = (_dec114 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'list-view'), _dec115 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec116 = generateBindables('ejListView', ['ajaxSettings', 'checkedIndices', 'cssClass', 'dataSource', 'enableAjax', 'enableCache', 'enableCheckMark', 'enableFiltering', 'enableGroupList', 'enablePersistence', 'fieldSettings', 'items', 'headerBackButtonText', 'headerTitle', 'height', 'locale', 'persistSelection', 'preventSelection', 'query', 'renderTemplate', 'selectedItemIndex', 'showHeader', 'showHeaderBackButton', 'templateId', 'width', 'itemRequestCount', 'totalItemsCount', 'allowVirtualScrolling', 'virtualScrollMode'], ['dataSource', 'selectedItemIndex'], {}, ['dataSource']), _dec117 = (0, _aureliaDependencyInjection.inject)(Element), _dec114(_class43 = _dec115(_class43 = _dec116(_class43 = _dec117(_class43 = function (_WidgetBase28) { _inherits(ejListView, _WidgetBase28); function ejListView(element) { _classCallCheck(this, ejListView); - var _this34 = _possibleConstructorReturn(this, _WidgetBase28.call(this)); + var _this28 = _possibleConstructorReturn(this, _WidgetBase28.call(this)); - _this34.element = element; - return _this34; + _this28.element = element; + return _this28; } return ejListView; -}(WidgetBase)) || _class48) || _class48) || _class48) || _class48); -var Layer = exports.Layer = (_dec124 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec125 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'layer'), _dec126 = generateBindables('layers', ['bingMapType', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'dataSource', 'shapeDataPath', 'shapePropertyPath', 'enableMouseHover', 'enableSelection', 'key', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'geometryType', 'layerType', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'mapItemsTemplate', 'markers', 'markerTemplate', 'selectedMapShapes', 'selectionMode', 'shapeData', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'showMapItems', 'showTooltip', 'tooltipTemplate', 'urlTemplate', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers']), _dec124(_class49 = _dec125(_class49 = _dec126(_class49 = function Layer() { +}(WidgetBase)) || _class43) || _class43) || _class43) || _class43); +var Layer = exports.Layer = (_dec118 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec119 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'layer'), _dec120 = generateBindables('layers', ['bingMapType', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'bubbleSettings', 'dataSource', 'shapeDataPath', 'shapePropertyPath', 'enableMouseHover', 'enableSelection', 'key', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'labelSettings', 'geometryType', 'layerType', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'legendSettings', 'mapItemsTemplate', 'markers', 'markerTemplate', 'selectedMapShapes', 'selectionMode', 'shapeData', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'shapeSettings', 'showMapItems', 'showTooltip', 'tooltipTemplate', 'urlTemplate', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers', 'subLayers']), _dec118(_class44 = _dec119(_class44 = _dec120(_class44 = function Layer() { _classCallCheck(this, Layer); -}) || _class49) || _class49) || _class49); -var ejMap = exports.ejMap = (_dec127 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'map'), _dec128 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec129 = generateBindables('ejMap', ['background', 'baseMapIndex', 'centerPosition', 'draggingOnSelection', 'enableAnimation', 'enableRTL', 'enableLayerChangeAnimation', 'enablePan', 'enableResize', 'isResponsive', 'zoomSettings', 'navigationControl', 'locale', 'layers'], ['baseMapIndex', 'enablePan', 'enableResize', 'enableAnimation', 'zoomSettings.level', 'zoomSettings.minValue', 'zoomSettings.maxValue', 'zoomSettings.factor', 'zoomSettings.enableZoom', 'zoomSettings.enableZoomOnSelection', 'navigationControl.enableNavigation', 'navigationControl.orientation', 'navigationControl.absolutePosition', 'navigationControl.dockPosition'], { 'enableRTL': ['enableRtl'] }), _dec130 = (0, _aureliaDependencyInjection.inject)(Element), _dec131 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'layer'), _dec127(_class50 = _dec128(_class50 = _dec129(_class50 = _dec130(_class50 = (_class51 = function (_WidgetBase29) { +}) || _class44) || _class44) || _class44); +var ejMap = exports.ejMap = (_dec121 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'map'), _dec122 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec123 = generateBindables('ejMap', ['background', 'baseMapIndex', 'centerPosition', 'draggingOnSelection', 'enableAnimation', 'enableRTL', 'enableLayerChangeAnimation', 'enablePan', 'enableResize', 'isResponsive', 'zoomSettings', 'navigationControl', 'locale', 'layers'], ['baseMapIndex', 'enablePan', 'enableResize', 'enableAnimation', 'zoomSettings.level', 'zoomSettings.minValue', 'zoomSettings.maxValue', 'zoomSettings.factor', 'zoomSettings.enableZoom', 'zoomSettings.enableZoomOnSelection', 'navigationControl.enableNavigation', 'navigationControl.orientation', 'navigationControl.absolutePosition', 'navigationControl.dockPosition'], { 'enableRTL': ['enableRtl'] }), _dec124 = (0, _aureliaDependencyInjection.inject)(Element), _dec125 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'layer'), _dec121(_class45 = _dec122(_class45 = _dec123(_class45 = _dec124(_class45 = (_class46 = function (_WidgetBase29) { _inherits(ejMap, _WidgetBase29); function ejMap(element) { _classCallCheck(this, ejMap); - var _this35 = _possibleConstructorReturn(this, _WidgetBase29.call(this)); + var _this29 = _possibleConstructorReturn(this, _WidgetBase29.call(this)); + + _initDefineProp(_this29, 'layers', _descriptor6, _this29); + + _this29.element = element; + _this29.hasChildProperty = true; + _this29.childPropertyName = 'layers'; + return _this29; + } + + return ejMap; +}(WidgetBase), (_descriptor6 = _applyDecoratedDescriptor(_class46.prototype, 'layers', [_dec125], { + enumerable: true, + initializer: function initializer() { + return []; + } +})), _class46)) || _class45) || _class45) || _class45) || _class45); +var ejMaskEdit = exports.ejMaskEdit = (_dec126 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'mask-edit'), _dec127 = generateBindables('ejMaskEdit', ['cssClass', 'customCharacter', 'enabled', 'enablePersistence', 'height', 'hidePromptOnLeave', 'htmlAttributes', 'inputMode', 'locale', 'maskFormat', 'name', 'readOnly', 'showError', 'showPromptChar', 'showRoundedCorner', 'textAlign', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value']), _dec128 = (0, _aureliaDependencyInjection.inject)(Element), _dec126(_class48 = _dec127(_class48 = _dec128(_class48 = function (_WidgetBase30) { + _inherits(ejMaskEdit, _WidgetBase30); + + function ejMaskEdit(element) { + _classCallCheck(this, ejMaskEdit); + + var _this30 = _possibleConstructorReturn(this, _WidgetBase30.call(this)); + + _this30.isEditor = true; + _this30.element = element; + return _this30; + } + + return ejMaskEdit; +}(WidgetBase)) || _class48) || _class48) || _class48); +var ejMenu = exports.ejMenu = (_dec129 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'menu'), _dec130 = generateBindables('ejMenu', ['animationType', 'contextMenuTarget', 'container', 'cssClass', 'enableAnimation', 'enableCenterAlign', 'enabled', 'enableRTL', 'enableSeparator', 'excludeTarget', 'fields', 'height', 'htmlAttributes', 'isResponsive', 'menuType', 'openOnClick', 'orientation', 'showRootLevelArrows', 'showSubLevelArrows', 'subMenuDirection', 'titleText', 'width', 'overflowHeight', 'overflowWidth'], [], { 'enableRTL': ['enableRtl'] }), _dec131 = (0, _aureliaDependencyInjection.inject)(Element), _dec129(_class49 = _dec130(_class49 = _dec131(_class49 = function (_WidgetBase31) { + _inherits(ejMenu, _WidgetBase31); + + function ejMenu(element) { + _classCallCheck(this, ejMenu); + + var _this31 = _possibleConstructorReturn(this, _WidgetBase31.call(this)); + + _this31.element = element; + return _this31; + } + + return ejMenu; +}(WidgetBase)) || _class49) || _class49) || _class49); +var ejNavigationDrawer = exports.ejNavigationDrawer = (_dec132 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'navigation-drawer'), _dec133 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec134 = generateBindables('ejNavigationDrawer', ['ajaxSettings', 'contentId', 'cssClass', 'direction', 'enableListView', 'items', 'listViewSettings', 'position', 'targetId', 'type', 'width', 'isPaneOpen']), _dec135 = (0, _aureliaDependencyInjection.inject)(Element), _dec132(_class50 = _dec133(_class50 = _dec134(_class50 = _dec135(_class50 = function (_WidgetBase32) { + _inherits(ejNavigationDrawer, _WidgetBase32); + + function ejNavigationDrawer(element) { + _classCallCheck(this, ejNavigationDrawer); + + var _this32 = _possibleConstructorReturn(this, _WidgetBase32.call(this)); + + _this32.element = element; + return _this32; + } + + return ejNavigationDrawer; +}(WidgetBase)) || _class50) || _class50) || _class50) || _class50); +var ejNumericTextbox = exports.ejNumericTextbox = (_dec136 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'numeric-textbox'), _dec137 = generateBindables('ejNumericTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec138 = (0, _aureliaDependencyInjection.inject)(Element), _dec136(_class51 = _dec137(_class51 = _dec138(_class51 = function (_WidgetBase33) { + _inherits(ejNumericTextbox, _WidgetBase33); + + function ejNumericTextbox(element) { + _classCallCheck(this, ejNumericTextbox); + + var _this33 = _possibleConstructorReturn(this, _WidgetBase33.call(this)); + + _this33.isEditor = true; + _this33.element = element; + return _this33; + } + + return ejNumericTextbox; +}(WidgetBase)) || _class51) || _class51) || _class51); +var ejOverview = exports.ejOverview = (_dec139 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'overview'), _dec140 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec141 = generateBindables('ejOverview', ['sourceID', 'height', 'width'], [], { 'sourceID': ['sourceId'] }), _dec142 = (0, _aureliaDependencyInjection.inject)(Element), _dec139(_class52 = _dec140(_class52 = _dec141(_class52 = _dec142(_class52 = function (_WidgetBase34) { + _inherits(ejOverview, _WidgetBase34); + + function ejOverview(element) { + _classCallCheck(this, ejOverview); + + var _this34 = _possibleConstructorReturn(this, _WidgetBase34.call(this)); + + _this34.element = element; + return _this34; + } + + return ejOverview; +}(WidgetBase)) || _class52) || _class52) || _class52) || _class52); +var ejPager = exports.ejPager = (_dec143 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pager'), _dec144 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec145 = generateBindables('ejPager', ['customText', 'currentPage', 'cssClass', 'enabled', 'enableExternalMessage', 'enableQueryString', 'enableRTL', 'externalMessage', 'isResponsive', 'locale', 'pageCount', 'pageSize', 'pageSizeList', 'pageSizeMessage', 'template', 'totalPages', 'totalRecordsCount', 'showPageInfo'], [], { 'enableRTL': ['enableRtl'] }), _dec146 = (0, _aureliaDependencyInjection.inject)(Element), _dec143(_class53 = _dec144(_class53 = _dec145(_class53 = _dec146(_class53 = function (_WidgetBase35) { + _inherits(ejPager, _WidgetBase35); + + function ejPager(element) { + _classCallCheck(this, ejPager); + + var _this35 = _possibleConstructorReturn(this, _WidgetBase35.call(this)); + + _this35.element = element; + return _this35; + } + + return ejPager; +}(WidgetBase)) || _class53) || _class53) || _class53) || _class53); +var ejPdfViewer = exports.ejPdfViewer = (_dec147 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pdf-viewer'), _dec148 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec149 = generateBindables('ejPdfViewer', ['locale', 'toolbarSettings', 'serverActionSettings', 'serviceUrl', 'documentPath', 'enableTextMarkupAnnotations', 'enableHighlightAnnotation', 'enableUnderlineAnnotation', 'enableStrikethroughAnnotation', 'enableSignature', 'strikethroughSettings', 'underlineSettings', 'highlightSettings', 'signatureSettings', 'textSelectionContextMenu', 'annotationContextMenu', 'annotationType', 'pageCount', 'currentPageNumber', 'zoomPercentage', 'pdfService', 'interactionMode', 'bufferingMode', 'hyperlinkOpenState', 'enableHyperlink', 'enableTextSelection', 'isResponsive', 'isDocumentEdited', 'allowClientBuffering', 'fileName']), _dec150 = (0, _aureliaDependencyInjection.inject)(Element), _dec147(_class54 = _dec148(_class54 = _dec149(_class54 = _dec150(_class54 = function (_WidgetBase36) { + _inherits(ejPdfViewer, _WidgetBase36); + + function ejPdfViewer(element) { + _classCallCheck(this, ejPdfViewer); + + var _this36 = _possibleConstructorReturn(this, _WidgetBase36.call(this)); + + _this36.element = element; + return _this36; + } + + return ejPdfViewer; +}(WidgetBase)) || _class54) || _class54) || _class54) || _class54); +var ejPercentageTextbox = exports.ejPercentageTextbox = (_dec151 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'percentage-textbox'), _dec152 = generateBindables('ejPercentageTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec153 = (0, _aureliaDependencyInjection.inject)(Element), _dec151(_class55 = _dec152(_class55 = _dec153(_class55 = function (_WidgetBase37) { + _inherits(ejPercentageTextbox, _WidgetBase37); + + function ejPercentageTextbox(element) { + _classCallCheck(this, ejPercentageTextbox); + + var _this37 = _possibleConstructorReturn(this, _WidgetBase37.call(this)); + + _this37.isEditor = true; + _this37.element = element; + return _this37; + } + + return ejPercentageTextbox; +}(WidgetBase)) || _class55) || _class55) || _class55); +var ejPivotChart = exports.ejPivotChart = (_dec154 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pivot-chart'), _dec155 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec156 = generateBindables('ejPivotChart', ['analysisMode', 'cssClass', 'zooming', 'commonSeriesOptions', 'dataSource', 'customObject', 'enable3D', 'enableRTL', 'enableMultiLevelLabels', 'isResponsive', 'legend', 'locale', 'operationalMode', 'axes', 'primaryXAxis', 'primaryYAxis', 'rotation', 'enableContextMenu', 'serviceMethodSettings', 'size', 'title', 'url', 'enableXHRCredentials'], [], { 'enableRTL': ['enableRtl'] }), _dec157 = (0, _aureliaDependencyInjection.inject)(Element), _dec154(_class56 = _dec155(_class56 = _dec156(_class56 = _dec157(_class56 = function (_WidgetBase38) { + _inherits(ejPivotChart, _WidgetBase38); + + function ejPivotChart(element) { + _classCallCheck(this, ejPivotChart); + + var _this38 = _possibleConstructorReturn(this, _WidgetBase38.call(this)); + + _this38.element = element; + return _this38; + } + + return ejPivotChart; +}(WidgetBase)) || _class56) || _class56) || _class56) || _class56); +var ejPivotGauge = exports.ejPivotGauge = (_dec158 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pivot-gauge'), _dec159 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec160 = generateBindables('ejPivotGauge', ['columnsCount', 'cssClass', 'customObject', 'dataSource', 'enableAnimation', 'enableTooltip', 'enableRTL', 'frame', 'isResponsive', 'labelFormatSettings', 'locale', 'rowsCount', 'scales', 'serviceMethodSettings', 'showHeaderLabel', 'url', 'analysisMode', 'operationalMode', 'enableXHRCredentials'], [], { 'enableRTL': ['enableRtl'] }), _dec161 = (0, _aureliaDependencyInjection.inject)(Element), _dec158(_class57 = _dec159(_class57 = _dec160(_class57 = _dec161(_class57 = function (_WidgetBase39) { + _inherits(ejPivotGauge, _WidgetBase39); + + function ejPivotGauge(element) { + _classCallCheck(this, ejPivotGauge); + + var _this39 = _possibleConstructorReturn(this, _WidgetBase39.call(this)); + + _this39.element = element; + return _this39; + } + + return ejPivotGauge; +}(WidgetBase)) || _class57) || _class57) || _class57) || _class57); +var ejPivotGrid = exports.ejPivotGrid = (_dec162 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pivot-grid'), _dec163 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec164 = generateBindables('ejPivotGrid', ['analysisMode', 'cssClass', 'pivotTableFieldListID', 'dataSource', 'valueSortSettings', 'frozenHeaderSettings', 'headerSettings', 'showUniqueNameOnPivotButton', 'customObject', 'collapsedMembers', 'enableCellContext', 'enableCellSelection', 'enableDrillThrough', 'enableCellClick', 'enableCellDoubleClick', 'enableCellEditing', 'enableCollapseByDefault', 'enableColumnGrandTotal', 'enableConditionalFormatting', 'enableAdvancedFilter', 'enableDeferUpdate', 'enableGroupingBar', 'maxNodeLimitInMemberEditor', 'enableMemberEditorPaging', 'memberEditorPageSize', 'enableMemberEditorSorting', 'enableGrandTotal', 'enableJSONRendering', 'enablePivotFieldList', 'enableRowGrandTotal', 'enableRTL', 'enableToolTip', 'enableToolTipAnimation', 'enableColumnResizing', 'resizeColumnsToFit', 'enableContextMenu', 'enableVirtualScrolling', 'enablePaging', 'hyperlinkSettings', 'isResponsive', 'jsonRecords', 'layout', 'locale', 'operationalMode', 'serviceMethodSettings', 'url', 'enableCompleteDataExport', 'enableXHRCredentials'], [], { 'pivotTableFieldListID': ['pivotTableFieldListId'], 'enableRTL': ['enableRtl'] }), _dec165 = (0, _aureliaDependencyInjection.inject)(Element), _dec162(_class58 = _dec163(_class58 = _dec164(_class58 = _dec165(_class58 = function (_WidgetBase40) { + _inherits(ejPivotGrid, _WidgetBase40); + + function ejPivotGrid(element) { + _classCallCheck(this, ejPivotGrid); + + var _this40 = _possibleConstructorReturn(this, _WidgetBase40.call(this)); + + _this40.element = element; + return _this40; + } + + return ejPivotGrid; +}(WidgetBase)) || _class58) || _class58) || _class58) || _class58); +var ejPivotSchemaDesigner = exports.ejPivotSchemaDesigner = (_dec166 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pivot-schema-designer'), _dec167 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec168 = generateBindables('ejPivotSchemaDesigner', ['cssClass', 'customObject', 'enableWrapper', 'enableRTL', 'olap', 'enableDragDrop', 'height', 'locale', 'pivotControl', 'serviceMethods', 'url', 'width', 'layout'], [], { 'enableRTL': ['enableRtl'] }), _dec169 = (0, _aureliaDependencyInjection.inject)(Element), _dec166(_class59 = _dec167(_class59 = _dec168(_class59 = _dec169(_class59 = function (_WidgetBase41) { + _inherits(ejPivotSchemaDesigner, _WidgetBase41); + + function ejPivotSchemaDesigner(element) { + _classCallCheck(this, ejPivotSchemaDesigner); + + var _this41 = _possibleConstructorReturn(this, _WidgetBase41.call(this)); + + _this41.element = element; + return _this41; + } + + return ejPivotSchemaDesigner; +}(WidgetBase)) || _class59) || _class59) || _class59) || _class59); +var ejPivotTreeMap = exports.ejPivotTreeMap = (_dec170 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pivot-tree-map'), _dec171 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec172 = generateBindables('ejPivotTreeMap', ['cssClass', 'dataSource', 'customObject', 'isResponsive', 'locale', 'operationalMode', 'serviceMethodSettings', 'url', 'enableXHRCredentials']), _dec173 = (0, _aureliaDependencyInjection.inject)(Element), _dec170(_class60 = _dec171(_class60 = _dec172(_class60 = _dec173(_class60 = function (_WidgetBase42) { + _inherits(ejPivotTreeMap, _WidgetBase42); + + function ejPivotTreeMap(element) { + _classCallCheck(this, ejPivotTreeMap); + + var _this42 = _possibleConstructorReturn(this, _WidgetBase42.call(this)); + + _this42.element = element; + return _this42; + } + + return ejPivotTreeMap; +}(WidgetBase)) || _class60) || _class60) || _class60) || _class60); +var ejProgressBar = exports.ejProgressBar = (_dec174 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'progress-bar'), _dec175 = generateBindables('ejProgressBar', ['cssClass', 'enabled', 'enablePersistence', 'enableRTL', 'height', 'htmlAttributes', 'maxValue', 'minValue', 'percentage', 'showRoundedCorner', 'text', 'value', 'width'], [], { 'enableRTL': ['enableRtl'] }), _dec176 = (0, _aureliaDependencyInjection.inject)(Element), _dec174(_class61 = _dec175(_class61 = _dec176(_class61 = function (_WidgetBase43) { + _inherits(ejProgressBar, _WidgetBase43); + + function ejProgressBar(element) { + _classCallCheck(this, ejProgressBar); + + var _this43 = _possibleConstructorReturn(this, _WidgetBase43.call(this)); + + _this43.element = element; + return _this43; + } + + return ejProgressBar; +}(WidgetBase)) || _class61) || _class61) || _class61); +var Item = exports.Item = (_dec177 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec178 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'item'), _dec179 = generateBindables('items', ['imageUrl', 'prependTo', 'text', 'enabled', 'click', 'badge', 'badge', 'badge', 'type', 'sliderSettings', 'sliderSettings', 'sliderSettings', 'sliderSettings', 'items']), _dec180 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'template'), _dec177(_class62 = _dec178(_class62 = _dec179(_class62 = (_class63 = function () { + function Item() { + _classCallCheck(this, Item); + + _initDefineProp(this, 'template', _descriptor7, this); + } + + Item.prototype.setTemplates = function setTemplates() { + if (this.template[0]) { + var util = new Util(); + this[util.getBindablePropertyName('template')] = this.template[0].template; + } + }; + + return Item; +}(), (_descriptor7 = _applyDecoratedDescriptor(_class63.prototype, 'template', [_dec180], { + enumerable: true, + initializer: function initializer() { + return []; + } +})), _class63)) || _class62) || _class62) || _class62); +var ejRadialMenu = exports.ejRadialMenu = (_dec181 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'radial-menu'), _dec182 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec183 = generateBindables('ejRadialMenu', ['autoOpen', 'backImageClass', 'cssClass', 'enableAnimation', 'imageClass', 'items', 'radius', 'targetElementId', 'position']), _dec184 = (0, _aureliaDependencyInjection.inject)(Element, _aureliaTemplating.TemplatingEngine), _dec185 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'item'), _dec181(_class65 = _dec182(_class65 = _dec183(_class65 = _dec184(_class65 = (_class66 = function (_WidgetBase44) { + _inherits(ejRadialMenu, _WidgetBase44); + + function ejRadialMenu(element, templateEngine) { + _classCallCheck(this, ejRadialMenu); + + var _this44 = _possibleConstructorReturn(this, _WidgetBase44.call(this)); - _initDefineProp(_this35, 'layers', _descriptor7, _this35); + _initDefineProp(_this44, 'items', _descriptor8, _this44); - _this35.element = element; - _this35.hasChildProperty = true; - _this35.childPropertyName = 'layers'; - return _this35; + _this44.element = element; + _this44.hasChildProperty = true; + _this44.childPropertyName = 'items'; + _this44.templateProcessor = new TemplateProcessor(_this44, templateEngine); + _this44.templateProcessor.initTemplate(); + return _this44; } - return ejMap; -}(WidgetBase), (_descriptor7 = _applyDecoratedDescriptor(_class51.prototype, 'layers', [_dec131], { + return ejRadialMenu; +}(WidgetBase), (_descriptor8 = _applyDecoratedDescriptor(_class66.prototype, 'items', [_dec185], { enumerable: true, initializer: function initializer() { return []; } -})), _class51)) || _class50) || _class50) || _class50) || _class50); -var ejMaskEdit = exports.ejMaskEdit = (_dec132 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'mask-edit'), _dec133 = generateBindables('ejMaskEdit', ['cssClass', 'customCharacter', 'enabled', 'enablePersistence', 'height', 'hidePromptOnLeave', 'htmlAttributes', 'inputMode', 'locale', 'maskFormat', 'name', 'readOnly', 'showError', 'showPromptChar', 'showRoundedCorner', 'textAlign', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value']), _dec134 = (0, _aureliaDependencyInjection.inject)(Element), _dec132(_class53 = _dec133(_class53 = _dec134(_class53 = function (_WidgetBase30) { - _inherits(ejMaskEdit, _WidgetBase30); +})), _class66)) || _class65) || _class65) || _class65) || _class65); +var ejRadialSlider = exports.ejRadialSlider = (_dec186 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'radial-slider'), _dec187 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec188 = generateBindables('ejRadialSlider', ['autoOpen', 'cssClass', 'enableAnimation', 'enableRoundOff', 'endAngle', 'inline', 'innerCircleImageClass', 'innerCircleImageUrl', 'labelSpace', 'locale', 'radius', 'showInnerCircle', 'startAngle', 'strokeWidth', 'ticks', 'value'], ['value', 'ticks']), _dec189 = (0, _aureliaDependencyInjection.inject)(Element), _dec186(_class68 = _dec187(_class68 = _dec188(_class68 = _dec189(_class68 = function (_WidgetBase45) { + _inherits(ejRadialSlider, _WidgetBase45); - function ejMaskEdit(element) { - _classCallCheck(this, ejMaskEdit); + function ejRadialSlider(element) { + _classCallCheck(this, ejRadialSlider); - var _this36 = _possibleConstructorReturn(this, _WidgetBase30.call(this)); + var _this45 = _possibleConstructorReturn(this, _WidgetBase45.call(this)); - _this36.isEditor = true; - _this36.element = element; - return _this36; + _this45.element = element; + return _this45; } - return ejMaskEdit; -}(WidgetBase)) || _class53) || _class53) || _class53); -var ejMenu = exports.ejMenu = (_dec135 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'menu'), _dec136 = generateBindables('ejMenu', ['animationType', 'contextMenuTarget', 'container', 'cssClass', 'enableAnimation', 'enableCenterAlign', 'enabled', 'enableRTL', 'enableSeparator', 'excludeTarget', 'fields', 'height', 'htmlAttributes', 'isResponsive', 'menuType', 'openOnClick', 'orientation', 'showRootLevelArrows', 'showSubLevelArrows', 'subMenuDirection', 'titleText', 'width', 'overflowHeight', 'overflowWidth'], [], { 'enableRTL': ['enableRtl'] }), _dec137 = (0, _aureliaDependencyInjection.inject)(Element), _dec135(_class54 = _dec136(_class54 = _dec137(_class54 = function (_WidgetBase31) { - _inherits(ejMenu, _WidgetBase31); + return ejRadialSlider; +}(WidgetBase)) || _class68) || _class68) || _class68) || _class68); +var ejRadioButton = exports.ejRadioButton = (_dec190 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'radio-button'), _dec191 = generateBindables('ejRadioButton', ['checked', 'cssClass', 'enabled', 'enablePersistence', 'enableRTL', 'htmlAttributes', 'id', 'idPrefix', 'name', 'size', 'text', 'validationMessage', 'validationRules', 'value'], [], { 'enableRTL': ['enableRtl'] }), _dec192 = (0, _aureliaDependencyInjection.inject)(Element), _dec190(_class69 = _dec191(_class69 = _dec192(_class69 = function (_WidgetBase46) { + _inherits(ejRadioButton, _WidgetBase46); - function ejMenu(element) { - _classCallCheck(this, ejMenu); + function ejRadioButton(element) { + _classCallCheck(this, ejRadioButton); - var _this37 = _possibleConstructorReturn(this, _WidgetBase31.call(this)); + var _this46 = _possibleConstructorReturn(this, _WidgetBase46.call(this)); - _this37.element = element; - return _this37; + _this46.element = element; + return _this46; } - return ejMenu; -}(WidgetBase)) || _class54) || _class54) || _class54); -var ejNavigationDrawer = exports.ejNavigationDrawer = (_dec138 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'navigation-drawer'), _dec139 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec140 = generateBindables('ejNavigationDrawer', ['ajaxSettings', 'contentId', 'cssClass', 'direction', 'enableListView', 'items', 'listViewSettings', 'position', 'targetId', 'type', 'width', 'isPaneOpen']), _dec141 = (0, _aureliaDependencyInjection.inject)(Element), _dec138(_class55 = _dec139(_class55 = _dec140(_class55 = _dec141(_class55 = function (_WidgetBase32) { - _inherits(ejNavigationDrawer, _WidgetBase32); + return ejRadioButton; +}(WidgetBase)) || _class69) || _class69) || _class69); +var ejRangeNavigator = exports.ejRangeNavigator = (_dec193 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'range-navigator'), _dec194 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec195 = generateBindables('ejRangeNavigator', ['allowSnapping', 'allowNextValue', 'border', 'dataSource', 'series', 'seriesSettings', 'enableDeferredUpdate', 'enableScrollbar', 'enableAutoResizing', 'enableRTL', 'isResponsive', 'labelSettings', 'locale', 'navigatorStyleSettings', 'padding', 'rangePadding', 'rangeSettings', 'selectedData', 'selectedRangeSettings', 'scrollRangeSettings', 'sizeSettings', 'theme', 'tooltipSettings', 'valueAxisSettings', 'valueType', 'xName', 'yName'], [], { 'enableRTL': ['enableRtl'] }), _dec196 = (0, _aureliaDependencyInjection.inject)(Element), _dec197 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'range-series'), _dec193(_class70 = _dec194(_class70 = _dec195(_class70 = _dec196(_class70 = (_class71 = function (_WidgetBase47) { + _inherits(ejRangeNavigator, _WidgetBase47); - function ejNavigationDrawer(element) { - _classCallCheck(this, ejNavigationDrawer); + function ejRangeNavigator(element) { + _classCallCheck(this, ejRangeNavigator); - var _this38 = _possibleConstructorReturn(this, _WidgetBase32.call(this)); + var _this47 = _possibleConstructorReturn(this, _WidgetBase47.call(this)); - _this38.element = element; - return _this38; + _initDefineProp(_this47, 'series', _descriptor9, _this47); + + _this47.element = element; + _this47.hasChildProperty = true; + _this47.childPropertyName = 'series'; + return _this47; } - return ejNavigationDrawer; -}(WidgetBase)) || _class55) || _class55) || _class55) || _class55); -var ejNumericTextbox = exports.ejNumericTextbox = (_dec142 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'numeric-textbox'), _dec143 = generateBindables('ejNumericTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec144 = (0, _aureliaDependencyInjection.inject)(Element), _dec142(_class56 = _dec143(_class56 = _dec144(_class56 = function (_WidgetBase33) { - _inherits(ejNumericTextbox, _WidgetBase33); + return ejRangeNavigator; +}(WidgetBase), (_descriptor9 = _applyDecoratedDescriptor(_class71.prototype, 'series', [_dec197], { + enumerable: true, + initializer: function initializer() { + return []; + } +})), _class71)) || _class70) || _class70) || _class70) || _class70); +var RangeSeries = exports.RangeSeries = (_dec198 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec199 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'range-series'), _dec200 = generateBindables('series', ['xName', 'yName', 'dataSource', 'type', 'enableAnimation', 'fill']), _dec198(_class73 = _dec199(_class73 = _dec200(_class73 = function RangeSeries() { + _classCallCheck(this, RangeSeries); +}) || _class73) || _class73) || _class73); +var ejRating = exports.ejRating = (_dec201 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'rating'), _dec202 = generateBindables('ejRating', ['allowReset', 'cssClass', 'enabled', 'enablePersistence', 'height', 'htmlAttributes', 'incrementStep', 'maxValue', 'minValue', 'orientation', 'precision', 'readOnly', 'shapeHeight', 'shapeWidth', 'showTooltip', 'value', 'width'], ['value']), _dec203 = (0, _aureliaDependencyInjection.inject)(Element), _dec201(_class74 = _dec202(_class74 = _dec203(_class74 = function (_WidgetBase48) { + _inherits(ejRating, _WidgetBase48); - function ejNumericTextbox(element) { - _classCallCheck(this, ejNumericTextbox); + function ejRating(element) { + _classCallCheck(this, ejRating); - var _this39 = _possibleConstructorReturn(this, _WidgetBase33.call(this)); + var _this48 = _possibleConstructorReturn(this, _WidgetBase48.call(this)); - _this39.isEditor = true; - _this39.element = element; - return _this39; + _this48.element = element; + return _this48; } - return ejNumericTextbox; -}(WidgetBase)) || _class56) || _class56) || _class56); -var ejOverview = exports.ejOverview = (_dec145 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'overview'), _dec146 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec147 = generateBindables('ejOverview', ['sourceID', 'height', 'width'], [], { 'sourceID': ['sourceId'] }), _dec148 = (0, _aureliaDependencyInjection.inject)(Element), _dec145(_class57 = _dec146(_class57 = _dec147(_class57 = _dec148(_class57 = function (_WidgetBase34) { - _inherits(ejOverview, _WidgetBase34); + return ejRating; +}(WidgetBase)) || _class74) || _class74) || _class74); +var ejRibbon = exports.ejRibbon = (_dec204 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'ribbon'), _dec205 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec206 = generateBindables('ejRibbon', ['allowResizing', 'isResponsive', 'buttonDefaults', 'showQAT', 'cssClass', 'collapsePinSettings', 'enableOnDemand', 'collapsible', 'enableRTL', 'expandPinSettings', 'applicationTab', 'contextualTabs', 'disabledItemIndex', 'enabledItemIndex', 'selectedItemIndex', 'tabs', 'locale', 'width'], [], { 'enableRTL': ['enableRtl'] }), _dec207 = (0, _aureliaDependencyInjection.inject)(Element), _dec204(_class75 = _dec205(_class75 = _dec206(_class75 = _dec207(_class75 = function (_WidgetBase49) { + _inherits(ejRibbon, _WidgetBase49); - function ejOverview(element) { - _classCallCheck(this, ejOverview); + function ejRibbon(element) { + _classCallCheck(this, ejRibbon); - var _this40 = _possibleConstructorReturn(this, _WidgetBase34.call(this)); + var _this49 = _possibleConstructorReturn(this, _WidgetBase49.call(this)); - _this40.element = element; - return _this40; + _this49.element = element; + return _this49; } - return ejOverview; -}(WidgetBase)) || _class57) || _class57) || _class57) || _class57); -var ejPager = exports.ejPager = (_dec149 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pager'), _dec150 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec151 = generateBindables('ejPager', ['customText', 'currentPage', 'cssClass', 'enabled', 'enableExternalMessage', 'enableQueryString', 'enableRTL', 'externalMessage', 'isResponsive', 'locale', 'pageCount', 'pageSize', 'pageSizeList', 'pageSizeMessage', 'template', 'totalPages', 'totalRecordsCount', 'showPageInfo'], [], { 'enableRTL': ['enableRtl'] }), _dec152 = (0, _aureliaDependencyInjection.inject)(Element), _dec149(_class58 = _dec150(_class58 = _dec151(_class58 = _dec152(_class58 = function (_WidgetBase35) { - _inherits(ejPager, _WidgetBase35); + return ejRibbon; +}(WidgetBase)) || _class75) || _class75) || _class75) || _class75); +var ejRotator = exports.ejRotator = (_dec208 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'rotator'), _dec209 = generateBindables('ejRotator', ['allowKeyboardNavigation', 'animationSpeed', 'animationType', 'circularMode', 'cssClass', 'dataSource', 'delay', 'displayItemsCount', 'enableAutoPlay', 'enabled', 'enableRTL', 'fields', 'frameSpace', 'isResponsive', 'navigateSteps', 'orientation', 'pagerPosition', 'query', 'showCaption', 'showNavigateButton', 'showPager', 'showPlayButton', 'showThumbnail', 'slideHeight', 'slideWidth', 'startIndex', 'stopOnHover', 'template', 'templateId', 'thumbnailSourceID'], [], { 'enableRTL': ['enableRtl'], 'thumbnailSourceID': ['thumbnailSourceId'] }), _dec210 = (0, _aureliaDependencyInjection.inject)(Element), _dec208(_class76 = _dec209(_class76 = _dec210(_class76 = function (_WidgetBase50) { + _inherits(ejRotator, _WidgetBase50); - function ejPager(element) { - _classCallCheck(this, ejPager); + function ejRotator(element) { + _classCallCheck(this, ejRotator); - var _this41 = _possibleConstructorReturn(this, _WidgetBase35.call(this)); + var _this50 = _possibleConstructorReturn(this, _WidgetBase50.call(this)); - _this41.element = element; - return _this41; + _this50.element = element; + return _this50; } - return ejPager; -}(WidgetBase)) || _class58) || _class58) || _class58) || _class58); -var ejPdfViewer = exports.ejPdfViewer = (_dec153 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pdf-viewer'), _dec154 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec155 = generateBindables('ejPdfViewer', ['locale', 'toolbarSettings', 'serverActionSettings', 'serviceUrl', 'documentPath', 'enableTextMarkupAnnotations', 'enableHighlightAnnotation', 'enableUnderlineAnnotation', 'enableStrikethroughAnnotation', 'enableSignature', 'strikethroughSettings', 'underlineSettings', 'highlightSettings', 'signatureSettings', 'textSelectionContextMenu', 'annotationContextMenu', 'annotationType', 'pageCount', 'currentPageNumber', 'zoomPercentage', 'pdfService', 'interactionMode', 'bufferingMode', 'hyperlinkOpenState', 'enableHyperlink', 'enableTextSelection', 'isResponsive', 'isDocumentEdited', 'allowClientBuffering', 'fileName']), _dec156 = (0, _aureliaDependencyInjection.inject)(Element), _dec153(_class59 = _dec154(_class59 = _dec155(_class59 = _dec156(_class59 = function (_WidgetBase36) { - _inherits(ejPdfViewer, _WidgetBase36); + return ejRotator; +}(WidgetBase)) || _class76) || _class76) || _class76); +var ejRte = exports.ejRte = (_dec211 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'rte'), _dec212 = generateBindables('ejRTE', ['allowEditing', 'allowKeyboardNavigation', 'autoFocus', 'autoHeight', 'pasteCleanupSettings', 'colorCode', 'colorPaletteColumns', 'colorPaletteRows', 'cssClass', 'enabled', 'enableHtmlEncode', 'enablePersistence', 'enableResize', 'enableRTL', 'enableXHTML', 'enableTabKeyNavigation', 'exportToPdfSettings', 'exportToWordSettings', 'externalCSS', 'fileBrowser', 'fontName', 'fontSize', 'format', 'height', 'htmlAttributes', 'iframeAttributes', 'imageBrowser', 'importSettings', 'isResponsive', 'locale', 'maxHeight', 'maxLength', 'maxWidth', 'minHeight', 'minWidth', 'name', 'showClearAll', 'showClearFormat', 'showCustomTable', 'showContextMenu', 'showDimensions', 'showFontOption', 'showFooter', 'showHtmlSource', 'showHtmlTagInfo', 'showToolbar', 'showCharCount', 'showRoundedCorner', 'showWordCount', 'tableColumns', 'tableRows', 'tools', 'toolsList', 'toolbarOverflowMode', 'tooltipSettings', 'undoStackLimit', 'value', 'validationRules', 'validationMessage', 'width', 'zoomStep'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec213 = (0, _aureliaDependencyInjection.inject)(Element), _dec211(_class77 = _dec212(_class77 = _dec213(_class77 = function (_WidgetBase51) { + _inherits(ejRte, _WidgetBase51); - function ejPdfViewer(element) { - _classCallCheck(this, ejPdfViewer); + function ejRte(element) { + _classCallCheck(this, ejRte); - var _this42 = _possibleConstructorReturn(this, _WidgetBase36.call(this)); + var _this51 = _possibleConstructorReturn(this, _WidgetBase51.call(this)); - _this42.element = element; - return _this42; + _this51.element = element; + return _this51; } - return ejPdfViewer; -}(WidgetBase)) || _class59) || _class59) || _class59) || _class59); -var ejPercentageTextbox = exports.ejPercentageTextbox = (_dec157 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'percentage-textbox'), _dec158 = generateBindables('ejPercentageTextbox', ['currencySymbol', 'cssClass', 'decimalPlaces', 'enabled', 'enablePersistence', 'enableRTL', 'enableStrictMode', 'groupSize', 'groupSeparator', 'height', 'htmlAttributes', 'incrementStep', 'locale', 'maxValue', 'minValue', 'name', 'negativePattern', 'positivePattern', 'readOnly', 'showRoundedCorner', 'showSpinButton', 'validateOnType', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec159 = (0, _aureliaDependencyInjection.inject)(Element), _dec157(_class60 = _dec158(_class60 = _dec159(_class60 = function (_WidgetBase37) { - _inherits(ejPercentageTextbox, _WidgetBase37); + return ejRte; +}(WidgetBase)) || _class77) || _class77) || _class77); +var ejSchedule = exports.ejSchedule = (_dec214 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'schedule'), _dec215 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec216 = generateBindables('ejSchedule', ['allowDragAndDrop', 'allowInline', 'allowDelete', 'allowKeyboardNavigation', 'appointmentSettings', 'appointmentTemplateId', 'cssClass', 'categorizeSettings', 'cellHeight', 'cellWidth', 'contextMenuSettings', 'currentDate', 'currentView', 'dateFormat', 'showAppointmentNavigator', 'enableAppointmentResize', 'enableLoadOnDemand', 'enablePersistence', 'enableRTL', 'endHour', 'group', 'height', 'workHours', 'isDST', 'isResponsive', 'locale', 'maxDate', 'minDate', 'orientation', 'prioritySettings', 'readOnly', 'reminderSettings', 'renderDates', 'resourceHeaderTemplateId', 'resources', 'showAllDayRow', 'showWeekend', 'showCurrentTimeIndicator', 'showHeaderBar', 'showLocationField', 'showTimeZoneFields', 'showQuickWindow', 'startHour', 'timeMode', 'timeZone', 'timeZoneCollection', 'views', 'width', 'enableRecurrenceValidation', 'agendaViewSettings', 'firstDayOfWeek', 'workWeek', 'tooltipSettings', 'timeScale', 'showDeleteConfirmationDialog', 'allDayCellsTemplateId', 'workCellsTemplateId', 'dateHeaderTemplateId', 'showOverflowButton', 'appointmentDragArea', 'showNextPrevMonth', 'blockoutSettings'], ['currentView', 'currentDate'], { 'enableRTL': ['enableRtl'] }), _dec217 = (0, _aureliaDependencyInjection.inject)(Element), _dec218 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'schedule-resource'), _dec214(_class78 = _dec215(_class78 = _dec216(_class78 = _dec217(_class78 = (_class79 = function (_WidgetBase52) { + _inherits(ejSchedule, _WidgetBase52); - function ejPercentageTextbox(element) { - _classCallCheck(this, ejPercentageTextbox); + function ejSchedule(element) { + _classCallCheck(this, ejSchedule); - var _this43 = _possibleConstructorReturn(this, _WidgetBase37.call(this)); + var _this52 = _possibleConstructorReturn(this, _WidgetBase52.call(this)); - _this43.isEditor = true; - _this43.element = element; - return _this43; + _initDefineProp(_this52, 'resources', _descriptor10, _this52); + + _this52.element = element; + _this52.hasChildProperty = true; + _this52.childPropertyName = 'resources'; + return _this52; } - return ejPercentageTextbox; -}(WidgetBase)) || _class60) || _class60) || _class60); -var ejPivotChart = exports.ejPivotChart = (_dec160 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pivot-chart'), _dec161 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec162 = generateBindables('ejPivotChart', ['analysisMode', 'cssClass', 'zooming', 'commonSeriesOptions', 'dataSource', 'customObject', 'enable3D', 'enableRTL', 'enableMultiLevelLabels', 'isResponsive', 'legend', 'locale', 'operationalMode', 'axes', 'primaryXAxis', 'primaryYAxis', 'rotation', 'enableContextMenu', 'serviceMethodSettings', 'size', 'title', 'url', 'enableXHRCredentials'], [], { 'enableRTL': ['enableRtl'] }), _dec163 = (0, _aureliaDependencyInjection.inject)(Element), _dec160(_class61 = _dec161(_class61 = _dec162(_class61 = _dec163(_class61 = function (_WidgetBase38) { - _inherits(ejPivotChart, _WidgetBase38); + return ejSchedule; +}(WidgetBase), (_descriptor10 = _applyDecoratedDescriptor(_class79.prototype, 'resources', [_dec218], { + enumerable: true, + initializer: function initializer() { + return []; + } +})), _class79)) || _class78) || _class78) || _class78) || _class78); +var ScheduleResource = exports.ScheduleResource = (_dec219 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec220 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'schedule-resource'), _dec221 = generateBindables('resources', ['field', 'title', 'name', 'allowMultiple', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings']), _dec219(_class81 = _dec220(_class81 = _dec221(_class81 = function ScheduleResource() { + _classCallCheck(this, ScheduleResource); +}) || _class81) || _class81) || _class81); +var ejScroller = exports.ejScroller = (_dec222 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'scroller'), _dec223 = generateBindables('ejScroller', ['animationSpeed', 'autoHide', 'buttonSize', 'enabled', 'enablePersistence', 'enableRTL', 'enableTouchScroll', 'height', 'scrollerSize', 'scrollLeft', 'scrollOneStepBy', 'scrollTop', 'targetPane', 'width'], ['scrollLeft', 'scrollTop'], { 'enableRTL': ['enableRtl'] }), _dec224 = (0, _aureliaDependencyInjection.inject)(Element), _dec222(_class82 = _dec223(_class82 = _dec224(_class82 = function (_WidgetBase53) { + _inherits(ejScroller, _WidgetBase53); - function ejPivotChart(element) { - _classCallCheck(this, ejPivotChart); + function ejScroller(element) { + _classCallCheck(this, ejScroller); - var _this44 = _possibleConstructorReturn(this, _WidgetBase38.call(this)); + var _this53 = _possibleConstructorReturn(this, _WidgetBase53.call(this)); - _this44.element = element; - return _this44; + _this53.element = element; + return _this53; } - return ejPivotChart; -}(WidgetBase)) || _class61) || _class61) || _class61) || _class61); -var ejPivotGauge = exports.ejPivotGauge = (_dec164 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pivot-gauge'), _dec165 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec166 = generateBindables('ejPivotGauge', ['columnsCount', 'cssClass', 'customObject', 'dataSource', 'enableAnimation', 'enableTooltip', 'enableRTL', 'frame', 'isResponsive', 'labelFormatSettings', 'locale', 'rowsCount', 'scales', 'serviceMethodSettings', 'showHeaderLabel', 'url', 'analysisMode', 'operationalMode', 'enableXHRCredentials'], [], { 'enableRTL': ['enableRtl'] }), _dec167 = (0, _aureliaDependencyInjection.inject)(Element), _dec164(_class62 = _dec165(_class62 = _dec166(_class62 = _dec167(_class62 = function (_WidgetBase39) { - _inherits(ejPivotGauge, _WidgetBase39); + return ejScroller; +}(WidgetBase)) || _class82) || _class82) || _class82); +var ejSignature = exports.ejSignature = (_dec225 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'signature'), _dec226 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec227 = generateBindables('ejSignature', ['backgroundColor', 'backgroundImage', 'enabled', 'height', 'isResponsive', 'saveImageFormat', 'saveWithBackground', 'showRoundedCorner', 'strokeColor', 'strokeWidth', 'width']), _dec228 = (0, _aureliaDependencyInjection.inject)(Element), _dec225(_class83 = _dec226(_class83 = _dec227(_class83 = _dec228(_class83 = function (_WidgetBase54) { + _inherits(ejSignature, _WidgetBase54); - function ejPivotGauge(element) { - _classCallCheck(this, ejPivotGauge); + function ejSignature(element) { + _classCallCheck(this, ejSignature); - var _this45 = _possibleConstructorReturn(this, _WidgetBase39.call(this)); + var _this54 = _possibleConstructorReturn(this, _WidgetBase54.call(this)); - _this45.element = element; - return _this45; + _this54.element = element; + return _this54; } - return ejPivotGauge; -}(WidgetBase)) || _class62) || _class62) || _class62) || _class62); -var ejPivotGrid = exports.ejPivotGrid = (_dec168 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pivot-grid'), _dec169 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec170 = generateBindables('ejPivotGrid', ['analysisMode', 'cssClass', 'pivotTableFieldListID', 'dataSource', 'valueSortSettings', 'frozenHeaderSettings', 'headerSettings', 'showUniqueNameOnPivotButton', 'customObject', 'collapsedMembers', 'enableCellContext', 'enableCellSelection', 'enableDrillThrough', 'enableCellClick', 'enableCellDoubleClick', 'enableCellEditing', 'enableCollapseByDefault', 'enableColumnGrandTotal', 'enableConditionalFormatting', 'enableAdvancedFilter', 'enableDeferUpdate', 'enableGroupingBar', 'maxNodeLimitInMemberEditor', 'enableMemberEditorPaging', 'memberEditorPageSize', 'enableMemberEditorSorting', 'enableGrandTotal', 'enableJSONRendering', 'enablePivotFieldList', 'enableRowGrandTotal', 'enableRTL', 'enableToolTip', 'enableToolTipAnimation', 'enableColumnResizing', 'resizeColumnsToFit', 'enableContextMenu', 'enableVirtualScrolling', 'enablePaging', 'hyperlinkSettings', 'isResponsive', 'jsonRecords', 'layout', 'locale', 'operationalMode', 'serviceMethodSettings', 'url', 'enableCompleteDataExport', 'enableXHRCredentials'], [], { 'pivotTableFieldListID': ['pivotTableFieldListId'], 'enableRTL': ['enableRtl'] }), _dec171 = (0, _aureliaDependencyInjection.inject)(Element), _dec168(_class63 = _dec169(_class63 = _dec170(_class63 = _dec171(_class63 = function (_WidgetBase40) { - _inherits(ejPivotGrid, _WidgetBase40); + return ejSignature; +}(WidgetBase)) || _class83) || _class83) || _class83) || _class83); +var ejSlider = exports.ejSlider = (_dec229 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'slider'), _dec230 = generateBindables('ejSlider', ['allowMouseWheel', 'animationSpeed', 'cssClass', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'height', 'htmlAttributes', 'incrementStep', 'largeStep', 'maxValue', 'minValue', 'orientation', 'readOnly', 'showButtons', 'showRoundedCorner', 'showScale', 'showSmallTicks', 'showTooltip', 'sliderType', 'smallStep', 'value', 'values', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec231 = (0, _aureliaDependencyInjection.inject)(Element), _dec229(_class84 = _dec230(_class84 = _dec231(_class84 = function (_WidgetBase55) { + _inherits(ejSlider, _WidgetBase55); - function ejPivotGrid(element) { - _classCallCheck(this, ejPivotGrid); + function ejSlider(element) { + _classCallCheck(this, ejSlider); - var _this46 = _possibleConstructorReturn(this, _WidgetBase40.call(this)); + var _this55 = _possibleConstructorReturn(this, _WidgetBase55.call(this)); - _this46.element = element; - return _this46; + _this55.element = element; + return _this55; } - return ejPivotGrid; -}(WidgetBase)) || _class63) || _class63) || _class63) || _class63); -var ejPivotSchemaDesigner = exports.ejPivotSchemaDesigner = (_dec172 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pivot-schema-designer'), _dec173 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec174 = generateBindables('ejPivotSchemaDesigner', ['cssClass', 'customObject', 'enableWrapper', 'enableRTL', 'olap', 'enableDragDrop', 'height', 'locale', 'pivotControl', 'serviceMethods', 'url', 'width', 'layout'], [], { 'enableRTL': ['enableRtl'] }), _dec175 = (0, _aureliaDependencyInjection.inject)(Element), _dec172(_class64 = _dec173(_class64 = _dec174(_class64 = _dec175(_class64 = function (_WidgetBase41) { - _inherits(ejPivotSchemaDesigner, _WidgetBase41); + return ejSlider; +}(WidgetBase)) || _class84) || _class84) || _class84); +var ejSparkline = exports.ejSparkline = (_dec232 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'sparkline'), _dec233 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec234 = generateBindables('ejSparkline', ['background', 'fill', 'stroke', 'border', 'width', 'opacity', 'highPointColor', 'lowPointColor', 'startPointColor', 'endPointColor', 'negativePointColor', 'rangeBandSettings', 'locale', 'palette', 'isResponsive', 'enableCanvasRendering', 'enableGroupSeparator', 'dataSource', 'xName', 'yName', 'padding', 'type', 'theme', 'tooltip', 'markerSettings', 'size', 'axisLineSettings']), _dec235 = (0, _aureliaDependencyInjection.inject)(Element), _dec232(_class85 = _dec233(_class85 = _dec234(_class85 = _dec235(_class85 = function (_WidgetBase56) { + _inherits(ejSparkline, _WidgetBase56); - function ejPivotSchemaDesigner(element) { - _classCallCheck(this, ejPivotSchemaDesigner); + function ejSparkline(element) { + _classCallCheck(this, ejSparkline); - var _this47 = _possibleConstructorReturn(this, _WidgetBase41.call(this)); + var _this56 = _possibleConstructorReturn(this, _WidgetBase56.call(this)); - _this47.element = element; - return _this47; + _this56.element = element; + return _this56; } - return ejPivotSchemaDesigner; -}(WidgetBase)) || _class64) || _class64) || _class64) || _class64); -var ejPivotTreeMap = exports.ejPivotTreeMap = (_dec176 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'pivot-tree-map'), _dec177 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec178 = generateBindables('ejPivotTreeMap', ['cssClass', 'dataSource', 'customObject', 'isResponsive', 'locale', 'operationalMode', 'serviceMethodSettings', 'url', 'enableXHRCredentials']), _dec179 = (0, _aureliaDependencyInjection.inject)(Element), _dec176(_class65 = _dec177(_class65 = _dec178(_class65 = _dec179(_class65 = function (_WidgetBase42) { - _inherits(ejPivotTreeMap, _WidgetBase42); + return ejSparkline; +}(WidgetBase)) || _class85) || _class85) || _class85) || _class85); +var ejSpellCheck = exports.ejSpellCheck = (_dec236 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'spell-check'), _dec237 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec238 = generateBindables('ejSpellCheck', ['dictionarySettings', 'misspellWordCss', 'locale', 'maxSuggestionCount', 'ignoreWords', 'contextMenuSettings', 'ignoreSettings', 'isResponsive', 'enableValidateOnType', 'controlsToValidate', 'enableAsync', 'ajaxRequestType', 'ajaxDataType']), _dec239 = (0, _aureliaDependencyInjection.inject)(Element), _dec236(_class86 = _dec237(_class86 = _dec238(_class86 = _dec239(_class86 = function (_WidgetBase57) { + _inherits(ejSpellCheck, _WidgetBase57); - function ejPivotTreeMap(element) { - _classCallCheck(this, ejPivotTreeMap); + function ejSpellCheck(element) { + _classCallCheck(this, ejSpellCheck); - var _this48 = _possibleConstructorReturn(this, _WidgetBase42.call(this)); + var _this57 = _possibleConstructorReturn(this, _WidgetBase57.call(this)); - _this48.element = element; - return _this48; + _this57.element = element; + return _this57; } - return ejPivotTreeMap; -}(WidgetBase)) || _class65) || _class65) || _class65) || _class65); -var ejProgressBar = exports.ejProgressBar = (_dec180 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'progress-bar'), _dec181 = generateBindables('ejProgressBar', ['cssClass', 'enabled', 'enablePersistence', 'enableRTL', 'height', 'htmlAttributes', 'maxValue', 'minValue', 'percentage', 'showRoundedCorner', 'text', 'value', 'width'], [], { 'enableRTL': ['enableRtl'] }), _dec182 = (0, _aureliaDependencyInjection.inject)(Element), _dec180(_class66 = _dec181(_class66 = _dec182(_class66 = function (_WidgetBase43) { - _inherits(ejProgressBar, _WidgetBase43); + return ejSpellCheck; +}(WidgetBase)) || _class86) || _class86) || _class86) || _class86); +var ejSplitButton = exports.ejSplitButton = (_dec240 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'split-button'), _dec241 = generateBindables('ejSplitButton', ['arrowPosition', 'buttonMode', 'contentType', 'cssClass', 'enabled', 'enableRTL', 'height', 'htmlAttributes', 'imagePosition', 'prefixIcon', 'showRoundedCorner', 'size', 'suffixIcon', 'targetID', 'target', 'text', 'width'], [], { 'enableRTL': ['enableRtl'], 'targetID': ['targetId'] }), _dec242 = (0, _aureliaDependencyInjection.inject)(Element), _dec240(_class87 = _dec241(_class87 = _dec242(_class87 = function (_WidgetBase58) { + _inherits(ejSplitButton, _WidgetBase58); - function ejProgressBar(element) { - _classCallCheck(this, ejProgressBar); + function ejSplitButton(element) { + _classCallCheck(this, ejSplitButton); - var _this49 = _possibleConstructorReturn(this, _WidgetBase43.call(this)); + var _this58 = _possibleConstructorReturn(this, _WidgetBase58.call(this)); - _this49.element = element; - return _this49; + _this58.element = element; + return _this58; } - return ejProgressBar; -}(WidgetBase)) || _class66) || _class66) || _class66); -var Item = exports.Item = (_dec183 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec184 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'item'), _dec185 = generateBindables('items', ['imageUrl', 'prependTo', 'text', 'enabled', 'click', 'badge', 'badge', 'badge', 'type', 'sliderSettings', 'sliderSettings', 'sliderSettings', 'sliderSettings', 'items']), _dec186 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'template'), _dec183(_class67 = _dec184(_class67 = _dec185(_class67 = (_class68 = function () { - function Item() { - _classCallCheck(this, Item); + return ejSplitButton; +}(WidgetBase)) || _class87) || _class87) || _class87); +var ejSplitter = exports.ejSplitter = (_dec243 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'splitter'), _dec244 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec245 = generateBindables('ejSplitter', ['allowKeyboardNavigation', 'animationSpeed', 'cssClass', 'enableAnimation', 'enableRTL', 'expanderTemplate', 'height', 'htmlAttributes', 'isResponsive', 'orientation', 'properties', 'width'], [], { 'enableRTL': ['enableRtl'] }), _dec246 = (0, _aureliaDependencyInjection.inject)(Element), _dec243(_class88 = _dec244(_class88 = _dec245(_class88 = _dec246(_class88 = function (_WidgetBase59) { + _inherits(ejSplitter, _WidgetBase59); + + function ejSplitter(element) { + _classCallCheck(this, ejSplitter); - _initDefineProp(this, 'template', _descriptor8, this); + var _this59 = _possibleConstructorReturn(this, _WidgetBase59.call(this)); + + _this59.element = element; + return _this59; } - Item.prototype.setTemplates = function setTemplates() { - if (this.template[0]) { - var util = new Util(); - this[util.getBindablePropertyName('template')] = this.template[0].template; + return ejSplitter; +}(WidgetBase)) || _class88) || _class88) || _class88) || _class88); +exports.customAttribute = _aureliaTemplating.customAttribute; +exports.bindable = _aureliaTemplating.bindable; +exports.inject = _aureliaDependencyInjection.inject; +exports.inlineView = _aureliaTemplating.inlineView; +exports.customElement = _aureliaTemplating.customElement; +exports.children = _aureliaTemplating.children; +exports.TemplatingEngine = _aureliaTemplating.TemplatingEngine; +var constants = exports.constants = { + eventPrefix: 'e-on-', + bindablePrefix: 'e-', + attributePrefix: 'ej-', + elementPrefix: 'ej-', + aureliaTemplateString: '' +}; + +function generateBindables(controlName, inputs, twoWayProperties, abbrevProperties, observerCollection) { + return function (target, key, descriptor) { + var behaviorResource = _aureliaMetadata.metadata.getOrCreateOwn(_aureliaMetadata.metadata.resource, _aureliaTemplating.HtmlBehaviorResource, target); + var container = _aureliaDependencyInjection.Container.instance || new _aureliaDependencyInjection.Container(); + var util = container.get(Util); + var bindingInstance = container.get(_aureliaBinding.BindingEngine); + inputs.push('options'); + inputs.push('widget'); + var len = inputs.length; + if (observerCollection) { + target.prototype.arrayObserver = []; + observerCollection.forEach(function (element) { + target.prototype.arrayObserver.push(util.getBindablePropertyName(element)); + }); + target.prototype.bindingInstance = bindingInstance; + } + target.prototype.controlName = controlName; + target.prototype.twoWays = twoWayProperties ? twoWayProperties : []; + target.prototype.abbrevProperties = abbrevProperties ? abbrevProperties : []; + if (len) { + target.prototype.controlProperties = inputs; + for (var i = 0; i < len; i++) { + var option = inputs[i]; + if (abbrevProperties && option in abbrevProperties) { + option = abbrevProperties[option]; + option.forEach(function (prop) { + registerProp(util, prop, target, behaviorResource, descriptor); + }); + } else { + registerProp(util, option, target, behaviorResource, descriptor); + } + } } }; +} - return Item; -}(), (_descriptor8 = _applyDecoratedDescriptor(_class68.prototype, 'template', [_dec186], { - enumerable: true, - initializer: function initializer() { - return []; - } -})), _class68)) || _class67) || _class67) || _class67); -var ejRadialMenu = exports.ejRadialMenu = (_dec187 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'radial-menu'), _dec188 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec189 = generateBindables('ejRadialMenu', ['autoOpen', 'backImageClass', 'cssClass', 'enableAnimation', 'imageClass', 'items', 'radius', 'targetElementId', 'position']), _dec190 = (0, _aureliaDependencyInjection.inject)(Element, _aureliaTemplating.TemplatingEngine), _dec191 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'item'), _dec187(_class70 = _dec188(_class70 = _dec189(_class70 = _dec190(_class70 = (_class71 = function (_WidgetBase44) { - _inherits(ejRadialMenu, _WidgetBase44); - - function ejRadialMenu(element, templateEngine) { - _classCallCheck(this, ejRadialMenu); - - var _this50 = _possibleConstructorReturn(this, _WidgetBase44.call(this)); - - _initDefineProp(_this50, 'items', _descriptor9, _this50); - - _this50.element = element; - _this50.hasChildProperty = true; - _this50.childPropertyName = 'items'; - _this50.templateProcessor = new TemplateProcessor(_this50, templateEngine); - _this50.templateProcessor.initTemplate(); - return _this50; - } +function registerProp(util, option, target, behaviorResource, descriptor) { + var nameOrConfigOrTarget = { + name: util.getBindablePropertyName(option) + }; - return ejRadialMenu; -}(WidgetBase), (_descriptor9 = _applyDecoratedDescriptor(_class71.prototype, 'items', [_dec191], { - enumerable: true, - initializer: function initializer() { - return []; + if (option === 'widget') { + nameOrConfigOrTarget.defaultBindingMode = _aureliaBinding.bindingMode.twoWay; } -})), _class71)) || _class70) || _class70) || _class70) || _class70); -var ejRadialSlider = exports.ejRadialSlider = (_dec192 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'radial-slider'), _dec193 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec194 = generateBindables('ejRadialSlider', ['autoOpen', 'cssClass', 'enableAnimation', 'enableRoundOff', 'endAngle', 'inline', 'innerCircleImageClass', 'innerCircleImageUrl', 'labelSpace', 'locale', 'radius', 'showInnerCircle', 'startAngle', 'strokeWidth', 'ticks', 'value'], ['value', 'ticks']), _dec195 = (0, _aureliaDependencyInjection.inject)(Element), _dec192(_class73 = _dec193(_class73 = _dec194(_class73 = _dec195(_class73 = function (_WidgetBase45) { - _inherits(ejRadialSlider, _WidgetBase45); - function ejRadialSlider(element) { - _classCallCheck(this, ejRadialSlider); + var prop = new _aureliaTemplating.BindableProperty(nameOrConfigOrTarget); + prop.registerWith(target, behaviorResource, descriptor); +} - var _this51 = _possibleConstructorReturn(this, _WidgetBase45.call(this)); +function delayed() { + return function (target, key, descriptor) { + var taskQueue = (_aureliaDependencyInjection.Container.instance || new _aureliaDependencyInjection.Container()).get(_aureliaTaskQueue.TaskQueue); + var ptr = descriptor.value; - _this51.element = element; - return _this51; - } + descriptor.value = function () { + var _this60 = this; - return ejRadialSlider; -}(WidgetBase)) || _class73) || _class73) || _class73) || _class73); -var ejRadioButton = exports.ejRadioButton = (_dec196 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'radio-button'), _dec197 = generateBindables('ejRadioButton', ['checked', 'cssClass', 'enabled', 'enablePersistence', 'enableRTL', 'htmlAttributes', 'id', 'idPrefix', 'name', 'size', 'text', 'validationMessage', 'validationRules', 'value'], [], { 'enableRTL': ['enableRtl'] }), _dec198 = (0, _aureliaDependencyInjection.inject)(Element), _dec196(_class74 = _dec197(_class74 = _dec198(_class74 = function (_WidgetBase46) { - _inherits(ejRadioButton, _WidgetBase46); + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - function ejRadioButton(element) { - _classCallCheck(this, ejRadioButton); + if (this.childPropertyName) { + taskQueue.queueTask(function () { + return ptr.apply(_this60, args); + }); + } else { + ptr.apply(this, args); + } + }; - var _this52 = _possibleConstructorReturn(this, _WidgetBase46.call(this)); + return descriptor; + }; +} - _this52.element = element; - return _this52; - } +function getEventOption(element) { + var name = void 0; + var attr = void 0; + var attributes = element.attributes; + var option = {}; + var container = _aureliaDependencyInjection.Container.instance || new _aureliaDependencyInjection.Container(); + var util = container.get(Util); - return ejRadioButton; -}(WidgetBase)) || _class74) || _class74) || _class74); -var ejRangeNavigator = exports.ejRangeNavigator = (_dec199 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'range-navigator'), _dec200 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec201 = generateBindables('ejRangeNavigator', ['allowSnapping', 'allowNextValue', 'border', 'dataSource', 'series', 'seriesSettings', 'enableDeferredUpdate', 'enableScrollbar', 'enableAutoResizing', 'enableRTL', 'isResponsive', 'labelSettings', 'locale', 'navigatorStyleSettings', 'padding', 'rangePadding', 'rangeSettings', 'selectedData', 'selectedRangeSettings', 'scrollRangeSettings', 'sizeSettings', 'theme', 'tooltipSettings', 'valueAxisSettings', 'valueType', 'xName', 'yName'], [], { 'enableRTL': ['enableRtl'] }), _dec202 = (0, _aureliaDependencyInjection.inject)(Element), _dec203 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'range-series'), _dec199(_class75 = _dec200(_class75 = _dec201(_class75 = _dec202(_class75 = (_class76 = function (_WidgetBase47) { - _inherits(ejRangeNavigator, _WidgetBase47); + var _loop = function _loop(i, len) { + attr = attributes[i]; + name = attr.name; + if (!name.startsWith(constants.eventPrefix)) { + return 'continue'; + } + var actualEventName = name.split('.')[0]; + var eventName = util._unhyphenate(actualEventName.split(constants.eventPrefix)[1]); + option[eventName] = function (e) { + return fireEvent(element, actualEventName, e); + }; + }; - function ejRangeNavigator(element) { - _classCallCheck(this, ejRangeNavigator); + for (var i = 0, len = attributes.length; i < len; i++) { + var _ret = _loop(i, len); - var _this53 = _possibleConstructorReturn(this, _WidgetBase47.call(this)); + if (_ret === 'continue') continue; + } + return option; +} +function fireEvent(element, name) { + var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - _initDefineProp(_this53, 'series', _descriptor10, _this53); + var event = new CustomEvent(name, { + detail: data, + bubbles: true + }); + element.dispatchEvent(event); + return event; +} - _this53.element = element; - _this53.hasChildProperty = true; - _this53.childPropertyName = 'series'; - return _this53; - } +var TemplateProcessor = exports.TemplateProcessor = (_dec247 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.TemplatingEngine, Util), _dec247(_class89 = function () { + function TemplateProcessor(context, templateEngine) { + _classCallCheck(this, TemplateProcessor); - return ejRangeNavigator; -}(WidgetBase), (_descriptor10 = _applyDecoratedDescriptor(_class76.prototype, 'series', [_dec203], { - enumerable: true, - initializer: function initializer() { - return []; + this.context = context; + this.templatingEngine = templateEngine; + this.util = new Util(); } -})), _class76)) || _class75) || _class75) || _class75) || _class75); -var RangeSeries = exports.RangeSeries = (_dec204 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec205 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'range-series'), _dec206 = generateBindables('series', ['xName', 'yName', 'dataSource', 'type', 'enableAnimation', 'fill']), _dec204(_class78 = _dec205(_class78 = _dec206(_class78 = function RangeSeries() { - _classCallCheck(this, RangeSeries); -}) || _class78) || _class78) || _class78); -var ejRating = exports.ejRating = (_dec207 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'rating'), _dec208 = generateBindables('ejRating', ['allowReset', 'cssClass', 'enabled', 'enablePersistence', 'height', 'htmlAttributes', 'incrementStep', 'maxValue', 'minValue', 'orientation', 'precision', 'readOnly', 'shapeHeight', 'shapeWidth', 'showTooltip', 'value', 'width'], ['value']), _dec209 = (0, _aureliaDependencyInjection.inject)(Element), _dec207(_class79 = _dec208(_class79 = _dec209(_class79 = function (_WidgetBase48) { - _inherits(ejRating, _WidgetBase48); - function ejRating(element) { - _classCallCheck(this, ejRating); + TemplateProcessor.prototype.initTemplate = function initTemplate() { + var proxy = this; + ej.template.render = function (self, selector, data, index) { + return proxy.renderStringTemplate(self, selector, data, index); + }; + }; - var _this54 = _possibleConstructorReturn(this, _WidgetBase48.call(this)); + TemplateProcessor.prototype.initWidgetDependancies = function initWidgetDependancies() { + if (this.context.widget.aureliaTemplate) { + this.compileTemplate(this.context.widget.element); + } + var proxy = this.context; + var element = this.context.widget.element; + element.on(this.context.widget.pluginName + 'refresh', function () { + if (proxy.widget.aureliaTemplate) { + proxy.templateProcessor.compileTemplate(element); + } + }); + }; - _this54.element = element; - return _this54; - } + TemplateProcessor.prototype.renderStringTemplate = function renderStringTemplate(self, selector, data, index) { + var templateObject = self.aureliaTemplate; + if (!templateObject || !templateObject[selector]) { + templateObject = templateObject || {}; + templateObject[selector] = { key: ej.getGuid('aurtmpl'), itemData: [], views: [] }; + self.aureliaTemplate = templateObject; + } + var scope = templateObject[selector]; + if (this.util.hasValue(index)) { + scope.itemData[index] = data; + } else { + scope.itemData = [data]; + } + var actElement = $(selector).html(); + var tempElement = "
" + actElement + '
'; + return tempElement; + }; - return ejRating; -}(WidgetBase)) || _class79) || _class79) || _class79); -var ejRibbon = exports.ejRibbon = (_dec210 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'ribbon'), _dec211 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec212 = generateBindables('ejRibbon', ['allowResizing', 'isResponsive', 'buttonDefaults', 'showQAT', 'cssClass', 'collapsePinSettings', 'enableOnDemand', 'collapsible', 'enableRTL', 'expandPinSettings', 'applicationTab', 'contextualTabs', 'disabledItemIndex', 'enabledItemIndex', 'selectedItemIndex', 'tabs', 'locale', 'width'], [], { 'enableRTL': ['enableRtl'] }), _dec213 = (0, _aureliaDependencyInjection.inject)(Element), _dec210(_class80 = _dec211(_class80 = _dec212(_class80 = _dec213(_class80 = function (_WidgetBase49) { - _inherits(ejRibbon, _WidgetBase49); + TemplateProcessor.prototype.compileTemplate = function compileTemplate(element) { + var templates = $(element).find('.ej-aurelia-template'); + var templateObject = this.context.widget.aureliaTemplate; + for (var template in templateObject) { + var tmplElement = templates.filter('.' + templateObject[template].key); + if (tmplElement.length) { + for (var i = 0; i < tmplElement.length; i++) { + var dataIndex = parseInt($(tmplElement[i]).attr('ej-prop')); + var view = this.templatingEngine.enhance(tmplElement[i]); + view.bind(templateObject[template].itemData[dataIndex], this.context.parentCtx); + templateObject[template].views[dataIndex] = view; + } + } else { + this.unbindViews(templateObject[template]); + delete templateObject[template]; + } + } + }; - function ejRibbon(element) { - _classCallCheck(this, ejRibbon); + TemplateProcessor.prototype.clearTempalte = function clearTempalte() { + var templateObject = this.context.widget.aureliaTemplate; + if (templateObject && Object.keys(templateObject).length) { + for (var t in templateObject) { + this.unbindViews(templateObject[t]); + delete templateObject[t]; + } + } + }; - var _this55 = _possibleConstructorReturn(this, _WidgetBase49.call(this)); + TemplateProcessor.prototype.unbindViews = function unbindViews(obj) { + for (var i = 0; i < obj.views.length; i++) { + var view = obj.views[i]; + view.unbind(); + } + }; - _this55.element = element; - return _this55; + return TemplateProcessor; +}()) || _class89); +var Template = exports.Template = (_dec248 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'template'), _dec249 = (0, _aureliaTemplating.noView)(), _dec250 = (0, _aureliaTemplating.processContent)(function (compiler, resources, element, instruction) { + var html = element.innerHTML; + if (html !== '') { + instruction.template = html; } + element.innerHTML = ''; +}), _dec251 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.TargetInstruction), _dec248(_class90 = _dec249(_class90 = _dec250(_class90 = _dec251(_class90 = (_class91 = function Template(target) { + _classCallCheck(this, Template); - return ejRibbon; -}(WidgetBase)) || _class80) || _class80) || _class80) || _class80); -var ejRotator = exports.ejRotator = (_dec214 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'rotator'), _dec215 = generateBindables('ejRotator', ['allowKeyboardNavigation', 'animationSpeed', 'animationType', 'circularMode', 'cssClass', 'dataSource', 'delay', 'displayItemsCount', 'enableAutoPlay', 'enabled', 'enableRTL', 'fields', 'frameSpace', 'isResponsive', 'navigateSteps', 'orientation', 'pagerPosition', 'query', 'showCaption', 'showNavigateButton', 'showPager', 'showPlayButton', 'showThumbnail', 'slideHeight', 'slideWidth', 'startIndex', 'stopOnHover', 'template', 'templateId', 'thumbnailSourceID'], [], { 'enableRTL': ['enableRtl'], 'thumbnailSourceID': ['thumbnailSourceId'] }), _dec216 = (0, _aureliaDependencyInjection.inject)(Element), _dec214(_class81 = _dec215(_class81 = _dec216(_class81 = function (_WidgetBase50) { - _inherits(ejRotator, _WidgetBase50); - - function ejRotator(element) { - _classCallCheck(this, ejRotator); + _initDefineProp(this, 'template', _descriptor11, this); - var _this56 = _possibleConstructorReturn(this, _WidgetBase50.call(this)); + this.template = target.elementInstruction.template; +}, (_descriptor11 = _applyDecoratedDescriptor(_class91.prototype, 'template', [_aureliaTemplating.bindable], { + enumerable: true, + initializer: null +})), _class91)) || _class90) || _class90) || _class90) || _class90); - _this56.element = element; - return _this56; +var Util = exports.Util = function () { + function Util() { + _classCallCheck(this, Util); } - return ejRotator; -}(WidgetBase)) || _class81) || _class81) || _class81); -var ejRte = exports.ejRte = (_dec217 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'rte'), _dec218 = generateBindables('ejRTE', ['allowEditing', 'allowKeyboardNavigation', 'autoFocus', 'autoHeight', 'pasteCleanupSettings', 'colorCode', 'colorPaletteColumns', 'colorPaletteRows', 'cssClass', 'enabled', 'enableHtmlEncode', 'enablePersistence', 'enableResize', 'enableRTL', 'enableXHTML', 'enableTabKeyNavigation', 'exportToPdfSettings', 'exportToWordSettings', 'externalCSS', 'fileBrowser', 'fontName', 'fontSize', 'format', 'height', 'htmlAttributes', 'iframeAttributes', 'imageBrowser', 'importSettings', 'isResponsive', 'locale', 'maxHeight', 'maxLength', 'maxWidth', 'minHeight', 'minWidth', 'name', 'showClearAll', 'showClearFormat', 'showCustomTable', 'showContextMenu', 'showDimensions', 'showFontOption', 'showFooter', 'showHtmlSource', 'showHtmlTagInfo', 'showToolbar', 'showCharCount', 'showRoundedCorner', 'showWordCount', 'tableColumns', 'tableRows', 'tools', 'toolsList', 'toolbarOverflowMode', 'tooltipSettings', 'undoStackLimit', 'value', 'validationRules', 'validationMessage', 'width', 'zoomStep'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec219 = (0, _aureliaDependencyInjection.inject)(Element), _dec217(_class82 = _dec218(_class82 = _dec219(_class82 = function (_WidgetBase51) { - _inherits(ejRte, _WidgetBase51); - - function ejRte(element) { - _classCallCheck(this, ejRte); - - var _this57 = _possibleConstructorReturn(this, _WidgetBase51.call(this)); + Util.prototype.getBindablePropertyName = function getBindablePropertyName(propertyName) { + var name = '' + constants.bindablePrefix + propertyName; + return this._unhyphenate(name); + }; - _this57.element = element; - return _this57; - } + Util.prototype._unhyphenate = function _unhyphenate(name) { + return name.replace(/-([a-z])/g, function (g) { + return g[1].toUpperCase(); + }); + }; - return ejRte; -}(WidgetBase)) || _class82) || _class82) || _class82); -var ejSchedule = exports.ejSchedule = (_dec220 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'schedule'), _dec221 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec222 = generateBindables('ejSchedule', ['allowDragAndDrop', 'allowInline', 'allowDelete', 'allowKeyboardNavigation', 'appointmentSettings', 'appointmentTemplateId', 'cssClass', 'categorizeSettings', 'cellHeight', 'cellWidth', 'contextMenuSettings', 'currentDate', 'currentView', 'dateFormat', 'showAppointmentNavigator', 'enableAppointmentResize', 'enableLoadOnDemand', 'enablePersistence', 'enableRTL', 'endHour', 'group', 'height', 'workHours', 'isDST', 'isResponsive', 'locale', 'maxDate', 'minDate', 'orientation', 'prioritySettings', 'readOnly', 'reminderSettings', 'renderDates', 'resourceHeaderTemplateId', 'resources', 'showAllDayRow', 'showWeekend', 'showCurrentTimeIndicator', 'showHeaderBar', 'showLocationField', 'showTimeZoneFields', 'showQuickWindow', 'startHour', 'timeMode', 'timeZone', 'timeZoneCollection', 'views', 'width', 'enableRecurrenceValidation', 'agendaViewSettings', 'firstDayOfWeek', 'workWeek', 'tooltipSettings', 'timeScale', 'showDeleteConfirmationDialog', 'allDayCellsTemplateId', 'workCellsTemplateId', 'dateHeaderTemplateId', 'showOverflowButton', 'appointmentDragArea', 'showNextPrevMonth', 'blockoutSettings'], ['currentView', 'currentDate'], { 'enableRTL': ['enableRtl'] }), _dec223 = (0, _aureliaDependencyInjection.inject)(Element), _dec224 = (0, _aureliaTemplating.children)(constants.elementPrefix + 'schedule-resource'), _dec220(_class83 = _dec221(_class83 = _dec222(_class83 = _dec223(_class83 = (_class84 = function (_WidgetBase52) { - _inherits(ejSchedule, _WidgetBase52); + Util.prototype.getOptions = function getOptions(model, properties) { + var _this61 = this; - function ejSchedule(element) { - _classCallCheck(this, ejSchedule); + var bindableproperites = {}; + var value = void 0; + for (var _iterator = properties, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + var _ref; - var _this58 = _possibleConstructorReturn(this, _WidgetBase52.call(this)); + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } - _initDefineProp(_this58, 'resources', _descriptor11, _this58); + var prop = _ref; - _this58.element = element; - _this58.hasChildProperty = true; - _this58.childPropertyName = 'resources'; - return _this58; - } + if (model.abbrevProperties && prop in model.abbrevProperties && model.abbrevProperties.hasOwnProperty(prop)) { + model.abbrevProperties[prop].some(function (property) { + value = model[_this61.getBindablePropertyName(property)]; + return _this61.hasValue(value); + }); + } else { + value = model[this.getBindablePropertyName(prop)]; + } + if (this.hasValue(value)) { + if (typeof value === 'string') { + value = this.processData(value); + } + bindableproperites[prop] = value; + } + } + return bindableproperites; + }; - return ejSchedule; -}(WidgetBase), (_descriptor11 = _applyDecoratedDescriptor(_class84.prototype, 'resources', [_dec224], { - enumerable: true, - initializer: function initializer() { - return []; - } -})), _class84)) || _class83) || _class83) || _class83) || _class83); -var ScheduleResource = exports.ScheduleResource = (_dec225 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec226 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'schedule-resource'), _dec227 = generateBindables('resources', ['field', 'title', 'name', 'allowMultiple', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings', 'resourceSettings']), _dec225(_class86 = _dec226(_class86 = _dec227(_class86 = function ScheduleResource() { - _classCallCheck(this, ScheduleResource); -}) || _class86) || _class86) || _class86); -var ejScroller = exports.ejScroller = (_dec228 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'scroller'), _dec229 = generateBindables('ejScroller', ['animationSpeed', 'autoHide', 'buttonSize', 'enabled', 'enablePersistence', 'enableRTL', 'enableTouchScroll', 'height', 'scrollerSize', 'scrollLeft', 'scrollOneStepBy', 'scrollTop', 'targetPane', 'width'], ['scrollLeft', 'scrollTop'], { 'enableRTL': ['enableRtl'] }), _dec230 = (0, _aureliaDependencyInjection.inject)(Element), _dec228(_class87 = _dec229(_class87 = _dec230(_class87 = function (_WidgetBase53) { - _inherits(ejScroller, _WidgetBase53); + Util.prototype.getControlPropertyName = function getControlPropertyName(options, propertyName) { + var _this62 = this; - function ejScroller(element) { - _classCallCheck(this, ejScroller); + var property = void 0; - var _this59 = _possibleConstructorReturn(this, _WidgetBase53.call(this)); + var _loop2 = function _loop2() { + if (_isArray2) { + if (_i2 >= _iterator2.length) return 'break'; + _ref2 = _iterator2[_i2++]; + } else { + _i2 = _iterator2.next(); + if (_i2.done) return 'break'; + _ref2 = _i2.value; + } - _this59.element = element; - return _this59; - } + var prop = _ref2; - return ejScroller; -}(WidgetBase)) || _class87) || _class87) || _class87); -var ejSignature = exports.ejSignature = (_dec231 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'signature'), _dec232 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec233 = generateBindables('ejSignature', ['backgroundColor', 'backgroundImage', 'enabled', 'height', 'isResponsive', 'saveImageFormat', 'saveWithBackground', 'showRoundedCorner', 'strokeColor', 'strokeWidth', 'width']), _dec234 = (0, _aureliaDependencyInjection.inject)(Element), _dec231(_class88 = _dec232(_class88 = _dec233(_class88 = _dec234(_class88 = function (_WidgetBase54) { - _inherits(ejSignature, _WidgetBase54); + if (options.abbrevProperties && prop in options.abbrevProperties && options.abbrevProperties.hasOwnProperty(prop)) { + options.abbrevProperties[prop].some(function (props) { + property = propertyName === _this62.getBindablePropertyName(props) ? prop : undefined; + return property; + }); + if (property) return 'break'; + } else if (propertyName === _this62.getBindablePropertyName(prop)) { + property = prop; + return 'break'; + } + }; - function ejSignature(element) { - _classCallCheck(this, ejSignature); + for (var _iterator2 = options.controlProperties, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { + var _ref2; - var _this60 = _possibleConstructorReturn(this, _WidgetBase54.call(this)); + var _ret2 = _loop2(); - _this60.element = element; - return _this60; - } + if (_ret2 === 'break') break; + } + return property; + }; - return ejSignature; -}(WidgetBase)) || _class88) || _class88) || _class88) || _class88); -var ejSlider = exports.ejSlider = (_dec235 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'slider'), _dec236 = generateBindables('ejSlider', ['allowMouseWheel', 'animationSpeed', 'cssClass', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'height', 'htmlAttributes', 'incrementStep', 'largeStep', 'maxValue', 'minValue', 'orientation', 'readOnly', 'showButtons', 'showRoundedCorner', 'showScale', 'showSmallTicks', 'showTooltip', 'sliderType', 'smallStep', 'value', 'values', 'width'], ['value'], { 'enableRTL': ['enableRtl'] }), _dec237 = (0, _aureliaDependencyInjection.inject)(Element), _dec235(_class89 = _dec236(_class89 = _dec237(_class89 = function (_WidgetBase55) { - _inherits(ejSlider, _WidgetBase55); + Util.prototype.hasValue = function hasValue(prop) { + return typeof prop !== 'undefined' && prop !== null; + }; - function ejSlider(element) { - _classCallCheck(this, ejSlider); + Util.prototype.processData = function processData(value) { + if (value === 'true') { + return true; + } else if (value === 'false') { + return false; + } else if (+value + '' === value) { + return +value; + } + return value; + }; - var _this61 = _possibleConstructorReturn(this, _WidgetBase55.call(this)); + return Util; +}(); - _this61.element = element; - return _this61; +var firstValue = {}; +var WidgetBase = exports.WidgetBase = (_dec252 = delayed(), (_class93 = function () { + function WidgetBase() { + _classCallCheck(this, WidgetBase); } - return ejSlider; -}(WidgetBase)) || _class89) || _class89) || _class89); -var ejSparkline = exports.ejSparkline = (_dec238 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'sparkline'), _dec239 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec240 = generateBindables('ejSparkline', ['background', 'fill', 'stroke', 'border', 'width', 'opacity', 'highPointColor', 'lowPointColor', 'startPointColor', 'endPointColor', 'negativePointColor', 'rangeBandSettings', 'locale', 'palette', 'isResponsive', 'enableCanvasRendering', 'enableGroupSeparator', 'dataSource', 'xName', 'yName', 'padding', 'type', 'theme', 'tooltip', 'markerSettings', 'size', 'axisLineSettings']), _dec241 = (0, _aureliaDependencyInjection.inject)(Element), _dec238(_class90 = _dec239(_class90 = _dec240(_class90 = _dec241(_class90 = function (_WidgetBase56) { - _inherits(ejSparkline, _WidgetBase56); - - function ejSparkline(element) { - _classCallCheck(this, ejSparkline); + WidgetBase.prototype.createWidget = function createWidget(option) { + var _this63 = this; - var _this62 = _possibleConstructorReturn(this, _WidgetBase56.call(this)); + this.allOption = this.getWidgetOptions(option.element); + if (!this.ejOptions && !this.isEditor) { + this.createTwoWays(); + } + this.eWidget = this.widget = jQuery($(option.element))[this.controlName](this.allOption).data(this.controlName); + if (this.templateProcessor) { + this.templateProcessor.initWidgetDependancies(); + } + if (this.isEditor) { + this.widget.model._change = function (evt) { + if ('eValue' in _this63) { + _this63[_this63.util.getBindablePropertyName('value')] = evt.value; + } + }; + } + }; - _this62.element = element; - return _this62; - } + WidgetBase.prototype.bind = function bind(ctx, overrideCtx) { + this.parentCtx = overrideCtx; + if (this.widget && this.widget.element && this.isEditor) { + this.widget.option('value', this.eValue === undefined ? null : this.eValue); + } + }; - return ejSparkline; -}(WidgetBase)) || _class90) || _class90) || _class90) || _class90); -var ejSpellCheck = exports.ejSpellCheck = (_dec242 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'spell-check'), _dec243 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec244 = generateBindables('ejSpellCheck', ['dictionarySettings', 'misspellWordCss', 'locale', 'maxSuggestionCount', 'ignoreWords', 'contextMenuSettings', 'ignoreSettings', 'isResponsive', 'enableValidateOnType', 'controlsToValidate', 'enableAsync', 'ajaxRequestType', 'ajaxDataType']), _dec245 = (0, _aureliaDependencyInjection.inject)(Element), _dec242(_class91 = _dec243(_class91 = _dec244(_class91 = _dec245(_class91 = function (_WidgetBase57) { - _inherits(ejSpellCheck, _WidgetBase57); + WidgetBase.prototype.createTwoWays = function createTwoWays() { + var model = this.allOption; + var twoWays = this.twoWays; + var len = twoWays.length; + for (var i = 0; i < len; i++) { + var _prop = twoWays[i]; + ej.createObject(_prop, this.addTwoways(_prop), model); + } + }; - function ejSpellCheck(element) { - _classCallCheck(this, ejSpellCheck); + WidgetBase.prototype.addTwoways = function addTwoways(prop) { + var model = this; + var value = firstValue; + return function (newVal, isApp) { + if (value === firstValue) { + var viewModelProp = model.util.getBindablePropertyName(prop); + value = model[viewModelProp]; + if (value === undefined) { + value = this.defaults[prop]; + } + return value; + } + if (newVal === undefined) { + return value; + } + if (value === newVal) { + return null; + } + value = newVal; + if (!isApp && model.util.hasValue(newVal)) { + var _viewModelProp = model.util.getBindablePropertyName(prop); + model[_viewModelProp] = newVal; + } + return null; + }; + }; - var _this63 = _possibleConstructorReturn(this, _WidgetBase57.call(this)); + WidgetBase.prototype.getWidgetOptions = function getWidgetOptions(element) { + var propOptions = void 0; + if (this.ejOptions) { + propOptions = this.ejOptions; + } else { + propOptions = this.util.getOptions(this, this.controlProperties); + } + var eventOption = getEventOption(element); + if (this.hasChildProperty) { + this.getChildProperties(propOptions); + } + return Object.assign({}, propOptions, eventOption); + }; - _this63.element = element; - return _this63; - } + WidgetBase.prototype.getChildProperties = function getChildProperties(options) { + var PropertyName = this.childPropertyName; + var childCollection = this[PropertyName]; + var len = childCollection.length; + if (len) { + options[PropertyName] = []; + var childProperties = childCollection[0].controlProperties; + for (var i = 0; i < len; i++) { + options[PropertyName].push(this.util.getOptions(childCollection[i], childProperties)); + } + } + }; - return ejSpellCheck; -}(WidgetBase)) || _class91) || _class91) || _class91) || _class91); -var ejSplitButton = exports.ejSplitButton = (_dec246 = (0, _aureliaTemplating.customAttribute)(constants.attributePrefix + 'split-button'), _dec247 = generateBindables('ejSplitButton', ['arrowPosition', 'buttonMode', 'contentType', 'cssClass', 'enabled', 'enableRTL', 'height', 'htmlAttributes', 'imagePosition', 'prefixIcon', 'showRoundedCorner', 'size', 'suffixIcon', 'targetID', 'target', 'text', 'width'], [], { 'enableRTL': ['enableRtl'], 'targetID': ['targetId'] }), _dec248 = (0, _aureliaDependencyInjection.inject)(Element), _dec246(_class92 = _dec247(_class92 = _dec248(_class92 = function (_WidgetBase58) { - _inherits(ejSplitButton, _WidgetBase58); + WidgetBase.prototype.attached = function attached() { + if (this.templateProcessor) { + this[this.childPropertyName].forEach(function (template) { + return template.setTemplates(); + }); + } + this.util = new Util(); + this.createWidget({ element: this.element }); + }; - function ejSplitButton(element) { - _classCallCheck(this, ejSplitButton); + WidgetBase.prototype.unsubscribe = function unsubscribe() { + if (this.subscription) { + this.subscription.dispose(); + this.subscription = null; + } + }; - var _this64 = _possibleConstructorReturn(this, _WidgetBase58.call(this)); + WidgetBase.prototype.unbind = function unbind() { + this.unsubscribe(); + }; - _this64.element = element; - return _this64; - } + WidgetBase.prototype.propertyChanged = function propertyChanged(property, newValue, oldValue) { + var _this64 = this; - return ejSplitButton; -}(WidgetBase)) || _class92) || _class92) || _class92); -var ejSplitter = exports.ejSplitter = (_dec249 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'splitter'), _dec250 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec251 = generateBindables('ejSplitter', ['allowKeyboardNavigation', 'animationSpeed', 'cssClass', 'enableAnimation', 'enableRTL', 'expanderTemplate', 'height', 'htmlAttributes', 'isResponsive', 'orientation', 'properties', 'width'], [], { 'enableRTL': ['enableRtl'] }), _dec252 = (0, _aureliaDependencyInjection.inject)(Element), _dec249(_class93 = _dec250(_class93 = _dec251(_class93 = _dec252(_class93 = function (_WidgetBase59) { - _inherits(ejSplitter, _WidgetBase59); + if (this.widget) { + var modelValue = void 0; + var _prop2 = this.util.getControlPropertyName(this, property); + this.unsubscribe(); + if (this.arrayObserver) { + this.arrayObserver.forEach(function (arrayProp) { + if (_this64[arrayProp] instanceof Array) { + _this64.subscription = _this64.bindingInstance.collectionObserver(_this64[arrayProp]).subscribe(function (e) { + _this64.update(e); + }); + } + }); + } + if (_prop2) { + if (_prop2 === 'widget') { + return; + } else if (_prop2 !== 'options') { + modelValue = this.widget.model[_prop2]; + var isTwoway = typeof modelValue === 'function'; + if (isTwoway) { + modelValue = modelValue(); + } + if (modelValue !== newValue) { + if (isTwoway) { + newValue = this.addTwoways(_prop2); + } + this.widget.option(_prop2, newValue); + } + } else { + this.widget.option(newValue); + } + } + } + }; - function ejSplitter(element) { - _classCallCheck(this, ejSplitter); + WidgetBase.prototype.update = function update(e) { + var _this65 = this; - var _this65 = _possibleConstructorReturn(this, _WidgetBase59.call(this)); + var modelValue = void 0; + var newVal = void 0; + if (e.length) { + this.arrayObserver.forEach(function (arrayProp) { + if (_this65[arrayProp] instanceof Array) { + var _prop3 = _this65.util.getControlPropertyName(_this65, arrayProp); + modelValue = _this65.widget.model[_prop3]; + if (typeof modelValue === 'function') { + modelValue = modelValue(); + newVal = modelValue; + newVal = _this65.addTwoways(_prop3); + _this65.widget.option(_prop3, newVal); + } else { + _this65.widget.option(_prop3, modelValue); + } + } + }); + } + }; - _this65.element = element; - return _this65; - } + WidgetBase.prototype.detached = function detached() { + if (this.templateProcessor) { + this.templateProcessor.clearTempalte(); + } + if (this.widget) { + this.widget.destroy(); + } + }; - return ejSplitter; -}(WidgetBase)) || _class93) || _class93) || _class93) || _class93); + return WidgetBase; +}(), (_applyDecoratedDescriptor(_class93.prototype, 'attached', [_dec252], Object.getOwnPropertyDescriptor(_class93.prototype, 'attached'), _class93.prototype)), _class93)); var Sheet = exports.Sheet = (_dec253 = (0, _aureliaTemplating.inlineView)('' + constants.aureliaTemplateString), _dec254 = (0, _aureliaTemplating.customElement)(constants.elementPrefix + 'sheet'), _dec255 = generateBindables('sheets', ['border', 'border', 'border', 'border', 'cellTypes', 'cFormatRule', 'cFormatRule', 'cFormatRule', 'cFormatRule', 'cFormatRule', 'colCount', 'columnWidth', 'dataSource', 'fieldAsColumnHeader', 'frozenRows', 'frozenColumns', 'headerStyles', 'hideColumns', 'hideRows', 'mergeCells', 'primaryKey', 'query', 'rangeSettings', 'rangeSettings', 'rangeSettings', 'rangeSettings', 'rangeSettings', 'rangeSettings', 'rangeSettings', 'rowCount', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'rows', 'showGridlines', 'showHeader', 'showHeadings', 'sheetName', 'startCell']), _dec253(_class94 = _dec254(_class94 = _dec255(_class94 = function Sheet() { _classCallCheck(this, Sheet); }) || _class94) || _class94) || _class94); diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index b3ac2cd1..a4ea5865 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,18 @@ +### 17.0.2 (2021-11-12) + + +#### Bug Fixes + +* **jsondata:** fixed some encodings ([6d9410e2](https://github.com/aurelia-ui-toolkits/aurelia-syncfusion-bridge.git/commit/6d9410e2ff6b794bf7562818115261804419a497)) + + +#### Features + +* **all:** + * updated to aurelia dependencies to 1.0.0 ([3943227a](https://github.com/aurelia-ui-toolkits/aurelia-syncfusion-bridge.git/commit/3943227a26bc9e47ae3f80070477494a25da64dc)) + * initial version ([f55a0a5d](https://github.com/aurelia-ui-toolkits/aurelia-syncfusion-bridge.git/commit/f55a0a5d5fd3f3a5e3375eb005b549cf90c3750b)) + + ### 17.0.1 (2021-09-30) diff --git a/package-lock.json b/package-lock.json index 4186f79f..fb5bfe94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,7 @@ "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", "dev": true, "requires": { - "mime-types": "2.1.32", + "mime-types": "2.1.34", "negotiator": "0.6.2" } }, @@ -208,9 +208,9 @@ "dev": true }, "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", "dev": true, "requires": { "safer-buffer": "2.1.2" @@ -2837,7 +2837,7 @@ "dev": true, "requires": { "async-each-series": "0.1.1", - "browser-sync-client": "2.27.5", + "browser-sync-client": "2.27.7", "browser-sync-ui": "0.5.19", "bs-recipes": "1.3.4", "chokidar": "1.4.1", @@ -2861,14 +2861,14 @@ "serve-index": "1.9.1", "serve-static": "1.14.1", "socket.io": "1.4.5", - "ua-parser-js": "0.7.28", + "ua-parser-js": "0.7.31", "ucfirst": "1.0.0" } }, "browser-sync-client": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/browser-sync-client/-/browser-sync-client-2.27.5.tgz", - "integrity": "sha512-l2jtf60/exv0fQiZkhi3z8RgexYYLGS7DVDnyepkrp+oFAPlKW69daL6NrVSgrwu6lzSTCCTAiPXnUSrQ57e/Q==", + "version": "2.27.7", + "resolved": "https://registry.npmjs.org/browser-sync-client/-/browser-sync-client-2.27.7.tgz", + "integrity": "sha512-wKg9UP9a4sCIkBBAXUdbkdWFJzfSAQizGh+nC19W9y9zOo9s5jqeYRFUUbs7x5WKhjtspT+xetVp9AtBJ6BmWg==", "dev": true, "requires": { "etag": "1.8.1", @@ -4230,7 +4230,7 @@ "globals": "8.18.0", "handlebars": "4.7.7", "inquirer": "0.11.4", - "is-my-json-valid": "2.20.5", + "is-my-json-valid": "2.20.6", "is-resolvable": "1.1.0", "js-yaml": "3.4.5", "json-stable-stringify": "1.0.1", @@ -4346,13 +4346,13 @@ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, "requires": { - "estraverse": "5.2.0" + "estraverse": "5.3.0" }, "dependencies": { "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true } } @@ -5075,9 +5075,9 @@ } }, "follow-redirects": { - "version": "1.14.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz", - "integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==", + "version": "1.14.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.5.tgz", + "integrity": "sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA==", "dev": true }, "for-in": { @@ -5109,7 +5109,7 @@ "requires": { "asynckit": "0.4.0", "combined-stream": "1.0.8", - "mime-types": "2.1.32" + "mime-types": "2.1.34" } }, "formidable": { @@ -6174,7 +6174,7 @@ "graceful-fs": "4.2.8", "gulp-sourcemaps": "1.6.0", "is-valid-glob": "0.3.0", - "lazystream": "1.0.0", + "lazystream": "1.0.1", "lodash.isequal": "4.5.0", "merge-stream": "1.0.1", "mkdirp": "0.5.5", @@ -6253,7 +6253,7 @@ "minimist": "1.2.5", "neo-async": "2.6.2", "source-map": "0.6.1", - "uglify-js": "3.14.2", + "uglify-js": "3.14.3", "wordwrap": "1.0.0" }, "dependencies": { @@ -6279,7 +6279,7 @@ "requires": { "chalk": "1.1.3", "commander": "2.20.3", - "is-my-json-valid": "2.20.5", + "is-my-json-valid": "2.20.6", "pinkie-promise": "2.0.1" } }, @@ -6481,7 +6481,7 @@ "dev": true, "requires": { "eventemitter3": "4.0.7", - "follow-redirects": "1.14.4", + "follow-redirects": "1.14.5", "requires-port": "1.0.0" } }, @@ -6639,9 +6639,9 @@ "dev": true }, "is-core-module": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.7.0.tgz", - "integrity": "sha512-ByY+tjCciCr+9nLryBYcSD50EOGWt95c7tIsKTG1J2ixKKXPvF7Ej3AVd+UfDydAJom3biBGDBALaO79ktwgEQ==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.0.tgz", + "integrity": "sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==", "dev": true, "requires": { "has": "1.0.3" @@ -6742,15 +6742,15 @@ "dev": true }, "is-my-json-valid": { - "version": "2.20.5", - "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.20.5.tgz", - "integrity": "sha512-VTPuvvGQtxvCeghwspQu1rBgjYUT6FGxPlvFKbYuFtgc4ADsX3U5ihZOYN0qyU6u+d4X9xXb0IT5O6QpXKt87A==", + "version": "2.20.6", + "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.20.6.tgz", + "integrity": "sha512-1JQwulVNjx8UqkPE/bqDaxtH4PXCe/2VRh/y3p99heOV87HG4Id5/VfDswd+YiAfHcRTfDlWgISycnHuhZq1aw==", "dev": true, "requires": { "generate-function": "2.3.1", "generate-object-property": "1.2.0", "is-my-ip-valid": "1.0.0", - "jsonpointer": "4.1.0", + "jsonpointer": "5.0.0", "xtend": "4.0.2" } }, @@ -7230,9 +7230,9 @@ "dev": true }, "jsonpointer": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.1.0.tgz", - "integrity": "sha512-CXcRvMyTlnR53xMcKnuMzfCA5i/nfblTnnr74CZb6C4vG39eu6w51t7nKmU5MfLfbTgGItliNyjO/ciNPDqClg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.0.tgz", + "integrity": "sha512-PNYZIdMjVIvVgDSYKTT63Y+KZ6IZvGRNNWcxwD+GNnUz1MKPfv30J8ueCjdwcN0nDx2SlshgyB7Oy0epAzVRRg==", "dev": true }, "jspm": { @@ -7437,16 +7437,16 @@ "requires": { "async": "2.6.3", "combined-stream": "1.0.8", - "mime-types": "2.1.32" + "mime-types": "2.1.34" }, "dependencies": { "mime-types": { - "version": "2.1.32", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz", - "integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==", + "version": "2.1.34", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", + "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", "dev": true, "requires": { - "mime-db": "1.49.0" + "mime-db": "1.51.0" } } } @@ -7469,7 +7469,7 @@ "bluebird": "2.11.0", "chalk": "1.1.3", "commander": "2.20.3", - "is-my-json-valid": "2.20.5" + "is-my-json-valid": "2.20.6" } }, "hawk": { @@ -7816,9 +7816,9 @@ "dev": true }, "lazystream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz", - "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", + "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", "dev": true, "requires": { "readable-stream": "2.3.7" @@ -8659,18 +8659,18 @@ "dev": true }, "mime-db": { - "version": "1.49.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.49.0.tgz", - "integrity": "sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==", + "version": "1.51.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", + "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", "dev": true }, "mime-types": { - "version": "2.1.32", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz", - "integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==", + "version": "2.1.34", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", + "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", "dev": true, "requires": { - "mime-db": "1.49.0" + "mime-db": "1.51.0" } }, "minimatch": { @@ -10174,7 +10174,7 @@ "is-typedarray": "1.0.0", "isstream": "0.1.2", "json-stringify-safe": "5.0.1", - "mime-types": "2.1.32", + "mime-types": "2.1.34", "oauth-sign": "0.8.2", "qs": "6.3.2", "stringstream": "0.0.6", @@ -10227,7 +10227,7 @@ "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", "dev": true, "requires": { - "is-core-module": "2.7.0", + "is-core-module": "2.8.0", "path-parse": "1.0.7" } }, @@ -10463,7 +10463,7 @@ "debug": "2.6.9", "escape-html": "1.0.3", "http-errors": "1.6.3", - "mime-types": "2.1.32", + "mime-types": "2.1.34", "parseurl": "1.3.3" } }, @@ -10967,7 +10967,7 @@ "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", "dev": true, "requires": { - "asn1": "0.2.4", + "asn1": "0.2.6", "assert-plus": "1.0.0", "bcrypt-pbkdf": "1.0.2", "dashdash": "1.14.1", @@ -11555,7 +11555,7 @@ "dev": true, "requires": { "media-typer": "0.3.0", - "mime-types": "2.1.32" + "mime-types": "2.1.34" } }, "typedarray": { @@ -11664,9 +11664,9 @@ "dev": true }, "ua-parser-js": { - "version": "0.7.28", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.28.tgz", - "integrity": "sha512-6Gurc1n//gjp9eQNXjD9O3M/sMwVtN5S8Lv9bvOYBfKfDNiIIhqiyi01vMBO45u4zkDE420w/e0se7Vs+sIg+g==", + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz", + "integrity": "sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==", "dev": true }, "ucfirst": { @@ -11676,9 +11676,9 @@ "dev": true }, "uglify-js": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.2.tgz", - "integrity": "sha512-rtPMlmcO4agTUfz10CbgJ1k6UAoXM2gWb3GoMPPZB/+/Ackf8lNWk11K4rYi2D0apgoFRLtQOZhb+/iGNJq26A==", + "version": "3.14.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.3.tgz", + "integrity": "sha512-mic3aOdiq01DuSVx0TseaEzMIVqebMZ0Z3vaeDhFEh9bsc24hV1TFvN74reA2vs08D0ZWfNjAcJ3UbVLaBss+g==", "dev": true, "optional": true }, diff --git a/package.json b/package.json index d3335641..879d7803 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-syncfusion-bridge", - "version": "17.0.1", + "version": "17.0.2", "registry": "github", "description": "A set of Syncfusion wrappers for Aurelia allowing developers to easily use Syncfusion components in their Aurelia application", "keywords": [ diff --git a/sample/package-lock.json b/sample/package-lock.json index 4fa2ec85..94a576fa 100644 --- a/sample/package-lock.json +++ b/sample/package-lock.json @@ -101,9 +101,9 @@ "dev": true }, "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", "dev": true, "requires": { "safer-buffer": "2.1.2" @@ -1217,7 +1217,7 @@ "requires": { "asynckit": "0.4.0", "combined-stream": "1.0.8", - "mime-types": "2.1.32" + "mime-types": "2.1.34" } }, "fragment-cache": { @@ -1541,9 +1541,9 @@ "dev": true }, "is-core-module": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.7.0.tgz", - "integrity": "sha512-ByY+tjCciCr+9nLryBYcSD50EOGWt95c7tIsKTG1J2ixKKXPvF7Ej3AVd+UfDydAJom3biBGDBALaO79ktwgEQ==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.0.tgz", + "integrity": "sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==", "dev": true, "requires": { "has": "1.0.3" @@ -1620,15 +1620,15 @@ "dev": true }, "is-my-json-valid": { - "version": "2.20.5", - "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.20.5.tgz", - "integrity": "sha512-VTPuvvGQtxvCeghwspQu1rBgjYUT6FGxPlvFKbYuFtgc4ADsX3U5ihZOYN0qyU6u+d4X9xXb0IT5O6QpXKt87A==", + "version": "2.20.6", + "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.20.6.tgz", + "integrity": "sha512-1JQwulVNjx8UqkPE/bqDaxtH4PXCe/2VRh/y3p99heOV87HG4Id5/VfDswd+YiAfHcRTfDlWgISycnHuhZq1aw==", "dev": true, "requires": { "generate-function": "2.3.1", "generate-object-property": "1.2.0", "is-my-ip-valid": "1.0.0", - "jsonpointer": "4.1.0", + "jsonpointer": "5.0.0", "xtend": "4.0.2" } }, @@ -1753,9 +1753,9 @@ "dev": true }, "jsonpointer": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.1.0.tgz", - "integrity": "sha512-CXcRvMyTlnR53xMcKnuMzfCA5i/nfblTnnr74CZb6C4vG39eu6w51t7nKmU5MfLfbTgGItliNyjO/ciNPDqClg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.0.tgz", + "integrity": "sha512-PNYZIdMjVIvVgDSYKTT63Y+KZ6IZvGRNNWcxwD+GNnUz1MKPfv30J8ueCjdwcN0nDx2SlshgyB7Oy0epAzVRRg==", "dev": true }, "jspm": { @@ -1878,16 +1878,16 @@ "requires": { "async": "2.6.3", "combined-stream": "1.0.8", - "mime-types": "2.1.32" + "mime-types": "2.1.34" }, "dependencies": { "mime-types": { - "version": "2.1.32", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz", - "integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==", + "version": "2.1.34", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", + "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", "dev": true, "requires": { - "mime-db": "1.49.0" + "mime-db": "1.51.0" } } } @@ -1910,7 +1910,7 @@ "bluebird": "2.11.0", "chalk": "1.1.3", "commander": "2.20.3", - "is-my-json-valid": "2.20.5" + "is-my-json-valid": "2.20.6" } }, "http-signature": { @@ -2301,18 +2301,18 @@ } }, "mime-db": { - "version": "1.49.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.49.0.tgz", - "integrity": "sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==", + "version": "1.51.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", + "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", "dev": true }, "mime-types": { - "version": "2.1.32", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz", - "integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==", + "version": "2.1.34", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", + "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", "dev": true, "requires": { - "mime-db": "1.49.0" + "mime-db": "1.51.0" } }, "minimatch": { @@ -2813,7 +2813,7 @@ "is-typedarray": "1.0.0", "isstream": "0.1.2", "json-stringify-safe": "5.0.1", - "mime-types": "2.1.32", + "mime-types": "2.1.34", "oauth-sign": "0.9.0", "performance-now": "2.1.0", "qs": "6.5.2", @@ -2829,7 +2829,7 @@ "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", "dev": true, "requires": { - "is-core-module": "2.7.0", + "is-core-module": "2.8.0", "path-parse": "1.0.7" } }, @@ -3169,7 +3169,7 @@ "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", "dev": true, "requires": { - "asn1": "0.2.4", + "asn1": "0.2.6", "assert-plus": "1.0.0", "bcrypt-pbkdf": "1.0.2", "dashdash": "1.14.1", diff --git a/vendors/Content/ej/web/bootstrap-theme/ej.theme.compatibility.css b/vendors/Content/ej/web/bootstrap-theme/ej.theme.compatibility.css index 12ea8305..07aaff63 100644 --- a/vendors/Content/ej/web/bootstrap-theme/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/bootstrap-theme/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/bootstrap-theme/ej.theme.compatibility.min.css b/vendors/Content/ej/web/bootstrap-theme/ej.theme.compatibility.min.css index 9028e029..07e9e6ee 100644 --- a/vendors/Content/ej/web/bootstrap-theme/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/bootstrap-theme/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/bootstrap-theme/ej.theme.css b/vendors/Content/ej/web/bootstrap-theme/ej.theme.css index 357dc43a..2a11d9b9 100644 --- a/vendors/Content/ej/web/bootstrap-theme/ej.theme.css +++ b/vendors/Content/ej/web/bootstrap-theme/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/bootstrap-theme/ej.theme.min.css b/vendors/Content/ej/web/bootstrap-theme/ej.theme.min.css index ee6420c8..2e7da2e0 100644 --- a/vendors/Content/ej/web/bootstrap-theme/ej.theme.min.css +++ b/vendors/Content/ej/web/bootstrap-theme/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/default-theme/ej.theme.compatibility.css b/vendors/Content/ej/web/default-theme/ej.theme.compatibility.css index 6a24e2fa..2d4be42c 100644 --- a/vendors/Content/ej/web/default-theme/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/default-theme/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/default-theme/ej.theme.compatibility.min.css b/vendors/Content/ej/web/default-theme/ej.theme.compatibility.min.css index 8978359c..921e4df1 100644 --- a/vendors/Content/ej/web/default-theme/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/default-theme/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/default-theme/ej.theme.css b/vendors/Content/ej/web/default-theme/ej.theme.css index 1fb7554f..8f0aaa59 100644 --- a/vendors/Content/ej/web/default-theme/ej.theme.css +++ b/vendors/Content/ej/web/default-theme/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/default-theme/ej.theme.min.css b/vendors/Content/ej/web/default-theme/ej.theme.min.css index 3c8ba098..eb5188ef 100644 --- a/vendors/Content/ej/web/default-theme/ej.theme.min.css +++ b/vendors/Content/ej/web/default-theme/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/ej.widgets.core.bootstrap.compatibility.min.css b/vendors/Content/ej/web/ej.widgets.core.bootstrap.compatibility.min.css index 4905b9a2..cbafcce6 100644 --- a/vendors/Content/ej/web/ej.widgets.core.bootstrap.compatibility.min.css +++ b/vendors/Content/ej/web/ej.widgets.core.bootstrap.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.widgets.core.bootstrap.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/ej.widgets.core.bootstrap.min.css b/vendors/Content/ej/web/ej.widgets.core.bootstrap.min.css index fb32af3b..d489f493 100644 --- a/vendors/Content/ej/web/ej.widgets.core.bootstrap.min.css +++ b/vendors/Content/ej/web/ej.widgets.core.bootstrap.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.widgets.core.bootstrap.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/ej.widgets.core.compatibility.min.css b/vendors/Content/ej/web/ej.widgets.core.compatibility.min.css index 0e0d7465..62847a76 100644 --- a/vendors/Content/ej/web/ej.widgets.core.compatibility.min.css +++ b/vendors/Content/ej/web/ej.widgets.core.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.widgets.core.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/ej.widgets.core.material.compatibility.min.css b/vendors/Content/ej/web/ej.widgets.core.material.compatibility.min.css index 2d409952..b20900a6 100644 --- a/vendors/Content/ej/web/ej.widgets.core.material.compatibility.min.css +++ b/vendors/Content/ej/web/ej.widgets.core.material.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.widgets.core.material.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/ej.widgets.core.material.min.css b/vendors/Content/ej/web/ej.widgets.core.material.min.css index 207f4af2..9120e7f5 100644 --- a/vendors/Content/ej/web/ej.widgets.core.material.min.css +++ b/vendors/Content/ej/web/ej.widgets.core.material.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.widgets.core.material.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/ej.widgets.core.min.css b/vendors/Content/ej/web/ej.widgets.core.min.css index 9ffdc8c1..9cb370db 100644 --- a/vendors/Content/ej/web/ej.widgets.core.min.css +++ b/vendors/Content/ej/web/ej.widgets.core.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.widgets.core.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/ej.widgets.core.office-365.compatibility.min.css b/vendors/Content/ej/web/ej.widgets.core.office-365.compatibility.min.css index 7539c0be..ba86cb2f 100644 --- a/vendors/Content/ej/web/ej.widgets.core.office-365.compatibility.min.css +++ b/vendors/Content/ej/web/ej.widgets.core.office-365.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.widgets.core.office-365.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/ej.widgets.core.office-365.min.css b/vendors/Content/ej/web/ej.widgets.core.office-365.min.css index dde000bb..8e43caa8 100644 --- a/vendors/Content/ej/web/ej.widgets.core.office-365.min.css +++ b/vendors/Content/ej/web/ej.widgets.core.office-365.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.widgets.core.office-365.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-azure-dark/ej.theme.compatibility.css b/vendors/Content/ej/web/flat-azure-dark/ej.theme.compatibility.css index fa20a422..07e0544e 100644 --- a/vendors/Content/ej/web/flat-azure-dark/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/flat-azure-dark/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-azure-dark/ej.theme.compatibility.min.css b/vendors/Content/ej/web/flat-azure-dark/ej.theme.compatibility.min.css index bcf298c4..a4e9421f 100644 --- a/vendors/Content/ej/web/flat-azure-dark/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/flat-azure-dark/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-azure-dark/ej.theme.css b/vendors/Content/ej/web/flat-azure-dark/ej.theme.css index 7ebbaf32..bb6f9d05 100644 --- a/vendors/Content/ej/web/flat-azure-dark/ej.theme.css +++ b/vendors/Content/ej/web/flat-azure-dark/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-azure-dark/ej.theme.min.css b/vendors/Content/ej/web/flat-azure-dark/ej.theme.min.css index baceeb79..63d1d4bf 100644 --- a/vendors/Content/ej/web/flat-azure-dark/ej.theme.min.css +++ b/vendors/Content/ej/web/flat-azure-dark/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-lime-dark/ej.theme.compatibility.css b/vendors/Content/ej/web/flat-lime-dark/ej.theme.compatibility.css index 5eac4e55..179efd4d 100644 --- a/vendors/Content/ej/web/flat-lime-dark/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/flat-lime-dark/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-lime-dark/ej.theme.compatibility.min.css b/vendors/Content/ej/web/flat-lime-dark/ej.theme.compatibility.min.css index 1b376f4d..f715a980 100644 --- a/vendors/Content/ej/web/flat-lime-dark/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/flat-lime-dark/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-lime-dark/ej.theme.css b/vendors/Content/ej/web/flat-lime-dark/ej.theme.css index 6fa75425..c1c36b28 100644 --- a/vendors/Content/ej/web/flat-lime-dark/ej.theme.css +++ b/vendors/Content/ej/web/flat-lime-dark/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-lime-dark/ej.theme.min.css b/vendors/Content/ej/web/flat-lime-dark/ej.theme.min.css index f691baa5..78631500 100644 --- a/vendors/Content/ej/web/flat-lime-dark/ej.theme.min.css +++ b/vendors/Content/ej/web/flat-lime-dark/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-lime/ej.theme.compatibility.css b/vendors/Content/ej/web/flat-lime/ej.theme.compatibility.css index 03d2505c..9b0ababa 100644 --- a/vendors/Content/ej/web/flat-lime/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/flat-lime/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-lime/ej.theme.compatibility.min.css b/vendors/Content/ej/web/flat-lime/ej.theme.compatibility.min.css index 65b50f6f..b0c2bf09 100644 --- a/vendors/Content/ej/web/flat-lime/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/flat-lime/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-lime/ej.theme.css b/vendors/Content/ej/web/flat-lime/ej.theme.css index 35af653b..25fc5dca 100644 --- a/vendors/Content/ej/web/flat-lime/ej.theme.css +++ b/vendors/Content/ej/web/flat-lime/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-lime/ej.theme.min.css b/vendors/Content/ej/web/flat-lime/ej.theme.min.css index e3a44eeb..c321fc26 100644 --- a/vendors/Content/ej/web/flat-lime/ej.theme.min.css +++ b/vendors/Content/ej/web/flat-lime/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-saffron-dark/ej.theme.compatibility.css b/vendors/Content/ej/web/flat-saffron-dark/ej.theme.compatibility.css index 5bf66dfd..47a0a1d0 100644 --- a/vendors/Content/ej/web/flat-saffron-dark/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/flat-saffron-dark/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-saffron-dark/ej.theme.compatibility.min.css b/vendors/Content/ej/web/flat-saffron-dark/ej.theme.compatibility.min.css index 1426a373..97349026 100644 --- a/vendors/Content/ej/web/flat-saffron-dark/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/flat-saffron-dark/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-saffron-dark/ej.theme.css b/vendors/Content/ej/web/flat-saffron-dark/ej.theme.css index 7e7621b7..c8824205 100644 --- a/vendors/Content/ej/web/flat-saffron-dark/ej.theme.css +++ b/vendors/Content/ej/web/flat-saffron-dark/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-saffron-dark/ej.theme.min.css b/vendors/Content/ej/web/flat-saffron-dark/ej.theme.min.css index bff5323e..63216ec0 100644 --- a/vendors/Content/ej/web/flat-saffron-dark/ej.theme.min.css +++ b/vendors/Content/ej/web/flat-saffron-dark/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-saffron/ej.theme.compatibility.css b/vendors/Content/ej/web/flat-saffron/ej.theme.compatibility.css index 59f06c7f..2c474fc2 100644 --- a/vendors/Content/ej/web/flat-saffron/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/flat-saffron/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-saffron/ej.theme.compatibility.min.css b/vendors/Content/ej/web/flat-saffron/ej.theme.compatibility.min.css index 300d62a8..8a740dbf 100644 --- a/vendors/Content/ej/web/flat-saffron/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/flat-saffron/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-saffron/ej.theme.css b/vendors/Content/ej/web/flat-saffron/ej.theme.css index e57190a7..55bc1e1c 100644 --- a/vendors/Content/ej/web/flat-saffron/ej.theme.css +++ b/vendors/Content/ej/web/flat-saffron/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/flat-saffron/ej.theme.min.css b/vendors/Content/ej/web/flat-saffron/ej.theme.min.css index 5b4d6904..15c91179 100644 --- a/vendors/Content/ej/web/flat-saffron/ej.theme.min.css +++ b/vendors/Content/ej/web/flat-saffron/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-azure-dark/ej.theme.compatibility.css b/vendors/Content/ej/web/gradient-azure-dark/ej.theme.compatibility.css index 407bdf25..350de8e8 100644 --- a/vendors/Content/ej/web/gradient-azure-dark/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/gradient-azure-dark/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-azure-dark/ej.theme.compatibility.min.css b/vendors/Content/ej/web/gradient-azure-dark/ej.theme.compatibility.min.css index 7c426783..babc35f8 100644 --- a/vendors/Content/ej/web/gradient-azure-dark/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/gradient-azure-dark/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-azure-dark/ej.theme.css b/vendors/Content/ej/web/gradient-azure-dark/ej.theme.css index 235ce8c1..ff7ef20c 100644 --- a/vendors/Content/ej/web/gradient-azure-dark/ej.theme.css +++ b/vendors/Content/ej/web/gradient-azure-dark/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-azure-dark/ej.theme.min.css b/vendors/Content/ej/web/gradient-azure-dark/ej.theme.min.css index 91bf7758..11339493 100644 --- a/vendors/Content/ej/web/gradient-azure-dark/ej.theme.min.css +++ b/vendors/Content/ej/web/gradient-azure-dark/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-azure/ej.theme.compatibility.css b/vendors/Content/ej/web/gradient-azure/ej.theme.compatibility.css index 946bcc6e..85615ee7 100644 --- a/vendors/Content/ej/web/gradient-azure/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/gradient-azure/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-azure/ej.theme.compatibility.min.css b/vendors/Content/ej/web/gradient-azure/ej.theme.compatibility.min.css index 49a53f88..a7d665eb 100644 --- a/vendors/Content/ej/web/gradient-azure/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/gradient-azure/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-azure/ej.theme.css b/vendors/Content/ej/web/gradient-azure/ej.theme.css index 0c6d2328..1a0e2b67 100644 --- a/vendors/Content/ej/web/gradient-azure/ej.theme.css +++ b/vendors/Content/ej/web/gradient-azure/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-azure/ej.theme.min.css b/vendors/Content/ej/web/gradient-azure/ej.theme.min.css index 32a519fd..d8281396 100644 --- a/vendors/Content/ej/web/gradient-azure/ej.theme.min.css +++ b/vendors/Content/ej/web/gradient-azure/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-lime-dark/ej.theme.compatibility.css b/vendors/Content/ej/web/gradient-lime-dark/ej.theme.compatibility.css index 50039913..c2f370b7 100644 --- a/vendors/Content/ej/web/gradient-lime-dark/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/gradient-lime-dark/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-lime-dark/ej.theme.compatibility.min.css b/vendors/Content/ej/web/gradient-lime-dark/ej.theme.compatibility.min.css index 9122389e..cc073f64 100644 --- a/vendors/Content/ej/web/gradient-lime-dark/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/gradient-lime-dark/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-lime-dark/ej.theme.css b/vendors/Content/ej/web/gradient-lime-dark/ej.theme.css index d594af0e..b890922b 100644 --- a/vendors/Content/ej/web/gradient-lime-dark/ej.theme.css +++ b/vendors/Content/ej/web/gradient-lime-dark/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-lime-dark/ej.theme.min.css b/vendors/Content/ej/web/gradient-lime-dark/ej.theme.min.css index 02f2ce80..80b3875e 100644 --- a/vendors/Content/ej/web/gradient-lime-dark/ej.theme.min.css +++ b/vendors/Content/ej/web/gradient-lime-dark/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-lime/ej.theme.compatibility.css b/vendors/Content/ej/web/gradient-lime/ej.theme.compatibility.css index 96e27710..805af192 100644 --- a/vendors/Content/ej/web/gradient-lime/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/gradient-lime/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-lime/ej.theme.compatibility.min.css b/vendors/Content/ej/web/gradient-lime/ej.theme.compatibility.min.css index 85822c1d..91d432d9 100644 --- a/vendors/Content/ej/web/gradient-lime/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/gradient-lime/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-lime/ej.theme.css b/vendors/Content/ej/web/gradient-lime/ej.theme.css index 7293f5ed..8f3336e2 100644 --- a/vendors/Content/ej/web/gradient-lime/ej.theme.css +++ b/vendors/Content/ej/web/gradient-lime/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-lime/ej.theme.min.css b/vendors/Content/ej/web/gradient-lime/ej.theme.min.css index 49d3887a..248899fa 100644 --- a/vendors/Content/ej/web/gradient-lime/ej.theme.min.css +++ b/vendors/Content/ej/web/gradient-lime/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.compatibility.css b/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.compatibility.css index 2189f3b6..c26beaeb 100644 --- a/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.compatibility.min.css b/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.compatibility.min.css index ccade5f4..67d0c31d 100644 --- a/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.css b/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.css index db0179aa..ac2b04d3 100644 --- a/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.css +++ b/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.min.css b/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.min.css index 381ce69d..b4e46edc 100644 --- a/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.min.css +++ b/vendors/Content/ej/web/gradient-saffron-dark/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-saffron/ej.theme.compatibility.css b/vendors/Content/ej/web/gradient-saffron/ej.theme.compatibility.css index b9b0ccd2..52cb9207 100644 --- a/vendors/Content/ej/web/gradient-saffron/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/gradient-saffron/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-saffron/ej.theme.compatibility.min.css b/vendors/Content/ej/web/gradient-saffron/ej.theme.compatibility.min.css index 6d7d6161..1d5d8385 100644 --- a/vendors/Content/ej/web/gradient-saffron/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/gradient-saffron/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-saffron/ej.theme.css b/vendors/Content/ej/web/gradient-saffron/ej.theme.css index 31401078..7b020e86 100644 --- a/vendors/Content/ej/web/gradient-saffron/ej.theme.css +++ b/vendors/Content/ej/web/gradient-saffron/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/gradient-saffron/ej.theme.min.css b/vendors/Content/ej/web/gradient-saffron/ej.theme.min.css index b116d33c..664974f6 100644 --- a/vendors/Content/ej/web/gradient-saffron/ej.theme.min.css +++ b/vendors/Content/ej/web/gradient-saffron/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/high-contrast-01/ej.theme.compatibility.css b/vendors/Content/ej/web/high-contrast-01/ej.theme.compatibility.css index 37540046..00779959 100644 --- a/vendors/Content/ej/web/high-contrast-01/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/high-contrast-01/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/high-contrast-01/ej.theme.compatibility.min.css b/vendors/Content/ej/web/high-contrast-01/ej.theme.compatibility.min.css index f1f4bd76..9a527c68 100644 --- a/vendors/Content/ej/web/high-contrast-01/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/high-contrast-01/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/high-contrast-01/ej.theme.css b/vendors/Content/ej/web/high-contrast-01/ej.theme.css index 7aa02701..6b420f30 100644 --- a/vendors/Content/ej/web/high-contrast-01/ej.theme.css +++ b/vendors/Content/ej/web/high-contrast-01/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/high-contrast-01/ej.theme.min.css b/vendors/Content/ej/web/high-contrast-01/ej.theme.min.css index 4150709e..ea59aeba 100644 --- a/vendors/Content/ej/web/high-contrast-01/ej.theme.min.css +++ b/vendors/Content/ej/web/high-contrast-01/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/high-contrast-02/ej.theme.compatibility.css b/vendors/Content/ej/web/high-contrast-02/ej.theme.compatibility.css index fce4d7bb..c3a35e29 100644 --- a/vendors/Content/ej/web/high-contrast-02/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/high-contrast-02/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/high-contrast-02/ej.theme.compatibility.min.css b/vendors/Content/ej/web/high-contrast-02/ej.theme.compatibility.min.css index 4ba38967..b5726386 100644 --- a/vendors/Content/ej/web/high-contrast-02/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/high-contrast-02/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/high-contrast-02/ej.theme.css b/vendors/Content/ej/web/high-contrast-02/ej.theme.css index 03f5370c..0f669be3 100644 --- a/vendors/Content/ej/web/high-contrast-02/ej.theme.css +++ b/vendors/Content/ej/web/high-contrast-02/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/high-contrast-02/ej.theme.min.css b/vendors/Content/ej/web/high-contrast-02/ej.theme.min.css index 5519f740..b05da204 100644 --- a/vendors/Content/ej/web/high-contrast-02/ej.theme.min.css +++ b/vendors/Content/ej/web/high-contrast-02/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/material/ej.theme.compatibility.css b/vendors/Content/ej/web/material/ej.theme.compatibility.css index f60053ea..743abc64 100644 --- a/vendors/Content/ej/web/material/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/material/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/material/ej.theme.compatibility.min.css b/vendors/Content/ej/web/material/ej.theme.compatibility.min.css index 8f0d0d36..1a7aa252 100644 --- a/vendors/Content/ej/web/material/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/material/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/material/ej.theme.css b/vendors/Content/ej/web/material/ej.theme.css index 7e6b50de..c2dcae8e 100644 --- a/vendors/Content/ej/web/material/ej.theme.css +++ b/vendors/Content/ej/web/material/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/material/ej.theme.min.css b/vendors/Content/ej/web/material/ej.theme.min.css index 7306e1b9..060622e8 100644 --- a/vendors/Content/ej/web/material/ej.theme.min.css +++ b/vendors/Content/ej/web/material/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/office-365/ej.theme.compatibility.css b/vendors/Content/ej/web/office-365/ej.theme.compatibility.css index 7fd5d3cc..43ae90ac 100644 --- a/vendors/Content/ej/web/office-365/ej.theme.compatibility.css +++ b/vendors/Content/ej/web/office-365/ej.theme.compatibility.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/office-365/ej.theme.compatibility.min.css b/vendors/Content/ej/web/office-365/ej.theme.compatibility.min.css index dfe010a0..938c89bc 100644 --- a/vendors/Content/ej/web/office-365/ej.theme.compatibility.min.css +++ b/vendors/Content/ej/web/office-365/ej.theme.compatibility.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.compatibility.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/office-365/ej.theme.css b/vendors/Content/ej/web/office-365/ej.theme.css index e6f20990..cce3e258 100644 --- a/vendors/Content/ej/web/office-365/ej.theme.css +++ b/vendors/Content/ej/web/office-365/ej.theme.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/Content/ej/web/office-365/ej.theme.min.css b/vendors/Content/ej/web/office-365/ej.theme.min.css index 5cbae244..2b4380bc 100644 --- a/vendors/Content/ej/web/office-365/ej.theme.min.css +++ b/vendors/Content/ej/web/office-365/ej.theme.min.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /*! * filename: ej.theme.min.css -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing diff --git a/vendors/scripts/ej/aurelia/amd/aurelia-syncfusion-bridge.d.ts b/vendors/scripts/ej/aurelia/amd/aurelia-syncfusion-bridge.d.ts index bdd869b6..b1be3739 100644 --- a/vendors/scripts/ej/aurelia/amd/aurelia-syncfusion-bridge.d.ts +++ b/vendors/scripts/ej/aurelia/amd/aurelia-syncfusion-bridge.d.ts @@ -274,9 +274,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejGantt extends WidgetBase { constructor(element?: any); } - export class ejGroupButton extends WidgetBase { - constructor(element?: any); - } export class Column { template: any; setTemplates(): any; @@ -285,6 +282,9 @@ declare module 'aurelia-syncfusion-bridge' { columns: any; constructor(element?: any, templateEngine?: any); } + export class ejGroupButton extends WidgetBase { + constructor(element?: any); + } export class ejHeatMap extends WidgetBase { constructor(element?: any); } @@ -301,6 +301,9 @@ declare module 'aurelia-syncfusion-bridge' { export class ejLinearGauge extends WidgetBase { constructor(element?: any); } + export class ejListBox extends WidgetBase { + constructor(element?: any); + } export class ejListView extends WidgetBase { constructor(element?: any); } @@ -311,10 +314,10 @@ declare module 'aurelia-syncfusion-bridge' { layers: any; constructor(element?: any); } - export class ejMenu extends WidgetBase { + export class ejMaskEdit extends WidgetBase { constructor(element?: any); } - export class ejMaskEdit extends WidgetBase { + export class ejMenu extends WidgetBase { constructor(element?: any); } export class ejNavigationDrawer extends WidgetBase { @@ -361,24 +364,21 @@ declare module 'aurelia-syncfusion-bridge' { items: any; constructor(element?: any, templateEngine?: any); } - export class ejListBox extends WidgetBase { - constructor(element?: any); - } export class ejRadialSlider extends WidgetBase { constructor(element?: any); } export class ejRadioButton extends WidgetBase { constructor(element?: any); } - export class ejRating extends WidgetBase { - constructor(element?: any); - } export class ejRangeNavigator extends WidgetBase { series: any; constructor(element?: any); } export class RangeSeries { + } + export class ejRating extends WidgetBase { + constructor(element?: any); } export class ejRibbon extends WidgetBase { constructor(element?: any); @@ -399,10 +399,10 @@ declare module 'aurelia-syncfusion-bridge' { export class ejScroller extends WidgetBase { constructor(element?: any); } - export class ejSlider extends WidgetBase { + export class ejSignature extends WidgetBase { constructor(element?: any); } - export class ejSignature extends WidgetBase { + export class ejSlider extends WidgetBase { constructor(element?: any); } export class ejSparkline extends WidgetBase { diff --git a/vendors/scripts/ej/aurelia/aurelia-syncfusion-bridge.d.ts b/vendors/scripts/ej/aurelia/aurelia-syncfusion-bridge.d.ts index 395aa107..d2c07311 100644 --- a/vendors/scripts/ej/aurelia/aurelia-syncfusion-bridge.d.ts +++ b/vendors/scripts/ej/aurelia/aurelia-syncfusion-bridge.d.ts @@ -270,9 +270,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejGantt extends WidgetBase { constructor(element?: any); } - export class ejGroupButton extends WidgetBase { - constructor(element?: any); - } export class Column { template: any; setTemplates(): any; @@ -281,6 +278,9 @@ declare module 'aurelia-syncfusion-bridge' { columns: any; constructor(element?: any, templateEngine?: any); } + export class ejGroupButton extends WidgetBase { + constructor(element?: any); + } export class ejHeatMap extends WidgetBase { constructor(element?: any); } @@ -297,6 +297,9 @@ declare module 'aurelia-syncfusion-bridge' { export class ejLinearGauge extends WidgetBase { constructor(element?: any); } + export class ejListBox extends WidgetBase { + constructor(element?: any); + } export class ejListView extends WidgetBase { constructor(element?: any); } @@ -307,10 +310,10 @@ declare module 'aurelia-syncfusion-bridge' { layers: any; constructor(element?: any); } - export class ejMenu extends WidgetBase { + export class ejMaskEdit extends WidgetBase { constructor(element?: any); } - export class ejMaskEdit extends WidgetBase { + export class ejMenu extends WidgetBase { constructor(element?: any); } export class ejNavigationDrawer extends WidgetBase { @@ -357,24 +360,21 @@ declare module 'aurelia-syncfusion-bridge' { items: any; constructor(element?: any, templateEngine?: any); } - export class ejListBox extends WidgetBase { - constructor(element?: any); - } export class ejRadialSlider extends WidgetBase { constructor(element?: any); } export class ejRadioButton extends WidgetBase { constructor(element?: any); } - export class ejRating extends WidgetBase { - constructor(element?: any); - } export class ejRangeNavigator extends WidgetBase { series: any; constructor(element?: any); } export class RangeSeries { + } + export class ejRating extends WidgetBase { + constructor(element?: any); } export class ejRibbon extends WidgetBase { constructor(element?: any); @@ -395,10 +395,10 @@ declare module 'aurelia-syncfusion-bridge' { export class ejScroller extends WidgetBase { constructor(element?: any); } - export class ejSlider extends WidgetBase { + export class ejSignature extends WidgetBase { constructor(element?: any); } - export class ejSignature extends WidgetBase { + export class ejSlider extends WidgetBase { constructor(element?: any); } export class ejSparkline extends WidgetBase { diff --git a/vendors/scripts/ej/aurelia/aurelia-syncfusion-bridge.js b/vendors/scripts/ej/aurelia/aurelia-syncfusion-bridge.js index a299aa2e..ec33b8a7 100644 --- a/vendors/scripts/ej/aurelia/aurelia-syncfusion-bridge.js +++ b/vendors/scripts/ej/aurelia/aurelia-syncfusion-bridge.js @@ -1167,17 +1167,6 @@ export class ejGantt extends WidgetBase { } -@customAttribute(`${constants.attributePrefix}group-button`) -@generateBindables('ejGroupButton', ['cssClass', 'dataSource', 'enableRTL', 'enabled', 'fields', 'groupButtonMode', 'height', 'htmlAttributes', 'orientation', 'query', 'selectedItemIndex', 'showRoundedCorner', 'size', 'width'], [], {'enableRTL': ['enableRtl']}) -@inject(Element) -export class ejGroupButton extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - @inlineView(`${constants.aureliaTemplateString}`) @customElement(`${constants.elementPrefix}column`) @@ -1211,6 +1200,17 @@ export class ejGrid extends WidgetBase { } +@customAttribute(`${constants.attributePrefix}group-button`) +@generateBindables('ejGroupButton', ['cssClass', 'dataSource', 'enableRTL', 'enabled', 'fields', 'groupButtonMode', 'height', 'htmlAttributes', 'orientation', 'query', 'selectedItemIndex', 'showRoundedCorner', 'size', 'width'], [], {'enableRTL': ['enableRtl']}) +@inject(Element) +export class ejGroupButton extends WidgetBase { + constructor(element) { + super(); + this.element = element; + } +} + + @customElement(`${constants.elementPrefix}heat-map`) @inlineView(`${constants.aureliaTemplateString}`) @generateBindables('ejHeatMap', ['width', 'height', 'id', 'showTooltip', 'tooltipSettings', 'itemsSource', 'heatMapCell', 'isResponsive', 'enableVirtualization', 'defaultColumnStyle', 'legendCollection', 'itemsMapping', 'colorMappingCollection']) @@ -1271,6 +1271,17 @@ export class ejLinearGauge extends WidgetBase { } +@customAttribute(`${constants.attributePrefix}list-box`) + @generateBindables('ejListBox', ['allowDrag', 'allowDrop', 'allowMultiSelection', 'allowVirtualScrolling', 'caseSensitiveSearch', 'cascadeTo', 'checkedIndices', 'cssClass', 'dataSource', 'enabled', 'enableIncrementalSearch', 'enablePersistence', 'enableRTL', 'enableWordWrap', 'fields', 'height', 'itemHeight', 'itemsCount', 'totalItemsCount', 'itemRequestCount', 'loadDataOnInit', 'query', 'selectedIndex', 'selectedIndices', 'showCheckbox', 'showRoundedCorner', 'sortOrder', 'template', 'value', 'virtualScrollMode', 'width', 'targetID'], ['value', 'dataSource'], {'enableRTL': ['enableRtl'], 'targetID': ['targetId']}) +@inject(Element) +export class ejListBox extends WidgetBase { + constructor(element) { + super(); + this.element = element; + } +} + + @customElement(`${constants.elementPrefix}list-view`) @inlineView(`${constants.aureliaTemplateString}`) @generateBindables('ejListView', ['ajaxSettings', 'checkedIndices', 'cssClass', 'dataSource', 'enableAjax', 'enableCache', 'enableCheckMark', 'enableFiltering', 'enableGroupList', 'enablePersistence', 'fieldSettings', 'items', 'headerBackButtonText', 'headerTitle', 'height', 'locale', 'persistSelection', 'preventSelection', 'query', 'renderTemplate', 'selectedItemIndex', 'showHeader', 'showHeaderBackButton', 'templateId', 'width', 'itemRequestCount', 'totalItemsCount', 'allowVirtualScrolling', 'virtualScrollMode'], ['dataSource', 'selectedItemIndex'], {}, ['dataSource']) @@ -1307,24 +1318,24 @@ export class ejMap extends WidgetBase { } -@customAttribute(`${constants.attributePrefix}menu`) -@generateBindables('ejMenu', ['animationType', 'contextMenuTarget', 'container', 'cssClass', 'enableAnimation', 'enableCenterAlign', 'enabled', 'enableRTL', 'enableSeparator', 'excludeTarget', 'fields', 'height', 'htmlAttributes', 'isResponsive', 'menuType', 'openOnClick', 'orientation', 'showRootLevelArrows', 'showSubLevelArrows', 'subMenuDirection', 'titleText', 'width', 'overflowHeight', 'overflowWidth'], [], {'enableRTL': ['enableRtl']}) +@customAttribute(`${constants.attributePrefix}mask-edit`) +@generateBindables('ejMaskEdit', ['cssClass', 'customCharacter', 'enabled', 'enablePersistence', 'height', 'hidePromptOnLeave', 'htmlAttributes', 'inputMode', 'locale', 'maskFormat', 'name', 'readOnly', 'showError', 'showPromptChar', 'showRoundedCorner', 'textAlign', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value']) @inject(Element) -export class ejMenu extends WidgetBase { +export class ejMaskEdit extends WidgetBase { constructor(element) { super(); + this.isEditor = true; this.element = element; } } -@customAttribute(`${constants.attributePrefix}mask-edit`) -@generateBindables('ejMaskEdit', ['cssClass', 'customCharacter', 'enabled', 'enablePersistence', 'height', 'hidePromptOnLeave', 'htmlAttributes', 'inputMode', 'locale', 'maskFormat', 'name', 'readOnly', 'showError', 'showPromptChar', 'showRoundedCorner', 'textAlign', 'validationMessage', 'validationRules', 'value', 'watermarkText', 'width'], ['value']) +@customAttribute(`${constants.attributePrefix}menu`) +@generateBindables('ejMenu', ['animationType', 'contextMenuTarget', 'container', 'cssClass', 'enableAnimation', 'enableCenterAlign', 'enabled', 'enableRTL', 'enableSeparator', 'excludeTarget', 'fields', 'height', 'htmlAttributes', 'isResponsive', 'menuType', 'openOnClick', 'orientation', 'showRootLevelArrows', 'showSubLevelArrows', 'subMenuDirection', 'titleText', 'width', 'overflowHeight', 'overflowWidth'], [], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejMaskEdit extends WidgetBase { +export class ejMenu extends WidgetBase { constructor(element) { super(); - this.isEditor = true; this.element = element; } } @@ -1506,17 +1517,6 @@ export class ejRadialMenu extends WidgetBase { } -@customAttribute(`${constants.attributePrefix}list-box`) - @generateBindables('ejListBox', ['allowDrag', 'allowDrop', 'allowMultiSelection', 'allowVirtualScrolling', 'caseSensitiveSearch', 'cascadeTo', 'checkedIndices', 'cssClass', 'dataSource', 'enabled', 'enableIncrementalSearch', 'enablePersistence', 'enableRTL', 'enableWordWrap', 'fields', 'height', 'itemHeight', 'itemsCount', 'totalItemsCount', 'itemRequestCount', 'loadDataOnInit', 'query', 'selectedIndex', 'selectedIndices', 'showCheckbox', 'showRoundedCorner', 'sortOrder', 'template', 'value', 'virtualScrollMode', 'width', 'targetID'], ['value', 'dataSource'], {'enableRTL': ['enableRtl'], 'targetID': ['targetId']}) -@inject(Element) -export class ejListBox extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - @customElement(`${constants.elementPrefix}radial-slider`) @inlineView(`${constants.aureliaTemplateString}`) @generateBindables('ejRadialSlider', ['autoOpen', 'cssClass', 'enableAnimation', 'enableRoundOff', 'endAngle', 'inline', 'innerCircleImageClass', 'innerCircleImageUrl', 'labelSpace', 'locale', 'radius', 'showInnerCircle', 'startAngle', 'strokeWidth', 'ticks', 'value'], ['value', 'ticks']) @@ -1540,17 +1540,6 @@ export class ejRadioButton extends WidgetBase { } -@customAttribute(`${constants.attributePrefix}rating`) -@generateBindables('ejRating', ['allowReset', 'cssClass', 'enabled', 'enablePersistence', 'height', 'htmlAttributes', 'incrementStep', 'maxValue', 'minValue', 'orientation', 'precision', 'readOnly', 'shapeHeight', 'shapeWidth', 'showTooltip', 'value', 'width'], ['value']) -@inject(Element) -export class ejRating extends WidgetBase { - constructor(element) { - super(); - this.element = element; - } -} - - @customElement(`${constants.elementPrefix}range-navigator`) @inlineView(`${constants.aureliaTemplateString}`) @generateBindables('ejRangeNavigator', ['allowSnapping', 'allowNextValue', 'border', 'dataSource', 'series', 'seriesSettings', 'enableDeferredUpdate', 'enableScrollbar', 'enableAutoResizing', 'enableRTL', 'isResponsive', 'labelSettings', 'locale', 'navigatorStyleSettings', 'padding', 'rangePadding', 'rangeSettings', 'selectedData', 'selectedRangeSettings', 'scrollRangeSettings', 'sizeSettings', 'theme', 'tooltipSettings', 'valueAxisSettings', 'valueType', 'xName', 'yName'], [], {'enableRTL': ['enableRtl']}) @@ -1575,6 +1564,17 @@ export class RangeSeries { } +@customAttribute(`${constants.attributePrefix}rating`) +@generateBindables('ejRating', ['allowReset', 'cssClass', 'enabled', 'enablePersistence', 'height', 'htmlAttributes', 'incrementStep', 'maxValue', 'minValue', 'orientation', 'precision', 'readOnly', 'shapeHeight', 'shapeWidth', 'showTooltip', 'value', 'width'], ['value']) +@inject(Element) +export class ejRating extends WidgetBase { + constructor(element) { + super(); + this.element = element; + } +} + + @customElement(`${constants.elementPrefix}ribbon`) @inlineView(`${constants.aureliaTemplateString}`) @generateBindables('ejRibbon', ['allowResizing', 'isResponsive', 'buttonDefaults', 'showQAT', 'cssClass', 'collapsePinSettings', 'enableOnDemand', 'collapsible', 'enableRTL', 'expandPinSettings', 'applicationTab', 'contextualTabs', 'disabledItemIndex', 'enabledItemIndex', 'selectedItemIndex', 'tabs', 'locale', 'width'], [], {'enableRTL': ['enableRtl']}) @@ -1644,10 +1644,11 @@ export class ejScroller extends WidgetBase { } -@customAttribute(`${constants.attributePrefix}slider`) - @generateBindables('ejSlider', ['allowMouseWheel', 'animationSpeed', 'cssClass', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'height', 'htmlAttributes', 'incrementStep', 'largeStep', 'maxValue', 'minValue', 'orientation', 'readOnly', 'showButtons', 'showRoundedCorner', 'showScale', 'showSmallTicks', 'showTooltip', 'sliderType', 'smallStep', 'value', 'values', 'width'], ['value'], {'enableRTL': ['enableRtl']}) +@customElement(`${constants.elementPrefix}signature`) +@inlineView(`${constants.aureliaTemplateString}`) +@generateBindables('ejSignature', ['backgroundColor', 'backgroundImage', 'enabled', 'height', 'isResponsive', 'saveImageFormat', 'saveWithBackground', 'showRoundedCorner', 'strokeColor', 'strokeWidth', 'width']) @inject(Element) -export class ejSlider extends WidgetBase { +export class ejSignature extends WidgetBase { constructor(element) { super(); this.element = element; @@ -1655,11 +1656,10 @@ export class ejSlider extends WidgetBase { } -@customElement(`${constants.elementPrefix}signature`) -@inlineView(`${constants.aureliaTemplateString}`) -@generateBindables('ejSignature', ['backgroundColor', 'backgroundImage', 'enabled', 'height', 'isResponsive', 'saveImageFormat', 'saveWithBackground', 'showRoundedCorner', 'strokeColor', 'strokeWidth', 'width']) +@customAttribute(`${constants.attributePrefix}slider`) + @generateBindables('ejSlider', ['allowMouseWheel', 'animationSpeed', 'cssClass', 'enableAnimation', 'enabled', 'enablePersistence', 'enableRTL', 'height', 'htmlAttributes', 'incrementStep', 'largeStep', 'maxValue', 'minValue', 'orientation', 'readOnly', 'showButtons', 'showRoundedCorner', 'showScale', 'showSmallTicks', 'showTooltip', 'sliderType', 'smallStep', 'value', 'values', 'width'], ['value'], {'enableRTL': ['enableRtl']}) @inject(Element) -export class ejSignature extends WidgetBase { +export class ejSlider extends WidgetBase { constructor(element) { super(); this.element = element; diff --git a/vendors/scripts/ej/aurelia/commonjs/aurelia-syncfusion-bridge.d.ts b/vendors/scripts/ej/aurelia/commonjs/aurelia-syncfusion-bridge.d.ts index bdd869b6..b1be3739 100644 --- a/vendors/scripts/ej/aurelia/commonjs/aurelia-syncfusion-bridge.d.ts +++ b/vendors/scripts/ej/aurelia/commonjs/aurelia-syncfusion-bridge.d.ts @@ -274,9 +274,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejGantt extends WidgetBase { constructor(element?: any); } - export class ejGroupButton extends WidgetBase { - constructor(element?: any); - } export class Column { template: any; setTemplates(): any; @@ -285,6 +282,9 @@ declare module 'aurelia-syncfusion-bridge' { columns: any; constructor(element?: any, templateEngine?: any); } + export class ejGroupButton extends WidgetBase { + constructor(element?: any); + } export class ejHeatMap extends WidgetBase { constructor(element?: any); } @@ -301,6 +301,9 @@ declare module 'aurelia-syncfusion-bridge' { export class ejLinearGauge extends WidgetBase { constructor(element?: any); } + export class ejListBox extends WidgetBase { + constructor(element?: any); + } export class ejListView extends WidgetBase { constructor(element?: any); } @@ -311,10 +314,10 @@ declare module 'aurelia-syncfusion-bridge' { layers: any; constructor(element?: any); } - export class ejMenu extends WidgetBase { + export class ejMaskEdit extends WidgetBase { constructor(element?: any); } - export class ejMaskEdit extends WidgetBase { + export class ejMenu extends WidgetBase { constructor(element?: any); } export class ejNavigationDrawer extends WidgetBase { @@ -361,24 +364,21 @@ declare module 'aurelia-syncfusion-bridge' { items: any; constructor(element?: any, templateEngine?: any); } - export class ejListBox extends WidgetBase { - constructor(element?: any); - } export class ejRadialSlider extends WidgetBase { constructor(element?: any); } export class ejRadioButton extends WidgetBase { constructor(element?: any); } - export class ejRating extends WidgetBase { - constructor(element?: any); - } export class ejRangeNavigator extends WidgetBase { series: any; constructor(element?: any); } export class RangeSeries { + } + export class ejRating extends WidgetBase { + constructor(element?: any); } export class ejRibbon extends WidgetBase { constructor(element?: any); @@ -399,10 +399,10 @@ declare module 'aurelia-syncfusion-bridge' { export class ejScroller extends WidgetBase { constructor(element?: any); } - export class ejSlider extends WidgetBase { + export class ejSignature extends WidgetBase { constructor(element?: any); } - export class ejSignature extends WidgetBase { + export class ejSlider extends WidgetBase { constructor(element?: any); } export class ejSparkline extends WidgetBase { diff --git a/vendors/scripts/ej/aurelia/es6/aurelia-syncfusion-bridge.d.ts b/vendors/scripts/ej/aurelia/es6/aurelia-syncfusion-bridge.d.ts index bdd869b6..b1be3739 100644 --- a/vendors/scripts/ej/aurelia/es6/aurelia-syncfusion-bridge.d.ts +++ b/vendors/scripts/ej/aurelia/es6/aurelia-syncfusion-bridge.d.ts @@ -274,9 +274,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejGantt extends WidgetBase { constructor(element?: any); } - export class ejGroupButton extends WidgetBase { - constructor(element?: any); - } export class Column { template: any; setTemplates(): any; @@ -285,6 +282,9 @@ declare module 'aurelia-syncfusion-bridge' { columns: any; constructor(element?: any, templateEngine?: any); } + export class ejGroupButton extends WidgetBase { + constructor(element?: any); + } export class ejHeatMap extends WidgetBase { constructor(element?: any); } @@ -301,6 +301,9 @@ declare module 'aurelia-syncfusion-bridge' { export class ejLinearGauge extends WidgetBase { constructor(element?: any); } + export class ejListBox extends WidgetBase { + constructor(element?: any); + } export class ejListView extends WidgetBase { constructor(element?: any); } @@ -311,10 +314,10 @@ declare module 'aurelia-syncfusion-bridge' { layers: any; constructor(element?: any); } - export class ejMenu extends WidgetBase { + export class ejMaskEdit extends WidgetBase { constructor(element?: any); } - export class ejMaskEdit extends WidgetBase { + export class ejMenu extends WidgetBase { constructor(element?: any); } export class ejNavigationDrawer extends WidgetBase { @@ -361,24 +364,21 @@ declare module 'aurelia-syncfusion-bridge' { items: any; constructor(element?: any, templateEngine?: any); } - export class ejListBox extends WidgetBase { - constructor(element?: any); - } export class ejRadialSlider extends WidgetBase { constructor(element?: any); } export class ejRadioButton extends WidgetBase { constructor(element?: any); } - export class ejRating extends WidgetBase { - constructor(element?: any); - } export class ejRangeNavigator extends WidgetBase { series: any; constructor(element?: any); } export class RangeSeries { + } + export class ejRating extends WidgetBase { + constructor(element?: any); } export class ejRibbon extends WidgetBase { constructor(element?: any); @@ -399,10 +399,10 @@ declare module 'aurelia-syncfusion-bridge' { export class ejScroller extends WidgetBase { constructor(element?: any); } - export class ejSlider extends WidgetBase { + export class ejSignature extends WidgetBase { constructor(element?: any); } - export class ejSignature extends WidgetBase { + export class ejSlider extends WidgetBase { constructor(element?: any); } export class ejSparkline extends WidgetBase { diff --git a/vendors/scripts/ej/aurelia/system/aurelia-syncfusion-bridge.d.ts b/vendors/scripts/ej/aurelia/system/aurelia-syncfusion-bridge.d.ts index bdd869b6..b1be3739 100644 --- a/vendors/scripts/ej/aurelia/system/aurelia-syncfusion-bridge.d.ts +++ b/vendors/scripts/ej/aurelia/system/aurelia-syncfusion-bridge.d.ts @@ -274,9 +274,6 @@ declare module 'aurelia-syncfusion-bridge' { export class ejGantt extends WidgetBase { constructor(element?: any); } - export class ejGroupButton extends WidgetBase { - constructor(element?: any); - } export class Column { template: any; setTemplates(): any; @@ -285,6 +282,9 @@ declare module 'aurelia-syncfusion-bridge' { columns: any; constructor(element?: any, templateEngine?: any); } + export class ejGroupButton extends WidgetBase { + constructor(element?: any); + } export class ejHeatMap extends WidgetBase { constructor(element?: any); } @@ -301,6 +301,9 @@ declare module 'aurelia-syncfusion-bridge' { export class ejLinearGauge extends WidgetBase { constructor(element?: any); } + export class ejListBox extends WidgetBase { + constructor(element?: any); + } export class ejListView extends WidgetBase { constructor(element?: any); } @@ -311,10 +314,10 @@ declare module 'aurelia-syncfusion-bridge' { layers: any; constructor(element?: any); } - export class ejMenu extends WidgetBase { + export class ejMaskEdit extends WidgetBase { constructor(element?: any); } - export class ejMaskEdit extends WidgetBase { + export class ejMenu extends WidgetBase { constructor(element?: any); } export class ejNavigationDrawer extends WidgetBase { @@ -361,24 +364,21 @@ declare module 'aurelia-syncfusion-bridge' { items: any; constructor(element?: any, templateEngine?: any); } - export class ejListBox extends WidgetBase { - constructor(element?: any); - } export class ejRadialSlider extends WidgetBase { constructor(element?: any); } export class ejRadioButton extends WidgetBase { constructor(element?: any); } - export class ejRating extends WidgetBase { - constructor(element?: any); - } export class ejRangeNavigator extends WidgetBase { series: any; constructor(element?: any); } export class RangeSeries { + } + export class ejRating extends WidgetBase { + constructor(element?: any); } export class ejRibbon extends WidgetBase { constructor(element?: any); @@ -399,10 +399,10 @@ declare module 'aurelia-syncfusion-bridge' { export class ejScroller extends WidgetBase { constructor(element?: any); } - export class ejSlider extends WidgetBase { + export class ejSignature extends WidgetBase { constructor(element?: any); } - export class ejSignature extends WidgetBase { + export class ejSlider extends WidgetBase { constructor(element?: any); } export class ejSparkline extends WidgetBase { diff --git a/vendors/scripts/ej/common/ej.core.min.js b/vendors/scripts/ej/common/ej.core.min.js index dc313fbc..eeb4a669 100644 --- a/vendors/scripts/ej/common/ej.core.min.js +++ b/vendors/scripts/ej/common/ej.core.min.js @@ -1,10 +1,10 @@ /*! * filename: ej.core.min.js -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ -(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n()})(function(){window.ej=window.Syncfusion=window.Syncfusion||{},function(n,t,i){"use strict";var e,u,f,o;t.version="19.3.0.43";t.consts={NamespaceJoin:"-"};t.TextAlign={Center:"center",Justify:"justify",Left:"left",Right:"right"};t.Orientation={Horizontal:"horizontal",Vertical:"vertical"};t.serverTimezoneOffset=0;t.parseDateInUTC=!1;t.persistStateVersion=null;t.locales=t.locales||[];Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(n,t){return n[t]!==i});Date.prototype.toISOString||function(){function n(n){var t=String(n);return t.length===1&&(t="0"+t),t}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}();String.format=function(){for(var t=arguments[0],n=0;n");e=n("head").find("link").add("style");t.browserInfo().name==="msie"?(u="",e.each(function(t,i){i.tagName=="LINK"&&n(i).attr("href",i.href);u+=i.outerHTML}),r.document.write("<\/head>"+u+f[0].innerHTML+"<\/body><\/html>")):(u="",r.document.write(""),e.each(function(t,i){i.tagName=="LINK"&&n(i).attr("href",i.href);u+=i.outerHTML}),r.document.writeln(u+"<\/head>"),r.document.writeln(f[0].innerHTML+"<\/body><\/html>"));r.document.close();r.focus();setTimeout(function(){t.isNullOrUndefined(r.window)||(r.print(),setTimeout(function(){r.close()},1e3))},1e3)},ieClearRemover:function(t){var i=n(t).height();t.style.paddingTop=parseFloat(i/2)+"px";t.style.paddingBottom=parseFloat(i/2)+"px";t.style.height="1px";t.style.lineHeight="1px"},sendAjaxRequest:function(t){n.ajax({type:t.type,cache:t.cache,url:t.url,dataType:t.dataType,data:t.data,contentType:t.contentType,async:t.async,success:t.successHandler,error:t.errorHandler,beforeSend:t.beforeSendHandler,complete:t.completeHandler})},buildTag:function(t,r,u,f){var s=/^[a-z]*[0-9a-z]+/ig.exec(t)[0],e=/#([_a-z0-9-&@\/\\,+()$~%:*?<>{}\[\]]+\S)/ig.exec(t),o;return e=e?e[e.length-1].replace(/[&@\/\\,+()$~%.:*?<>{}\[\]]/g,""):i,o=/\.([a-z]+[-_0-9a-z ]+)/ig.exec(t),o=o?o[o.length-1]:i,n(document.createElement(s)).attr(e?{id:e}:{}).addClass(o||"").css(u||{}).attr(f||{}).html(r||"")},_preventDefaultException:function(n,t){if(n)for(var i in t)if(t[i].test(n[i]))return!0;return!1},getMaxZindex:function(){var t=1;return t=Math.max.apply(null,n.map(n("body *"),function(t){if(n(t).css("position")=="absolute"||n(t).css("position")=="fixed")return parseInt(n(t).css("z-index"))||1})),(t==i||t==null)&&(t=1),t},blockDefaultActions:function(n){n.cancelBubble=!0;n.returnValue=!1;n.preventDefault&&n.preventDefault();n.stopPropagation&&n.stopPropagation()},getDimension:function(t,i){var e,u=n(t).parents().andSelf().filter(":hidden"),r,f;return u&&(r={visibility:"hidden",display:"block"},f=[],u.each(function(){var t={};for(var n in r)t[n]=this.style[n],this.style[n]=r[n];f.push(t)}),e=/(outer)/g.test(i)?n(t)[i](!0):n(t)[i](),u.each(function(n){var i=f[n];for(var t in r)this.style[t]=i[t]})),e},transitionEndEvent:function(){return{"":"transitionend",webkit:"webkitTransitionEnd",Moz:"transitionend",O:"otransitionend",ms:"MSTransitionEnd"}[t.userAgent()]},animationEndEvent:function(){return{"":"animationend",webkit:"webkitAnimationEnd",Moz:"animationend",O:"webkitAnimationEnd",ms:"animationend"}[t.userAgent()]},startEvent:function(){return t.isTouchDevice()||n.support.hasPointer?"touchstart":"mousedown"},endEvent:function(){return t.isTouchDevice()||n.support.hasPointer?"touchend":"mouseup"},moveEvent:function(){return t.isTouchDevice()||n.support.hasPointer?n.support.hasPointer&&!t.isMobile()?"ejtouchmove":"touchmove":"mousemove"},cancelEvent:function(){return t.isTouchDevice()||n.support.hasPointer?"touchcancel":"mousecancel"},tapEvent:function(){return t.isTouchDevice()||n.support.hasPointer?"tap":"click"},tapHoldEvent:function(){return t.isTouchDevice()||n.support.hasPointer?"taphold":"click"},isDevice:function(){return t.getBooleanVal(n("head"),"data-ej-forceset",!1)?t.getBooleanVal(n("head"),"data-ej-device",this._device()):this._device()},isPortrait:function(){var n=document.documentElement;return n&&n.clientWidth/n.clientHeight<1.1},isLowerResolution:function(){return window.innerWidth<=640&&t.isPortrait()&&t.isDevice()||window.innerWidth<=800&&!t.isDevice()||window.innerWidth<=800&&!t.isPortrait()&&t.isWindows()&&t.isDevice()||t.isMobile()},isIOSWebView:function(){return/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent)},isAndroidWebView:function(){return!(typeof Android=="undefined")},isWindowsWebView:function(){return location.href.indexOf("x-wmapp")!=-1},_device:function(){return/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|kindle|windows\sce|palm|smartphone|iemobile|mobile|pad|xoom|sch-i800|playbook/i.test(navigator.userAgent.toLowerCase())},isMobile:function(){return/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(navigator.userAgent.toLowerCase())&&/mobile/i.test(navigator.userAgent.toLowerCase())||t.getBooleanVal(n("head"),"data-ej-mobile",!1)===!0},isTablet:function(){return/ipad|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase())||t.getBooleanVal(n("head"),"data-ej-tablet",!1)===!0||!t.isMobile()&&t.isDevice()},isTouchDevice:function(){return("ontouchstart"in window||window.navigator.msPointerEnabled&&t.isMobile())&&this.isDevice()},getClearString:function(t){return n.trim(t.replace(/\s+/g," ").replace(/(\r\n|\n|\r)/gm,"").replace(new RegExp(">[\n\t ]+<","g"),"><"))},getBooleanVal:function(t,i,r){var u=n(t).attr(i);return u!=null?u.toLowerCase()=="true":r},_getSkewClass:function(n,t,i){var h=n.width(),c=n.height(),f=n.offset().left,e=n.offset().left+h,o=n.offset().top,s=n.offset().top+c,r=h*.3,u=c*.3;return te-r&&ie-r&&i>s-u?"e-m-skew-bottomright":ts-u?"e-m-skew-bottomleft":t>f+r&&ie-r?"e-m-skew-right":i>s-u?"e-m-skew-bottom":"e-m-skew-center"},_removeSkewClass:function(t){n(t).removeClass("e-m-skew-top e-m-skew-bottom e-m-skew-left e-m-skew-right e-m-skew-topleft e-m-skew-topright e-m-skew-bottomleft e-m-skew-bottomright e-m-skew-center e-skew-top e-skew-bottom e-skew-left e-skew-right e-skew-topleft e-skew-topright e-skew-bottomleft e-skew-bottomright e-skew-center")},_getObjectKeys:function(n){var t,i=[];if(n=Object.prototype.toString.call(n)===Object.prototype.toString()?n:{},!Object.keys){for(t in n)n.hasOwnProperty(t)&&i.push(t);return i}if(Object.keys)return Object.keys(n)},_touchStartPoints:function(n,t){if(n){var i=n.touches?n.touches[0]:n;t._distX=0;t._distY=0;t._moved=!1;t._pointX=i.pageX;t._pointY=i.pageY}},_isTouchMoved:function(n,t){if(n){var i=n.touches?n.touches[0]:n,f=i.pageX-t._pointX,e=i.pageY-t._pointY,o=Date.now(),r,u;return t._pointX=i.pageX,t._pointY=i.pageY,t._distX+=f,t._distY+=e,r=Math.abs(t._distX),u=Math.abs(t._distY),!(r<5&&u<5)}},listenEvents:function(n,i,r,u,f,e){for(var o=0;o0)return e=i.parents(),f=n("body").children(),!t.isNullOrUndefined(i)&&i.length>0&&f.splice(f.index(r),1),n(f).each(function(n,t){e.push(t)}),u=Math.max.apply(u,n.map(e,function(t){if(n(t).css("position")!="static")return parseInt(n(t).css("z-index"))||1})),!u||u<1e4?u=1e4:u+=1,u},isValidAttr:function(t,i){var t=n(t)[0],r;return typeof t[i]!="undefined"?!0:(r=!1,n.each(t,function(n){if(n.toLowerCase()==i.toLowerCase())return r=!0,!1}),r)}};n.extend(t,t.util);t.widgetBase={droppables:{"default":[]},resizables:{"default":[]},_renderEjTemplate:function(i,r,u,f,e){var o=null;if((typeof i=="object"||i.startsWith("#")||i.startsWith("."))&&(o=n(i).attr("type")),o){if(o=o.toLowerCase(),t.template[o])return t.template[o](this,i,r,u,f)}else if(!t.isNullOrUndefined(e))return t.template["text/x-"+e](this,i,r,u,f);return t.template.render(this,i,r,u,f)},destroy:function(){var u,r,f,i;if(!this._trigger("destroy")){this.model.enablePersistence&&(this.persistState(),n(window).off("unload",this._persistHandler));try{this._destroy()}catch(e){}for(u=this.element.data("ejWidgets")||[],i=0;i-1,c){n.fn.off.apply(t,u?[i,r,f[3]]:[i,r]);e.splice(o,1);break}return this},_trigger:function(i,r){var f=null,e,u,o={},s;return(n.extend(o,r),i in this.model&&(f=this.model[i]),f&&(typeof f=="string"&&(f=t.util.getObject(f,window)),n.isFunction(f)&&(u=t.event(i,this.model,r),e=f.call(this,u),r&&n.extend(r,u),u.cancel||!t.isNullOrUndefined(e))))?e===!1||u.cancel:(s=Boolean(r),r=r||{},r.originalEventType=i,r.type=this.pluginName+i,u=n.Event(r.type,t.event(r.type,this.model,r)),this.element&&this.element.trigger(u),s&&n.extend(r,u),t.isOnWebForms&&u.cancel==!1&&this.model.serverEvents&&this.model.serverEvents.length&&t.raiseWebFormsServerEvents(i,r,o),u.cancel)},setModel:function(t,i){var r,f,o,u;if(!this._trigger("modelChange",{changes:t})){for(r in t){if(!i){if(this.model[r]===t[r]){delete t[r];continue}if(n.isPlainObject(t[r])&&(e(this.model[r],t[r]),n.isEmptyObject(t[r]))){delete t[r];continue}}if(this.dataTypes&&(f=this._isValidModelValue(r,this.dataTypes,t),f!==!0))throw"setModel - Invalid input for property :"+r+" - "+f;this.model.notifyOnEachPropertyChanges&&this.model[r]!==t[r]&&(o={oldValue:this.model[r],newValue:t[r]},t[r]=this._trigger(r+"Change",o)?this.model[r]:o.newValue)}n.isEmptyObject(t)||(this._setFirst?(u=t.dataSource,u&&delete t.dataSource,n.extend(!0,this.model,t),u&&(this.model.dataSource=u instanceof Array?u.slice():u,t.dataSource=this.model.dataSource),this._setModel&&this._setModel(t)):this._setModel&&this._setModel(t)===!1||n.extend(!0,this.model,t),"enablePersistence"in t&&this._setState(t.enablePersistence))}},option:function(r,u,f){if(!r)return this.model;if(n.isPlainObject(r))return this.setModel(r,f);if(typeof r=="string"){r=r.replace(/^model\./,"");var e=t.getObject(r,this.model);if(u===i&&!f)return e;if(r==="enablePersistence")return this._setState(u);if(f&&u===t.extensions.modelGUID)return this._setModel(t.createObject(r,t.getObject(r,this.model),{}));if(f||t.getObject(r,this.model)!==u)return this.setModel(t.createObject(r,u,{}),f)}return i},_isValidModelValue:function(n,t,i){var r=t[n],u=i[n],f,e,o;if(!r)return!0;if(typeof r=="string"){if(r=="enum"&&(i[n]=u?u.toString().toLowerCase():u,r="string"),r==="array"){if(Object.prototype.toString.call(u)==="[object Array]")return!0}else if(r==="data"||r==="parent"||typeof u===r)return!0;return"Expected type - "+r}if(u instanceof Array){for(e=0;e=0){delete u[r];return}t.push(n);for(var f in n)n.hasOwnProperty(f)&&i(n[f],f,n);t.pop();return}}var t=[];return i(n,"obj",null),n},stringify:function(n,i){for(var f,u=this.observables,r=0;r"),u=t.preferredCulture(u)?u:"en-US",f=i,l=i.split("{0:"),a=i.split("}"),h=l[0],c=a[1],typeof r=="string"&&n.isNumeric(r)&&(r=Number(r)),i.indexOf("{0:")!=-1)return v=new RegExp("\\{0(:([^\\}]+))?\\}","gm"),s=v.exec(i),s!=null&&r!=null?h!=null&&c!=null?h+t.format(r,s[2],u)+c:t.format(r,s[2],u):r!=null?r:"";if(f.startsWith("{")&&!f.startsWith("{0:")){var o=f.split(""),r=(r||"")+"",p=r.split(""),w=/[0aA\*CN<>\?]/gm;for(e=0,y=0;e0&&n.isPlainObject(p)&&(r=t.copyObject({},p)),!b){h.prototype._requiresID!==!0||n(this[y]).attr("id")||s.attr("id",c("ejControl_"));r&&typeof r!="object"?o(f+": methods/properties can be accessed only after plugin creation"):(h.prototype.defaults&&!t.isNullOrUndefined(t.setCulture)&&"locale"in h.prototype.defaults&&f!="ejChart"&&(!r||"locale"in r?t.isNullOrUndefined(r)&&(r={},r.locale=t.setCulture().name):r.locale=t.setCulture().name),new h(s,r));continue}if(r)if(u=[].slice.call(arguments,1),this.length>0&&u[0]&&p==="option"&&n.isPlainObject(u[0])&&(u[0]=t.copyObject({},u[0])),n.isPlainObject(r))l.setModel(r);else if((r.indexOf("_")===0||t.isNullOrUndefined(a=t.getObject(r,l)))&&r.indexOf("model.")!==0)o(e+": function/property - "+r+" does not exist");else{if(!a||!n.isFunction(a)){if(arguments.length==1)return a;l.option(r,arguments[1]);continue}if(w=a.apply(l,u),w!==i)return w}}return f.indexOf("ejm")!=-1&&t.widget.registerInstance(s,f,e,h.prototype),this};t.widget.register(f,e,h.prototype);t.loadLocale(f)};t.loadLocale=function(i){for(var f=t.locales,r=0,u=f.length;r1?t[1]:i},set:function(n,t,i){typeof t=="object"&&(t=JSON.stringify(t));t=escape(t)+(i==null?"":"; expires="+i.toUTCString());document.cookie=n+"="+t}};u={getActionFromCode:function(n,t,i,r,f){var s,o,e;i=i||!1;r=r||!1;f=f||!1;for(s in n)if(s!=="focus")for(o=u.getKeyObject(n[s]),e=0;e9&&window.navigator.msPointerEnabled,i.pointerEnabled=window.navigator.pointerEnabled,i};t.eventType={mouseDown:"mousedown touchstart",mouseMove:"mousemove touchmove",mouseUp:"mouseup touchend",mouseLeave:"mouseleave touchcancel",click:"click touchend"};t.event=function(t,i,r){return n.extend(r||{},{type:t,model:i,cancel:!1})};t.proxy=function(n,t,i){return!n||typeof n!="function"?null:"on"in n&&t?i?n.on(t,i):n.on(t):function(){var r=i?[i]:[];return r.push.apply(r,arguments),n.apply(t||this,r)}};t.hasStyle=function(n){var r=document.documentElement.style,i,t;if(n in r)return!0;for(i=["ms","Moz","Webkit","O","Khtml"],n=n[0].toUpperCase()+n.slice(1),t=0;t",i,"<\/div>"].join(""));var e={prop:f,index:u};return n(i).render(r,e)};t.isPlainObject=function(n){if(!n||t.DataManager!==i&&n instanceof t.DataManager||typeof n!="object"||n.nodeType||jQuery.isWindow(n))return!1;try{if(n.constructor&&!n.constructor.prototype.hasOwnProperty("isPrototypeOf"))return!1}catch(f){return!1}var r,u=t.support.isOwnLast;for(r in n)if(u)break;return r===i||n.hasOwnProperty(r)};f=!1;t.util.valueFunction=function(n){return function(r,u){var e=t.getObject(n,this.model);if(f===!1&&(f=t.getObject("observables.getValue",t.widget)),r===i)return t.isNullOrUndefined(f)?typeof e=="function"?e.call(this):e:f(e,u);typeof e=="function"?(this["ob.values"][n]=r,e.call(this,r)):t.createObject(n,r,this.model)}};t.util.getVal=function(n){return typeof n=="function"?n():n};t.support={isOwnLast:function(){var n=function(){this.a=1},t;n.prototype.b=1;for(t in new n)return t==="b"}(),outerHTML:function(){return document.createElement("div").outerHTML!==i}()};o=t.throwError=function(n){try{throw new Error(n);}catch(t){throw t.message+"\n"+t.stack;}};t.getRandomValue=function(n,r){var u,f;return n===i||r===i?t.throwError("Min and Max values are required for generating a random number"):("crypto"in window&&"getRandomValues"in crypto?(f=new Uint16Array(1),window.crypto.getRandomValues(f),u=f[0]%(r-n)+n):u=Math.random()*(r-n)+n,u|0)};t.extensions={};t.extensions.modelGUID="{0B1051BA-1CCB-42C2-A3B5-635389B92A50}"}(window.jQuery,window.Syncfusion),function(){$.fn.addEleAttrs=function(n){var t=$(this);$.each(n,function(n,i){i&&i.specified&&t.attr(i.name,i.value)})};$.fn.removeEleAttrs=function(n){return this.each(function(){var t=$(this),i=$(this.attributes).clone();$.each(i,function(i,r){r&&r.specified&&n.test(r.name)&&t.removeAttr(r.name)})})};$.fn.attrNotStartsWith=function(n){var u=this,r=[],i,t;for(this.each(function(){i=$(this.attributes).clone()}),t=0;t");e=n("head").find("link").add("style");t.browserInfo().name==="msie"?(u="",e.each(function(t,i){i.tagName=="LINK"&&n(i).attr("href",i.href);u+=i.outerHTML}),r.document.write("<\/head>"+u+f[0].innerHTML+"<\/body><\/html>")):(u="",r.document.write(""),e.each(function(t,i){i.tagName=="LINK"&&n(i).attr("href",i.href);u+=i.outerHTML}),r.document.writeln(u+"<\/head>"),r.document.writeln(f[0].innerHTML+"<\/body><\/html>"));r.document.close();r.focus();setTimeout(function(){t.isNullOrUndefined(r.window)||(r.print(),setTimeout(function(){r.close()},1e3))},1e3)},ieClearRemover:function(t){var i=n(t).height();t.style.paddingTop=parseFloat(i/2)+"px";t.style.paddingBottom=parseFloat(i/2)+"px";t.style.height="1px";t.style.lineHeight="1px"},sendAjaxRequest:function(t){n.ajax({type:t.type,cache:t.cache,url:t.url,dataType:t.dataType,data:t.data,contentType:t.contentType,async:t.async,success:t.successHandler,error:t.errorHandler,beforeSend:t.beforeSendHandler,complete:t.completeHandler})},buildTag:function(t,r,u,f){var s=/^[a-z]*[0-9a-z]+/ig.exec(t)[0],e=/#([_a-z0-9-&@\/\\,+()$~%:*?<>{}\[\]]+\S)/ig.exec(t),o;return e=e?e[e.length-1].replace(/[&@\/\\,+()$~%.:*?<>{}\[\]]/g,""):i,o=/\.([a-z]+[-_0-9a-z ]+)/ig.exec(t),o=o?o[o.length-1]:i,n(document.createElement(s)).attr(e?{id:e}:{}).addClass(o||"").css(u||{}).attr(f||{}).html(r||"")},_preventDefaultException:function(n,t){if(n)for(var i in t)if(t[i].test(n[i]))return!0;return!1},getMaxZindex:function(){var t=1;return t=Math.max.apply(null,n.map(n("body *"),function(t){if(n(t).css("position")=="absolute"||n(t).css("position")=="fixed")return parseInt(n(t).css("z-index"))||1})),(t==i||t==null)&&(t=1),t},blockDefaultActions:function(n){n.cancelBubble=!0;n.returnValue=!1;n.preventDefault&&n.preventDefault();n.stopPropagation&&n.stopPropagation()},getDimension:function(t,i){var e,u=n(t).parents().andSelf().filter(":hidden"),r,f;return u&&(r={visibility:"hidden",display:"block"},f=[],u.each(function(){var t={};for(var n in r)t[n]=this.style[n],this.style[n]=r[n];f.push(t)}),e=/(outer)/g.test(i)?n(t)[i](!0):n(t)[i](),u.each(function(n){var i=f[n];for(var t in r)this.style[t]=i[t]})),e},transitionEndEvent:function(){return{"":"transitionend",webkit:"webkitTransitionEnd",Moz:"transitionend",O:"otransitionend",ms:"MSTransitionEnd"}[t.userAgent()]},animationEndEvent:function(){return{"":"animationend",webkit:"webkitAnimationEnd",Moz:"animationend",O:"webkitAnimationEnd",ms:"animationend"}[t.userAgent()]},startEvent:function(){return t.isTouchDevice()||n.support.hasPointer?"touchstart":"mousedown"},endEvent:function(){return t.isTouchDevice()||n.support.hasPointer?"touchend":"mouseup"},moveEvent:function(){return t.isTouchDevice()||n.support.hasPointer?n.support.hasPointer&&!t.isMobile()?"ejtouchmove":"touchmove":"mousemove"},cancelEvent:function(){return t.isTouchDevice()||n.support.hasPointer?"touchcancel":"mousecancel"},tapEvent:function(){return t.isTouchDevice()||n.support.hasPointer?"tap":"click"},tapHoldEvent:function(){return t.isTouchDevice()||n.support.hasPointer?"taphold":"click"},isDevice:function(){return t.getBooleanVal(n("head"),"data-ej-forceset",!1)?t.getBooleanVal(n("head"),"data-ej-device",this._device()):this._device()},isPortrait:function(){var n=document.documentElement;return n&&n.clientWidth/n.clientHeight<1.1},isLowerResolution:function(){return window.innerWidth<=640&&t.isPortrait()&&t.isDevice()||window.innerWidth<=800&&!t.isDevice()||window.innerWidth<=800&&!t.isPortrait()&&t.isWindows()&&t.isDevice()||t.isMobile()},isIOSWebView:function(){return/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent)},isAndroidWebView:function(){return!(typeof Android=="undefined")},isWindowsWebView:function(){return location.href.indexOf("x-wmapp")!=-1},_device:function(){return/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|kindle|windows\sce|palm|smartphone|iemobile|mobile|pad|xoom|sch-i800|playbook/i.test(navigator.userAgent.toLowerCase())},isMobile:function(){return/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(navigator.userAgent.toLowerCase())&&/mobile/i.test(navigator.userAgent.toLowerCase())||t.getBooleanVal(n("head"),"data-ej-mobile",!1)===!0},isTablet:function(){return/ipad|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase())||t.getBooleanVal(n("head"),"data-ej-tablet",!1)===!0||!t.isMobile()&&t.isDevice()},isTouchDevice:function(){return("ontouchstart"in window||window.navigator.msPointerEnabled&&t.isMobile())&&this.isDevice()},getClearString:function(t){return n.trim(t.replace(/\s+/g," ").replace(/(\r\n|\n|\r)/gm,"").replace(new RegExp(">[\n\t ]+<","g"),"><"))},getBooleanVal:function(t,i,r){var u=n(t).attr(i);return u!=null?u.toLowerCase()=="true":r},_getSkewClass:function(n,t,i){var h=n.width(),c=n.height(),f=n.offset().left,e=n.offset().left+h,o=n.offset().top,s=n.offset().top+c,r=h*.3,u=c*.3;return te-r&&ie-r&&i>s-u?"e-m-skew-bottomright":ts-u?"e-m-skew-bottomleft":t>f+r&&ie-r?"e-m-skew-right":i>s-u?"e-m-skew-bottom":"e-m-skew-center"},_removeSkewClass:function(t){n(t).removeClass("e-m-skew-top e-m-skew-bottom e-m-skew-left e-m-skew-right e-m-skew-topleft e-m-skew-topright e-m-skew-bottomleft e-m-skew-bottomright e-m-skew-center e-skew-top e-skew-bottom e-skew-left e-skew-right e-skew-topleft e-skew-topright e-skew-bottomleft e-skew-bottomright e-skew-center")},_getObjectKeys:function(n){var t,i=[];if(n=Object.prototype.toString.call(n)===Object.prototype.toString()?n:{},!Object.keys){for(t in n)n.hasOwnProperty(t)&&i.push(t);return i}if(Object.keys)return Object.keys(n)},_touchStartPoints:function(n,t){if(n){var i=n.touches?n.touches[0]:n;t._distX=0;t._distY=0;t._moved=!1;t._pointX=i.pageX;t._pointY=i.pageY}},_isTouchMoved:function(n,t){if(n){var i=n.touches?n.touches[0]:n,f=i.pageX-t._pointX,e=i.pageY-t._pointY,o=Date.now(),r,u;return t._pointX=i.pageX,t._pointY=i.pageY,t._distX+=f,t._distY+=e,r=Math.abs(t._distX),u=Math.abs(t._distY),!(r<5&&u<5)}},listenEvents:function(n,i,r,u,f,e){for(var o=0;o0)return e=i.parents(),f=n("body").children(),!t.isNullOrUndefined(i)&&i.length>0&&f.splice(f.index(r),1),n(f).each(function(n,t){e.push(t)}),u=Math.max.apply(u,n.map(e,function(t){if(n(t).css("position")!="static")return parseInt(n(t).css("z-index"))||1})),!u||u<1e4?u=1e4:u+=1,u},isValidAttr:function(t,i){var t=n(t)[0],r;return typeof t[i]!="undefined"?!0:(r=!1,n.each(t,function(n){if(n.toLowerCase()==i.toLowerCase())return r=!0,!1}),r)}};n.extend(t,t.util);t.widgetBase={droppables:{"default":[]},resizables:{"default":[]},_renderEjTemplate:function(i,r,u,f,e){var o=null;if((typeof i=="object"||i.startsWith("#")||i.startsWith("."))&&(o=n(i).attr("type")),o){if(o=o.toLowerCase(),t.template[o])return t.template[o](this,i,r,u,f)}else if(!t.isNullOrUndefined(e))return t.template["text/x-"+e](this,i,r,u,f);return t.template.render(this,i,r,u,f)},destroy:function(){var u,r,f,i;if(!this._trigger("destroy")){this.model.enablePersistence&&(this.persistState(),n(window).off("unload",this._persistHandler));try{this._destroy()}catch(e){}for(u=this.element.data("ejWidgets")||[],i=0;i-1,c){n.fn.off.apply(t,u?[i,r,f[3]]:[i,r]);e.splice(o,1);break}return this},_trigger:function(i,r){var f=null,e,u,o={},s;return(n.extend(o,r),i in this.model&&(f=this.model[i]),f&&(typeof f=="string"&&(f=t.util.getObject(f,window)),n.isFunction(f)&&(u=t.event(i,this.model,r),e=f.call(this,u),r&&n.extend(r,u),u.cancel||!t.isNullOrUndefined(e))))?e===!1||u.cancel:(s=Boolean(r),r=r||{},r.originalEventType=i,r.type=this.pluginName+i,u=n.Event(r.type,t.event(r.type,this.model,r)),this.element&&this.element.trigger(u),s&&n.extend(r,u),t.isOnWebForms&&u.cancel==!1&&this.model.serverEvents&&this.model.serverEvents.length&&t.raiseWebFormsServerEvents(i,r,o),u.cancel)},setModel:function(t,i){var r,f,o,u;if(!this._trigger("modelChange",{changes:t})){for(r in t){if(!i){if(this.model[r]===t[r]){delete t[r];continue}if(n.isPlainObject(t[r])&&(e(this.model[r],t[r]),n.isEmptyObject(t[r]))){delete t[r];continue}}if(this.dataTypes&&(f=this._isValidModelValue(r,this.dataTypes,t),f!==!0))throw"setModel - Invalid input for property :"+r+" - "+f;this.model.notifyOnEachPropertyChanges&&this.model[r]!==t[r]&&(o={oldValue:this.model[r],newValue:t[r]},t[r]=this._trigger(r+"Change",o)?this.model[r]:o.newValue)}n.isEmptyObject(t)||(this._setFirst?(u=t.dataSource,u&&delete t.dataSource,n.extend(!0,this.model,t),u&&(this.model.dataSource=u instanceof Array?u.slice():u,t.dataSource=this.model.dataSource),this._setModel&&this._setModel(t)):this._setModel&&this._setModel(t)===!1||n.extend(!0,this.model,t),"enablePersistence"in t&&this._setState(t.enablePersistence))}},option:function(r,u,f){if(!r)return this.model;if(n.isPlainObject(r))return this.setModel(r,f);if(typeof r=="string"){r=r.replace(/^model\./,"");var e=t.getObject(r,this.model);if(u===i&&!f)return e;if(r==="enablePersistence")return this._setState(u);if(f&&u===t.extensions.modelGUID)return this._setModel(t.createObject(r,t.getObject(r,this.model),{}));if(f||t.getObject(r,this.model)!==u)return this.setModel(t.createObject(r,u,{}),f)}return i},_isValidModelValue:function(n,t,i){var r=t[n],u=i[n],f,e,o;if(!r)return!0;if(typeof r=="string"){if(r=="enum"&&(i[n]=u?u.toString().toLowerCase():u,r="string"),r==="array"){if(Object.prototype.toString.call(u)==="[object Array]")return!0}else if(r==="data"||r==="parent"||typeof u===r)return!0;return"Expected type - "+r}if(u instanceof Array){for(e=0;e=0){delete u[r];return}t.push(n);for(var f in n)n.hasOwnProperty(f)&&i(n[f],f,n);t.pop();return}}var t=[];return i(n,"obj",null),n},stringify:function(n,i){for(var f,u=this.observables,r=0;r"),u=t.preferredCulture(u)?u:"en-US",f=i,l=i.split("{0:"),a=i.split("}"),h=l[0],c=a[1],typeof r=="string"&&n.isNumeric(r)&&(r=Number(r)),i.indexOf("{0:")!=-1)return v=new RegExp("\\{0(:([^\\}]+))?\\}","gm"),s=v.exec(i),s!=null&&r!=null?h!=null&&c!=null?h+t.format(r,s[2],u)+c:t.format(r,s[2],u):r!=null?r:"";if(f.startsWith("{")&&!f.startsWith("{0:")){var o=f.split(""),r=(r||"")+"",p=r.split(""),w=/[0aA\*CN<>\?]/gm;for(e=0,y=0;e0&&n.isPlainObject(p)&&(r=t.copyObject({},p)),!b){h.prototype._requiresID!==!0||n(this[y]).attr("id")||s.attr("id",c("ejControl_"));r&&typeof r!="object"?o(f+": methods/properties can be accessed only after plugin creation"):(h.prototype.defaults&&!t.isNullOrUndefined(t.setCulture)&&"locale"in h.prototype.defaults&&f!="ejChart"&&(!r||"locale"in r?t.isNullOrUndefined(r)&&(r={},r.locale=t.setCulture().name):r.locale=t.setCulture().name),new h(s,r));continue}if(r)if(u=[].slice.call(arguments,1),this.length>0&&u[0]&&p==="option"&&n.isPlainObject(u[0])&&(u[0]=t.copyObject({},u[0])),n.isPlainObject(r))l.setModel(r);else if((r.indexOf("_")===0||t.isNullOrUndefined(a=t.getObject(r,l)))&&r.indexOf("model.")!==0)o(e+": function/property - "+r+" does not exist");else{if(!a||!n.isFunction(a)){if(arguments.length==1)return a;l.option(r,arguments[1]);continue}if(w=a.apply(l,u),w!==i)return w}}return f.indexOf("ejm")!=-1&&t.widget.registerInstance(s,f,e,h.prototype),this};t.widget.register(f,e,h.prototype);t.loadLocale(f)};t.loadLocale=function(i){for(var f=t.locales,r=0,u=f.length;r1?t[1]:i},set:function(n,t,i){typeof t=="object"&&(t=JSON.stringify(t));t=escape(t)+(i==null?"":"; expires="+i.toUTCString());document.cookie=n+"="+t}};u={getActionFromCode:function(n,t,i,r,f){var s,o,e;i=i||!1;r=r||!1;f=f||!1;for(s in n)if(s!=="focus")for(o=u.getKeyObject(n[s]),e=0;e9&&window.navigator.msPointerEnabled,i.pointerEnabled=window.navigator.pointerEnabled,i};t.eventType={mouseDown:"mousedown touchstart",mouseMove:"mousemove touchmove",mouseUp:"mouseup touchend",mouseLeave:"mouseleave touchcancel",click:"click touchend"};t.event=function(t,i,r){return n.extend(r||{},{type:t,model:i,cancel:!1})};t.proxy=function(n,t,i){return!n||typeof n!="function"?null:"on"in n&&t?i?n.on(t,i):n.on(t):function(){var r=i?[i]:[];return r.push.apply(r,arguments),n.apply(t||this,r)}};t.hasStyle=function(n){var r=document.documentElement.style,i,t;if(n in r)return!0;for(i=["ms","Moz","Webkit","O","Khtml"],n=n[0].toUpperCase()+n.slice(1),t=0;t",i,"<\/div>"].join(""));var e={prop:f,index:u};return n(i).render(r,e)};t.isPlainObject=function(n){if(!n||t.DataManager!==i&&n instanceof t.DataManager||typeof n!="object"||n.nodeType||jQuery.isWindow(n))return!1;try{if(n.constructor&&!n.constructor.prototype.hasOwnProperty("isPrototypeOf"))return!1}catch(f){return!1}var r,u=t.support.isOwnLast;for(r in n)if(u)break;return r===i||n.hasOwnProperty(r)};f=!1;t.util.valueFunction=function(n){return function(r,u){var e=t.getObject(n,this.model);if(f===!1&&(f=t.getObject("observables.getValue",t.widget)),r===i)return t.isNullOrUndefined(f)?typeof e=="function"?e.call(this):e:f(e,u);typeof e=="function"?(this["ob.values"][n]=r,e.call(this,r)):t.createObject(n,r,this.model)}};t.util.getVal=function(n){return typeof n=="function"?n():n};t.support={isOwnLast:function(){var n=function(){this.a=1},t;n.prototype.b=1;for(t in new n)return t==="b"}(),outerHTML:function(){return document.createElement("div").outerHTML!==i}()};o=t.throwError=function(n){try{throw new Error(n);}catch(t){throw t.message+"\n"+t.stack;}};t.getRandomValue=function(n,r){var u,f;return n===i||r===i?t.throwError("Min and Max values are required for generating a random number"):("crypto"in window&&"getRandomValues"in crypto?(f=new Uint16Array(1),window.crypto.getRandomValues(f),u=f[0]%(r-n)+n):u=Math.random()*(r-n)+n,u|0)};t.extensions={};t.extensions.modelGUID="{0B1051BA-1CCB-42C2-A3B5-635389B92A50}"}(window.jQuery,window.Syncfusion),function(){$.fn.addEleAttrs=function(n){var t=$(this);$.each(n,function(n,i){i&&i.specified&&t.attr(i.name,i.value)})};$.fn.removeEleAttrs=function(n){return this.each(function(){var t=$(this),i=$(this.attributes).clone();$.each(i,function(i,r){r&&r.specified&&n.test(r.name)&&t.removeAttr(r.name)})})};$.fn.attrNotStartsWith=function(n){var u=this,r=[],i,t;for(this.each(function(){i=$(this.attributes).clone()}),t=0;t0&&e<595?u=e:e>595&&(u=595);n(r.svgObject).width(u);r.model.height?f=parseInt(r.model.height):o>0?f=o:n(r.svgObject).css("display","block");n(r.svgObject).height(f);r.svgObject.setAttribute("width",u);r.svgObject.setAttribute("height",f)},_renderBulletElements:function(){var f=this.model.width?this.model.width:595,e=this.model.height?this.model.height:90,i;this.svgObject.setAttribute("viewBox","0 0 "+f+" "+e);this.svgObject.setAttribute("preserveAspectRatio","xMinYMin");this.svgWidth=n(this.svgObject).width();this.svgHeight=n(this.svgObject).height();var r=this.svgRenderer.createGroup({id:this.svgObject.id+"_captionGroup"}),t=this.svgRenderer.createGroup({id:this.svgObject.id+"_scaleGroup"}),u=this.svgRenderer.createGroup({id:this.svgObject.id+"_outerWrap"});this._initializeValues();i=this.model.quantitativeScaleLength/((this._scale.maximum-this._scale.minimum)/this._scale.interval);this._drawCaption();this._drawIndicator();this._drawCaptionGroup(r);this._scaleGroup=t;this._drawScale(r,t);this._drawQualitativeRanges(t);this._drawMajorTicks(i,t);this._drawMinorTicks(i,t);this._drawLabels(i,t);this._bindData();n(t).appendTo(u);n(r).appendTo(u);this._changeOrientation(t);n(u).appendTo(this.svgObject);n(this.svgObject).appendTo(this.element);this._bindHighlightRemoving()},_bindHighlightRemoving:function(){var i=this.model.browserInfo.isMSPointerEnabled,t,r=this.model.browserInfo.pointerEnabled;t=i?r?"pointerout":"MSPointerOut":"touchout mouseout";this._on(n("[id*="+this.svgObject.id+"_FeatureMeasure_]"),t,function(t){this.isTouch(t)||n(t.target).attr("opacity",1)})},_drawCaptionGroup:function(n){var u=this.model.captionSettings,f=u.subTitle,r=this._indicator?this._indicator.settings:u.indicator,c,b,k,l,a,v;u._location=f._location=r._location=c;var y=u.textPosition.toLowerCase()!="float"&&u.text!="",p=f.textPosition.toLowerCase()!="float"&&f.text!="",w=r.visible&&r.textPosition.toLowerCase()!="float";if(y||p||w){b=t.EjSvgRender.utils._measureText(u.text,null,u.font);k=t.EjSvgRender.utils._measureText(f.text,null,f.font);r.visible&&(l=this._indicator.bounds,v={width:r.symbol.size.width+l.width+r.textSpacing,height:Math.max(r.symbol.size.height,l.height)},a={x:0,y:0,width:v.width,height:v.height,padding:r.padding,anchor:r.textAnchor.toLowerCase(),alignment:r.textAlignment.toLowerCase()});var d={x:0,y:0,width:b.width,height:parseFloat(u.font.size),padding:u.padding,anchor:u.textAnchor.toLowerCase(),alignment:u.textAlignment.toLowerCase()},g={x:0,y:0,width:k.width,height:parseFloat(f.font.size),padding:f.padding,anchor:f.textAnchor.toLowerCase(),alignment:f.textAlignment.toLowerCase()},tt={x:this._scale.location.x,y:this._scale.location.y,width:this.model.quantitativeScaleLength,height:this.model.qualitativeRangeSize},nt=[y?u:null,p?f:null,w?r:null];this._positionTextGroup(nt,[d,g,a],tt);this._locateTextGroup(nt,[d,g,a])}var e=u._location==i?u.location:u._location,o=f._location==i?f.location:f._location,s=r._location==i?r.location:r._location;if(u.displayText=u.text,u.enableTrim==!0&&(e.x=e.x<0?0:e.x,e.y=e.y<0?0:e.y,u.displayText=this._displayText(u,e)),f.text!=""&&(f.displayText=f.text,u.enableTrim==!0&&(o.x=o.x<0?0:o.x,o.y=o.y<0?0:o.y,f.displayText=this._displayText(f,o))),r.visible){r.displayText=r.text;this.model.captionSettings.enableTrim==!0&&(s.x=s.x<0?0:s.x,s.y=s.y<0?0:s.y);var c=r._location?r._location:r.location,h={x:c.x+r.symbol.size.width/2,y:c.y-r.symbol.size.height/2,width:r.symbol.size.width,height:r.symbol.size.height},it=this._indicatorTextOptions(r,h,this._indicator.bounds,this.svgObject.id+"_Indicator"),rt=this._indicatorSymbolOptions(n,r);this._drawBulletSymbol(this._indicator.settings.symbol.shape,h,rt,n);this.model.captionSettings.enableTrim==!0&&(r.displayText=this._displayText(r,h))}u.displayText=u.textPosition.toLowerCase()!="float"?this._captionOverlap(this.model.captionSettings):u.displayText;this.svgRenderer.drawText(this._textOptions(u,this.svgObject.id+"_Caption"),u.displayText,n);f.text!=""&&(f.displayText=f.textPosition.toLowerCase()!="float"?this._subOverlap(this.model.captionSettings.subTitle):f.displayText,this.svgRenderer.drawText(this._textOptions(f,this.svgObject.id+"_SubTitle"),f.displayText,n));r.visible&&(r.displayText=r.textPosition.toLowerCase()!="float"?this._indOverlap(r,h):r.displayText,this.svgRenderer.drawText(it,r.displayText,n))},_captionOverlap:function(n){var t,i;return i=!0,n.textPosition==n.subTitle.textPosition&&n.textAlignment==n.subTitle.textAlignment&&n.textAngle>0&&n.textAngle<120?t=n.subTitle._location.y-n._location.y:n.textPosition==n.indicator.textPosition&&n.textAlignment==n.indicator.textAlignment&&n.textAngle>0&&n.textAngle<120?t=n.indicator._location.y-n._location.y:n.textPosition==n.subTitle.textPosition&&n._location.y0&&n.textAngle<180?t=n.subTitle._location.y-n._location.y:n.textPosition==n.subTitle.textPosition&&n._location.y>n.subTitle._location.y&&n.textAngle>190&&n.textAngle<360?t=n._location.y-n.subTitle._location.y:n.textPosition==n.indicator.textPosition&&n._location.y0&&n.textAngle<180?t=n.indicator._location.y-n._location.y:n.textPosition==n.indicator.textPosition&&n._location.y>n.indicator._location.y&&n.textAngle>190&&n.textAngle<360&&(t=n._location.y-n.indicator._location.y),this._trim(n.displayText,n,t,i)},_indOverlap:function(n,t){var u,f,i,r;return f=!0,i=this.model.captionSettings.subTitle,r=this.model.captionSettings,n.textPosition==i.textPosition&&n.textAlignment==i.textAlignment&&n.textAngle>190&&n.textAngle<360?u=t.y-i._location.y:n.textPosition==r.textPosition&&n.textAlignment==r.textAlignment&&n.textAngle>190&&n.textAngle<360?u=t.y-r._location.y:n.textPosition==i.textPosition&&n._location.y0&&n.textAngle<180?u=i._location.y-n._location.y:n.textPosition==i.textPosition&&n._location.y>i._location.y&&n.textAngle>190&&n.textAngle<360?u=n._location.y-i._location.y:n.textPosition==r.textPosition&&n._location.y0&&n.textAngle<180?u=r._location.y-n._location.y:n.textPosition==r.textPosition&&n._location.y>r._location.y&&n.textAngle>190&&n.textAngle<360&&(u=n._location.y-r._location.y),this._trim(n.displayText,n,u,f)},_subOverlap:function(n){var r,u,t,i;return u=!0,t=this.model.captionSettings.indicator,i=this.model.captionSettings,n.textPosition==t.textPosition&&n.textAlignment==t.textAlignment&&n.textAngle>0&&n.textAngle<180?r=t._location.y-n._location.y:n.textPosition==i.textPosition&&n.textAlignment==i.textAlignment&&n.textAngle>190&&n.textAngle<360?r=n._location.y-i._location.y:n.textPosition==t.textPosition&&n._location.y0&&n.textAngle<180?r=t._location.y-n._location.y:n.textPosition==t.textPosition&&n._location.y>t._location.y&&n.textAngle>190&&n.textAngle<360?r=n._location.y-t._location.y:n.textPosition==i.textPosition&&n._location.y0&&n.textAngle<180?r=i._location.y-n._location.y:n.textPosition==i.textPosition&&n._location.y>i._location.y&&n.textAngle>190&&n.textAngle<360&&(r=n._location.y-i._location.y),this._trim(n.displayText,n,r,u)},rotatedLabel:function(n,i,r,u){var f={"font-size":n.size,transform:"rotate("+r+",0,0)","font-family":n.fontFamily,"font-style":n.fontStyle,rotateAngle:"rotate("+r+"deg)","text-anchor":"middle"},e=i.svgRenderer.createText(f,u);return Math.ceil(t.EjSvgRender.utils._measureBounds(e,i).width)},calcGap:function(n,t,i,r,u,f,e){var o;return n>=0&&n<=90?r+t.y>=e&&n>0?(o=e-t.y,u=!0):r+t.y<=e&&i+t.x>=f&&n>0?o=f-t.x:r+t.y<=e&&n>0?(o=e-t.y,u=!0):o=f-t.x:n>90&&n<180?r+t.y>=e?(o=e-t.y,u=!0):r+t.y<=e&&i+t.x>=f?o=t.x:i+t.x<=f?o=t.x:(o=e-t.y,u=!0):n>=180&&n<270?t.x-i>=0?(o=t.y,u=!0):t.y-r<=0&&t.x-i<=0?o=t.x:t.y-r<=0?(o=e-t.y,u=!0):o=t.x:i+t.x<=f?(o=t.y,u=!0):t.y-r>=0&&i+t.x>=f?o=f-t.x:i+t.x>=f?o=f-t.x:(o=t.y,u=!0),{trimSize:o,rotate:u}},_scaleLoc:function(){var o=this._scale,u=o.labelSettings.offset,i=o.majorTickSettings.size,n,e,s=this._scale.labelSettings,h=t.EjSvgRender.utils._measureText(s.labelPrefix+o.maximum+s.labelSuffix,null,s),f=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal?h.height:h.width,r,c;n=o.location.y;r=this.model.qualitativeRangeSize;c=this._tickPosition+this._tickPlacement+this._labelPosition+this._labelPlacement;this._tickPosition=="center"&&(i=i>r&&(i-r)/2);switch(c){case"faroutsidebelowoutside":e=n+f+r+u+(i>u&&i-u);break;case"faroutsidebelowinside":e=n+i+r;n=n-(u+f>r&&u+f-r);break;case"faroutsideaboveoutside":e=n+i+r;n=n-(u+f);break;case"faroutsideaboveinside":e=n+i+r+(u+f>r+i?u+f-(r+i):0);break;case"farinsidebelowoutside":e=n+f+r+u;n=n-(i>r&&i-r);break;case"farinsidebelowinside":e=n+r;n=n-(i>r&&i-r)-(u+f>r+i&&u+f-i);break;case"farinsideaboveoutside":e=n+r;n=n-(u+f)-(i>u+f+r&&i-(u+f+r));break;case"farinsideaboveinside":e=n+r+(u+f>r&&f+u-r);n=n-(i>r&&i-r);break;case"nearoutsidebelowoutside":e=n+r+u+f;n=n-i;break;case"nearoutsidebelowinside":e=n+r;n=n-i-(u+f>r+i&&u+f-(r+i));break;case"nearoutsideaboveoutside":e=n+r;n=n-i-(ir&&u+f-r);n=n-i;break;case"nearinsidebelowoutside":e=n+r+(i>u+f+r?i-r:u+f);break;case"nearinsidebelowinside":e=n+r+(i>r&&i-r);n=n-(u+f>r&&u+f-r);break;case"nearinsideaboveoutside":e=n+(i>r?i:r);n=n-u-f;break;case"nearinsideaboveinside":e=n+r+(i>f+u?i-r:f+u-r);break;case"centeroutsidebelowoutside":e=n+r+(i>u+f?i:u+f);n=n-i;break;case"centeroutsidebelowinside":e=n+r+i;n=n-i-(u+f>r+i&&u+f-(r+i));break;case"centeroutsideaboveoutside":e=n+r+i;n=n-i-(ir+i?u+f-r-i:i);n=n-i;break;case"centerinsidebelowoutside":e=n+r+(i>u+f?i:u+f);n=n-i;break;case"centerinsidebelowinside":e=n+r+i;n=n-(u+f-r>i?u+f-r:i);break;case"centerinsideaboveoutside":e=n+r+i;n=n-i-(if+u?i:f+u-r);n=n-i}return{x:o.location.x,y:n,height:e}},_displayText:function(i,r){var f=n.extend(!0,r),e=i.textAngle%360,y=i.text,w=i.font,a=this._scale,p=this._scale.labelSettings,b=t.EjSvgRender.utils._measureText(p.labelPrefix+a.minimum+p.labelSuffix,null,p).width,k=t.EjSvgRender.utils._measureText(y,null,w).width,d=t.EjSvgRender.utils.rotatedLabel(i,this,e,i.text),v=this.rotatedLabel(w,this,e,i.text),o,s=this.svgHeight,h=this.svgWidth,l=!1,u=this._scaleLoc(),c,g;return i.textSpacing&&(k=k+i.textSpacing,v=v+i.textSpacing),this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal?(f.x<=u.x&&u.y<=f.y&&f.y<=u.height?h=a.location.x-b/2:f.x<=u.x&&f.y<=u.y&&e<90?s=u.y:f.x>=u.x&&f.x<=u.x+this.model.quantitativeScaleLength&&f.y<=u.y?s=u.y:f.y<=u.y&&f.x>=u.x+this.model.quantitativeScaleLength&&e>=90?s=u.y:f.x>=u.x+this.model.quantitativeScaleLength&&u.y<=f.y&&f.y<=u.height&&e<270?(h=h-(u.x+this.model.quantitativeScaleLength),f.x=f.x-(u.x+this.model.quantitativeScaleLength)):f.x<=u.x&&f.y>=u.height&&e>270?f.y=f.y-u.height:f.x>=u.x&&f.x<=u.x+this.model.quantitativeScaleLength&&f.y>=u.height?f.y=f.y-u.height:f.x>=u.x+this.model.quantitativeScaleLength&&f.y>=u.height&&e>=180&&e<270&&(f.y=f.y-u.height),o=this.calcGap(e,f,v,d,l,h,s),l=o.rotate,o=o.trimSize):(c=u.height-u.y,u.y=this.svgHeight-a.location.y-this.model.quantitativeScaleLength,u.height=u.y+this.model.quantitativeScaleLength,f.x<=u.x&&u.y<=f.y&&f.y<=u.height?h=a.location.x-b/2:f.x<=u.x&&f.y<=u.y&&e<90?s=u.y:f.x>=u.x&&f.x<=u.x+c&&f.y<=u.y?s=u.y:f.y<=u.y&&f.x>=u.x+c&&e>=90?s=u.y:f.x>=u.x+c&&u.y<=f.y&&f.y<=u.height&&e<=260?(h=h-(u.x+c),f.x=f.x-(u.x+c)):f.x<=u.x&&f.y>=u.height&&e>=280?f.y=f.y-u.height:f.x>=u.x&&f.x<=u.x+c&&f.y>=u.height?f.y=f.y-u.height:f.x>=u.x+c&&f.y>=u.height&&e>=180&&e<=260&&(f.y=f.y-u.height),o=this.calcGap(e,f,v,d,l,h,s),l=o.rotate,o=o.trimSize),g=y,this._trim(y,i,o,l)},_trim:function(n,i,r,u){var f=n,h=this.rotatedLabel(i.font,this,i.textAngle,n),s=t.EjSvgRender.utils._measureText(n,null,i.font).width,o,e,c;if(i.textSpacing&&(s=s+i.textSpacing,h=h+i.textSpacing),s>r&&n!=""){for(e=1;e<=n.toString().length;e++)if(n=f.toString().substring(0,e)+"... ",o=u==!0?t.EjSvgRender.utils.rotatedLabel(i,this,i.textAngle,n):t.EjSvgRender.utils._measureText(n,null,i.font).width,i.textSpacing&&(o=o+i.textSpacing),o>=r){n=n.toString().substring(0,e-1)+"... ";f=n;break}c=f.toString(0,n.toString.lenght-4);c!=f&&(f=n)}return f},_getVerticalScaleLocation:function(n){return{x:this._scale.location.y,y:this.svgHeight-this._scale.location.x-n}},_horizontalTextPositioning:function(n,i,r,u,f){var h=n.textPosition.toLowerCase(),e=i.alignment,r=this._scaleLoc(),o=this._scale.labelSettings,s=t.EjSvgRender.utils._measureText(o.labelPrefix+this._scale.maximum+o.labelSuffix,null,o).width;switch(h){case"left":i.x=r.x-i.width-i.padding-s/2;i.y=r.y+(e=="center"?u.height/2+i.height/3:e=="far"?u.height:i.height);f[0].push(i);break;case"right":i.x=r.x+u.width+i.padding+s/2;i.y=r.y+(e=="center"?u.height/2+i.height/3:e=="far"?u.height:i.height);f[1].push(i);break;case"top":i.x=e=="center"?u.x+u.width/2-i.width/2:e=="near"?u.x:u.x+u.width-i.width;i.y=r.y-i.padding;f[2].push(i);break;case"bottom":i.x=e=="center"?u.x+u.width/2-i.width/2:e=="near"?u.x:u.x+u.width-i.width;i.y=r.height+i.height/2+i.padding;f[3].push(i)}},_VerticalTextPositioning:function(n,t,i,r,u){var o=n.textPosition.toLowerCase(),f=t.alignment,e=this._scaleLoc();switch(o){case"left":t.x=e.y-t.width-t.padding;t.y=i.y+(f=="center"?r.height/2+t.height/3:f=="far"?r.height:t.height);this._tickPosition=="near"&&this._tickPlacement=="inside"&&this._labelPosition=="above"&&this._labelPlacement=="inside"&&(t.x+=this._scale.majorTickSettings.size);u[0].push(t);break;case"right":t.x=e.height+t.padding;t.y=i.y+(f=="center"?r.height/2+t.height/3:f=="far"?r.height:t.height);u[1].push(t);break;case"top":t.x=r.x-t.width/2+(f=="center"?r.width/2:f=="far"&&r.width);t.y=r.y-t.padding;u[2].push(t);break;case"bottom":t.x=r.x-t.width/2+(f=="center"?r.width/2:f=="far"&&r.width);t.y=r.y+r.height+t.height+t.padding-t.height/3+this._scale.labelSettings.size/2;u[3].push(t)}},_positionTextGroup:function(n,t,i){for(var f=[[],[],[],[]],e=this._orientation=="horizontal",u=e?this._scaleLocation:this._getVerticalScaleLocation(i.width),o=e?i:{x:u.x,y:u.y,width:i.height,height:i.width},r=0;r=0;i--)if(this._isOverlapping(t[r],t[i])){switch(u){case 0:case 1:t[i].y>t[r].y?t[i].y=t[r].y+t[i].height+(t[i].padding>1?t[i].padding:1):t[r].y=t[i].y+t[r].height+(t[r].padding>1?t[r].padding:1);break;case 2:t[i].y=t[r].y-t[r].height-(t[i].padding>1?t[i].padding:1);break;default:t[r].y=t[i].y+t[i].height+(t[i].padding>1?t[i].padding:1)}f=!0;break}else f=!1;while(f)}this._applyLeftRightAnchor([n[0],n[1]]);this._applyTopBottomAnchor([n[2],n[3]])},_locateTextGroup:function(n,t){for(var i=0;i1){for(i=0,t=0;t1){for(i=0,t=0;t1){for(i=0,t=0;tt.x+t.width||n.y-n.height>t.y||n.y0&&r.select(u);this.model.fields.dataSource.dataSource.url.match(n.tableName+"$")||t.isNullOrUndefined(n.tableName)||r.from(n.tableName)}else r=n.query;return r},_drawCaption:function(){if(this.model.drawCaption){var t={font:this.model.captionSettings.font,location:this.model.captionSettings.location,subTitle:this.model.captionSettings.subTitle,text:this.model.captionSettings.text,textAngle:this.model.captionSettings.textAngle};this._trigger("drawCaption",t);this.model.captionSettings=n.extend(this.model.captionSettings,t)}},_drawBulletSymbol:function(n,i,r,u){var e="M "+(i.x-i.width/2+i.width)+" "+(i.y+i.height/4)+" L "+(i.x-i.width/2+i.width)+" "+(i.y+-i.height/4)+" L "+(i.x-i.width/2+i.width/2)+" "+(i.y+-i.height/4)+" L "+(i.x-i.width/2+i.width/2)+" "+(i.y+-i.height/2)+" L "+(i.x-i.width/2)+" "+i.y+" L "+(i.x-i.width/2+i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x-i.width/2+i.width/2)+" "+(i.y+i.height/4)+" L "+(i.x-i.width/2+i.width)+" "+(i.y+i.height/4),o,l,a,v,s,y,p,f,d,g,h;switch(n.toLowerCase()){case"circle":o=Math.min(i.height,i.width)/2;r.cx=i.x;r.cy=i.y;r.r=o;this.svgRenderer.drawCircle(r,u);break;case"leftarrow":r.d=e;this.svgRenderer.drawPath(r,u);break;case"rightarrow":r.d=e;r.transform="rotate(180,"+i.x+","+i.y+")";this.svgRenderer.drawPath(r,u);break;case"uparrow":r.d=e;r.transform="rotate(90,"+i.x+","+i.y+")";this.svgRenderer.drawPath(r,u);break;case"downarrow":r.d=e;r.transform="rotate(-90,"+i.x+","+i.y+")";this.svgRenderer.drawPath(r,u);break;case"cross":l="M "+(i.x+-i.width/2)+" "+i.y+" L "+(i.x+i.width/2)+" "+i.y+" M "+i.x+" "+(i.y+i.height/2)+" L "+i.x+" "+(i.y+-i.height/2);r.d=l;r.stroke=r.stroke?r.stroke:r.fill;this.svgRenderer.drawPath(r,u);break;case"horizontalline":a="M "+(i.x+-i.width/2)+" "+i.y+" L "+(i.x+i.width/2)+" "+i.y;r.d=a;r.stroke=r.stroke?r.stroke:r.fill;this.svgRenderer.drawPath(r,u);break;case"verticalline":v="M "+i.x+" "+(i.y+i.height/2)+" L "+i.x+" "+(i.y+-i.height/2);r.d=v;r.stroke=r.stroke?r.stroke:r.fill;this.svgRenderer.drawPath(r,u);break;case"triangle":s="M "+(i.x+-i.width/2)+" "+(i.y+i.height/2)+" L "+i.x+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+i.height/2)+" Z";r.d=s;this.svgRenderer.drawPath(r,u);break;case"invertedtriangle":s="M "+(i.x+-i.width/2)+" "+(i.y+i.height/2)+" L "+i.x+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+i.height/2)+" Z";r.d=s;r.transform="rotate(180,"+i.x+","+i.y+")";this.svgRenderer.drawPath(r,u);break;case"hexagon":y="M "+(i.x+-i.width/2)+" "+i.y+" L "+(i.x+-i.width/4)+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/4)+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+i.y+" L "+(i.x+i.width/4)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/4)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+i.y;r.d=y;this.svgRenderer.drawPath(r,u);break;case"wedge":p="M "+(i.x+-i.width/2)+" "+i.y+" L "+(i.x+i.width/2)+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/4)+" "+i.y+" L "+(i.x+i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+i.y;r.d=p;this.svgRenderer.drawPath(r,u);break;case"pentagon":var o=Math.sqrt(i.height*i.height+i.width*i.width)/2,c=t.EjSvgRender.utils._getStringBuilder();for(f=0;f<=5;f++){var nt=f*72,w=Math.PI/180*nt,b=o*Math.cos(w),k=o*Math.sin(w);f==0?c.append("M "+(i.x+b)+" "+(i.y+k)+" "):c.append("L "+(i.x+b)+" "+(i.y+k)+" ")}r.d=c.toString();this.svgRenderer.drawPath(r,u);break;case"star":d="M "+(i.x+i.width/3)+" "+(i.y+-i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+i.height/6)+" L "+(i.x+i.width/2)+" "+(i.y+i.height/6)+" L "+(i.x+-i.width/3)+" "+(i.y+-i.height/2)+" L "+i.x+" "+(i.y+i.height/2)+" L "+(i.x+i.width/3)+" "+(i.y+-i.height/2);r.d=d;this.svgRenderer.drawPath(r,u);break;case"rectangle":g="M "+(i.x+-i.width/2)+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+-i.height/2);r.d=g;this.svgRenderer.drawPath(r,u);break;case"trapezoid":h="M "+(i.x+-i.width/2)+" "+i.y+" L "+(i.x+-i.width/2)+" "+(i.y+-i.height/4)+" L "+(i.x+-i.width/2+i.width)+" "+(i.y+-i.height/2)+" L "+(i.x+-i.width/2+i.width)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+i.height/4)+" L "+(i.x+-i.width/2)+" "+i.y;r.d=h;this.svgRenderer.drawPath(r,u);break;case"diamond":h="M "+(i.x+-i.width/2)+" "+i.y+" L "+i.x+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+i.y+" L "+i.x+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+i.y;r.d=h;this.svgRenderer.drawPath(r,u);break;case"ellipse":r.cx=i.x;r.cy=i.y;r.rx=i.width/2;r.ry=i.height/2;this.svgRenderer.drawEllipse(r,u);break;case"image":r.x=i.x-i.width/2;r.y=i.y-i.height/2;r.width=i.width;r.height=i.height;r.href=this.model.captionSettings.indicator.symbol.imageURL;r.visibility="visible";this.svgRenderer.drawImage(r,u)}},_drawIndicator:function(){var i,r,u;this.model.captionSettings.indicator.visible&&(i=this.model.captionSettings.indicator,r=n.extend({},{indicatorSettings:this.model.captionSettings.indicator}),this.model.drawIndicator&&(this._trigger("drawIndicator",r),r.cancel==!1&&(i=r.indicatorSettings,this.model.captionSettings.indicator=i)),u=t.EjSvgRender.utils._measureText(i.text,null,i.font),this._indicator={bounds:u,settings:i})},_indicatorTextOptions:function(n,t,i,r){var u=n._location?n._location:n.location;return{"class":r,x:u.x+t.width+n.textSpacing,y:u.y-t.height/2+parseFloat(n.font.size)/3,fill:n.font.color,"font-size":n.font.size,"font-family":n.font.fontFamily,"font-style":n.font.fontStyle,"font-weight":n.font.fontWeight,"text-anchor":"start",opacity:n.font.opacity,transform:"rotate("+n.textAngle+","+t.x+","+t.y+")"}},_indicatorSymbolOptions:function(n,t){return{id:n.id+"_indicatorSymbol",stroke:t.symbol.border.color,fill:t.symbol.color,"stroke-width":t.symbol.border.width,opacity:t.symbol.opacity}},_textOptions:function(n,t){var i=n._location?n._location:n.location;return{"class":t,x:i.x,y:i.y,fill:n.font.color,"font-size":n.font.size,"font-family":n.font.fontFamily,"font-style":n.font.fontStyle,"font-weight":n.font.fontWeight,"text-anchor":"start",opacity:n.font.opacity,cursor:"default",transform:"rotate("+n.textAngle+","+i.x+","+i.y+")"}},_drawScale:function(n,i){var r=this._scale._location?this._scale._location:this._scale.location,u,f,e;u=this._tickPosition==t.datavisualization.BulletGraph.TickPosition.Far||this._tickPosition==t.datavisualization.BulletGraph.TickPosition.Center?this._labelPosition==t.datavisualization.BulletGraph.LabelPosition.Below?r.y:r.y+this._scale.labelSettings.offset+this._scale.labelSettings.size:this._labelPosition==t.datavisualization.BulletGraph.LabelPosition.Below?r.y+this._scale.majorTickSettings.size:r.y+this._scale.labelSettings.offset+this._scale.labelSettings.size+this._scale.majorTickSettings.size;f=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward?r.x:this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal?r.x-this._scale.labelSettings.offset:r.x;e={id:this.svgObject.id+"_SvgScale",x:f,y:u,width:this.model.quantitativeScaleLength,height:this.model.qualitativeRangeSize,fill:"transparent","stroke-width":0};this.svgRenderer.drawRect(e,i)},_drawMajorTicks:function(n,i){var r,l,tt=0,a=this._scale.location,b=this._tickPlacement=="inside",s=this._scale.location.x,k=this.model.quantitativeScaleLength,it=this._scale.labelSettings.offset,d=this.model.qualitativeRangeSize,u=this._scale.majorTickSettings.width,v=this._scale.majorTickSettings.size,f=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal,o=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward,rt=this._labelPosition==t.datavisualization.BulletGraph.LabelPosition.Below,e,y,p,w,nt;r=o?f?s+u/2:s+k+u/2:f?s+k-u/2:s+u/2;l=this._tickPosition=="far"?a.y+d+(b?-v:0):this._tickPosition=="near"?a.y+(b?0:-v):a.y+d/2-v/2;var h=this._scale.minimum,c=this._scale.maximum,g=this._scale.interval;for(e=h;e<=c;e+=g)tt++,e>=c&&(f&&!o?r+=u:r-=u),!f&&o&&(r=e>=c?r+u:e==h?r-u:r),this.model.applyRangeStrokeToTicks&&(y=this._bindingRangeStrokes(r-u/2)),p=this._majorTickLines(this._scale,r,l,y),!f&&o&&e==h&&(r=r+u),this.model.drawTicks&&(w={majorTickSettings:this._scale.majorTickSettings,minorTickSettings:this._scale.minorTickSettings,minorTicksPerInterval:this._scale.minorTicksPerInterval,maximum:c,minimum:h,interval:g},this._trigger("drawTicks",w),p=this._majorTickLines(w,r,l,y)),nt=this.svgRenderer.createLine(p),r=!o&&f||o&&!f?r-n:r+n,i.appendChild(nt)},_majorTickLines:function(n,t,i,r){return{x1:t,y1:i,x2:t,y2:i+n.majorTickSettings.size,"stroke-width":n.majorTickSettings.width,stroke:this.model.applyRangeStrokeToTicks&&r?r:n.majorTickSettings.stroke}},_forwardStrokeBinding:function(n){if(n>=this._scale.location.x&&n<=this._rangeCollection[0]+this._scale.location.x)return this.model.qualitativeRanges[0].rangeStroke;for(var t=0;t<=this._rangeCollection.length-1;t++)if(n>=this._rangeCollection[t]+this._scale.location.x&&n<=this._rangeCollection[t+1]+this._scale.location.x)return this.model.qualitativeRanges[t+1].rangeStroke},_backwardStrokeBinding:function(t){var i,r;if(t>=this._rangeCollection[this._rangeCollection.length-1])return this.model.qualitativeRanges[0].rangeStroke;for(i=0;i<=this._rangeCollection.length-1;i++)if(t>=this._rangeCollection[i]&&t=this._scale.location.x&&n<=this._rangeCollection[0]+this._scale.location.x)return this.model.qualitativeRanges[0].rangeStroke}else return this.model.orientation==t.datavisualization.BulletGraph.Orientation.Horizontal&&this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward||this.model.orientation==t.datavisualization.BulletGraph.Orientation.Vertical&&this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Backward?this._forwardStrokeBinding(n):this._backwardStrokeBinding(n)},_drawMinorTicks:function(i,r){var h,c,s,p,u,tt=0,e=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward,f=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal,it=this._tickPlacement=="inside",o=this._scale.location.x,rt=this.model.qualitativeRangeSize,st=this._scale.labelSettings.offset,ht=this._scale.majorTickSettings.size,l=this._scale.minorTickSettings.size,ut=this._scale.minorTickSettings.width,b=this.model.quantitativeScaleLength,g,k,nt,w,d,v,y;h=e?f?o:o+b:f?o+b-ut/2:o;switch(this._tickPosition){case"far":s=this._scale.location.y+rt;p=s+(it?-l:l);break;case"near":s=this._scale.location.y+(it?l:-l);p=this._scale.location.y;break;default:s=this._scale.location.y+rt/2-l/2;p=s+l}var ft=this._scale.maximum,et=this._scale.minimum,ot=this._scale.interval,a=this._scale.minorTicksPerInterval;for(g=et;g<=ft;g+=ot){for(c=i/a,k=1;k<=a;k++)tt++,u=!f&&e||f&&!e?h-c+c/(a+1):h+c-c/(a+1),!e&&f&&tt>=(ft-et)*a&&(u+=ut/2),this.model.applyRangeStrokeToTicks&&(nt=this._bindingRangeStrokes(u)),w=this._minorTickLines(this._scale,u,s,p,nt),this.model.drawTicks&&(d={majorTickSettings:this._scale.majorTickSettings,minorTickSettings:this._scale.minorTickSettings,minorTicksPerInterval:this._scale.minorTicksPerInterval,maximum:this._scale.maximum,minimum:this._scale.minimum,interval:this._scale.interval},this._trigger("drawTicks",d),this._scale=n.extend(this._scale,d),w=this._minorTickLines(d,u,s,p,nt)),!e&&f?(v=b+o+1,u<=v&&u>=o+1&&(y=this.svgRenderer.createLine(w),r.appendChild(y))):e&&!f?(v=o+1,u>=v&&(y=this.svgRenderer.createLine(w),r.appendChild(y))):(v=b+o+1,u<=v&&(y=this.svgRenderer.createLine(w),r.appendChild(y))),c=i/a*(k+1);h=!e&&f||e&&!f?h-i:h+i}},_minorTickLines:function(n,t,i,r,u){return{x1:t,y1:i,x2:t,y2:r,"stroke-width":n.minorTickSettings.width,stroke:this.model.applyRangeStrokeToTicks&&u?u:n.minorTickSettings.stroke}},_drawLabels:function(n,i){var o,a,it=this.model.locale,et=it&&this.model.enableGroupSeparator,g,b,rt=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward,c=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal,k=this._scale.location.x,f=this._scale.labelSettings.offset,ut=this.model.quantitativeScaleLength,ct=this._scale.majorTickSettings.width,v,l,e,w,nt,h,tt;o=rt?c?k:k+ut:c?k+ut:k;var ft=this._tickPosition+this._labelPlacement,s=this._labelPosition==t.datavisualization.BulletGraph.LabelPosition.Below,lt=this._scale.location.y,d=this.model.qualitativeRangeSize,u=this._scale.labelSettings.size,at=this._scale.majorTickSettings.size;switch(ft){case"faroutside":case"centeroutside":a=s?this._scale.location.y+d+f+u:this._scale.location.y-f;break;case"farinside":case"centerinside":a=s?this._scale.location.y+d-f:this._scale.location.y+f+(c?u:0);break;case"nearoutside":a=s?this._scale.location.y+d+f+u:this._scale.location.y-f;break;case"nearinside":a=s?this._scale.location.y+d-f:this._scale.location.y+f+u}var ot=this._scale.minimum,st=this._scale.maximum,ht=this._scale.interval,vt=this._labelPlacement=="inside";for(l=ot;l<=st;l+=ht){var r=a,y=o,p=this._scale.labelSettings.font;if(p.size=u,e={width:0,height:0},c)b="rotate(0,"+y+","+r+")";else{w=this._scale.labelSettings.labelPrefix+l+this._scale.labelSettings.labelSuffix;switch(ft){case"faroutside":case"centeroutside":s?r-=u:(e=t.EjSvgRender.utils._measureText(w,null,p),r-=e.width);break;case"farinside":case"centerinside":s&&(e=t.EjSvgRender.utils._measureText(w,null,p),r-=e.width);break;case"nearoutside":s?r-=u:(e=t.EjSvgRender.utils._measureText(w,null,p),r-=e.width);break;case"nearinside":s?(e=t.EjSvgRender.utils._measureText(w,null,p),r-=e.width):r-=u}y-=u/3;b="rotate(90,"+y+","+r+")"}this.model.applyRangeStrokeToLabels&&(nt=this._bindingRangeStrokes(o));h=this._labelOptions(this.model.quantitativeScaleSettings.labelSettings,y,r,b,nt);this.model.drawLabels&&(tt={font:this._scale.labelSettings.font,labelPrefix:this._scale.labelSettings.labelPrefix,labelSuffix:this._scale.labelSettings.labelSuffix,offset:f,size:u,stroke:this._scale.labelSettings.stroke},this._trigger("drawLabels",tt),h=this._labelOptions(tt,y,r,b,nt));o=rt?c?o+n:o-n:c?o-n:o+n;g=et?l.toLocaleString(it):l;v=g;t.util.isNullOrUndefined(h.labelPrefix)||(v=h.labelPrefix+g);t.util.isNullOrUndefined(h.labelSuffix)||(v=v+h.labelSuffix);this.svgRenderer.drawText(h,v,i)}},_labelOptions:function(n,i,r,u,f){var e={x:i,y:r,"text-anchor":this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal?"middle":"start",fill:this.model.applyRangeStrokeToLabels&&f?f:n.stroke,"font-size":n.size+"px","font-family":n.font.fontFamily,"font-style":n.font.fontStyle,"font-weight":n.font.fontWeight,opacity:n.font.opacity,transform:u};return n.labelPrefix!=""&&(e.labelPrefix=n.labelPrefix),n.labelSuffix!=""&&(e.labelSuffix=n.labelSuffix),e},_drawQualitativeRanges:function(n){var c=this._scale.location.x,y=this._scale.location.y,e,a=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward,o=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal,p=this._scale.labelSettings.offset,s,h,f,v;this._rangeCollection=[];var w=this._tickPosition+this._labelPlacement,b=this._labelPosition==t.datavisualization.BulletGraph.LabelPosition.Below,k=this.model.qualitativeRangeSize,l=this._scale.location.x,r=this._scale.minimum,i=this._scale.maximum,u=this.model.quantitativeScaleLength;for(s=this.model.qualitativeRanges.length-1;s>=0;s--)h={object:this,rangeIndex:s,rangeOptions:this.model.qualitativeRanges[s],rangeEndValue:this.model.qualitativeRanges[s].rangeEnd},this.model.drawQualitativeRanges&&this._trigger("drawQualitativeRanges",h),f=h.rangeEndValue,f=f>i?i:f,a?(c=o?l:l+(u-u/((i-r)/(i-r-(i-f)))),e=o?u/((i-r)/(i-r-(i-f))):u/((i-r)/(i-r-(i-f)))):(c=o?l+(u-u/((i-r)/(i-r-(i-f)))):l,e=o?u/((i-r)/(i-r-(i-f))):u/((i-r)/(i-r-(i-f)))),v={x:c,y:y,height:this.model.qualitativeRangeSize,width:e>0?e=o){var u,h,r,f=this._scale.location.x,e=this.model.quantitativeScaleLength,s=this._scale.maximum-this._scale.minimum,c=this._scale.maximum-n,l=this._flowDirection.toLowerCase()+this._orientation.toLowerCase();i=i==null?"":i;a=this._scale.labelSettings.font;a.size=this._scale.labelSettings.size;v=t.EjSvgRender.utils._measureText(i.toString(),null,a).width;switch(l){case"forwardhorizontal":case"backwardvertical":u=f+(o>0?0:e/s*Math.abs(o));r=e/(s/(o>0?s-c:n));n<0&&(r=Math.abs(r),u-=r);r=u+r0?e/(s/(s-c)):e/(s/n);n<0&&(r=Math.abs(r),u-=r);u0)for(n=this._dataCount-1;n>=0;n--)o=v?this.model.fields.dataSource[n][this.model.fields.featureMeasures]:t.isNullOrUndefined(this._scale.featureMeasures[n].value)?w:this._scale.featureMeasures[n].value,r=v?this.model.fields.dataSource[n][this.model.fields.category]:this._scale.featureMeasures[n].category,h=this._scale.location.y+this.model.qualitativeRangeSize/this._dataCount*e/2-this._scale.featuredMeasureSettings.width/2,f=this._scale.location.y+this.model.qualitativeRangeSize/this._dataCount*e/2+this._scale.featuredMeasureSettings.width/2-1,i=this._calculateFeatureMeasureBounds(o,r),i&&(c=this._featureBar(this._scale,i.pointX,h,i.Width,n),this.model.drawFeatureMeasureBar&&(u={featuredMeasureSettings:this._scale.featuredMeasureSettings},this._trigger("drawFeatureMeasureBar",u),c=this._featureBar(u,i.pointX,h,i.Width,n)),this.svgRenderer.drawRect(c,this._scaleGroup),s=p?"rotate(90,"+i.lPointX+","+(f-4)+")":"rotate(0,"+i.lPointX+","+f+")",l=this._drawcategory(this.model.quantitativeScaleSettings.labelSettings,i.lPointX,f,s),this.model.drawCategory&&(u={size:this.model.quantitativeScaleSettings.labelSettings.size,stroke:this.model.quantitativeScaleSettings.labelSettings.stroke,font:this.model.quantitativeScaleSettings.labelSettings.font,categoryValue:r},this._trigger("drawCategory",u),l=this._drawcategory(u,i.lPointX,f,s),r=u.categoryValue),t.isNullOrUndefined(r)||this.svgRenderer.drawText(l,y?r.toLocaleString(a):r,this._scaleGroup),e+=2,this.value(o))},_drawcategory:function(n,t,i,r){return{x:t,y:i+this._scale.featuredMeasureSettings.width/2,"text-anchor":"middle",fill:n.stroke,"font-size":n.size+"px","font-family":n.font.fontFamily,"font-style":n.font.fontStyle,"font-weight":n.font.fontWeight,opacity:n.font.opacity,transform:r}},_featureBar:function(n,t,i,r,u){return{"class":this.svgObject.id+"_FeatureMeasure",id:this.svgObject.id+"_FeatureMeasure_"+u,x:t,y:i,height:n.featuredMeasureSettings.width,width:r,fill:n.featuredMeasureSettings.stroke}},_drawComparativeMeasureSymbol:function(){var r=1,n,u,f,e,c=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward,h=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal,l=typeof this.model.comparativeMeasureValue=="function"?this._comparativeMeasureValue():this.model.comparativeMeasureValue,i,o,s;if(this._dataCount>0)for(i=this._dataCount-1;i>=0;i--)n=!t.isNullOrUndefined(this.model.fields)&&this.model.fields.dataSource!=null?this.model.fields.dataSource[i][this.model.fields.comparativeMeasure]:t.isNullOrUndefined(this._scale.featureMeasures[i].comparativeMeasureValue)?l:this._scale.featureMeasures[i].comparativeMeasureValue,n>=this._scale.minimum&&n<=this._scale.maximum&&(u=this._scale.location.y+this.model.qualitativeRangeSize/this._dataCount*r/2-this._scale.featuredMeasureSettings.width/2-this._scale.featuredMeasureSettings.width,f=this._scale.location.y+this.model.qualitativeRangeSize/this._dataCount*r/2-this._scale.featuredMeasureSettings.width/2+2*this._scale.featuredMeasureSettings.width,e=c?h?this._scale.location.x+this.model.quantitativeScaleLength/((this._scale.maximum-this._scale.minimum)/(this._scale.maximum-this._scale.minimum-(this._scale.maximum-n))):this._scale.location.x+(this.model.quantitativeScaleLength-this.model.quantitativeScaleLength/((this._scale.maximum-this._scale.minimum)/(this._scale.maximum-this._scale.minimum-(this._scale.maximum-n)))):h?this._scale.location.x+(this.model.quantitativeScaleLength-this.model.quantitativeScaleLength/((this._scale.maximum-this._scale.minimum)/(this._scale.maximum-this._scale.minimum-(this._scale.maximum-n)))):this._scale.location.x+this.model.quantitativeScaleLength/((this._scale.maximum-this._scale.minimum)/(this._scale.maximum-this._scale.minimum-(this._scale.maximum-n))),o=this._compareMeasure(this._scale,e,u,f,i,n),this.model.drawComparativeMeasureSymbol&&(s={comparativeMeasureSettings:this._scale.comparativeMeasureSettings},this._trigger("drawComparativeMeasureSymbol",s),o=this._compareMeasure(s,e,u,f,i,n)),this.svgRenderer.drawLine(o,this._scaleGroup),r+=2,this.comparativeMeasureValue(n))},_compareMeasure:function(n,t,i,r,u,f){return{"class":this.svgObject.id+"_ComparativeMeasure",id:this.svgObject.id+"_ComparativeMeasure_"+u,x1:f==this._scale.maximum?t-n.comparativeMeasureSettings.width/2:f==this._scale.minimum?t+n.comparativeMeasureSettings.width/2:t,y1:i,x2:f==this._scale.maximum?t-n.comparativeMeasureSettings.width/2:f==this._scale.minimum?t+n.comparativeMeasureSettings.width/2:t,y2:r,"stroke-width":n.comparativeMeasureSettings.width,stroke:n.comparativeMeasureSettings.stroke}},_setTheme:function(n,i){var u=[],e,r,f;this._scale=this.model.quantitativeScaleSettings;for(e in n)u.push(e);for(r=0;r=0;t--)r=i[t],this._animateFeatureBar(r)},_doLineAnimation:function(){for(var r,i=n("."+this.svgObject.id+"_ComparativeMeasure"),u=2e3/i.length,t=i.length-1;t>=0;t--)r=i[t],n(r).attr("transform","scale(0)"),this._doLineSymbol(r,u,t)},_animateFeatureBar:function(i){var r=i.getBBox(),u,f,e;this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal&&this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Backward||this._orientation==t.datavisualization.BulletGraph.Orientation.Vertical&&this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward?(u=r.x+r.width,f=r.y+r.height):(u=r.x,f=r.y);n(i).animate({scale:1},{duration:1e3,step:function(t){e=t;n(i).attr("transform","translate("+u+" "+f+") scale("+t+",1) translate("+-u+" "+-f+")")}})},_doLineSymbol:function(t,i,r){var o=parseInt(r*i),u=t.getBBox(),f=u.x+u.width/2,e=u.y+u.height/2;n(t).delay(o).animate({scale:1},{duration:200,step:function(i){n(t).attr("transform","translate("+f+" "+e+") scale("+i+") translate("+-f+" "+-e+")")}})},bindEvents:function(){var u=t.EjSvgRender.utils.browserInfo(),i=u.isMSPointerEnabled,r=u.pointerEnabled,f=i?r?"pointerdown":"MSPointerDown":"touchstart mousedown",e=i?r?"pointerup":"MSPointerUp":"touchend mouseup",o=i?r?"pointermove":"MSPointerMove":"touchmove mousemove",s=i?r?"pointerleave":"MSPointerOut":"touchleave mouseleave";this.model.browserInfo=u;this._on(n(this.svgObject),o,this._bulletMouseMove);this._on(n(this.svgObject),s,this._bulletMouseLeave);this._on(n(this.svgObject),f,this._bulletMouseDown);this._on(n(this.svgObject),e,this._bulletMouseUp);this._on(n(this.svgObject),"contextmenu",this._bulletRightClick);this._on(n(this.svgObject),"click",this._bulletClick);(this.model.enableResizing||this.model.isResponsive)&&(t.isTouchDevice()?this._on(n(window),"orientationchange",this._bulletResize):this._on(n(window),"resize",this._bulletResize))},_unwireEvents:function(){this._off(n(this.svgObject),"contextmenu",this._bulletRightClick);this._off(n(this.svgObject),"click",this._bulletClick)},isDevice:function(){return/mobile|tablet|android|kindle/i.test(navigator.userAgent.toLowerCase())},_bulletResize:function(){var i=this,f=this.model.height,r=this.model.width,e=n(i.svgObject),f=90,r=t.isTouchDevice()?250:595,u=n(i.element).width(),o;i.model.width?r=parseInt(i.model.width):u>0&&u<595?r=u:u>595&&(r=595);i.model.height&&(f=parseInt(i.model.height));o=n(i.element).height()>f?f:n(i.element).height();this.resizeTO&&clearTimeout(this.resizeTO);this.resizeTO=setTimeout(function(){r-1?!0:!1},_bulletMouseMove:function(t){var i,r;i=n(t.target).attr("id");r=n(t.target).attr("class");this.isTouch(t)||(n("#tooltip").remove(),n(".tooltipDiv"+this._id).remove(),this._elementTooltip(t,r,i),this._displayTooltip(t,r,i))},_bulletMouseDown:function(i){if(this.isTouch(i)){n("#tooltip").remove();n(".tooltipDiv"+this._id).remove();var r=n(i.target).attr("id"),u=n(i.target).attr("class");this._elementTooltip(i,u,r);this._displayTooltip(i,u,r)}t.isTouchDevice()&&this.model.rightClick!=""&&(this._longPressTimer=new Date)},_bulletMouseUp:function(i){if(this.isTouch(i)){var r=this,u;window.clearTimeout(r.model.timer);n(".tooltipDiv"+this._id).length==1&&(u=n(".tooltipDiv"+this._id));u&&(r.model.trackerElement=u,r.model.timer=setTimeout(function(){r.model.trackerElement&&n(".tooltipDiv"+r._id).fadeOut(500,function(){n(".tooltipDiv"+r._id).remove();n("[id*="+r.svgObject.id+"_FeatureMeasure_]").attr("opacity","1")})},1200))}t.isTouchDevice()&&this.model.rightClick!=""&&new Date-this.model._longPressTimer>1500&&this._bulletRightClick(i)},_bulletClick:function(n){var t=new Date;this.model.click!=""&&this._trigger("click",{data:{event:n}});this._doubleTapTimer!=null&&t-this._doubleTapTimer<300&&this._bulletDoubleClick(n);this._doubleTapTimer=t},_bulletDoubleClick:function(n){this.model.doubleClick!=""&&this._trigger("doubleClick",{data:{event:n}})},_bulletRightClick:function(n){this.model.rightClick!=""&&this._trigger("rightClick",{data:{event:n}})},_elementTooltip:function(t,r){var o=this.model.captionSettings,u=n("
<\/div>").attr({id:"tooltip","class":"tooltipDiv"+this._id}),s=this.mousePosition(t),c="",h,f,e;if(n(u).css({left:s.pageX+10,top:s.pageY+10,display:"block",position:"absolute","z-index":"13000",cursor:"default","font-family":"Segoe UI",color:"#707070","font-size":"12px","background-color":"#FFFFFF",border:"1px solid #707070"}),r==this.svgObject.id+"_Caption"?c=t.target.textContent==o.text?"":o.text:r==this.svgObject.id+"_SubTitle"?c=t.target.textContent==o.subTitle.text?"":o.subTitle.text:r==this.svgObject.id+"_Indicator"&&(c=t.target.textContent==o.indicator.text?"":o.indicator.text),c!="")n(u).html(" "+c+" "),n(document.body).append(u);else if(this.model.tooltipSettings.enableCaptionTooltip&&(r==this.svgObject.id+"_Caption"||r==this.svgObject.id+"_SubTitle"||r==this.svgObject.id+"_Indicator")){var a=n("."+r).text(),v={Text:a},l=this.model.tooltipSettings.captionTemplate;n(".tooltipDiv"+this._id).length==0&&(u=n("
<\/div>").attr("class","tooltipDiv"+this._id).css({position:"absolute","z-index":"13000",display:"block"}),n(document.body).append(u));l!=""&&l!=null?(h=document.getElementById(l),h=h?n(h).clone():n(l),n(h).css("display","block").appendTo(u),n(u).html(n(h).render(v))):n(u).html(a);n(u).css("font-size","12px");f=s.clientX+n(document).scrollLeft()+10;e=s.clientY+n(document).scrollTop()+10;f=f+n(u).width()0?n:n.originalEvent&&!t.util.isNullOrUndefined(n.originalEvent.pageX)&&n.originalEvent.pageX>0?n.originalEvent:n.originalEvent&&n.originalEvent.changedTouches!=i&&!t.util.isNullOrUndefined(n.originalEvent.changedTouches[0].pageX)&&n.originalEvent.changedTouches[0].pageX>0?n.originalEvent.changedTouches[0]:n},_displayTooltip:function(r,u,f){var w,b,s,h;if(u!="undefined"&&(u==this.svgObject.id+"_FeatureMeasure"||u==this.svgObject.id+"_ComparativeMeasure")){var a=this.model.locale,k=a&&this.model.enableGroupSeparator,c,e,y,p,l,o,d=typeof this.model.value=="function"?this._value():this.model.value,g=typeof this.model.comparativeMeasureValue=="function"?this._comparativeMeasureValue():this.model.comparativeMeasureValue,v=this.mousePosition(r);e=f.substring(f.lastIndexOf("_")+1);y=!t.isNullOrUndefined(this.model.fields)&&this.model.fields.dataSource!=null?this.model.fields.dataSource[e][this.model.fields.featureMeasures]:t.isNullOrUndefined(this._scale.featureMeasures[e].value)?d:this._scale.featureMeasures[e].value;p=!t.isNullOrUndefined(this.model.fields)&&this.model.fields.dataSource!=null?this.model.fields.dataSource[e][this.model.fields.comparativeMeasure]:t.isNullOrUndefined(this._scale.featureMeasures[e].comparativeMeasureValue)?g:this._scale.featureMeasures[e].comparativeMeasureValue;l=!t.isNullOrUndefined(this.model.fields)&&this.model.fields.dataSource!=null?t.isNullOrUndefined(this.model.fields.dataSource[e][this.model.fields.category])?null:this.model.fields.dataSource[e][this.model.fields.category]:t.isNullOrUndefined(this._scale.featureMeasures[e].category)?null:this._scale.featureMeasures[e].category;c=k?{currentValue:y.toLocaleString(a),targetValue:p.toLocaleString(a),category:t.util.isNullOrUndefined(l)?l:l.toLocaleString(a)}:{currentValue:y,targetValue:p,category:l};n(".tooltipDiv"+this._id).length==0&&(o=n("
<\/div>").attr("class","tooltipDiv"+this._id).css({position:"absolute","z-index":"13000",display:"block"}),n(document.body).append(o));this.model.tooltipSettings.template!=""&&this.model.tooltipSettings.template!=null?(w=n("#"+this.model.tooltipSettings.template).clone(),n(w).css("display","block").appendTo(o),n(o).html(n(w).render(c))):(b=t.isNullOrUndefined(c.category)?"":"
Category : "+c.category,n(o).html("Current : "+c.currentValue+"
Target : "+c.targetValue+b));n(o).css("font-size","12px");s=v.clientX+n(document).scrollLeft()+10;h=v.clientY+n(document).scrollTop()+10;s=s+n(o).width()0){i=0;do i++;while($(document).find("#"+this._rootId+"_svg"+i).length>0);t=this._rootId+"_svg"+i}this.svgObj.setAttribute("id",t)},function(n){function t(n,t,i,r){var u=r*Math.PI/180,f=n+i*Math.cos(u),e=t+i*Math.sin(u);return[f,e]}ej.EjSvgRender.prototype={drawPath:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"path");n(r).attr(t).appendTo(i)}},createLegendSvg:function(n){return this.svgLink="http://www.w3.org/2000/svg",this.legendsvgObj=document.createElementNS(this.svgLink,"svg"),this._rootId=jQuery(n).attr("id"),this.legendsvgObj.setAttribute("id","legend_"+this._rootId+"_svg"),this.legendsvgObj},drawPolyline:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"polyline");n(r).attr(t).appendTo(i)}},drawLine:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"line");n(r).attr(t);n(r).appendTo(i)}},drawPolygon:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"polygon");n(r).attr(t);n(r).appendTo(i)}},drawCircle:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"circle");n(r).attr(t).appendTo(i)}},drawEllipse:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"ellipse");n(r).attr(t).appendTo(i)}},drawRect:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"rect");n(r).attr(t).appendTo(i)}},drawCylinder:function(t,i,r){var d,ot,y;if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var rt=t.x,s=t.y,g=t.id,h=t.fill,st=h,ht=this.checkColorFormat(h);ht||(h=ej.datavisualization.Chart.prototype.colorNameToHex(h));var a,v,p,w,l,e,b,nt,ut=2,tt,k,ft=0,et=0,c,it={svgRenderer:this};if(r.isColumn==!0){var o=t.width/2,u=t.height,f=o/4;l=tt=rt;e=f0)this._textAttrReplace(t,i,u);else{if(e=document.createElementNS(this.svgLink,"text"),o=n(e),jQuery.type(i)=="array")for(h=0,o.attr(t),f=0;f0&&f.length==i.length)for(u=0;u0)n(i).find("#"+t.id).attr(t);else{var r=this.createDefs(),u=this.createClipPath({id:t.id});t.id=t.id+"_Rect";this.drawRect(t,u);this.append(u,r);this.append(r,i)}},drawCircularClipPath:function(n,t){var i=this.createDefs(),r=this.createClipPath({id:n.id});this.drawCircle(n,r);this.append(r,i);this.append(i,t)},append:function(t,i){n(t).appendTo(i)},_setAttr:function(t,i){n(t).attr(i)}};ej.EjSvgRender.commonChartEventArgs={cancel:!1,data:null};ej.EjSvgRender.utils={_decimalPlaces:function(n){var t=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_getLabelContent:function(n,t,i){switch(t._categoryValueType){case"number":var r=ej.util.isNullOrUndefined(t.labelFormat)?null:t.labelFormat.match("{value}");return ej.util.isNullOrUndefined(t.labelFormat)?t.labels[Math.floor(n)]:r!=null?t.labelFormat.replace("{value}",t.labels[Math.floor(n)]):ej.format(t.labels[Math.floor(n)],t.labelFormat,i);case"date":return ej.format(new Date(t.labels[Math.floor(n)]),ej.util.isNullOrUndefined(t.labelFormat)?"dd/MM/yyyy":t.labelFormat,i);case"string":return t.labels[Math.floor(n)];default:return""}},_getSeriesTemplateSize:function(t,i,r,u,f){var t,i,a=f.model.AreaType,o=f._id,v=n.inArray(r,f.model._visibleSeries),s,h,e,c,l;s=n("#template_group_"+o).length!=0?n("#template_group_"+o):n("
<\/div>").attr("id","template_group_"+o);s.css("position","relative").css("z-index",1e3);h=n("#"+r.marker.dataLabel.template).clone();n(h).attr("id",r.marker.dataLabel.template+"_"+v+"_"+i+"_"+o);e=n(h);e.css("position","absolute");t.count=1;c={series:r,point:t};e.html(e.html().parseTemplate(c));l=a=="cartesianaxes"||!r.enableAnimation||r.type.toLowerCase()=="pyramid"||r.type.toLowerCase()=="funnel"?"block":"none";e.css("display",l).appendTo(n(s));n(s).appendTo("#"+o);t.size={height:e.height(),width:e.width()};u?((ej.util.isNullOrUndefined(r.LeftLabelMaxHeight)||r.LeftLabelMaxHeight0&&t.xValue){var i=t.xValue-o[n-1].xValue;i!=0&&(u=Math.min(u,i))}}):(h=ej.util.isNullOrUndefined(r)?e.xAxis.visibleRange.min:r,s=o[0].xValue-h,s!=0&&(u=Math.min(u,s))))}),u==Number.MAX_VALUE&&(u=1),u},_getSeriesMaxLabel:function(t){var i={width:0,height:0},s=n(this.svgObject).width(),e=[],o,h,r,f,u;if(t.labels.length>0){for(u=0;u")!=-1?f=a.split("
"):f.push(a),u=0;u")!=-1||typeof r=="object"))for(e=0,f=typeof r=="object"?r:r.split("
"),u=0;u")!=-1&&t.orientation=="vertical"?(ai=t.visibleLabels[e].Text.split("
"),vi=this._getHighestLabel(t,n(this.svgObject).width(),ai),g=this._measureText(vi,n(this.svgObject).width(),t.font,t.labelRotation)):g=this._measureText(t.visibleLabels[e].Text,n(this.svgObject).width(),t.font,t.labelRotation),r.widthot?ot:r.width),r.rows=1,r.maxWidth=r.width,r.maxHeight=r.height,!rr&&(f||h)&&(yt=0,h=="rotate45"?yt=45:h=="rotate90"&&(yt=90),f=f!=null||ii=="vertical"?f:yt,t.rotationValue=f,f)){if(o=ej.isNullOrUndefined(o)?"":o,pi=this._measureText(o,n(this.svgObject).width(),t.font,t.labelRotation),(t.enableTrim||h=="trim")&&pi.width>ot&&o!="")for(a=o,p=1;p=ot){a=a.toString().substring(0,p-1)+"... ";o=a;break}o=(h||t.enableTrim)&&f?typeof o=="string"&&o.indexOf("
")!=-1?this._getHighestLabel(t,i,null):o:this._getHighestLabel(t,i,null);tt=this.rotatedLabel(t,i,f,o);t.labelIntersectAction&&t.labelIntersectAction.toLowerCase()=="multiplerows"&&(k=r.height+tt.height);r.height=t.rowsCount&&t.rowsCount>1&&f!=90&&t.enableTrim?t.rowsCount*r.height:tt.height;r.width=tt.width}if(t.labelIntersectAction)if(t.rowsCount&&(h=="none"||h=="trim"||h=="hide"||f==0)&&(h!="wrap"||t.enableTrim)&&(h!="wrapbyword"||t.enableTrim)&&(h!="multiplerows"||t.enableTrim))f==0&&(r.rows=t.rowsCount,r.height=t.rowsCount*r.height);else if(h=="wrap"||h=="wrapbyword"){if(vt=vt?vt:ej.datavisualization.Chart.LabelPlacement.BetweenTicks,vt.toLowerCase()=="betweenticks"?(st=1+(t.labels.length>1?-.5:0),st=li?parseFloat(st.toFixed(li)):parseFloat(st.toFixed(ej.EjSvgRender.utils._decimalPlaces(y.interval)==0?1:ej.EjSvgRender.utils._decimalPlaces(y.interval))),rt=Math.ceil((st-y.min)/(y.max-y.min)*t.length)):rt=Math.ceil(t.length/et.length),t.orientation=="horizontal"){var ht=0,wi=0,bi,ut=t.labels.length>0&&t.valueType!="datetimecategory"?t.labels:t.visibleLabels,er=t.width?t.width/ut.length:(t.length-(i.svgWidth-t.length)-20)/ut.length;for(t.labelsCollection=[],c=0;c")!=-1?wt=bt.split("
"):wt.push(bt),s=0;sl&&!f&&(ct=ct-1);r.height=f?tt.height+ct*tt.height:r.height+ct*r.height}else if(h=="multiplerows"){var or=i._getLegendSpace(),sr=i.model.border.width,wr=i.model._axes[1],hr=n(i.svgObject).width()-i.model.margin.left-i.model.margin.right;ri=t.title;ui=ri.text;var cr=ui==""||!t.visible?0:this._measureText(ui,hr,ri.font).height+2*i.model.elementSpacing,lr=i.model.elementSpacing+cr+t.majorTickLines.size+t.axisLine.width,ar=i._getYValues(i.model._visibleSeries[0].points),vr=Math.max.apply(Math,ar),ki=i.model._axes[1],g=this._measureText(vr,n(this.svgObject).width(),ki.font,ki.labelRotation),yr=or.rightLegendWidth+lr+g.width+i.model.margin.right+i.model.margin.left+2*sr,di=n(i.svgObject).width()-yr;if(ci){var ft=0,w=[],l=0,bi,wi=0;for(e=0;e")!=-1?d=u.Text.split("
"):d.push(u);it=d.length;oi=!1;k=Math.max(k,ft);ft=u.y=r.height;var a=this._measureText(u.Text,n(this.svgObject).width(),t.font),v=a.height,si=Math.abs(Math.floor((u.Value-y.min)/y.delta*di));if(w.length>0)for(dt=w,gt=!0,lt=0;lt=si-nt)ft=u.y+v,u.y+=v,pt++,lt+1==dt.length&&(gt=!1);else if(c+1==b.length){gt=s==it-1?!1:!0;break}}}if(u.y=ft,l=ft/v-1,w[l]==undefined&&(w[l]=[]),it==1)w[l].push(u);else for(s=0;sk?r.height:k;v>0&&(r.rows=ur?Math.round((k+v)/v):Math.round(k/v));r.rows=f?r.rows-1:r.rows;r.rows<1&&(r.rows=1)}if(!ci){for(ti=0,e=0;esi-v/2&&t.visibleLabels[at].y==u.y&&(ti=u.y+nt,u.y=ti,oi=!0);ir=ti}r.width=r.width+ir+(oi?5:0)}}}return r},rotatedLabel:function(n,t,i,r,u){var e={"font-size":n.font.size,transform:"rotate("+i+",0,0)","font-family":n.font.fontFamily,"font-style":n.font.fontStyle,rotateAngle:"rotate("+i+"deg)","text-anchor":"middle"};t=u?this.chartObj:t;var f=t.svgRenderer.createText(e,r),o=Math.ceil(this._measureBounds(f,t).height),s=Math.ceil(this._measureBounds(f,t).width);return{height:o,width:s}},_getTransform:function(n,t,i){var r,u,f,e;return i?(r=t.x,u=n.y,f=t.width,e=n.height):(r=n.x,u=t.y,f=n.width,e=t.height),{x:r,y:u,width:f,height:e}},_calculateroundedCorner:function(n,t,i,r,u,f){var e=t.x,o=t.y,c=5,l=this.chartObj.model.enableCanvasRendering&&!f?c/4:0,s=t.width,h=t.height,v,y,p,w,a;return typeof n!="object"||ej.util.isNullOrUndefined(n)?v=y=p=w=n:(v=n.topLeft,y=n.bottomLeft,p=n.topRight,w=n.bottomRight),v=ej.util.isNullOrUndefined(t.rx)?v:t.rx,y=ej.util.isNullOrUndefined(t.rx)?y:t.rx,p=ej.util.isNullOrUndefined(t.ry)?p:t.ry,w=ej.util.isNullOrUndefined(t.ry)?w:t.ry,a="M "+e+" "+(v+o)+" Q "+e+" "+o+" "+(e+v)+" "+o+" ",i&&r=="top"&&(a+="L "+(e+s/2-c/2+l)+" "+o+" L "+(e+s/2+l-u)+" "+(o-c)+" L "+(e+s/2+c/2+l)+" "+o+" "),a+="L "+(e+s-p)+" "+o+" Q "+(e+s)+" "+o+" "+(e+s)+" "+(o+p)+" ",i&&r=="right"&&(a+="L "+(e+s)+" "+(o+h/2-c/2+l)+" L "+(e+s+c)+" "+(o+h/2+l-u)+" L "+(e+s)+" "+(o+h/2+c/2+l)+" "),a+="L "+(e+s)+" "+(o+h-w)+" Q "+(e+s)+" "+(o+h)+" "+(e+s-w)+" "+(o+h)+" ",i&&r=="bottom"&&(a+="L "+(e+s/2-c/2+l)+" "+(o+h)+" L "+(e+s/2+l-u)+" "+(o+h+c)+" L "+(e+s/2+c/2+l)+" "+(o+h)+" "),a+="L "+(e+y)+" "+(o+h)+" Q "+e+" "+(o+h)+" "+e+" "+(o+h-y)+" ",i&&r=="left"&&(a+="L "+e+" "+(o+h/2-c/2+l)+" L "+(e-c)+" "+(o+h/2+l-u)+" L "+e+" "+(o+h/2+c/2+l)+" "),a+("L "+e+" "+(v+o)+" z")},browserInfo:function(){var n={},t=[],i={webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,msie:/(msie) ([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in i)if(i.hasOwnProperty(r)&&(t=navigator.userAgent.match(i[r]),t)){n.name=t[1].toLowerCase();n.version=t[2];!navigator.userAgent.match(/Trident\/7\./)||(n.name="msie");break}return n.isMSPointerEnabled=n.name=="msie"&&n.version>9&&window.navigator.msPointerEnabled,n.pointerEnabled=window.navigator.pointerEnabled,n},_measureText:function(t,i,r){var s=n(document).find("#measureTex"),u,e,o,f,v;n("#measureTex").css("display","block");s.length==0?(u=document.createElement("text"),n(u).attr({id:"measureTex"}),document.body.appendChild(u)):u=s[0];var h=null,c=null,l=null,a=null;if(typeof t=="string"&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(e=t.split(" "),o=0;o")==-1&&(e[o]=e[o].replace(/[<>]/g,"&"));t=e.join(" ")}return/<\/?[a-z][\s\S]*>/.test(t)?n(u).html(t):u.textContent=t,r!=undefined&&r.size==undefined&&(f=r,f=f.split(" "),h=f[0],c=f[1],l=f[2],a=f[3]),r!=null&&(u.style.fontSize=r.size>0?r.size+"px":r.size?r.size:c,u.style.fontStyle&&(u.style.fontStyle=r.fontStyle?r.fontStyle:h),u.style.fontFamily=r.fontFamily?r.fontFamily:l,window.navigator.userAgent.indexOf("MSIE 8.0")==-1&&(u.style.fontWeight=r.fontWeight?r.fontWeight:a)),u.style.backgroundColor="white",u.style.position="absolute",u.style.top=-100,u.style.left=0,u.style.visibility="hidden",u.style.whiteSpace="nowrap",i&&(u.style.maxwidth=i+"px"),v={width:u.offsetWidth,height:u.offsetHeight},n("#measureTex").css("display","none"),v},_trimText:function(n,t,i){var f,r,e,u;for(r=n.toString(),e=r.length,u=1;u=t)return r.substring(0,u-1)+"... ";return n},_measureBounds:function(t,i){i.model.enableCanvasRendering?n(document.body).append(t):(i.svgRenderer.append(t,i.svgObject),i.svgRenderer.append(i.svgObject,i.element));var r=t.getBoundingClientRect(),u={left:r.left,right:r.right,top:r.top,bottom:r.bottom,width:r.right-r.left,height:r.bottom-r.top};return n(t).remove(),u},_drawAxesBoundsClipPath:function(t,i,r){var u,s=n(t),f=this._getTransform(i.xAxis,i.yAxis,r.model.requireInvertedAxes),h=r.model.AreaType=="polaraxes"?n(r.svgObject).width():f.width,c=r.model.AreaType=="polaraxes"?n(r.svgObject).height():f.height,e=r.model.requireInvertedAxes?i.yAxis.plotOffset:i.xAxis.plotOffset,o=r.model.requireInvertedAxes?i.xAxis.plotOffset:i.yAxis.plotOffset;r.model.AreaType=="polaraxes"?(u={id:t?t.id+"_ClipRect":"",cx:r.model.centerX,cy:r.model.centerY,r:r.model.Radius,fill:"white","stroke-width":1,stroke:"transparent"},r.svgRenderer.drawCircularClipPath(u,t)):(u={id:t?t.id+"_ClipRect":"",x:0-e,y:0-o,width:h+2*e,height:c+2*o,fill:"white","stroke-width":1,stroke:"transparent"},r.svgRenderer.drawClipPath(u,t));u.id.indexOf("_Rect")&&(u.id=u.id.replace("_Rect",""));s.attr("clip-path","url(#"+u.id+")")},_getStringBuilder:function(){var n=[],t=0;return{append:function(i){return n[t++]=i,this},remove:function(t,i){return n.splice(t,i||1),this},insert:function(t,i){return n.splice(t,0,i),this},toString:function(t){return n.join(t||"")}}},_addRegion:function(t,i,r,u,f){var s=r.type,e=n.inArray(r,t.model._visibleSeries),o;e>=0&&(o={SeriesIndex:e,Region:{PointIndex:f,Bounds:i},type:s},t.model.chartRegions.push(o))},AddRegion:function(n,t,i){if(i){var r={isStripLine:i,Region:{Bounds:t}};n.model.chartRegions.push(r)}},_getSvgXY:function(n,t,i,r){var u,f;return r.model.requireInvertedAxes?(u=n+i.yAxis.x,f=t+i.xAxis.y):(u=n+i.xAxis.x,f=t+i.yAxis.y),{X:u,Y:f}},_getPoint:function(n,t){var f=n.xValue,i,r,u,e=t.type=="boxandwhisker"?n.YValues:n.YValues[0],s=t._isTransposed?t.xAxis.height:t.xAxis.width,o=t._isTransposed?t.yAxis.width:t.yAxis.height;return n.location={},t._hiloTypes&&(i=n.YValues[1],i=t.yAxis._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(i==0?1:i,t.xAxis.logBase):i,i=this._getPointXY(i,t.yAxis.visibleRange,t.yAxis.isInversed),n.location.low=(t._isTransposed?i:1-i)*o),r=t.xAxis._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(f==0?1:f,t.xAxis.logBase):f,u=t.yAxis._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(e==0?1:e,t.xAxis.logBase):e,r=this._getPointXY(r,t.xAxis.visibleRange,t.xAxis.isInversed),u=this._getPointXY(u,t.yAxis.visibleRange,t.yAxis.isInversed),n.location.X=t._isTransposed?u*o:r*s,n.location.Y=t._isTransposed?(1-r)*s:(1-u)*o,n.location},_getPointXY:function(n,t,i){var r=0;return r=(n-t.min)/t.delta,r=isNaN(r)?0:r,i?1-r:r},_dateTimeLabelFormat:function(n,t){switch(n.toLowerCase()){case"years":return t._labelFormat="MMM, yyyy";case"months":return t._labelFormat="dd, MMM";case"days":return t._labelFormat="dd/MM/yyyy";case"hours":return t._labelFormat="dd, hh:mm";case"minutes":return t._labelFormat="hh:mm";case"seconds":return t._labelFormat="mm:ss";case"milliseconds":return t._labelFormat="ss:fff";default:return t._labelFormat="dd/MM/yyyy"}},_getFontString:function(n){return n==null&&(n={}),n.FontFamily||(n.FontFamily="Arial"),n.FontStyle||(n.FontStyle="Normal"),n.Size||(n.Size="12px"),n.FontStyle+" "+n.Size+" "+n.FontFamily},_valueToVector:function(n,t){return this._coefficientToVector(this._valueToPolarCoefficient(n,t))},TransformToVisible:function(n,t,i,r){t=n.xAxis._valueType=="logarithmic"&&t>0?Math.log(t,n.xAxis.logBase):t;i=n.xAxis._valueType=="logarithmic"&&i>0?Math.log(i,n.yAxis.logBase):i;var u=r.model.Radius*this._valueToCoefficient(n.yAxis,i),f=this._valueToVector(n.xAxis,t);return{X:r.model.centerX+u*f.X,Y:r.model.centerY+u*f.Y}},Transform3DToVisible:function(n,t,i,r){var u,s,h,f;if(n.xAxis!=null&&n.yAxis!=null){if(u=n.xAxis._valueType.toLowerCase(),f=u=="logarithmic"?!0:!1,t=t=f&&t>0?math.log(t,s):t,i=i,r.model.requireInvertedAxes){var e=r.model.m_AreaBounds.X,o=r.model.m_AreaBounds.Y,c=e+n.yAxis.width*ej.EjSvgRender.utils._valueToCoefficient(n.yAxis,i,r),l=o+n.xAxis.height*(1-ej.EjSvgRender.utils._valueToCoefficient(n.xAxis,t,r));return{X:c,Y:l}}var e=n.xAxis.x,o=n.yAxis.y,t=e+Math.round(n.xAxis.width*ej.EjSvgRender.utils._valueToCoefficient(n.xAxis,t,r)),i=o+Math.round(n.yAxis.height*(1-ej.EjSvgRender.utils._valueToCoefficient(n.yAxis,i,r)));return{X:t,Y:i}}return new h(0,0)},_valueToPolarCoefficient:function(n,t){var f=n.visibleRange.min,r,u,i;return n._valueType!="category"?(r=n.visibleRange.max-n.visibleRange.interval-n.visibleRange.min,u=n.visibleLabels.length-1):(r=n.visibleRange.delta,u=n.visibleLabels.length),i=(t-f)/r,i*=1-1/u,i=isNaN(i)?0:i,n.isInversed?i:1-i},_coefficientToVector:function(n){var t=Math.PI*(1.5-2*n);return{X:Math.cos(t),Y:Math.sin(t)}},_valueToCoefficient:function(n,t,i){var r;return r=i&&i.model.AreaType=="polaraxes"?t:n._valueType&&n._valueType.toLowerCase()=="logarithmic"?ej.EjSvgRender.utils._logBase(t==0?1:t,n.logBase):t,r=(r-n.visibleRange.min)/n.visibleRange.delta,n.isInversed?1-r:r},_getBoundingClientRect:function(t,i,r,u){var f=t.getBoundingClientRect(),s=n("#"+i.svgObject.id)[0].getBoundingClientRect(),e,o,h,c;return u?(e=this._getTransform(r.xAxis,r.yAxis,!0).x,o=this._getTransform(r.xAxis,r.yAxis,!0).y):(e=this._getTransform(r.xAxis,r.yAxis,!1).x,o=this._getTransform(r.xAxis,r.yAxis,!1).y),h=f.left-(e+s.left),c=f.top-(o+s.top),{x:h,y:c,width:f.right-f.left,height:f.bottom-f.top}},_minMax:function(n,t,i){return n>i?i:n=t.min},_logBase:function(n,t){return Math.log(n)/Math.log(t)},_correctRect:function(n,t,i,r){return{X:Math.min(n,i),Y:Math.min(t,r),Width:Math.abs(i-n),Height:Math.abs(r-t)}},_getValuebyPoint:function(n,t,i,r){var e=r?i.xAxis.height:i.xAxis.width,o=r?i.yAxis.width:i.yAxis.height,u=i.xAxis.isInversed?1-n/e:n/e,f=i.yAxis.isInversed?1-t/o:t/o;return u=u*i.xAxis.visibleRange.delta+i.xAxis.visibleRange.min,f=f*i.yAxis.visibleRange.delta+i.yAxis.visibleRange.min,u=i.xAxis._valueType=="logarithmic"?Math.pow(i.xAxis.logBase,u):u,f=i.yAxis._valueType=="logarithmic"?Math.pow(i.yAxis.logBase,f):f,{PointX:u,PointY:f}}};ej.EjSvgRender.chartTransform3D={ToRadial:Math.PI/180,transform3D:function(n){return this.vector||(this.vector=new(new ej.Ej3DRender).vector3D,this.matrixobj=new(new ej.Ej3DRender).matrix3D,this.bsptreeobj=new(new ej.Ej3DRender).BSPTreeBuilder,this.polygon=new(new ej.Ej3DRender).polygon3D),{mViewport:n,Rotation:0,Tilt:0,Depth:0,PerspectiveAngle:0,needUpdate:!0,centeredMatrix:this.matrixobj.getIdentity(),Perspective:this.matrixobj.getIdentity(),resultMatrix:this.matrixobj.getIdentity(),viewMatrix:this.matrixobj.getIdentity(),Depth:0}},transform:function(n){this.setCenter(this.vector.vector3D(n.mViewport.Width/2,n.mViewport.Height/2,n.Depth/2),n);this.setViewMatrix(this.matrixobj.transform(0,0,n.Depth),n);this.setViewMatrix(this.matrixobj.getMatrixMultiplication(n.viewMatrix,this.matrixobj.turn(-this.ToRadial*n.Rotation)),n);this.setViewMatrix(this.matrixobj.getMatrixMultiplication(n.viewMatrix,this.matrixobj.tilt(-this.ToRadial*n.Tilt)),n);this.updatePerspective(n.PerspectiveAngle,n);n.needUpdate=!0},updatePerspective:function(n,t){var i=(t.mViewport.Width+t.mViewport.Height)*Math.tan(this.degreeToRadianConverter((180-Math.abs(n%181))/2))+t.Depth/1;t.Perspective[0][0]=i;t.Perspective[1][1]=i;t.Perspective[2][3]=1;t.Perspective[3][3]=i},degreeToRadianConverter:function(n){return n*Math.PI/180},toScreen:function(n,t,i,r){var i=i?i:this.result;return r?(this.matrixobj=r,n=r.getMatrixVectorMutiple(i(t,r),n)):(t.chartObj=this.matrixobj,n=this.matrixobj.getMatrixVectorMutiple(i(t),n)),{x:n.x,y:n.y}},setViewMatrix:function(n,t){t.viewMatrix!=n&&(t.viewMatrix=n,t.needUpdate=!0)},setCenteredMatrix:function(n,t){t.viewMatrix!=n&&(t.centeredMatrix=n,t.needUpdate=!0)},result:function(n,t){var i=n.chartObj?n.chartObj:this.matrixobj,r;return(i||(i=t),!n.needUpdate)?n.resultMatrix:(r=this.matrixobj?this.matrixobj:t,n.resultMatrix=i.getMatrixMultiplication(r.getInvertal(n.centeredMatrix),n.Perspective),n.resultMatrix=i.getMatrixMultiplication(n.resultMatrix,n.viewMatrix),n.resultMatrix=i.getMatrixMultiplication(n.resultMatrix,n.centeredMatrix),n.needUpdate=!1,n.resultMatrix)},setCenter:function(n,t){t.centeredMatrix=this.matrixobj.transform(-n.x,-n.y,-n.z);t.needUpdate=!0},toPlane:function(n,t,i){var r=this.vector.vector3D(n.x,n.y,0),u=this.vector.vector3DPlus(r,this.vector.vector3D(0,0,1));return r=this.vector.vector3DMultiply(i.centeredMatrix,r),u=this.vector.vector3DMultiply(i.centeredMatrix,u),r=this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.Perspective),r),u=this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.Perspective),u),r=this.polygon.getPoint(r,this.vector.vector3DMinus(u-r)),r=this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.viewMatrix),r),this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.centeredMatrix),r)}};ej.EjSvgRender.chartSymbol={_drawSeriesType:function(n,t,i){var r=i.model.series[t.SeriesIndex].type.toLowerCase(),u=i.legendItem.drawType;r=ej.util.isNullOrUndefined(u)?r:u;switch(r){case ej.datavisualization.Chart.Type.Line:return ej.util.isNullOrUndefined(u)?this._drawLine(n,t,i,i.gLegendItemEle):this._drawStraightLine(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.StepLine:return this._drawStepLine(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.StackingArea:case ej.datavisualization.Chart.Type.StackingArea100:case ej.datavisualization.Chart.Type.Area:case ej.datavisualization.Chart.Type.RangeArea:return this._drawArea(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.StepArea:return this._drawStepArea(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Bar:case ej.datavisualization.Chart.Type.StackingBar100:case ej.datavisualization.Chart.Type.StackingBar:return this._drawBar(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Pie:return this._drawPie(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Doughnut:return this._drawDoughnut(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Hilo:return this._drawHilo(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.HiloOpenClose:return this._drawHiloOpenClose(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Candle:return this._drawCandle(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Pyramid:return this._drawPyramid(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Funnel:return this._drawFunnel(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Spline:return this._drawSpline(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.SplineArea:case ej.datavisualization.Chart.Type.StackingSplineArea:case ej.datavisualization.Chart.Type.StackingSplineArea100:return this._drawSplineArea(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.RangeColumn:return this._drawRangeColumn(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Bubble:case ej.datavisualization.Chart.Type.Scatter:return this._drawCircle(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Column:case ej.datavisualization.Chart.Type.StackingColumn:case ej.datavisualization.Chart.Type.StackingColumn100:case ej.datavisualization.Chart.Type.Waterfall:return this._drawColumn(n,t,i,i.gLegendItemEle);default:return this._drawRectangle(n,t,i,i.gLegendItemEle)}},_drawCircle:function(n,t,i,r){var o=i.svgRenderer,h=i.svgObject,f=t.ShapeSize,e=Math.sqrt(f.height*f.height+f.width*f.width)/2,u=t.Style,s={id:t.ID,cx:n.startX,cy:n.startY,r:e,fill:u.Color,"stroke-width":u.BorderWidth,stroke:u.BorderColor,opacity:u.Opacity,visibility:u.Visibility,lgndCtx:t.context};return o.drawCircle(s,r),n.startX-e},_drawLeftArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2+u.width)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2+u.width)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX-u.width/2)+" "+n.startY+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2+u.width)+" "+(n.startY+u.height/4)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawRightArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX-u.width/2+u.width)+" "+n.startY+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2)+" "+(n.startY+u.height/4)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawUpArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX-u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+n.startX+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2+u.height)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawDownArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+n.startX+" "+(n.startY-u.height/2+u.height)+" L "+(n.startX-u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawCross:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+u.width/2)+" "+n.startY+" M "+n.startX+" "+(n.startY+u.height/2)+" L "+n.startX+" "+(n.startY+-u.height/2);e={id:t.ID,opacity:t.Style.Opacity,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawHorizLine:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+u.width/2)+" "+n.startY;e={id:t.ID,opacity:t.Style.Opacity,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawVertLine:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+n.startX+" "+(n.startY+u.height/2)+" L "+n.startX+" "+(n.startY+-u.height/2);e={id:t.ID,opacity:t.Style.Opacity,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawTriangle:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+(n.startY+u.height/2)+" L "+n.startX+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawInvertedTriangle:function(n,t,i,r){var f=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,e="M "+(n.startX+u.width/2)+" "+(n.startY-u.height/2)+" L "+n.startX+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width/2)+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY-u.height/2)+" z";var h=n.startX,c=n.startY,o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:e};f.drawPath(o,r)},_drawHexagon:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+-u.width/4)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/4)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+n.startY+" L "+(n.startX+u.width/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+n.startY+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawWedge:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width)+" "+n.startY+" L "+(n.startX+u.width)+" "+(n.startY+-u.height/2)+" L "+(n.startX+3*(u.width/4))+" "+n.startY+" L "+(n.startX+u.width)+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width)+" "+n.startY+" z";e={"stroke-linecap":"miter","stroke-miterlimit":u.width/4,id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawPentagon:function(n,t,i,r){for(var l,a,v=i.svgRenderer,p=i.svgObject,u=t.ShapeSize,o=Math.sqrt(u.height*u.height+u.width*u.width)/2,f=ej.EjSvgRender.utils._getStringBuilder(),e=0;e<=5;e++){var y=e*72,s=Math.PI/180*y,h=o*Math.cos(s),c=o*Math.sin(s);e==0?f.append("M "+(n.startX+h)+" "+(n.startY+c)+" "):f.append("L "+(n.startX+h)+" "+(n.startY+c)+" ")}f.append("z");l=f.toString();a={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:l};v.drawPath(a,r)},_drawStar:function(n,t,i,r){var o=i.svgRenderer,u=t.ShapeSize,s=i.svgObject,f,e;f="M "+(n.startX+u.width/3)+" "+(n.startY+-u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/6)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/6)+" L "+(n.startX+-u.width/3)+" "+(n.startY+-u.height/2)+" L "+n.startX+" "+(n.startY+u.height/2)+" L "+(n.startX+u.width/3)+" "+(n.startY+-u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawRectangle:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawTrapezoid:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX+-u.width/2+u.width)+" "+(n.startY+-u.height/2)+" L "+(n.startX+-u.width/2+u.width)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX+-u.width/2)+" "+n.startY+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawDiamond:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+n.startX+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+n.startY+" L "+n.startX+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+n.startY+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawEllipse:function(n,t,i,r){var f=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,e=n.startX,o=n.startY,s={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,cx:e,cy:o,rx:u.width,ry:u.height/2};f.drawEllipse(s,r)},_drawImage:function(n,t,i,r){var f=i.svgRenderer,e=i.svgObject,u=t.ShapeSize,o=n.startX+-u.width/2,s=n.startY+-u.width/2,h=u.width,c=u.height,l={id:e.id+"_image"+t.PointIndex,height:c,width:h,href:t.Imageurl,x:o,y:s,visibility:"visible",lgndCtx:t.context};f.drawImage(l,r)},_drawStraightLine:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/10)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10),o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawLine:function(n,t,i,r){var o=i.svgRenderer,l=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,s;if(i.model.enableCanvasRendering===!0){e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/10)+" L "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" M "+(n.startX+Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10);var s={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},h="M "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" a "+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+2*Math.floor(u.width/3)+" 0 a"+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+-2*Math.floor(u.width/3)+" 0",c={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:h,lgndCtx:!0};o.drawPath(s,r);o.drawPath(c,r)}else e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/10)+" L "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" M "+(n.startX+Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10)+" M "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" a "+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+2*Math.floor(u.width/3)+" 0 a"+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+-2*Math.floor(u.width/3)+" 0",s={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},o.drawPath(s,r);return n.startX+-u.width/2+-f/4},_drawColumn:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX-3*(u.width/5))+" "+(n.startY-u.height/5)+" L "+(n.startX+3*(-u.width/10))+" "+(n.startY-u.height/5)+" L "+(n.startX+3*(-u.width/10))+" "+(n.startY+u.height/2)+" L "+(n.startX-3*(u.height/5))+" "+(n.startY+u.height/2)+" Z M "+(n.startX+-u.width/10-u.width/20)+" "+(n.startY-u.height/4-f/2)+" L "+(n.startX+u.width/10+u.width/20)+" "+(n.startY-u.height/4-f/2)+" L "+(n.startX+u.width/10+u.width/20)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/10-u.width/20)+" "+(n.startY+u.height/2)+" Z M "+(n.startX+3*(u.width/10))+" "+n.startY+" L "+(n.startX+3*(u.width/5))+" "+n.startY+" L "+(n.startX+3*(u.width/5))+" "+(n.startY+u.height/2)+" L "+(n.startX+3*(u.width/10))+" "+(n.startY+u.height/2)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX-3*(u.width/5)},_drawRangeColumn:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/5)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+-u.width/5)+" "+(n.startY-u.height/2-f/4)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2+-f/4)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2+f/4)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/5},_drawBar:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY-3*(u.height/5))+" L "+(n.startX+3*(u.width/10))+" "+(n.startY-3*(u.height/5))+" L "+(n.startX+3*(u.width/10))+" "+(n.startY-3*(u.height/10))+" L "+(n.startX-u.width/2+-f/4)+" "+(n.startY-3*(u.height/10))+" Z M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY-u.height/5+f/20)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY-u.height/5+f/20)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10+f/20)+" L "+(n.startX-u.width/2+-f/4)+" "+(n.startY+u.height/10+f/20)+" Z M "+(n.startX-u.width/2+-f/4)+" "+(n.startY+u.height/5+f/10)+" L "+(n.startX+-u.width/4)+" "+(n.startY+u.height/5+f/10)+" L "+(n.startX+-u.width/4)+" "+(n.startY+u.height/2+f/10)+" L "+(n.startX-u.width/2+-f/4)+" "+(n.startY+u.height/2+f/10)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawStepLine:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2-f/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2+u.width/10)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2+u.width/10)+" "+n.startY+" L "+(n.startX+-u.width/10)+" "+n.startY+" L "+(n.startX+-u.width/10)+" "+(n.startY+u.height/2)+" L "+(n.startX+u.width/5)+" "+(n.startY+u.height/2)+" L "+(n.startX+u.width/5)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2)+"L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" L"+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/2),o={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2-f/4},_drawSpline:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;return f="M "+(n.startX-u.width/2)+" "+(n.startY+u.height/5)+" Q "+n.startX+" "+(n.startY-u.height)+" "+n.startX+" "+(n.startY+u.height/5)+" M "+n.startX+" "+(n.startY+u.height/5)+" Q "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" "+(n.startX+u.width/2)+" "+(n.startY-u.height/2),e={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:f,lgndCtx:!0},o.drawPath(e,r),n.startX-u.width/2},_drawSplineArea:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;return f="M "+(n.startX-u.width/2)+" "+(n.startY+u.height/5)+" Q "+n.startX+" "+(n.startY-u.height)+" "+n.startX+" "+(n.startY+u.height/5)+" Z M "+n.startX+" "+(n.startY+u.height/5)+" Q "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" "+(n.startX+u.width/2)+" "+(n.startY-u.height/2)+" Z",e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:f,lgndCtx:!0},o.drawPath(e,r),n.startX-u.width/2},_drawArea:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX-u.width/2-f/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/4+-f/8)+" "+(n.startY-u.height/2)+" L "+n.startX+" "+(n.startY+u.height/4)+" L "+(n.startX+u.width/4+f/8)+" "+(n.startY+-u.height/2+u.height/4)+" L "+(n.startX+u.height/2+f/4)+" "+(n.startY+u.height/2)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX-u.width/2-f/4},_drawStepArea:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+-u.height/2)+" L "+(n.startX-u.width/4)+" "+(n.startY-u.height/2)+" L "+(n.startX-u.width/4)+" "+(n.startY-u.height/4)+" L "+(n.startX+u.width/4)+" "+(n.startY-u.height/4)+" L "+(n.startX+u.width/4)+" "+n.startX+" L "+(n.startX+u.width/2+f/4)+" "+n.startY+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/2)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawPyramid:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/2+f/8)+" L "+n.startX+" "+(n.startY+-u.height/2+-f/8)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/2+f/8)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawFunnel:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/5)+" "+(n.startY+-u.height/2+-f/4)+" L "+(n.startX+-u.width/5)+" "+(n.startY+u.height/4)+" L "+(n.startX+-u.width/5)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+u.width/5)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+u.width/5)+" "+(n.startY+u.height/4)+" L "+(n.startX+u.width/2+f/5)+" "+(n.startY+-u.height/2+-f/4)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/5},_drawCandle:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2)+" "+(n.startY+u.height/4+f/8)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/4+f/8)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2+f/8)+" L "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/2+f/8)+" Z M "+n.startX+" "+(n.startY+-u.height/2+f/8)+" L "+n.startX+" "+(n.startY+-u.height/2+-f/4)+" M "+n.startX+" "+(n.startY+u.height/4+f/8)+" L "+n.startX+" "+(n.startY+u.height/4+f/2),o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2},_drawHilo:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+u.width/2)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2+-f/4),o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+u.width/2},_drawHiloOpenClose:function(n,i,r,u){var h=r.svgRenderer,c=r.svgObject,f=i.ShapeSize,l=t(18,12,4.0710678118654755,270),e=i.ElementSpace,o,s;return o="M "+n.startX+" "+(n.startY-3*(f.height/10))+" L "+(n.startX-f.width/2-e/4)+" "+(n.startY-3*(f.height/10))+" M "+n.startX+" "+(n.startY-f.height/2-e/4)+" L "+n.startX+" "+(n.startY+f.height/2+e/4)+" M "+n.startX+" "+(n.startY+3*(f.height/10))+" L "+(n.startX+f.width/2+e/4)+" "+(n.startY+3*(f.height/10)),s={id:i.ID,fill:"transparent","stroke-width":i.Style.BorderWidth,stroke:i.Style.Color,opacity:i.Style.Opacity,visibility:i.Style.Visibility,d:o,lgndCtx:!0},h.drawPath(s,u),n.startX-f.width/2},_drawDoughnut:function(n,i,r,u){var o=r.svgRenderer,y=r.svgObject,e=i.ShapeSize,c=i.ElementSpace,f=Math.sqrt(e.height*e.width)/2;f=f+c/5;var s=t(n.startX,n.startY,f,270),h=t(n.startX+e.width/10,n.startY,f,270),c=i.ElementSpace,l="M "+n.startX+" "+n.startY+" L "+(n.startX+f)+" "+n.startY+" A "+f+" "+f+" 0 1 1 "+s[0]+" "+s[1]+" Z M "+(n.startX+e.width/10)+" "+(n.startY-e.height/10)+" L"+(n.startX+f)+" "+(n.startY-e.height/10)+" A "+f+" "+f+" 0 0 0 "+h[0]+" "+h[1]+" Z",a={id:i.ID,fill:i.Style.Color,"stroke-width":i.Style.BorderWidth,stroke:i.Style.BorderColor,opacity:i.Style.Opacity,visibility:i.Style.Visibility,d:l,lgndCtx:!0},v={id:i.ID,cx:n.startX,cy:n.startY,r:f/2,lgndCtx:!0,fill:"white","stroke-width":i.Style.BorderWidth,stroke:i.Style.BorderColor,opacity:i.Style.Opacity,visibility:i.Style.Visibility};return o.drawPath(a,u),o.drawCircle(v,u),n.startX-f},_drawPie:function(n,i,r,u){var h=r.svgRenderer,v=r.svgObject,e=i.ShapeSize,c=i.ElementSpace,f=Math.sqrt(e.height*e.width)/2;f=f+c/5;var o=t(n.startX,n.startY,f,270),s=t(n.startX+e.width/10,n.startY,f,270),c=i.ElementSpace,l="M "+n.startX+" "+n.startY+" L "+(n.startX+f)+" "+n.startY+" A "+f+" "+f+" 0 1 1 "+o[0]+" "+o[1]+" Z M "+(n.startX+e.width/10)+" "+(n.startY-e.height/10)+" L"+(n.startX+f)+" "+(n.startY-e.height/10)+" A "+f+" "+f+" 0 0 0 "+s[0]+" "+s[1]+" Z",a={id:i.ID,fill:i.Style.Color,"stroke-width":i.Style.BorderWidth,stroke:i.Style.BorderColor,opacity:i.Style.Opacity,visibility:i.Style.Visibility,d:l,lgndCtx:!0};return h.drawPath(a,u),n.startX-f}};ej.EjSvgRender.seriesPalette={defaultMetro:["#E94649","#F6B53F","#6FAAB0","#C4C24A","#FB954F","#005277","#8BC652","#69D2E7","#E27F2D","#6A4B82"],defaultHighContrast:["#F93A00","#44E2D6","#DDD10D","#0AA368","#0556CB","#AB40B2","#5F930A","#D12E41","#E0670E","#008FFF"],defaultOffice:["#005277","#8BC652","#6A4B82","#E94649","#6FAAB0","#F7B74F","#C4C24A","#EF863F","#69D2E7","#FFD13E"],defaultMaterial:["#663AB6","#EB3F79","#F8AB1D","#B82E3D","#049CB1","#F2424F","#C2C924","#3DA046","#074D67","#02A8F4"],defaultGradient:{borderColors:["#F34649","#F6D321","#6EB9B0","#CBC26A","#FBAF4F","#E2CDB1","#FFC0B7","#68E1E6","#E1A62D","#9C6EBF"],seriesColors:[[{color:"#F34649",colorStop:"0%"},{color:"#B74143",colorStop:"100%"}],[{color:"#F6D321",colorStop:"0%"},{color:"#F6AE26",colorStop:"100%"}],[{color:"#6EB9B0",colorStop:"0%"},{color:"#3F77BD",colorStop:"100%"}],[{color:"#CBC26A",colorStop:"0%"},{color:"#9AAD21",colorStop:"100%"}],[{color:"#FBAF4F",colorStop:"0%"},{color:"#F07542",colorStop:"100%"}],[{color:"#E2CDB1",colorStop:"0%"},{color:"#AAA089",colorStop:"100%"}],[{color:"#8BC652",colorStop:"0%"},{color:"#6F9E41",colorStop:"100%"}],[{color:"#68E1E6",colorStop:"0%"},{color:"#3D9CBE",colorStop:"100%"}],[{color:"#E1A62D",colorStop:"0%"},{color:"#B66824",colorStop:"100%"}],[{color:"#9C6EBF",colorStop:"0%"}],[{color:"#593F6D",colorStop:"100%"}]]},blueMetro:["#005378","#006691","#007EB5","#0D97D4","#00AEFF","#14B9FF","#54CCFF","#87DBFF","#ADE5FF","#C5EDFF"],blueGradient:{seriesColors:[[{color:"#005277",colorStop:"0%"},{color:"#00304F",colorStop:"100%"}],[{color:"#006590",colorStop:"0%"},{color:"#004068",colorStop:"100%"}],[{color:"#007DB4",colorStop:"0%"},{color:"#00558B",colorStop:"100%"}],[{color:"#0D97D4",colorStop:"0%"},{color:"#057FC7",colorStop:"100%"}],[{color:"#00ADFE",colorStop:"0%"},{color:"#008BE9",colorStop:"100%"}],[{color:"#14B8FE",colorStop:"0%"},{color:"#0798EB",colorStop:"100%"}],[{color:"#53CBFF",colorStop:"0%"},{color:"#35AFEB",colorStop:"100%"}],[{color:"#86DAFF",colorStop:"0%"},{color:"#64C0EC",colorStop:"100%"}],[{color:"#ACE5FF",colorStop:"0%"},{color:"#8DCEED",colorStop:"100%"}],[{color:"#C4ECFF",colorStop:"0%"}],[{color:"#A3D1E6",colorStop:"100%"}]],borderColors:["#005277","#006590","#007DB4","#0D97D4","#00ADFE","#14B8FE","#53CBFF","#86DAFF","#ACE5FF","#C4ECFF"]},greenMetro:["#496612","#597B15","#709A1B","#87B62A","#9AD926","#A6DC37","#BCE654","#C8E780","#D5EFA5","#E2F3BE"],greenGradient:{seriesColors:[[{color:"#5C7F16",colorStop:"0%"},{color:"#384C08",colorStop:"100%"}],[{color:"#6A9319",colorStop:"0%"},{color:"#486009",colorStop:"100%"}],[{color:"#739D1C",colorStop:"0%"},{color:"#57760B",colorStop:"100%"}],[{color:"#90B546",colorStop:"0%"},{color:"#6E9215",colorStop:"100%"}],[{color:"#9AD826",colorStop:"0%"},{color:"#75A010",colorStop:"100%"}],[{color:"#A5DB36",colorStop:"0%"},{color:"#8EB91D",colorStop:"100%"}],[{color:"#BBE554",colorStop:"0%"},{color:"#A4C849",colorStop:"100%"}],[{color:"#C8E780",colorStop:"0%"},{color:"#B4D072",colorStop:"100%"}],[{color:"#D4EEA5",colorStop:"0%"},{color:"#BFD593",colorStop:"100%"}],[{color:"#E1F2BD",colorStop:"0%"}],[{color:"#C8D7A8",colorStop:"100%"}]],borderColors:["#5C7F16","#6A9319","#739D1C","#90B546","#9AD826","#A5DB36","#BBE554","#C8E780","#D4EEA5","#E1F2BD"]},sandleMetro:["#6C450C","#82520D","#A36812","#C07F1F","#E69719","#E89A2B","#EEB564","#F3CB93","#F7DEB4","#F9E6CA"],sandleGradient:{seriesColors:[[{color:"#7F602F",colorStop:"0%"},{color:"#512D04",colorStop:"100%"}],[{color:"#986827",colorStop:"0%"},{color:"#673803",colorStop:"100%"}],[{color:"#A16C1F",colorStop:"0%"},{color:"#8A4B05",colorStop:"100%"}],[{color:"#BF812A",colorStop:"0%"},{color:"#AD630D",colorStop:"100%"}],[{color:"#E49519",colorStop:"0%"},{color:"#B86607",colorStop:"100%"}],[{color:"#E7992A",colorStop:"0%"},{color:"#D7780D",colorStop:"100%"}],[{color:"#EDB463",colorStop:"0%"},{color:"#D98F31",colorStop:"100%"}],[{color:"#F2CA92",colorStop:"0%"},{color:"#DAAC6F",colorStop:"100%"}],[{color:"#F6DDB3",colorStop:"0%"},{color:"#DABE8F",colorStop:"100%"}],[{color:"#F8E5C9",colorStop:"0%"}],[{color:"#DDBE92",colorStop:"100%"}]],borderColors:["#7F602F","#986827","#A16C1F","#BF812A","#E49519","#E7992A","#EDB463","#F2CA92","#F6DDB3","#F8E5C9"]}};ej.EjSvgRender.themes={flatlight:{highlightColor:"black",background:"transparent",legend:{font:{color:"#282828"},title:{font:{color:"#282828"}}},title:{font:{color:"#565656"},subTitle:{font:{color:"#565656"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",borderWidth:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#565656"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultMetro,colors:ej.EjSvgRender.seriesPalette.defaultMetro},flatdark:{highlightColor:"white",background:"#111111",legend:{font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}}},title:{font:{color:"#C9C9C9"},subTitle:{font:{color:"#C9C9C9"}}},primaryXAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryX:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},primaryYAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryY:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#C9C9C9"}}},errorBar:{fill:"#ffffff",cap:{fill:"#ffffff"}},connectorLine:{color:"#C9C9C9"}},crosshair:{line:{width:1,color:"White"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultMetro,colors:ej.EjSvgRender.seriesPalette.defaultMetro},gradientlight:{highlightColor:"black",background:"transparent",legend:{font:{color:"#282828"},title:{font:{color:"#282828"}}},title:{font:{color:"#565656"},subTitle:{font:{color:"#565656"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#565656"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.defaultGradient.seriesColors},gradientdark:{highlightColor:"white",background:"#111111",legend:{font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}}},title:{font:{color:"#C9C9C9"},subTitle:{font:{color:"#C9C9C9"}}},primaryXAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryX:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},primaryYAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryY:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#C9C9C9"}}},errorBar:{fill:"#ffffff",cap:{fill:"#ffffff"}},connectorLine:{color:"#C9C9C9"}},crosshair:{line:{width:1,color:"White"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.defaultGradient.seriesColors},highcontrast01:{highlightColor:"white",background:"#111111",legend:{font:{color:"#ffffff"},title:{font:{color:"#ffffff"}}},title:{font:{color:"#ffffff"},subTitle:{font:{color:"#ffffff"}}},primaryXAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#ffffff",axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryX:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},primaryYAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#ffffff",axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryY:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#ffffff"}}},errorBar:{fill:"#ffffff",cap:{fill:"#ffffff"}},connectorLine:{color:"#C9C9C9"}},crosshair:{line:{width:1,color:"White"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultHighContrast,colors:ej.EjSvgRender.seriesPalette.defaultHighContrast},material:{highlightColor:"black",background:"transparent",legend:{font:{color:"#333333"},title:{font:{color:"#333333"}}},title:{font:{color:"#333333"},subTitle:{font:{color:"#333333"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",borderWidth:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#333333"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultMaterial,colors:ej.EjSvgRender.seriesPalette.defaultMaterial},office365:{highlightColor:"black",background:"transparent",legend:{font:{color:"#333333"},title:{font:{color:"#333333"}}},title:{font:{color:"#333333"},subTitle:{font:{color:"#333333"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",borderWidth:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#333333"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultOffice,colors:ej.EjSvgRender.seriesPalette.defaultOffice}};n.extend(ej.EjSvgRender.themes,{azure:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueMetro,colors:ej.EjSvgRender.seriesPalette.blueMetro},azuredark:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueMetro,colors:ej.EjSvgRender.seriesPalette.blueMetro},"gradient-azure":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.blueGradient.seriesColors},"gradient-azuredark":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.blueGradient.seriesColors},lime:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenMetro,colors:ej.EjSvgRender.seriesPalette.greenMetro},limedark:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenMetro,colors:ej.EjSvgRender.seriesPalette.greenMetro},"gradient-lime":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.greenGradient.seriesColors},"gradient-limedark":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.greenGradient.seriesColors},saffron:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleMetro,colors:ej.EjSvgRender.seriesPalette.sandleMetro},saffrondark:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleMetro,colors:ej.EjSvgRender.seriesPalette.sandleMetro},"gradient-saffron":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.sandleGradient.seriesColors},"gradient-saffrondark":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.sandleGradient.seriesColors}})}(jQuery)}); +(function(n){typeof define=="function"&&define.amd?define(["./../common/ej.core.min","./../common/ej.data.min","./../common/ej.globalize.min"],n):n()})(function(){(function(n,t,i){t.widget("ejBulletGraph","ej.datavisualization.BulletGraph",{element:null,model:null,validTags:["div"],_tags:[{tag:"qualitativeRanges",attr:["rangeEnd","rangeStroke","rangeOpacity"]},{tag:"quantitativeScaleSettings.featureMeasures",attr:["value","comparativeMeasureValue"]}],defaults:{locale:null,enableGroupSeparator:!1,value:0,comparativeMeasureValue:0,width:null,height:null,theme:"flatlight",orientation:"horizontal",flowDirection:"forward",qualitativeRangeSize:32,quantitativeScaleLength:475,tooltipSettings:{enableCaptionTooltip:!1,captionTemplate:null,visible:!0,template:null},quantitativeScaleSettings:{location:{x:10,y:10},minimum:0,maximum:10,interval:1,minorTicksPerInterval:4,majorTickSettings:{size:13,stroke:null,width:2},minorTickSettings:{size:7,stroke:null,width:2},tickPosition:"far",tickPlacement:"outside",labelSettings:{labelPlacement:"outside",labelPrefix:"",labelSuffix:"",stroke:null,size:12,offset:15,font:{fontFamily:"Segoe UI",fontStyle:"Normal ",fontWeight:"regular",opacity:1},position:"below"},featuredMeasureSettings:{stroke:null,width:6},comparativeMeasureSettings:{stroke:null,width:5},featureMeasures:[{value:null,comparativeMeasureValue:null,category:null}]},fields:{dataSource:null,query:null,tableName:null,category:null,featureMeasures:null,comparativeMeasure:null},enableAnimation:!0,enableResizing:!0,isResponsive:!0,applyRangeStrokeToTicks:!1,applyRangeStrokeToLabels:!1,qualitativeRanges:[{rangeEnd:4.3,rangeStroke:null,rangeOpacity:1},{rangeEnd:7.3,rangeStroke:null,rangeOpacity:1},{rangeEnd:10,rangeStroke:null,rangeOpacity:1}],captionSettings:{enableTrim:!0,textPosition:"float",textAlignment:"Near",textAnchor:"start",padding:5,textAngle:0,location:{x:17,y:30},text:"",font:{color:null,fontFamily:"Segoe UI",fontStyle:"Normal",size:"12px",fontWeight:"regular",opacity:1},subTitle:{textPosition:"float",textAlignment:"Near",textAnchor:"start",padding:5,textAngle:0,text:"",location:{x:10,y:45},font:{color:null,fontFamily:"Segoe UI",fontStyle:"Normal ",size:"12px",fontWeight:"regular",opacity:1}},indicator:{textPosition:"float",textAlignment:"Near",textAnchor:"start",padding:5,visible:!1,textAngle:0,textSpacing:3,text:"",symbol:{border:{color:null,width:1},color:null,shape:"",imageURL:"",size:{width:10,height:10},opacity:1},location:{x:10,y:60},font:{color:null,fontFamily:"Segoe UI",fontStyle:"Normal ",size:"12px",fontWeight:"regular",opacity:1}}},load:"",click:"",doubleClick:"",rightClick:"",drawTicks:null,drawLabels:null,drawCaption:null,drawIndicator:null,drawQualitativeRanges:null,drawFeatureMeasureBar:null,drawCategory:null,drawComparativeMeasureSymbol:null},observables:["value","comparativeMeasureValue"],value:t.util.valueFunction("value"),comparativeMeasureValue:t.util.valueFunction("comparativeMeasureValue"),dataTypes:{quantitativeScaleSettings:{labelSettings:"data",featureMeasures:"array"},fields:{dataSource:"data",query:"data"},qualitativeRanges:"array",captionSettings:"data",isResponsive:"boolean"},_init:function(){this._renderBulletGraph()},_destroy:function(){n(this.element).removeClass("e-datavisualization-bulletgraph e-js").find("#"+this.svgObject.id).remove()},_isSVG:function(){return window.SVGSVGElement?!0:!1},_value:t.util.valueFunction("value"),_comparativeMeasureValue:t.util.valueFunction("comparativeMeasureValue"),_qualitativeRanges:function(){this.redraw();this._trigger("refresh")},_quantitativeScaleSettings_featureMeasures:function(){this.redraw();this._trigger("refresh")},_renderBulletGraph:function(){var n=this.model.theme.toLowerCase();this._isSVG()&&(this.svgRenderer=new t.EjSvgRender(this.element),this.svgObject=this.svgRenderer.svgObj,this._trigger("load"),this._setSvgSize(this),this._setTheme(t.datavisualization.BulletGraph.Themes,n),this.bindEvents(),this._renderBulletElements(),this.model.enableAnimation&&this._animateMeasures())},_animateMeasures:function(){this._doAnimation();this._doLineAnimation()},_setSvgSize:function(i){var r=i,o=n(r.element).height(),f=90,u=t.isTouchDevice()?250:595,e=n(r.element).width();r.model.width?u=parseInt(r.model.width):e>0&&e<595?u=e:e>595&&(u=595);n(r.svgObject).width(u);r.model.height?f=parseInt(r.model.height):o>0?f=o:n(r.svgObject).css("display","block");n(r.svgObject).height(f);r.svgObject.setAttribute("width",u);r.svgObject.setAttribute("height",f)},_renderBulletElements:function(){var f=this.model.width?this.model.width:595,e=this.model.height?this.model.height:90,i;this.svgObject.setAttribute("viewBox","0 0 "+f+" "+e);this.svgObject.setAttribute("preserveAspectRatio","xMinYMin");this.svgWidth=n(this.svgObject).width();this.svgHeight=n(this.svgObject).height();var r=this.svgRenderer.createGroup({id:this.svgObject.id+"_captionGroup"}),t=this.svgRenderer.createGroup({id:this.svgObject.id+"_scaleGroup"}),u=this.svgRenderer.createGroup({id:this.svgObject.id+"_outerWrap"});this._initializeValues();i=this.model.quantitativeScaleLength/((this._scale.maximum-this._scale.minimum)/this._scale.interval);this._drawCaption();this._drawIndicator();this._drawCaptionGroup(r);this._scaleGroup=t;this._drawScale(r,t);this._drawQualitativeRanges(t);this._drawMajorTicks(i,t);this._drawMinorTicks(i,t);this._drawLabels(i,t);this._bindData();n(t).appendTo(u);n(r).appendTo(u);this._changeOrientation(t);n(u).appendTo(this.svgObject);n(this.svgObject).appendTo(this.element);this._bindHighlightRemoving()},_bindHighlightRemoving:function(){var i=this.model.browserInfo.isMSPointerEnabled,t,r=this.model.browserInfo.pointerEnabled;t=i?r?"pointerout":"MSPointerOut":"touchout mouseout";this._on(n("[id*="+this.svgObject.id+"_FeatureMeasure_]"),t,function(t){this.isTouch(t)||n(t.target).attr("opacity",1)})},_drawCaptionGroup:function(n){var u=this.model.captionSettings,f=u.subTitle,r=this._indicator?this._indicator.settings:u.indicator,c,b,k,l,a,v;u._location=f._location=r._location=c;var y=u.textPosition.toLowerCase()!="float"&&u.text!="",p=f.textPosition.toLowerCase()!="float"&&f.text!="",w=r.visible&&r.textPosition.toLowerCase()!="float";if(y||p||w){b=t.EjSvgRender.utils._measureText(u.text,null,u.font);k=t.EjSvgRender.utils._measureText(f.text,null,f.font);r.visible&&(l=this._indicator.bounds,v={width:r.symbol.size.width+l.width+r.textSpacing,height:Math.max(r.symbol.size.height,l.height)},a={x:0,y:0,width:v.width,height:v.height,padding:r.padding,anchor:r.textAnchor.toLowerCase(),alignment:r.textAlignment.toLowerCase()});var d={x:0,y:0,width:b.width,height:parseFloat(u.font.size),padding:u.padding,anchor:u.textAnchor.toLowerCase(),alignment:u.textAlignment.toLowerCase()},g={x:0,y:0,width:k.width,height:parseFloat(f.font.size),padding:f.padding,anchor:f.textAnchor.toLowerCase(),alignment:f.textAlignment.toLowerCase()},tt={x:this._scale.location.x,y:this._scale.location.y,width:this.model.quantitativeScaleLength,height:this.model.qualitativeRangeSize},nt=[y?u:null,p?f:null,w?r:null];this._positionTextGroup(nt,[d,g,a],tt);this._locateTextGroup(nt,[d,g,a])}var e=u._location==i?u.location:u._location,o=f._location==i?f.location:f._location,s=r._location==i?r.location:r._location;if(u.displayText=u.text,u.enableTrim==!0&&(e.x=e.x<0?0:e.x,e.y=e.y<0?0:e.y,u.displayText=this._displayText(u,e)),f.text!=""&&(f.displayText=f.text,u.enableTrim==!0&&(o.x=o.x<0?0:o.x,o.y=o.y<0?0:o.y,f.displayText=this._displayText(f,o))),r.visible){r.displayText=r.text;this.model.captionSettings.enableTrim==!0&&(s.x=s.x<0?0:s.x,s.y=s.y<0?0:s.y);var c=r._location?r._location:r.location,h={x:c.x+r.symbol.size.width/2,y:c.y-r.symbol.size.height/2,width:r.symbol.size.width,height:r.symbol.size.height},it=this._indicatorTextOptions(r,h,this._indicator.bounds,this.svgObject.id+"_Indicator"),rt=this._indicatorSymbolOptions(n,r);this._drawBulletSymbol(this._indicator.settings.symbol.shape,h,rt,n);this.model.captionSettings.enableTrim==!0&&(r.displayText=this._displayText(r,h))}u.displayText=u.textPosition.toLowerCase()!="float"?this._captionOverlap(this.model.captionSettings):u.displayText;this.svgRenderer.drawText(this._textOptions(u,this.svgObject.id+"_Caption"),u.displayText,n);f.text!=""&&(f.displayText=f.textPosition.toLowerCase()!="float"?this._subOverlap(this.model.captionSettings.subTitle):f.displayText,this.svgRenderer.drawText(this._textOptions(f,this.svgObject.id+"_SubTitle"),f.displayText,n));r.visible&&(r.displayText=r.textPosition.toLowerCase()!="float"?this._indOverlap(r,h):r.displayText,this.svgRenderer.drawText(it,r.displayText,n))},_captionOverlap:function(n){var t,i;return i=!0,n.textPosition==n.subTitle.textPosition&&n.textAlignment==n.subTitle.textAlignment&&n.textAngle>0&&n.textAngle<120?t=n.subTitle._location.y-n._location.y:n.textPosition==n.indicator.textPosition&&n.textAlignment==n.indicator.textAlignment&&n.textAngle>0&&n.textAngle<120?t=n.indicator._location.y-n._location.y:n.textPosition==n.subTitle.textPosition&&n._location.y0&&n.textAngle<180?t=n.subTitle._location.y-n._location.y:n.textPosition==n.subTitle.textPosition&&n._location.y>n.subTitle._location.y&&n.textAngle>190&&n.textAngle<360?t=n._location.y-n.subTitle._location.y:n.textPosition==n.indicator.textPosition&&n._location.y0&&n.textAngle<180?t=n.indicator._location.y-n._location.y:n.textPosition==n.indicator.textPosition&&n._location.y>n.indicator._location.y&&n.textAngle>190&&n.textAngle<360&&(t=n._location.y-n.indicator._location.y),this._trim(n.displayText,n,t,i)},_indOverlap:function(n,t){var u,f,i,r;return f=!0,i=this.model.captionSettings.subTitle,r=this.model.captionSettings,n.textPosition==i.textPosition&&n.textAlignment==i.textAlignment&&n.textAngle>190&&n.textAngle<360?u=t.y-i._location.y:n.textPosition==r.textPosition&&n.textAlignment==r.textAlignment&&n.textAngle>190&&n.textAngle<360?u=t.y-r._location.y:n.textPosition==i.textPosition&&n._location.y0&&n.textAngle<180?u=i._location.y-n._location.y:n.textPosition==i.textPosition&&n._location.y>i._location.y&&n.textAngle>190&&n.textAngle<360?u=n._location.y-i._location.y:n.textPosition==r.textPosition&&n._location.y0&&n.textAngle<180?u=r._location.y-n._location.y:n.textPosition==r.textPosition&&n._location.y>r._location.y&&n.textAngle>190&&n.textAngle<360&&(u=n._location.y-r._location.y),this._trim(n.displayText,n,u,f)},_subOverlap:function(n){var r,u,t,i;return u=!0,t=this.model.captionSettings.indicator,i=this.model.captionSettings,n.textPosition==t.textPosition&&n.textAlignment==t.textAlignment&&n.textAngle>0&&n.textAngle<180?r=t._location.y-n._location.y:n.textPosition==i.textPosition&&n.textAlignment==i.textAlignment&&n.textAngle>190&&n.textAngle<360?r=n._location.y-i._location.y:n.textPosition==t.textPosition&&n._location.y0&&n.textAngle<180?r=t._location.y-n._location.y:n.textPosition==t.textPosition&&n._location.y>t._location.y&&n.textAngle>190&&n.textAngle<360?r=n._location.y-t._location.y:n.textPosition==i.textPosition&&n._location.y0&&n.textAngle<180?r=i._location.y-n._location.y:n.textPosition==i.textPosition&&n._location.y>i._location.y&&n.textAngle>190&&n.textAngle<360&&(r=n._location.y-i._location.y),this._trim(n.displayText,n,r,u)},rotatedLabel:function(n,i,r,u){var f={"font-size":n.size,transform:"rotate("+r+",0,0)","font-family":n.fontFamily,"font-style":n.fontStyle,rotateAngle:"rotate("+r+"deg)","text-anchor":"middle"},e=i.svgRenderer.createText(f,u);return Math.ceil(t.EjSvgRender.utils._measureBounds(e,i).width)},calcGap:function(n,t,i,r,u,f,e){var o;return n>=0&&n<=90?r+t.y>=e&&n>0?(o=e-t.y,u=!0):r+t.y<=e&&i+t.x>=f&&n>0?o=f-t.x:r+t.y<=e&&n>0?(o=e-t.y,u=!0):o=f-t.x:n>90&&n<180?r+t.y>=e?(o=e-t.y,u=!0):r+t.y<=e&&i+t.x>=f?o=t.x:i+t.x<=f?o=t.x:(o=e-t.y,u=!0):n>=180&&n<270?t.x-i>=0?(o=t.y,u=!0):t.y-r<=0&&t.x-i<=0?o=t.x:t.y-r<=0?(o=e-t.y,u=!0):o=t.x:i+t.x<=f?(o=t.y,u=!0):t.y-r>=0&&i+t.x>=f?o=f-t.x:i+t.x>=f?o=f-t.x:(o=t.y,u=!0),{trimSize:o,rotate:u}},_scaleLoc:function(){var o=this._scale,u=o.labelSettings.offset,i=o.majorTickSettings.size,n,e,s=this._scale.labelSettings,h=t.EjSvgRender.utils._measureText(s.labelPrefix+o.maximum+s.labelSuffix,null,s),f=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal?h.height:h.width,r,c;n=o.location.y;r=this.model.qualitativeRangeSize;c=this._tickPosition+this._tickPlacement+this._labelPosition+this._labelPlacement;this._tickPosition=="center"&&(i=i>r&&(i-r)/2);switch(c){case"faroutsidebelowoutside":e=n+f+r+u+(i>u&&i-u);break;case"faroutsidebelowinside":e=n+i+r;n=n-(u+f>r&&u+f-r);break;case"faroutsideaboveoutside":e=n+i+r;n=n-(u+f);break;case"faroutsideaboveinside":e=n+i+r+(u+f>r+i?u+f-(r+i):0);break;case"farinsidebelowoutside":e=n+f+r+u;n=n-(i>r&&i-r);break;case"farinsidebelowinside":e=n+r;n=n-(i>r&&i-r)-(u+f>r+i&&u+f-i);break;case"farinsideaboveoutside":e=n+r;n=n-(u+f)-(i>u+f+r&&i-(u+f+r));break;case"farinsideaboveinside":e=n+r+(u+f>r&&f+u-r);n=n-(i>r&&i-r);break;case"nearoutsidebelowoutside":e=n+r+u+f;n=n-i;break;case"nearoutsidebelowinside":e=n+r;n=n-i-(u+f>r+i&&u+f-(r+i));break;case"nearoutsideaboveoutside":e=n+r;n=n-i-(ir&&u+f-r);n=n-i;break;case"nearinsidebelowoutside":e=n+r+(i>u+f+r?i-r:u+f);break;case"nearinsidebelowinside":e=n+r+(i>r&&i-r);n=n-(u+f>r&&u+f-r);break;case"nearinsideaboveoutside":e=n+(i>r?i:r);n=n-u-f;break;case"nearinsideaboveinside":e=n+r+(i>f+u?i-r:f+u-r);break;case"centeroutsidebelowoutside":e=n+r+(i>u+f?i:u+f);n=n-i;break;case"centeroutsidebelowinside":e=n+r+i;n=n-i-(u+f>r+i&&u+f-(r+i));break;case"centeroutsideaboveoutside":e=n+r+i;n=n-i-(ir+i?u+f-r-i:i);n=n-i;break;case"centerinsidebelowoutside":e=n+r+(i>u+f?i:u+f);n=n-i;break;case"centerinsidebelowinside":e=n+r+i;n=n-(u+f-r>i?u+f-r:i);break;case"centerinsideaboveoutside":e=n+r+i;n=n-i-(if+u?i:f+u-r);n=n-i}return{x:o.location.x,y:n,height:e}},_displayText:function(i,r){var f=n.extend(!0,r),e=i.textAngle%360,y=i.text,w=i.font,a=this._scale,p=this._scale.labelSettings,b=t.EjSvgRender.utils._measureText(p.labelPrefix+a.minimum+p.labelSuffix,null,p).width,k=t.EjSvgRender.utils._measureText(y,null,w).width,d=t.EjSvgRender.utils.rotatedLabel(i,this,e,i.text),v=this.rotatedLabel(w,this,e,i.text),o,s=this.svgHeight,h=this.svgWidth,l=!1,u=this._scaleLoc(),c,g;return i.textSpacing&&(k=k+i.textSpacing,v=v+i.textSpacing),this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal?(f.x<=u.x&&u.y<=f.y&&f.y<=u.height?h=a.location.x-b/2:f.x<=u.x&&f.y<=u.y&&e<90?s=u.y:f.x>=u.x&&f.x<=u.x+this.model.quantitativeScaleLength&&f.y<=u.y?s=u.y:f.y<=u.y&&f.x>=u.x+this.model.quantitativeScaleLength&&e>=90?s=u.y:f.x>=u.x+this.model.quantitativeScaleLength&&u.y<=f.y&&f.y<=u.height&&e<270?(h=h-(u.x+this.model.quantitativeScaleLength),f.x=f.x-(u.x+this.model.quantitativeScaleLength)):f.x<=u.x&&f.y>=u.height&&e>270?f.y=f.y-u.height:f.x>=u.x&&f.x<=u.x+this.model.quantitativeScaleLength&&f.y>=u.height?f.y=f.y-u.height:f.x>=u.x+this.model.quantitativeScaleLength&&f.y>=u.height&&e>=180&&e<270&&(f.y=f.y-u.height),o=this.calcGap(e,f,v,d,l,h,s),l=o.rotate,o=o.trimSize):(c=u.height-u.y,u.y=this.svgHeight-a.location.y-this.model.quantitativeScaleLength,u.height=u.y+this.model.quantitativeScaleLength,f.x<=u.x&&u.y<=f.y&&f.y<=u.height?h=a.location.x-b/2:f.x<=u.x&&f.y<=u.y&&e<90?s=u.y:f.x>=u.x&&f.x<=u.x+c&&f.y<=u.y?s=u.y:f.y<=u.y&&f.x>=u.x+c&&e>=90?s=u.y:f.x>=u.x+c&&u.y<=f.y&&f.y<=u.height&&e<=260?(h=h-(u.x+c),f.x=f.x-(u.x+c)):f.x<=u.x&&f.y>=u.height&&e>=280?f.y=f.y-u.height:f.x>=u.x&&f.x<=u.x+c&&f.y>=u.height?f.y=f.y-u.height:f.x>=u.x+c&&f.y>=u.height&&e>=180&&e<=260&&(f.y=f.y-u.height),o=this.calcGap(e,f,v,d,l,h,s),l=o.rotate,o=o.trimSize),g=y,this._trim(y,i,o,l)},_trim:function(n,i,r,u){var f=n,h=this.rotatedLabel(i.font,this,i.textAngle,n),s=t.EjSvgRender.utils._measureText(n,null,i.font).width,o,e,c;if(i.textSpacing&&(s=s+i.textSpacing,h=h+i.textSpacing),s>r&&n!=""){for(e=1;e<=n.toString().length;e++)if(n=f.toString().substring(0,e)+"... ",o=u==!0?t.EjSvgRender.utils.rotatedLabel(i,this,i.textAngle,n):t.EjSvgRender.utils._measureText(n,null,i.font).width,i.textSpacing&&(o=o+i.textSpacing),o>=r){n=n.toString().substring(0,e-1)+"... ";f=n;break}c=f.toString(0,n.toString.lenght-4);c!=f&&(f=n)}return f},_getVerticalScaleLocation:function(n){return{x:this._scale.location.y,y:this.svgHeight-this._scale.location.x-n}},_horizontalTextPositioning:function(n,i,r,u,f){var h=n.textPosition.toLowerCase(),e=i.alignment,r=this._scaleLoc(),o=this._scale.labelSettings,s=t.EjSvgRender.utils._measureText(o.labelPrefix+this._scale.maximum+o.labelSuffix,null,o).width;switch(h){case"left":i.x=r.x-i.width-i.padding-s/2;i.y=r.y+(e=="center"?u.height/2+i.height/3:e=="far"?u.height:i.height);f[0].push(i);break;case"right":i.x=r.x+u.width+i.padding+s/2;i.y=r.y+(e=="center"?u.height/2+i.height/3:e=="far"?u.height:i.height);f[1].push(i);break;case"top":i.x=e=="center"?u.x+u.width/2-i.width/2:e=="near"?u.x:u.x+u.width-i.width;i.y=r.y-i.padding;f[2].push(i);break;case"bottom":i.x=e=="center"?u.x+u.width/2-i.width/2:e=="near"?u.x:u.x+u.width-i.width;i.y=r.height+i.height/2+i.padding;f[3].push(i)}},_VerticalTextPositioning:function(n,t,i,r,u){var o=n.textPosition.toLowerCase(),f=t.alignment,e=this._scaleLoc();switch(o){case"left":t.x=e.y-t.width-t.padding;t.y=i.y+(f=="center"?r.height/2+t.height/3:f=="far"?r.height:t.height);this._tickPosition=="near"&&this._tickPlacement=="inside"&&this._labelPosition=="above"&&this._labelPlacement=="inside"&&(t.x+=this._scale.majorTickSettings.size);u[0].push(t);break;case"right":t.x=e.height+t.padding;t.y=i.y+(f=="center"?r.height/2+t.height/3:f=="far"?r.height:t.height);u[1].push(t);break;case"top":t.x=r.x-t.width/2+(f=="center"?r.width/2:f=="far"&&r.width);t.y=r.y-t.padding;u[2].push(t);break;case"bottom":t.x=r.x-t.width/2+(f=="center"?r.width/2:f=="far"&&r.width);t.y=r.y+r.height+t.height+t.padding-t.height/3+this._scale.labelSettings.size/2;u[3].push(t)}},_positionTextGroup:function(n,t,i){for(var f=[[],[],[],[]],e=this._orientation=="horizontal",u=e?this._scaleLocation:this._getVerticalScaleLocation(i.width),o=e?i:{x:u.x,y:u.y,width:i.height,height:i.width},r=0;r=0;i--)if(this._isOverlapping(t[r],t[i])){switch(u){case 0:case 1:t[i].y>t[r].y?t[i].y=t[r].y+t[i].height+(t[i].padding>1?t[i].padding:1):t[r].y=t[i].y+t[r].height+(t[r].padding>1?t[r].padding:1);break;case 2:t[i].y=t[r].y-t[r].height-(t[i].padding>1?t[i].padding:1);break;default:t[r].y=t[i].y+t[i].height+(t[i].padding>1?t[i].padding:1)}f=!0;break}else f=!1;while(f)}this._applyLeftRightAnchor([n[0],n[1]]);this._applyTopBottomAnchor([n[2],n[3]])},_locateTextGroup:function(n,t){for(var i=0;i1){for(i=0,t=0;t1){for(i=0,t=0;t1){for(i=0,t=0;tt.x+t.width||n.y-n.height>t.y||n.y0&&r.select(u);this.model.fields.dataSource.dataSource.url.match(n.tableName+"$")||t.isNullOrUndefined(n.tableName)||r.from(n.tableName)}else r=n.query;return r},_drawCaption:function(){if(this.model.drawCaption){var t={font:this.model.captionSettings.font,location:this.model.captionSettings.location,subTitle:this.model.captionSettings.subTitle,text:this.model.captionSettings.text,textAngle:this.model.captionSettings.textAngle};this._trigger("drawCaption",t);this.model.captionSettings=n.extend(this.model.captionSettings,t)}},_drawBulletSymbol:function(n,i,r,u){var e="M "+(i.x-i.width/2+i.width)+" "+(i.y+i.height/4)+" L "+(i.x-i.width/2+i.width)+" "+(i.y+-i.height/4)+" L "+(i.x-i.width/2+i.width/2)+" "+(i.y+-i.height/4)+" L "+(i.x-i.width/2+i.width/2)+" "+(i.y+-i.height/2)+" L "+(i.x-i.width/2)+" "+i.y+" L "+(i.x-i.width/2+i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x-i.width/2+i.width/2)+" "+(i.y+i.height/4)+" L "+(i.x-i.width/2+i.width)+" "+(i.y+i.height/4),o,l,a,v,s,y,p,f,d,g,h;switch(n.toLowerCase()){case"circle":o=Math.min(i.height,i.width)/2;r.cx=i.x;r.cy=i.y;r.r=o;this.svgRenderer.drawCircle(r,u);break;case"leftarrow":r.d=e;this.svgRenderer.drawPath(r,u);break;case"rightarrow":r.d=e;r.transform="rotate(180,"+i.x+","+i.y+")";this.svgRenderer.drawPath(r,u);break;case"uparrow":r.d=e;r.transform="rotate(90,"+i.x+","+i.y+")";this.svgRenderer.drawPath(r,u);break;case"downarrow":r.d=e;r.transform="rotate(-90,"+i.x+","+i.y+")";this.svgRenderer.drawPath(r,u);break;case"cross":l="M "+(i.x+-i.width/2)+" "+i.y+" L "+(i.x+i.width/2)+" "+i.y+" M "+i.x+" "+(i.y+i.height/2)+" L "+i.x+" "+(i.y+-i.height/2);r.d=l;r.stroke=r.stroke?r.stroke:r.fill;this.svgRenderer.drawPath(r,u);break;case"horizontalline":a="M "+(i.x+-i.width/2)+" "+i.y+" L "+(i.x+i.width/2)+" "+i.y;r.d=a;r.stroke=r.stroke?r.stroke:r.fill;this.svgRenderer.drawPath(r,u);break;case"verticalline":v="M "+i.x+" "+(i.y+i.height/2)+" L "+i.x+" "+(i.y+-i.height/2);r.d=v;r.stroke=r.stroke?r.stroke:r.fill;this.svgRenderer.drawPath(r,u);break;case"triangle":s="M "+(i.x+-i.width/2)+" "+(i.y+i.height/2)+" L "+i.x+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+i.height/2)+" Z";r.d=s;this.svgRenderer.drawPath(r,u);break;case"invertedtriangle":s="M "+(i.x+-i.width/2)+" "+(i.y+i.height/2)+" L "+i.x+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+i.height/2)+" Z";r.d=s;r.transform="rotate(180,"+i.x+","+i.y+")";this.svgRenderer.drawPath(r,u);break;case"hexagon":y="M "+(i.x+-i.width/2)+" "+i.y+" L "+(i.x+-i.width/4)+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/4)+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+i.y+" L "+(i.x+i.width/4)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/4)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+i.y;r.d=y;this.svgRenderer.drawPath(r,u);break;case"wedge":p="M "+(i.x+-i.width/2)+" "+i.y+" L "+(i.x+i.width/2)+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/4)+" "+i.y+" L "+(i.x+i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+i.y;r.d=p;this.svgRenderer.drawPath(r,u);break;case"pentagon":var o=Math.sqrt(i.height*i.height+i.width*i.width)/2,c=t.EjSvgRender.utils._getStringBuilder();for(f=0;f<=5;f++){var nt=f*72,w=Math.PI/180*nt,b=o*Math.cos(w),k=o*Math.sin(w);f==0?c.append("M "+(i.x+b)+" "+(i.y+k)+" "):c.append("L "+(i.x+b)+" "+(i.y+k)+" ")}r.d=c.toString();this.svgRenderer.drawPath(r,u);break;case"star":d="M "+(i.x+i.width/3)+" "+(i.y+-i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+i.height/6)+" L "+(i.x+i.width/2)+" "+(i.y+i.height/6)+" L "+(i.x+-i.width/3)+" "+(i.y+-i.height/2)+" L "+i.x+" "+(i.y+i.height/2)+" L "+(i.x+i.width/3)+" "+(i.y+-i.height/2);r.d=d;this.svgRenderer.drawPath(r,u);break;case"rectangle":g="M "+(i.x+-i.width/2)+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+-i.height/2);r.d=g;this.svgRenderer.drawPath(r,u);break;case"trapezoid":h="M "+(i.x+-i.width/2)+" "+i.y+" L "+(i.x+-i.width/2)+" "+(i.y+-i.height/4)+" L "+(i.x+-i.width/2+i.width)+" "+(i.y+-i.height/2)+" L "+(i.x+-i.width/2+i.width)+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+(i.y+i.height/4)+" L "+(i.x+-i.width/2)+" "+i.y;r.d=h;this.svgRenderer.drawPath(r,u);break;case"diamond":h="M "+(i.x+-i.width/2)+" "+i.y+" L "+i.x+" "+(i.y+-i.height/2)+" L "+(i.x+i.width/2)+" "+i.y+" L "+i.x+" "+(i.y+i.height/2)+" L "+(i.x+-i.width/2)+" "+i.y;r.d=h;this.svgRenderer.drawPath(r,u);break;case"ellipse":r.cx=i.x;r.cy=i.y;r.rx=i.width/2;r.ry=i.height/2;this.svgRenderer.drawEllipse(r,u);break;case"image":r.x=i.x-i.width/2;r.y=i.y-i.height/2;r.width=i.width;r.height=i.height;r.href=this.model.captionSettings.indicator.symbol.imageURL;r.visibility="visible";this.svgRenderer.drawImage(r,u)}},_drawIndicator:function(){var i,r,u;this.model.captionSettings.indicator.visible&&(i=this.model.captionSettings.indicator,r=n.extend({},{indicatorSettings:this.model.captionSettings.indicator}),this.model.drawIndicator&&(this._trigger("drawIndicator",r),r.cancel==!1&&(i=r.indicatorSettings,this.model.captionSettings.indicator=i)),u=t.EjSvgRender.utils._measureText(i.text,null,i.font),this._indicator={bounds:u,settings:i})},_indicatorTextOptions:function(n,t,i,r){var u=n._location?n._location:n.location;return{"class":r,x:u.x+t.width+n.textSpacing,y:u.y-t.height/2+parseFloat(n.font.size)/3,fill:n.font.color,"font-size":n.font.size,"font-family":n.font.fontFamily,"font-style":n.font.fontStyle,"font-weight":n.font.fontWeight,"text-anchor":"start",opacity:n.font.opacity,transform:"rotate("+n.textAngle+","+t.x+","+t.y+")"}},_indicatorSymbolOptions:function(n,t){return{id:n.id+"_indicatorSymbol",stroke:t.symbol.border.color,fill:t.symbol.color,"stroke-width":t.symbol.border.width,opacity:t.symbol.opacity}},_textOptions:function(n,t){var i=n._location?n._location:n.location;return{"class":t,x:i.x,y:i.y,fill:n.font.color,"font-size":n.font.size,"font-family":n.font.fontFamily,"font-style":n.font.fontStyle,"font-weight":n.font.fontWeight,"text-anchor":"start",opacity:n.font.opacity,cursor:"default",transform:"rotate("+n.textAngle+","+i.x+","+i.y+")"}},_drawScale:function(n,i){var r=this._scale._location?this._scale._location:this._scale.location,u,f,e;u=this._tickPosition==t.datavisualization.BulletGraph.TickPosition.Far||this._tickPosition==t.datavisualization.BulletGraph.TickPosition.Center?this._labelPosition==t.datavisualization.BulletGraph.LabelPosition.Below?r.y:r.y+this._scale.labelSettings.offset+this._scale.labelSettings.size:this._labelPosition==t.datavisualization.BulletGraph.LabelPosition.Below?r.y+this._scale.majorTickSettings.size:r.y+this._scale.labelSettings.offset+this._scale.labelSettings.size+this._scale.majorTickSettings.size;f=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward?r.x:this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal?r.x-this._scale.labelSettings.offset:r.x;e={id:this.svgObject.id+"_SvgScale",x:f,y:u,width:this.model.quantitativeScaleLength,height:this.model.qualitativeRangeSize,fill:"transparent","stroke-width":0};this.svgRenderer.drawRect(e,i)},_drawMajorTicks:function(n,i){var r,l,tt=0,a=this._scale.location,b=this._tickPlacement=="inside",s=this._scale.location.x,k=this.model.quantitativeScaleLength,it=this._scale.labelSettings.offset,d=this.model.qualitativeRangeSize,u=this._scale.majorTickSettings.width,v=this._scale.majorTickSettings.size,f=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal,o=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward,rt=this._labelPosition==t.datavisualization.BulletGraph.LabelPosition.Below,e,y,p,w,nt;r=o?f?s+u/2:s+k+u/2:f?s+k-u/2:s+u/2;l=this._tickPosition=="far"?a.y+d+(b?-v:0):this._tickPosition=="near"?a.y+(b?0:-v):a.y+d/2-v/2;var h=this._scale.minimum,c=this._scale.maximum,g=this._scale.interval;for(e=h;e<=c;e+=g)tt++,e>=c&&(f&&!o?r+=u:r-=u),!f&&o&&(r=e>=c?r+u:e==h?r-u:r),this.model.applyRangeStrokeToTicks&&(y=this._bindingRangeStrokes(r-u/2)),p=this._majorTickLines(this._scale,r,l,y),!f&&o&&e==h&&(r=r+u),this.model.drawTicks&&(w={majorTickSettings:this._scale.majorTickSettings,minorTickSettings:this._scale.minorTickSettings,minorTicksPerInterval:this._scale.minorTicksPerInterval,maximum:c,minimum:h,interval:g},this._trigger("drawTicks",w),p=this._majorTickLines(w,r,l,y)),nt=this.svgRenderer.createLine(p),r=!o&&f||o&&!f?r-n:r+n,i.appendChild(nt)},_majorTickLines:function(n,t,i,r){return{x1:t,y1:i,x2:t,y2:i+n.majorTickSettings.size,"stroke-width":n.majorTickSettings.width,stroke:this.model.applyRangeStrokeToTicks&&r?r:n.majorTickSettings.stroke}},_forwardStrokeBinding:function(n){if(n>=this._scale.location.x&&n<=this._rangeCollection[0]+this._scale.location.x)return this.model.qualitativeRanges[0].rangeStroke;for(var t=0;t<=this._rangeCollection.length-1;t++)if(n>=this._rangeCollection[t]+this._scale.location.x&&n<=this._rangeCollection[t+1]+this._scale.location.x)return this.model.qualitativeRanges[t+1].rangeStroke},_backwardStrokeBinding:function(t){var i,r;if(t>=this._rangeCollection[this._rangeCollection.length-1])return this.model.qualitativeRanges[0].rangeStroke;for(i=0;i<=this._rangeCollection.length-1;i++)if(t>=this._rangeCollection[i]&&t=this._scale.location.x&&n<=this._rangeCollection[0]+this._scale.location.x)return this.model.qualitativeRanges[0].rangeStroke}else return this.model.orientation==t.datavisualization.BulletGraph.Orientation.Horizontal&&this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward||this.model.orientation==t.datavisualization.BulletGraph.Orientation.Vertical&&this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Backward?this._forwardStrokeBinding(n):this._backwardStrokeBinding(n)},_drawMinorTicks:function(i,r){var h,c,s,p,u,tt=0,e=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward,f=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal,it=this._tickPlacement=="inside",o=this._scale.location.x,rt=this.model.qualitativeRangeSize,st=this._scale.labelSettings.offset,ht=this._scale.majorTickSettings.size,l=this._scale.minorTickSettings.size,ut=this._scale.minorTickSettings.width,b=this.model.quantitativeScaleLength,g,k,nt,w,d,v,y;h=e?f?o:o+b:f?o+b-ut/2:o;switch(this._tickPosition){case"far":s=this._scale.location.y+rt;p=s+(it?-l:l);break;case"near":s=this._scale.location.y+(it?l:-l);p=this._scale.location.y;break;default:s=this._scale.location.y+rt/2-l/2;p=s+l}var ft=this._scale.maximum,et=this._scale.minimum,ot=this._scale.interval,a=this._scale.minorTicksPerInterval;for(g=et;g<=ft;g+=ot){for(c=i/a,k=1;k<=a;k++)tt++,u=!f&&e||f&&!e?h-c+c/(a+1):h+c-c/(a+1),!e&&f&&tt>=(ft-et)*a&&(u+=ut/2),this.model.applyRangeStrokeToTicks&&(nt=this._bindingRangeStrokes(u)),w=this._minorTickLines(this._scale,u,s,p,nt),this.model.drawTicks&&(d={majorTickSettings:this._scale.majorTickSettings,minorTickSettings:this._scale.minorTickSettings,minorTicksPerInterval:this._scale.minorTicksPerInterval,maximum:this._scale.maximum,minimum:this._scale.minimum,interval:this._scale.interval},this._trigger("drawTicks",d),this._scale=n.extend(this._scale,d),w=this._minorTickLines(d,u,s,p,nt)),!e&&f?(v=b+o+1,u<=v&&u>=o+1&&(y=this.svgRenderer.createLine(w),r.appendChild(y))):e&&!f?(v=o+1,u>=v&&(y=this.svgRenderer.createLine(w),r.appendChild(y))):(v=b+o+1,u<=v&&(y=this.svgRenderer.createLine(w),r.appendChild(y))),c=i/a*(k+1);h=!e&&f||e&&!f?h-i:h+i}},_minorTickLines:function(n,t,i,r,u){return{x1:t,y1:i,x2:t,y2:r,"stroke-width":n.minorTickSettings.width,stroke:this.model.applyRangeStrokeToTicks&&u?u:n.minorTickSettings.stroke}},_drawLabels:function(n,i){var o,a,it=this.model.locale,et=it&&this.model.enableGroupSeparator,g,b,rt=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward,c=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal,k=this._scale.location.x,f=this._scale.labelSettings.offset,ut=this.model.quantitativeScaleLength,ct=this._scale.majorTickSettings.width,v,l,e,w,nt,h,tt;o=rt?c?k:k+ut:c?k+ut:k;var ft=this._tickPosition+this._labelPlacement,s=this._labelPosition==t.datavisualization.BulletGraph.LabelPosition.Below,lt=this._scale.location.y,d=this.model.qualitativeRangeSize,u=this._scale.labelSettings.size,at=this._scale.majorTickSettings.size;switch(ft){case"faroutside":case"centeroutside":a=s?this._scale.location.y+d+f+u:this._scale.location.y-f;break;case"farinside":case"centerinside":a=s?this._scale.location.y+d-f:this._scale.location.y+f+(c?u:0);break;case"nearoutside":a=s?this._scale.location.y+d+f+u:this._scale.location.y-f;break;case"nearinside":a=s?this._scale.location.y+d-f:this._scale.location.y+f+u}var ot=this._scale.minimum,st=this._scale.maximum,ht=this._scale.interval,vt=this._labelPlacement=="inside";for(l=ot;l<=st;l+=ht){var r=a,y=o,p=this._scale.labelSettings.font;if(p.size=u,e={width:0,height:0},c)b="rotate(0,"+y+","+r+")";else{w=this._scale.labelSettings.labelPrefix+l+this._scale.labelSettings.labelSuffix;switch(ft){case"faroutside":case"centeroutside":s?r-=u:(e=t.EjSvgRender.utils._measureText(w,null,p),r-=e.width);break;case"farinside":case"centerinside":s&&(e=t.EjSvgRender.utils._measureText(w,null,p),r-=e.width);break;case"nearoutside":s?r-=u:(e=t.EjSvgRender.utils._measureText(w,null,p),r-=e.width);break;case"nearinside":s?(e=t.EjSvgRender.utils._measureText(w,null,p),r-=e.width):r-=u}y-=u/3;b="rotate(90,"+y+","+r+")"}this.model.applyRangeStrokeToLabels&&(nt=this._bindingRangeStrokes(o));h=this._labelOptions(this.model.quantitativeScaleSettings.labelSettings,y,r,b,nt);this.model.drawLabels&&(tt={font:this._scale.labelSettings.font,labelPrefix:this._scale.labelSettings.labelPrefix,labelSuffix:this._scale.labelSettings.labelSuffix,offset:f,size:u,stroke:this._scale.labelSettings.stroke},this._trigger("drawLabels",tt),h=this._labelOptions(tt,y,r,b,nt));o=rt?c?o+n:o-n:c?o-n:o+n;g=et?l.toLocaleString(it):l;v=g;t.util.isNullOrUndefined(h.labelPrefix)||(v=h.labelPrefix+g);t.util.isNullOrUndefined(h.labelSuffix)||(v=v+h.labelSuffix);this.svgRenderer.drawText(h,v,i)}},_labelOptions:function(n,i,r,u,f){var e={x:i,y:r,"text-anchor":this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal?"middle":"start",fill:this.model.applyRangeStrokeToLabels&&f?f:n.stroke,"font-size":n.size+"px","font-family":n.font.fontFamily,"font-style":n.font.fontStyle,"font-weight":n.font.fontWeight,opacity:n.font.opacity,transform:u};return n.labelPrefix!=""&&(e.labelPrefix=n.labelPrefix),n.labelSuffix!=""&&(e.labelSuffix=n.labelSuffix),e},_drawQualitativeRanges:function(n){var c=this._scale.location.x,y=this._scale.location.y,e,a=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward,o=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal,p=this._scale.labelSettings.offset,s,h,f,v;this._rangeCollection=[];var w=this._tickPosition+this._labelPlacement,b=this._labelPosition==t.datavisualization.BulletGraph.LabelPosition.Below,k=this.model.qualitativeRangeSize,l=this._scale.location.x,r=this._scale.minimum,i=this._scale.maximum,u=this.model.quantitativeScaleLength;for(s=this.model.qualitativeRanges.length-1;s>=0;s--)h={object:this,rangeIndex:s,rangeOptions:this.model.qualitativeRanges[s],rangeEndValue:this.model.qualitativeRanges[s].rangeEnd},this.model.drawQualitativeRanges&&this._trigger("drawQualitativeRanges",h),f=h.rangeEndValue,f=f>i?i:f,a?(c=o?l:l+(u-u/((i-r)/(i-r-(i-f)))),e=o?u/((i-r)/(i-r-(i-f))):u/((i-r)/(i-r-(i-f)))):(c=o?l+(u-u/((i-r)/(i-r-(i-f)))):l,e=o?u/((i-r)/(i-r-(i-f))):u/((i-r)/(i-r-(i-f)))),v={x:c,y:y,height:this.model.qualitativeRangeSize,width:e>0?e=o){var u,h,r,f=this._scale.location.x,e=this.model.quantitativeScaleLength,s=this._scale.maximum-this._scale.minimum,c=this._scale.maximum-n,l=this._flowDirection.toLowerCase()+this._orientation.toLowerCase();i=i==null?"":i;a=this._scale.labelSettings.font;a.size=this._scale.labelSettings.size;v=t.EjSvgRender.utils._measureText(i.toString(),null,a).width;switch(l){case"forwardhorizontal":case"backwardvertical":u=f+(o>0?0:e/s*Math.abs(o));r=e/(s/(o>0?s-c:n));n<0&&(r=Math.abs(r),u-=r);r=u+r0?e/(s/(s-c)):e/(s/n);n<0&&(r=Math.abs(r),u-=r);u0)for(n=this._dataCount-1;n>=0;n--)o=v?this.model.fields.dataSource[n][this.model.fields.featureMeasures]:t.isNullOrUndefined(this._scale.featureMeasures[n].value)?w:this._scale.featureMeasures[n].value,r=v?this.model.fields.dataSource[n][this.model.fields.category]:this._scale.featureMeasures[n].category,h=this._scale.location.y+this.model.qualitativeRangeSize/this._dataCount*e/2-this._scale.featuredMeasureSettings.width/2,f=this._scale.location.y+this.model.qualitativeRangeSize/this._dataCount*e/2+this._scale.featuredMeasureSettings.width/2-1,i=this._calculateFeatureMeasureBounds(o,r),i&&(c=this._featureBar(this._scale,i.pointX,h,i.Width,n),this.model.drawFeatureMeasureBar&&(u={featuredMeasureSettings:this._scale.featuredMeasureSettings},this._trigger("drawFeatureMeasureBar",u),c=this._featureBar(u,i.pointX,h,i.Width,n)),this.svgRenderer.drawRect(c,this._scaleGroup),s=p?"rotate(90,"+i.lPointX+","+(f-4)+")":"rotate(0,"+i.lPointX+","+f+")",l=this._drawcategory(this.model.quantitativeScaleSettings.labelSettings,i.lPointX,f,s),this.model.drawCategory&&(u={size:this.model.quantitativeScaleSettings.labelSettings.size,stroke:this.model.quantitativeScaleSettings.labelSettings.stroke,font:this.model.quantitativeScaleSettings.labelSettings.font,categoryValue:r},this._trigger("drawCategory",u),l=this._drawcategory(u,i.lPointX,f,s),r=u.categoryValue),t.isNullOrUndefined(r)||this.svgRenderer.drawText(l,y?r.toLocaleString(a):r,this._scaleGroup),e+=2,this.value(o))},_drawcategory:function(n,t,i,r){return{x:t,y:i+this._scale.featuredMeasureSettings.width/2,"text-anchor":"middle",fill:n.stroke,"font-size":n.size+"px","font-family":n.font.fontFamily,"font-style":n.font.fontStyle,"font-weight":n.font.fontWeight,opacity:n.font.opacity,transform:r}},_featureBar:function(n,t,i,r,u){return{"class":this.svgObject.id+"_FeatureMeasure",id:this.svgObject.id+"_FeatureMeasure_"+u,x:t,y:i,height:n.featuredMeasureSettings.width,width:r,fill:n.featuredMeasureSettings.stroke}},_drawComparativeMeasureSymbol:function(){var r=1,n,u,f,e,c=this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward,h=this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal,l=typeof this.model.comparativeMeasureValue=="function"?this._comparativeMeasureValue():this.model.comparativeMeasureValue,i,o,s;if(this._dataCount>0)for(i=this._dataCount-1;i>=0;i--)n=!t.isNullOrUndefined(this.model.fields)&&this.model.fields.dataSource!=null?this.model.fields.dataSource[i][this.model.fields.comparativeMeasure]:t.isNullOrUndefined(this._scale.featureMeasures[i].comparativeMeasureValue)?l:this._scale.featureMeasures[i].comparativeMeasureValue,n>=this._scale.minimum&&n<=this._scale.maximum&&(u=this._scale.location.y+this.model.qualitativeRangeSize/this._dataCount*r/2-this._scale.featuredMeasureSettings.width/2-this._scale.featuredMeasureSettings.width,f=this._scale.location.y+this.model.qualitativeRangeSize/this._dataCount*r/2-this._scale.featuredMeasureSettings.width/2+2*this._scale.featuredMeasureSettings.width,e=c?h?this._scale.location.x+this.model.quantitativeScaleLength/((this._scale.maximum-this._scale.minimum)/(this._scale.maximum-this._scale.minimum-(this._scale.maximum-n))):this._scale.location.x+(this.model.quantitativeScaleLength-this.model.quantitativeScaleLength/((this._scale.maximum-this._scale.minimum)/(this._scale.maximum-this._scale.minimum-(this._scale.maximum-n)))):h?this._scale.location.x+(this.model.quantitativeScaleLength-this.model.quantitativeScaleLength/((this._scale.maximum-this._scale.minimum)/(this._scale.maximum-this._scale.minimum-(this._scale.maximum-n)))):this._scale.location.x+this.model.quantitativeScaleLength/((this._scale.maximum-this._scale.minimum)/(this._scale.maximum-this._scale.minimum-(this._scale.maximum-n))),o=this._compareMeasure(this._scale,e,u,f,i,n),this.model.drawComparativeMeasureSymbol&&(s={comparativeMeasureSettings:this._scale.comparativeMeasureSettings},this._trigger("drawComparativeMeasureSymbol",s),o=this._compareMeasure(s,e,u,f,i,n)),this.svgRenderer.drawLine(o,this._scaleGroup),r+=2,this.comparativeMeasureValue(n))},_compareMeasure:function(n,t,i,r,u,f){return{"class":this.svgObject.id+"_ComparativeMeasure",id:this.svgObject.id+"_ComparativeMeasure_"+u,x1:f==this._scale.maximum?t-n.comparativeMeasureSettings.width/2:f==this._scale.minimum?t+n.comparativeMeasureSettings.width/2:t,y1:i,x2:f==this._scale.maximum?t-n.comparativeMeasureSettings.width/2:f==this._scale.minimum?t+n.comparativeMeasureSettings.width/2:t,y2:r,"stroke-width":n.comparativeMeasureSettings.width,stroke:n.comparativeMeasureSettings.stroke}},_setTheme:function(n,i){var u=[],e,r,f;this._scale=this.model.quantitativeScaleSettings;for(e in n)u.push(e);for(r=0;r=0;t--)r=i[t],this._animateFeatureBar(r)},_doLineAnimation:function(){for(var r,i=n("."+this.svgObject.id+"_ComparativeMeasure"),u=2e3/i.length,t=i.length-1;t>=0;t--)r=i[t],n(r).attr("transform","scale(0)"),this._doLineSymbol(r,u,t)},_animateFeatureBar:function(i){var r=i.getBBox(),u,f,e;this._orientation==t.datavisualization.BulletGraph.Orientation.Horizontal&&this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Backward||this._orientation==t.datavisualization.BulletGraph.Orientation.Vertical&&this._flowDirection==t.datavisualization.BulletGraph.FlowDirection.Forward?(u=r.x+r.width,f=r.y+r.height):(u=r.x,f=r.y);n(i).animate({scale:1},{duration:1e3,step:function(t){e=t;n(i).attr("transform","translate("+u+" "+f+") scale("+t+",1) translate("+-u+" "+-f+")")}})},_doLineSymbol:function(t,i,r){var o=parseInt(r*i),u=t.getBBox(),f=u.x+u.width/2,e=u.y+u.height/2;n(t).delay(o).animate({scale:1},{duration:200,step:function(i){n(t).attr("transform","translate("+f+" "+e+") scale("+i+") translate("+-f+" "+-e+")")}})},bindEvents:function(){var u=t.EjSvgRender.utils.browserInfo(),i=u.isMSPointerEnabled,r=u.pointerEnabled,f=i?r?"pointerdown":"MSPointerDown":"touchstart mousedown",e=i?r?"pointerup":"MSPointerUp":"touchend mouseup",o=i?r?"pointermove":"MSPointerMove":"touchmove mousemove",s=i?r?"pointerleave":"MSPointerOut":"touchleave mouseleave";this.model.browserInfo=u;this._on(n(this.svgObject),o,this._bulletMouseMove);this._on(n(this.svgObject),s,this._bulletMouseLeave);this._on(n(this.svgObject),f,this._bulletMouseDown);this._on(n(this.svgObject),e,this._bulletMouseUp);this._on(n(this.svgObject),"contextmenu",this._bulletRightClick);this._on(n(this.svgObject),"click",this._bulletClick);(this.model.enableResizing||this.model.isResponsive)&&(t.isTouchDevice()?this._on(n(window),"orientationchange",this._bulletResize):this._on(n(window),"resize",this._bulletResize))},_unwireEvents:function(){this._off(n(this.svgObject),"contextmenu",this._bulletRightClick);this._off(n(this.svgObject),"click",this._bulletClick)},isDevice:function(){return/mobile|tablet|android|kindle/i.test(navigator.userAgent.toLowerCase())},_bulletResize:function(){var i=this,f=this.model.height,r=this.model.width,e=n(i.svgObject),f=90,r=t.isTouchDevice()?250:595,u=n(i.element).width(),o;i.model.width?r=parseInt(i.model.width):u>0&&u<595?r=u:u>595&&(r=595);i.model.height&&(f=parseInt(i.model.height));o=n(i.element).height()>f?f:n(i.element).height();this.resizeTO&&clearTimeout(this.resizeTO);this.resizeTO=setTimeout(function(){r-1?!0:!1},_bulletMouseMove:function(t){var i,r;i=n(t.target).attr("id");r=n(t.target).attr("class");this.isTouch(t)||(n("#tooltip").remove(),n(".tooltipDiv"+this._id).remove(),this._elementTooltip(t,r,i),this._displayTooltip(t,r,i))},_bulletMouseDown:function(i){if(this.isTouch(i)){n("#tooltip").remove();n(".tooltipDiv"+this._id).remove();var r=n(i.target).attr("id"),u=n(i.target).attr("class");this._elementTooltip(i,u,r);this._displayTooltip(i,u,r)}t.isTouchDevice()&&this.model.rightClick!=""&&(this._longPressTimer=new Date)},_bulletMouseUp:function(i){if(this.isTouch(i)){var r=this,u;window.clearTimeout(r.model.timer);n(".tooltipDiv"+this._id).length==1&&(u=n(".tooltipDiv"+this._id));u&&(r.model.trackerElement=u,r.model.timer=setTimeout(function(){r.model.trackerElement&&n(".tooltipDiv"+r._id).fadeOut(500,function(){n(".tooltipDiv"+r._id).remove();n("[id*="+r.svgObject.id+"_FeatureMeasure_]").attr("opacity","1")})},1200))}t.isTouchDevice()&&this.model.rightClick!=""&&new Date-this.model._longPressTimer>1500&&this._bulletRightClick(i)},_bulletClick:function(n){var t=new Date;this.model.click!=""&&this._trigger("click",{data:{event:n}});this._doubleTapTimer!=null&&t-this._doubleTapTimer<300&&this._bulletDoubleClick(n);this._doubleTapTimer=t},_bulletDoubleClick:function(n){this.model.doubleClick!=""&&this._trigger("doubleClick",{data:{event:n}})},_bulletRightClick:function(n){this.model.rightClick!=""&&this._trigger("rightClick",{data:{event:n}})},_elementTooltip:function(t,r){var o=this.model.captionSettings,u=n("
<\/div>").attr({id:"tooltip","class":"tooltipDiv"+this._id}),s=this.mousePosition(t),c="",h,f,e;if(n(u).css({left:s.pageX+10,top:s.pageY+10,display:"block",position:"absolute","z-index":"13000",cursor:"default","font-family":"Segoe UI",color:"#707070","font-size":"12px","background-color":"#FFFFFF",border:"1px solid #707070"}),r==this.svgObject.id+"_Caption"?c=t.target.textContent==o.text?"":o.text:r==this.svgObject.id+"_SubTitle"?c=t.target.textContent==o.subTitle.text?"":o.subTitle.text:r==this.svgObject.id+"_Indicator"&&(c=t.target.textContent==o.indicator.text?"":o.indicator.text),c!="")n(u).html(" "+c+" "),n(document.body).append(u);else if(this.model.tooltipSettings.enableCaptionTooltip&&(r==this.svgObject.id+"_Caption"||r==this.svgObject.id+"_SubTitle"||r==this.svgObject.id+"_Indicator")){var a=n("."+r).text(),v={Text:a},l=this.model.tooltipSettings.captionTemplate;n(".tooltipDiv"+this._id).length==0&&(u=n("
<\/div>").attr("class","tooltipDiv"+this._id).css({position:"absolute","z-index":"13000",display:"block"}),n(document.body).append(u));l!=""&&l!=null?(h=document.getElementById(l),h=h?n(h).clone():n(l),n(h).css("display","block").appendTo(u),n(u).html(n(h).render(v))):n(u).html(a);n(u).css("font-size","12px");f=s.clientX+n(document).scrollLeft()+10;e=s.clientY+n(document).scrollTop()+10;f=f+n(u).width()0?n:n.originalEvent&&!t.util.isNullOrUndefined(n.originalEvent.pageX)&&n.originalEvent.pageX>0?n.originalEvent:n.originalEvent&&n.originalEvent.changedTouches!=i&&!t.util.isNullOrUndefined(n.originalEvent.changedTouches[0].pageX)&&n.originalEvent.changedTouches[0].pageX>0?n.originalEvent.changedTouches[0]:n},_displayTooltip:function(r,u,f){var w,b,s,h;if(u!="undefined"&&(u==this.svgObject.id+"_FeatureMeasure"||u==this.svgObject.id+"_ComparativeMeasure")){var a=this.model.locale,k=a&&this.model.enableGroupSeparator,c,e,y,p,l,o,d=typeof this.model.value=="function"?this._value():this.model.value,g=typeof this.model.comparativeMeasureValue=="function"?this._comparativeMeasureValue():this.model.comparativeMeasureValue,v=this.mousePosition(r);e=f.substring(f.lastIndexOf("_")+1);y=!t.isNullOrUndefined(this.model.fields)&&this.model.fields.dataSource!=null?this.model.fields.dataSource[e][this.model.fields.featureMeasures]:t.isNullOrUndefined(this._scale.featureMeasures[e].value)?d:this._scale.featureMeasures[e].value;p=!t.isNullOrUndefined(this.model.fields)&&this.model.fields.dataSource!=null?this.model.fields.dataSource[e][this.model.fields.comparativeMeasure]:t.isNullOrUndefined(this._scale.featureMeasures[e].comparativeMeasureValue)?g:this._scale.featureMeasures[e].comparativeMeasureValue;l=!t.isNullOrUndefined(this.model.fields)&&this.model.fields.dataSource!=null?t.isNullOrUndefined(this.model.fields.dataSource[e][this.model.fields.category])?null:this.model.fields.dataSource[e][this.model.fields.category]:t.isNullOrUndefined(this._scale.featureMeasures[e].category)?null:this._scale.featureMeasures[e].category;c=k?{currentValue:y.toLocaleString(a),targetValue:p.toLocaleString(a),category:t.util.isNullOrUndefined(l)?l:l.toLocaleString(a)}:{currentValue:y,targetValue:p,category:l};n(".tooltipDiv"+this._id).length==0&&(o=n("
<\/div>").attr("class","tooltipDiv"+this._id).css({position:"absolute","z-index":"13000",display:"block"}),n(document.body).append(o));this.model.tooltipSettings.template!=""&&this.model.tooltipSettings.template!=null?(w=n("#"+this.model.tooltipSettings.template).clone(),n(w).css("display","block").appendTo(o),n(o).html(n(w).render(c))):(b=t.isNullOrUndefined(c.category)?"":"
Category : "+c.category,n(o).html("Current : "+c.currentValue+"
Target : "+c.targetValue+b));n(o).css("font-size","12px");s=v.clientX+n(document).scrollLeft()+10;h=v.clientY+n(document).scrollTop()+10;s=s+n(o).width()0){i=0;do i++;while($(document).find("#"+this._rootId+"_svg"+i).length>0);t=this._rootId+"_svg"+i}this.svgObj.setAttribute("id",t)},function(n){function t(n,t,i,r){var u=r*Math.PI/180,f=n+i*Math.cos(u),e=t+i*Math.sin(u);return[f,e]}ej.EjSvgRender.prototype={drawPath:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"path");n(r).attr(t).appendTo(i)}},createLegendSvg:function(n){return this.svgLink="http://www.w3.org/2000/svg",this.legendsvgObj=document.createElementNS(this.svgLink,"svg"),this._rootId=jQuery(n).attr("id"),this.legendsvgObj.setAttribute("id","legend_"+this._rootId+"_svg"),this.legendsvgObj},drawPolyline:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"polyline");n(r).attr(t).appendTo(i)}},drawLine:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"line");n(r).attr(t);n(r).appendTo(i)}},drawPolygon:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"polygon");n(r).attr(t);n(r).appendTo(i)}},drawCircle:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"circle");n(r).attr(t).appendTo(i)}},drawEllipse:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"ellipse");n(r).attr(t).appendTo(i)}},drawRect:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"rect");n(r).attr(t).appendTo(i)}},drawCylinder:function(t,i,r){var d,ot,y;if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var rt=t.x,s=t.y,g=t.id,h=t.fill,st=h,ht=this.checkColorFormat(h);ht||(h=ej.datavisualization.Chart.prototype.colorNameToHex(h));var a,v,p,w,l,e,b,nt,ut=2,tt,k,ft=0,et=0,c,it={svgRenderer:this};if(r.isColumn==!0){var o=t.width/2,u=t.height,f=o/4;l=tt=rt;e=f0)this._textAttrReplace(t,i,u);else{if(e=document.createElementNS(this.svgLink,"text"),o=n(e),jQuery.type(i)=="array")for(h=0,o.attr(t),f=0;f0&&f.length==i.length)for(u=0;u0)n(i).find("#"+t.id).attr(t);else{var r=this.createDefs(),u=this.createClipPath({id:t.id});t.id=t.id+"_Rect";this.drawRect(t,u);this.append(u,r);this.append(r,i)}},drawCircularClipPath:function(n,t){var i=this.createDefs(),r=this.createClipPath({id:n.id});this.drawCircle(n,r);this.append(r,i);this.append(i,t)},append:function(t,i){n(t).appendTo(i)},_setAttr:function(t,i){n(t).attr(i)}};ej.EjSvgRender.commonChartEventArgs={cancel:!1,data:null};ej.EjSvgRender.utils={_decimalPlaces:function(n){var t=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_getLabelContent:function(n,t,i){switch(t._categoryValueType){case"number":var r=ej.util.isNullOrUndefined(t.labelFormat)?null:t.labelFormat.match("{value}");return ej.util.isNullOrUndefined(t.labelFormat)?t.labels[Math.floor(n)]:r!=null?t.labelFormat.replace("{value}",t.labels[Math.floor(n)]):ej.format(t.labels[Math.floor(n)],t.labelFormat,i);case"date":return ej.format(new Date(t.labels[Math.floor(n)]),ej.util.isNullOrUndefined(t.labelFormat)?"dd/MM/yyyy":t.labelFormat,i);case"string":return t.labels[Math.floor(n)];default:return""}},_getSeriesTemplateSize:function(t,i,r,u,f){var t,i,a=f.model.AreaType,o=f._id,v=n.inArray(r,f.model._visibleSeries),s,h,e,c,l;s=n("#template_group_"+o).length!=0?n("#template_group_"+o):n("
<\/div>").attr("id","template_group_"+o);s.css("position","relative").css("z-index",1e3);h=n("#"+r.marker.dataLabel.template).clone();n(h).attr("id",r.marker.dataLabel.template+"_"+v+"_"+i+"_"+o);e=n(h);e.css("position","absolute");t.count=1;c={series:r,point:t};e.html(e.html().parseTemplate(c));l=a=="cartesianaxes"||!r.enableAnimation||r.type.toLowerCase()=="pyramid"||r.type.toLowerCase()=="funnel"?"block":"none";e.css("display",l).appendTo(n(s));n(s).appendTo("#"+o);t.size={height:e.height(),width:e.width()};u?((ej.util.isNullOrUndefined(r.LeftLabelMaxHeight)||r.LeftLabelMaxHeight0&&t.xValue){var i=t.xValue-o[n-1].xValue;i!=0&&(u=Math.min(u,i))}}):(r=t._valueType=="DateTime"&&e.minX==e.maxX?e.minX-2592e6:e.minX,h=ej.util.isNullOrUndefined(r)?e.xAxis.visibleRange.min:r,s=o[0].xValue-h,s!=0&&(u=Math.min(u,s))))}),u==Number.MAX_VALUE&&(u=1),u},_getSeriesMaxLabel:function(t){var i={width:0,height:0},s=n(this.svgObject).width(),e=[],o,h,r,f,u;if(t.labels.length>0){for(u=0;u")!=-1?f=a.split("
"):f.push(a),u=0;u")!=-1||typeof r=="object"))for(e=0,f=typeof r=="object"?r:r.split("
"),u=0;u")!=-1&&t.orientation=="vertical"?(ai=t.visibleLabels[e].Text.split("
"),vi=this._getHighestLabel(t,n(this.svgObject).width(),ai),g=this._measureText(vi,n(this.svgObject).width(),t.font,t.labelRotation)):g=this._measureText(t.visibleLabels[e].Text,n(this.svgObject).width(),t.font,t.labelRotation),r.widthot?ot:r.width),r.rows=1,r.maxWidth=r.width,r.maxHeight=r.height,!rr&&(f||h)&&(yt=0,h=="rotate45"?yt=45:h=="rotate90"&&(yt=90),f=f!=null||ii=="vertical"?f:yt,t.rotationValue=f,f)){if(o=ej.isNullOrUndefined(o)?"":o,pi=this._measureText(o,n(this.svgObject).width(),t.font,t.labelRotation),(t.enableTrim||h=="trim")&&pi.width>ot&&o!="")for(a=o,p=1;p=ot){a=a.toString().substring(0,p-1)+"... ";o=a;break}o=(h||t.enableTrim)&&f?typeof o=="string"&&o.indexOf("
")!=-1?this._getHighestLabel(t,i,null):o:this._getHighestLabel(t,i,null);tt=this.rotatedLabel(t,i,f,o);t.labelIntersectAction&&t.labelIntersectAction.toLowerCase()=="multiplerows"&&(k=r.height+tt.height);r.height=t.rowsCount&&t.rowsCount>1&&f!=90&&t.enableTrim?t.rowsCount*r.height:tt.height;r.width=tt.width}if(t.labelIntersectAction)if(t.rowsCount&&(h=="none"||h=="trim"||h=="hide"||f==0)&&(h!="wrap"||t.enableTrim)&&(h!="wrapbyword"||t.enableTrim)&&(h!="multiplerows"||t.enableTrim))f==0&&(r.rows=t.rowsCount,r.height=t.rowsCount*r.height);else if(h=="wrap"||h=="wrapbyword"){if(vt=vt?vt:ej.datavisualization.Chart.LabelPlacement.BetweenTicks,vt.toLowerCase()=="betweenticks"?(st=1+(t.labels.length>1?-.5:0),st=li?parseFloat(st.toFixed(li)):parseFloat(st.toFixed(ej.EjSvgRender.utils._decimalPlaces(y.interval)==0?1:ej.EjSvgRender.utils._decimalPlaces(y.interval))),rt=Math.ceil((st-y.min)/(y.max-y.min)*t.length)):rt=Math.ceil(t.length/et.length),t.orientation=="horizontal"){var ht=0,wi=0,bi,ut=t.labels.length>0&&t.valueType!="datetimecategory"?t.labels:t.visibleLabels,er=t.width?t.width/ut.length:(t.length-(i.svgWidth-t.length)-20)/ut.length;for(t.labelsCollection=[],c=0;c")!=-1?wt=bt.split("
"):wt.push(bt),s=0;sl&&!f&&(ct=ct-1);r.height=f?tt.height+ct*tt.height:r.height+ct*r.height}else if(h=="multiplerows"){var or=i._getLegendSpace(),sr=i.model.border.width,wr=i.model._axes[1],hr=n(i.svgObject).width()-i.model.margin.left-i.model.margin.right;ri=t.title;ui=ri.text;var cr=ui==""||!t.visible?0:this._measureText(ui,hr,ri.font).height+2*i.model.elementSpacing,lr=i.model.elementSpacing+cr+t.majorTickLines.size+t.axisLine.width,ar=i._getYValues(i.model._visibleSeries[0].points),vr=Math.max.apply(Math,ar),ki=i.model._axes[1],g=this._measureText(vr,n(this.svgObject).width(),ki.font,ki.labelRotation),yr=or.rightLegendWidth+lr+g.width+i.model.margin.right+i.model.margin.left+2*sr,di=n(i.svgObject).width()-yr;if(ci){var ft=0,w=[],l=0,bi,wi=0;for(e=0;e")!=-1?d=u.Text.split("
"):d.push(u);it=d.length;oi=!1;k=Math.max(k,ft);ft=u.y=r.height;var a=this._measureText(u.Text,n(this.svgObject).width(),t.font),v=a.height,si=Math.abs(Math.floor((u.Value-y.min)/y.delta*di));if(w.length>0)for(dt=w,gt=!0,lt=0;lt=si-nt)ft=u.y+v,u.y+=v,pt++,lt+1==dt.length&&(gt=!1);else if(c+1==b.length){gt=s==it-1?!1:!0;break}}}if(u.y=ft,l=ft/v-1,w[l]==undefined&&(w[l]=[]),it==1)w[l].push(u);else for(s=0;sk?r.height:k;v>0&&(r.rows=ur?Math.round((k+v)/v):Math.round(k/v));r.rows=f?r.rows-1:r.rows;r.rows<1&&(r.rows=1)}if(!ci){for(ti=0,e=0;esi-v/2&&t.visibleLabels[at].y==u.y&&(ti=u.y+nt,u.y=ti,oi=!0);ir=ti}r.width=r.width+ir+(oi?5:0)}}}return r},rotatedLabel:function(n,t,i,r,u){var e={"font-size":n.font.size,transform:"rotate("+i+",0,0)","font-family":n.font.fontFamily,"font-style":n.font.fontStyle,rotateAngle:"rotate("+i+"deg)","text-anchor":"middle"};t=u?this.chartObj:t;var f=t.svgRenderer.createText(e,r),o=Math.ceil(this._measureBounds(f,t).height),s=Math.ceil(this._measureBounds(f,t).width);return{height:o,width:s}},_getTransform:function(n,t,i){var r,u,f,e;return i?(r=t.x,u=n.y,f=t.width,e=n.height):(r=n.x,u=t.y,f=n.width,e=t.height),{x:r,y:u,width:f,height:e}},_calculateroundedCorner:function(n,t,i,r,u,f){var e=t.x,o=t.y,c=5,l=this.chartObj.model.enableCanvasRendering&&!f?c/4:0,s=t.width,h=t.height,v,y,p,w,a;return typeof n!="object"||ej.util.isNullOrUndefined(n)?v=y=p=w=n:(v=n.topLeft,y=n.bottomLeft,p=n.topRight,w=n.bottomRight),v=ej.util.isNullOrUndefined(t.rx)?v:t.rx,y=ej.util.isNullOrUndefined(t.rx)?y:t.rx,p=ej.util.isNullOrUndefined(t.ry)?p:t.ry,w=ej.util.isNullOrUndefined(t.ry)?w:t.ry,a="M "+e+" "+(v+o)+" Q "+e+" "+o+" "+(e+v)+" "+o+" ",i&&r=="top"&&(a+="L "+(e+s/2-c/2+l)+" "+o+" L "+(e+s/2+l-u)+" "+(o-c)+" L "+(e+s/2+c/2+l)+" "+o+" "),a+="L "+(e+s-p)+" "+o+" Q "+(e+s)+" "+o+" "+(e+s)+" "+(o+p)+" ",i&&r=="right"&&(a+="L "+(e+s)+" "+(o+h/2-c/2+l)+" L "+(e+s+c)+" "+(o+h/2+l-u)+" L "+(e+s)+" "+(o+h/2+c/2+l)+" "),a+="L "+(e+s)+" "+(o+h-w)+" Q "+(e+s)+" "+(o+h)+" "+(e+s-w)+" "+(o+h)+" ",i&&r=="bottom"&&(a+="L "+(e+s/2-c/2+l)+" "+(o+h)+" L "+(e+s/2+l-u)+" "+(o+h+c)+" L "+(e+s/2+c/2+l)+" "+(o+h)+" "),a+="L "+(e+y)+" "+(o+h)+" Q "+e+" "+(o+h)+" "+e+" "+(o+h-y)+" ",i&&r=="left"&&(a+="L "+e+" "+(o+h/2-c/2+l)+" L "+(e-c)+" "+(o+h/2+l-u)+" L "+e+" "+(o+h/2+c/2+l)+" "),a+("L "+e+" "+(v+o)+" z")},browserInfo:function(){var n={},t=[],i={webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,msie:/(msie) ([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in i)if(i.hasOwnProperty(r)&&(t=navigator.userAgent.match(i[r]),t)){n.name=t[1].toLowerCase();n.version=t[2];!navigator.userAgent.match(/Trident\/7\./)||(n.name="msie");break}return n.isMSPointerEnabled=n.name=="msie"&&n.version>9&&window.navigator.msPointerEnabled,n.pointerEnabled=window.navigator.pointerEnabled,n},_measureText:function(t,i,r){var s=n(document).find("#measureTex"),u,e,o,f,v;n("#measureTex").css("display","block");s.length==0?(u=document.createElement("text"),n(u).attr({id:"measureTex"}),document.body.appendChild(u)):u=s[0];var h=null,c=null,l=null,a=null;if(typeof t=="string"&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(e=t.split(" "),o=0;o")==-1&&(e[o]=e[o].replace(/[<>]/g,"&"));t=e.join(" ")}return/<\/?[a-z][\s\S]*>/.test(t)?n(u).html(t):u.textContent=t,r!=undefined&&r.size==undefined&&(f=r,f=f.split(" "),h=f[0],c=f[1],l=f[2],a=f[3]),r!=null&&(u.style.fontSize=r.size>0?r.size+"px":r.size?r.size:c,u.style.fontStyle&&(u.style.fontStyle=r.fontStyle?r.fontStyle:h),u.style.fontFamily=r.fontFamily?r.fontFamily:l,window.navigator.userAgent.indexOf("MSIE 8.0")==-1&&(u.style.fontWeight=r.fontWeight?r.fontWeight:a)),u.style.backgroundColor="white",u.style.position="absolute",u.style.top=-100,u.style.left=0,u.style.visibility="hidden",u.style.whiteSpace="nowrap",i&&(u.style.maxwidth=i+"px"),v={width:u.offsetWidth,height:u.offsetHeight},n("#measureTex").css("display","none"),v},_trimText:function(n,t,i){var f,r,e,u;for(r=n.toString(),e=r.length,u=1;u=t)return r.substring(0,u-1)+"... ";return n},_measureBounds:function(t,i){i.model.enableCanvasRendering?n(document.body).append(t):(i.svgRenderer.append(t,i.svgObject),i.svgRenderer.append(i.svgObject,i.element));var r=t.getBoundingClientRect(),u={left:r.left,right:r.right,top:r.top,bottom:r.bottom,width:r.right-r.left,height:r.bottom-r.top};return n(t).remove(),u},_drawAxesBoundsClipPath:function(t,i,r){var u,s=n(t),f=this._getTransform(i.xAxis,i.yAxis,r.model.requireInvertedAxes),h=r.model.AreaType=="polaraxes"?n(r.svgObject).width():f.width,c=r.model.AreaType=="polaraxes"?n(r.svgObject).height():f.height,e=r.model.requireInvertedAxes?i.yAxis.plotOffset:i.xAxis.plotOffset,o=r.model.requireInvertedAxes?i.xAxis.plotOffset:i.yAxis.plotOffset;r.model.AreaType=="polaraxes"?(u={id:t?t.id+"_ClipRect":"",cx:r.model.centerX,cy:r.model.centerY,r:r.model.Radius,fill:"white","stroke-width":1,stroke:"transparent"},r.svgRenderer.drawCircularClipPath(u,t)):(u={id:t?t.id+"_ClipRect":"",x:0-e,y:0-o,width:h+2*e,height:c+2*o,fill:"white","stroke-width":1,stroke:"transparent"},r.svgRenderer.drawClipPath(u,t));u.id.indexOf("_Rect")&&(u.id=u.id.replace("_Rect",""));s.attr("clip-path","url(#"+u.id+")")},_getStringBuilder:function(){var n=[],t=0;return{append:function(i){return n[t++]=i,this},remove:function(t,i){return n.splice(t,i||1),this},insert:function(t,i){return n.splice(t,0,i),this},toString:function(t){return n.join(t||"")}}},_addRegion:function(t,i,r,u,f){var s=r.type,e=n.inArray(r,t.model._visibleSeries),o;e>=0&&(o={SeriesIndex:e,Region:{PointIndex:f,Bounds:i},type:s},t.model.chartRegions.push(o))},AddRegion:function(n,t,i){if(i){var r={isStripLine:i,Region:{Bounds:t}};n.model.chartRegions.push(r)}},_getSvgXY:function(n,t,i,r){var u,f;return r.model.requireInvertedAxes?(u=n+i.yAxis.x,f=t+i.xAxis.y):(u=n+i.xAxis.x,f=t+i.yAxis.y),{X:u,Y:f}},_getPoint:function(n,t){var f=n.xValue,i,r,u,e=t.type=="boxandwhisker"?n.YValues:n.YValues[0],s=t._isTransposed?t.xAxis.height:t.xAxis.width,o=t._isTransposed?t.yAxis.width:t.yAxis.height;return n.location={},t._hiloTypes&&(i=n.YValues[1],i=t.yAxis._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(i==0?1:i,t.xAxis.logBase):i,i=this._getPointXY(i,t.yAxis.visibleRange,t.yAxis.isInversed),n.location.low=(t._isTransposed?i:1-i)*o),r=t.xAxis._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(f==0?1:f,t.xAxis.logBase):f,u=t.yAxis._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(e==0?1:e,t.xAxis.logBase):e,r=this._getPointXY(r,t.xAxis.visibleRange,t.xAxis.isInversed),u=this._getPointXY(u,t.yAxis.visibleRange,t.yAxis.isInversed),n.location.X=t._isTransposed?u*o:r*s,n.location.Y=t._isTransposed?(1-r)*s:(1-u)*o,n.location},_getPointXY:function(n,t,i){var r=0;return r=(n-t.min)/t.delta,r=isNaN(r)?0:r,i?1-r:r},_dateTimeLabelFormat:function(n,t){switch(n.toLowerCase()){case"years":return t._labelFormat="MMM, yyyy";case"months":return t._labelFormat="dd, MMM";case"days":return t._labelFormat="dd/MM/yyyy";case"hours":return t._labelFormat="dd, hh:mm";case"minutes":return t._labelFormat="hh:mm";case"seconds":return t._labelFormat="mm:ss";case"milliseconds":return t._labelFormat="ss:fff";default:return t._labelFormat="dd/MM/yyyy"}},_getFontString:function(n){return n==null&&(n={}),n.FontFamily||(n.FontFamily="Arial"),n.FontStyle||(n.FontStyle="Normal"),n.Size||(n.Size="12px"),n.FontStyle+" "+n.Size+" "+n.FontFamily},_valueToVector:function(n,t){return this._coefficientToVector(this._valueToPolarCoefficient(n,t))},TransformToVisible:function(n,t,i,r){t=n.xAxis._valueType=="logarithmic"&&t>0?Math.log(t,n.xAxis.logBase):t;i=n.xAxis._valueType=="logarithmic"&&i>0?Math.log(i,n.yAxis.logBase):i;var u=r.model.Radius*this._valueToCoefficient(n.yAxis,i),f=this._valueToVector(n.xAxis,t);return{X:r.model.centerX+u*f.X,Y:r.model.centerY+u*f.Y}},Transform3DToVisible:function(n,t,i,r){var u,s,h,f;if(n.xAxis!=null&&n.yAxis!=null){if(u=n.xAxis._valueType.toLowerCase(),f=u=="logarithmic"?!0:!1,t=t=f&&t>0?math.log(t,s):t,i=i,r.model.requireInvertedAxes){var e=r.model.m_AreaBounds.X,o=r.model.m_AreaBounds.Y,c=e+n.yAxis.width*ej.EjSvgRender.utils._valueToCoefficient(n.yAxis,i,r),l=o+n.xAxis.height*(1-ej.EjSvgRender.utils._valueToCoefficient(n.xAxis,t,r));return{X:c,Y:l}}var e=n.xAxis.x,o=n.yAxis.y,t=e+Math.round(n.xAxis.width*ej.EjSvgRender.utils._valueToCoefficient(n.xAxis,t,r)),i=o+Math.round(n.yAxis.height*(1-ej.EjSvgRender.utils._valueToCoefficient(n.yAxis,i,r)));return{X:t,Y:i}}return new h(0,0)},_valueToPolarCoefficient:function(n,t){var f=n.visibleRange.min,r,u,i;return n._valueType!="category"?(r=n.visibleRange.max-n.visibleRange.interval-n.visibleRange.min,u=n.visibleLabels.length-1):(r=n.visibleRange.delta,u=n.visibleLabels.length),i=(t-f)/r,i*=1-1/u,i=isNaN(i)?0:i,n.isInversed?i:1-i},_coefficientToVector:function(n){var t=Math.PI*(1.5-2*n);return{X:Math.cos(t),Y:Math.sin(t)}},_valueToCoefficient:function(n,t,i){var r;return r=i&&i.model.AreaType=="polaraxes"?t:n._valueType&&n._valueType.toLowerCase()=="logarithmic"?ej.EjSvgRender.utils._logBase(t==0?1:t,n.logBase):t,r=(r-n.visibleRange.min)/n.visibleRange.delta,n.isInversed?1-r:r},_getBoundingClientRect:function(t,i,r,u){var f=t.getBoundingClientRect(),s=n("#"+i.svgObject.id)[0].getBoundingClientRect(),e,o,h,c;return u?(e=this._getTransform(r.xAxis,r.yAxis,!0).x,o=this._getTransform(r.xAxis,r.yAxis,!0).y):(e=this._getTransform(r.xAxis,r.yAxis,!1).x,o=this._getTransform(r.xAxis,r.yAxis,!1).y),h=f.left-(e+s.left),c=f.top-(o+s.top),{x:h,y:c,width:f.right-f.left,height:f.bottom-f.top}},_minMax:function(n,t,i){return n>i?i:n=t.min},_logBase:function(n,t){return Math.log(n)/Math.log(t)},_correctRect:function(n,t,i,r){return{X:Math.min(n,i),Y:Math.min(t,r),Width:Math.abs(i-n),Height:Math.abs(r-t)}},_getValuebyPoint:function(n,t,i,r){var e=r?i.xAxis.height:i.xAxis.width,o=r?i.yAxis.width:i.yAxis.height,u=i.xAxis.isInversed?1-n/e:n/e,f=i.yAxis.isInversed?1-t/o:t/o;return u=u*i.xAxis.visibleRange.delta+i.xAxis.visibleRange.min,f=f*i.yAxis.visibleRange.delta+i.yAxis.visibleRange.min,u=i.xAxis._valueType=="logarithmic"?Math.pow(i.xAxis.logBase,u):u,f=i.yAxis._valueType=="logarithmic"?Math.pow(i.yAxis.logBase,f):f,{PointX:u,PointY:f}}};ej.EjSvgRender.chartTransform3D={ToRadial:Math.PI/180,transform3D:function(n){return this.vector||(this.vector=new(new ej.Ej3DRender).vector3D,this.matrixobj=new(new ej.Ej3DRender).matrix3D,this.bsptreeobj=new(new ej.Ej3DRender).BSPTreeBuilder,this.polygon=new(new ej.Ej3DRender).polygon3D),{mViewport:n,Rotation:0,Tilt:0,Depth:0,PerspectiveAngle:0,needUpdate:!0,centeredMatrix:this.matrixobj.getIdentity(),Perspective:this.matrixobj.getIdentity(),resultMatrix:this.matrixobj.getIdentity(),viewMatrix:this.matrixobj.getIdentity(),Depth:0}},transform:function(n){this.setCenter(this.vector.vector3D(n.mViewport.Width/2,n.mViewport.Height/2,n.Depth/2),n);this.setViewMatrix(this.matrixobj.transform(0,0,n.Depth),n);this.setViewMatrix(this.matrixobj.getMatrixMultiplication(n.viewMatrix,this.matrixobj.turn(-this.ToRadial*n.Rotation)),n);this.setViewMatrix(this.matrixobj.getMatrixMultiplication(n.viewMatrix,this.matrixobj.tilt(-this.ToRadial*n.Tilt)),n);this.updatePerspective(n.PerspectiveAngle,n);n.needUpdate=!0},updatePerspective:function(n,t){var i=(t.mViewport.Width+t.mViewport.Height)*Math.tan(this.degreeToRadianConverter((180-Math.abs(n%181))/2))+t.Depth/1;t.Perspective[0][0]=i;t.Perspective[1][1]=i;t.Perspective[2][3]=1;t.Perspective[3][3]=i},degreeToRadianConverter:function(n){return n*Math.PI/180},toScreen:function(n,t,i,r){var i=i?i:this.result;return r?(this.matrixobj=r,n=r.getMatrixVectorMutiple(i(t,r),n)):(t.chartObj=this.matrixobj,n=this.matrixobj.getMatrixVectorMutiple(i(t),n)),{x:n.x,y:n.y}},setViewMatrix:function(n,t){t.viewMatrix!=n&&(t.viewMatrix=n,t.needUpdate=!0)},setCenteredMatrix:function(n,t){t.viewMatrix!=n&&(t.centeredMatrix=n,t.needUpdate=!0)},result:function(n,t){var i=n.chartObj?n.chartObj:this.matrixobj,r;return(i||(i=t),!n.needUpdate)?n.resultMatrix:(r=this.matrixobj?this.matrixobj:t,n.resultMatrix=i.getMatrixMultiplication(r.getInvertal(n.centeredMatrix),n.Perspective),n.resultMatrix=i.getMatrixMultiplication(n.resultMatrix,n.viewMatrix),n.resultMatrix=i.getMatrixMultiplication(n.resultMatrix,n.centeredMatrix),n.needUpdate=!1,n.resultMatrix)},setCenter:function(n,t){t.centeredMatrix=this.matrixobj.transform(-n.x,-n.y,-n.z);t.needUpdate=!0},toPlane:function(n,t,i){var r=this.vector.vector3D(n.x,n.y,0),u=this.vector.vector3DPlus(r,this.vector.vector3D(0,0,1));return r=this.vector.vector3DMultiply(i.centeredMatrix,r),u=this.vector.vector3DMultiply(i.centeredMatrix,u),r=this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.Perspective),r),u=this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.Perspective),u),r=this.polygon.getPoint(r,this.vector.vector3DMinus(u-r)),r=this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.viewMatrix),r),this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.centeredMatrix),r)}};ej.EjSvgRender.chartSymbol={_drawSeriesType:function(n,t,i){var r=i.model.series[t.SeriesIndex].type.toLowerCase(),u=i.legendItem.drawType;r=ej.util.isNullOrUndefined(u)?r:u;switch(r){case ej.datavisualization.Chart.Type.Line:return ej.util.isNullOrUndefined(u)?this._drawLine(n,t,i,i.gLegendItemEle):this._drawStraightLine(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.StepLine:return this._drawStepLine(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.StackingArea:case ej.datavisualization.Chart.Type.StackingArea100:case ej.datavisualization.Chart.Type.Area:case ej.datavisualization.Chart.Type.RangeArea:return this._drawArea(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.StepArea:return this._drawStepArea(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Bar:case ej.datavisualization.Chart.Type.StackingBar100:case ej.datavisualization.Chart.Type.StackingBar:return this._drawBar(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Pie:return this._drawPie(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Doughnut:return this._drawDoughnut(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Hilo:return this._drawHilo(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.HiloOpenClose:return this._drawHiloOpenClose(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Candle:return this._drawCandle(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Pyramid:return this._drawPyramid(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Funnel:return this._drawFunnel(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Spline:return this._drawSpline(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.SplineArea:case ej.datavisualization.Chart.Type.StackingSplineArea:case ej.datavisualization.Chart.Type.StackingSplineArea100:return this._drawSplineArea(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.RangeColumn:return this._drawRangeColumn(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Bubble:case ej.datavisualization.Chart.Type.Scatter:return this._drawCircle(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Column:case ej.datavisualization.Chart.Type.StackingColumn:case ej.datavisualization.Chart.Type.StackingColumn100:case ej.datavisualization.Chart.Type.Waterfall:return this._drawColumn(n,t,i,i.gLegendItemEle);default:return this._drawRectangle(n,t,i,i.gLegendItemEle)}},_drawCircle:function(n,t,i,r){var o=i.svgRenderer,h=i.svgObject,f=t.ShapeSize,e=Math.sqrt(f.height*f.height+f.width*f.width)/2,u=t.Style,s={id:t.ID,cx:n.startX,cy:n.startY,r:e,fill:u.Color,"stroke-width":u.BorderWidth,stroke:u.BorderColor,opacity:u.Opacity,visibility:u.Visibility,lgndCtx:t.context};return o.drawCircle(s,r),n.startX-e},_drawLeftArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2+u.width)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2+u.width)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX-u.width/2)+" "+n.startY+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2+u.width)+" "+(n.startY+u.height/4)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawRightArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX-u.width/2+u.width)+" "+n.startY+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2)+" "+(n.startY+u.height/4)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawUpArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX-u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+n.startX+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2+u.height)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawDownArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+n.startX+" "+(n.startY-u.height/2+u.height)+" L "+(n.startX-u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawCross:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+u.width/2)+" "+n.startY+" M "+n.startX+" "+(n.startY+u.height/2)+" L "+n.startX+" "+(n.startY+-u.height/2);e={id:t.ID,opacity:t.Style.Opacity,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawHorizLine:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+u.width/2)+" "+n.startY;e={id:t.ID,opacity:t.Style.Opacity,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawVertLine:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+n.startX+" "+(n.startY+u.height/2)+" L "+n.startX+" "+(n.startY+-u.height/2);e={id:t.ID,opacity:t.Style.Opacity,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawTriangle:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+(n.startY+u.height/2)+" L "+n.startX+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawInvertedTriangle:function(n,t,i,r){var f=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,e="M "+(n.startX+u.width/2)+" "+(n.startY-u.height/2)+" L "+n.startX+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width/2)+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY-u.height/2)+" z";var h=n.startX,c=n.startY,o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:e};f.drawPath(o,r)},_drawHexagon:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+-u.width/4)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/4)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+n.startY+" L "+(n.startX+u.width/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+n.startY+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawWedge:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width)+" "+n.startY+" L "+(n.startX+u.width)+" "+(n.startY+-u.height/2)+" L "+(n.startX+3*(u.width/4))+" "+n.startY+" L "+(n.startX+u.width)+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width)+" "+n.startY+" z";e={"stroke-linecap":"miter","stroke-miterlimit":u.width/4,id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawPentagon:function(n,t,i,r){for(var l,a,v=i.svgRenderer,p=i.svgObject,u=t.ShapeSize,o=Math.sqrt(u.height*u.height+u.width*u.width)/2,f=ej.EjSvgRender.utils._getStringBuilder(),e=0;e<=5;e++){var y=e*72,s=Math.PI/180*y,h=o*Math.cos(s),c=o*Math.sin(s);e==0?f.append("M "+(n.startX+h)+" "+(n.startY+c)+" "):f.append("L "+(n.startX+h)+" "+(n.startY+c)+" ")}f.append("z");l=f.toString();a={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:l};v.drawPath(a,r)},_drawStar:function(n,t,i,r){var o=i.svgRenderer,u=t.ShapeSize,s=i.svgObject,f,e;f="M "+(n.startX+u.width/3)+" "+(n.startY+-u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/6)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/6)+" L "+(n.startX+-u.width/3)+" "+(n.startY+-u.height/2)+" L "+n.startX+" "+(n.startY+u.height/2)+" L "+(n.startX+u.width/3)+" "+(n.startY+-u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawRectangle:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawTrapezoid:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX+-u.width/2+u.width)+" "+(n.startY+-u.height/2)+" L "+(n.startX+-u.width/2+u.width)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX+-u.width/2)+" "+n.startY+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawDiamond:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+n.startX+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+n.startY+" L "+n.startX+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+n.startY+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawEllipse:function(n,t,i,r){var f=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,e=n.startX,o=n.startY,s={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,cx:e,cy:o,rx:u.width,ry:u.height/2};f.drawEllipse(s,r)},_drawImage:function(n,t,i,r){var f=i.svgRenderer,e=i.svgObject,u=t.ShapeSize,o=n.startX+-u.width/2,s=n.startY+-u.width/2,h=u.width,c=u.height,l={id:e.id+"_image"+t.PointIndex,height:c,width:h,href:t.Imageurl,x:o,y:s,visibility:"visible",lgndCtx:t.context};f.drawImage(l,r)},_drawStraightLine:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/10)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10),o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawLine:function(n,t,i,r){var o=i.svgRenderer,l=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,s;if(i.model.enableCanvasRendering===!0){e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/10)+" L "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" M "+(n.startX+Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10);var s={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},h="M "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" a "+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+2*Math.floor(u.width/3)+" 0 a"+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+-2*Math.floor(u.width/3)+" 0",c={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:h,lgndCtx:!0};o.drawPath(s,r);o.drawPath(c,r)}else e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/10)+" L "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" M "+(n.startX+Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10)+" M "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" a "+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+2*Math.floor(u.width/3)+" 0 a"+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+-2*Math.floor(u.width/3)+" 0",s={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},o.drawPath(s,r);return n.startX+-u.width/2+-f/4},_drawColumn:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX-3*(u.width/5))+" "+(n.startY-u.height/5)+" L "+(n.startX+3*(-u.width/10))+" "+(n.startY-u.height/5)+" L "+(n.startX+3*(-u.width/10))+" "+(n.startY+u.height/2)+" L "+(n.startX-3*(u.height/5))+" "+(n.startY+u.height/2)+" Z M "+(n.startX+-u.width/10-u.width/20)+" "+(n.startY-u.height/4-f/2)+" L "+(n.startX+u.width/10+u.width/20)+" "+(n.startY-u.height/4-f/2)+" L "+(n.startX+u.width/10+u.width/20)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/10-u.width/20)+" "+(n.startY+u.height/2)+" Z M "+(n.startX+3*(u.width/10))+" "+n.startY+" L "+(n.startX+3*(u.width/5))+" "+n.startY+" L "+(n.startX+3*(u.width/5))+" "+(n.startY+u.height/2)+" L "+(n.startX+3*(u.width/10))+" "+(n.startY+u.height/2)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX-3*(u.width/5)},_drawRangeColumn:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/5)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+-u.width/5)+" "+(n.startY-u.height/2-f/4)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2+-f/4)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2+f/4)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/5},_drawBar:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY-3*(u.height/5))+" L "+(n.startX+3*(u.width/10))+" "+(n.startY-3*(u.height/5))+" L "+(n.startX+3*(u.width/10))+" "+(n.startY-3*(u.height/10))+" L "+(n.startX-u.width/2+-f/4)+" "+(n.startY-3*(u.height/10))+" Z M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY-u.height/5+f/20)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY-u.height/5+f/20)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10+f/20)+" L "+(n.startX-u.width/2+-f/4)+" "+(n.startY+u.height/10+f/20)+" Z M "+(n.startX-u.width/2+-f/4)+" "+(n.startY+u.height/5+f/10)+" L "+(n.startX+-u.width/4)+" "+(n.startY+u.height/5+f/10)+" L "+(n.startX+-u.width/4)+" "+(n.startY+u.height/2+f/10)+" L "+(n.startX-u.width/2+-f/4)+" "+(n.startY+u.height/2+f/10)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawStepLine:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2-f/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2+u.width/10)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2+u.width/10)+" "+n.startY+" L "+(n.startX+-u.width/10)+" "+n.startY+" L "+(n.startX+-u.width/10)+" "+(n.startY+u.height/2)+" L "+(n.startX+u.width/5)+" "+(n.startY+u.height/2)+" L "+(n.startX+u.width/5)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2)+"L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" L"+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/2),o={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2-f/4},_drawSpline:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;return f="M "+(n.startX-u.width/2)+" "+(n.startY+u.height/5)+" Q "+n.startX+" "+(n.startY-u.height)+" "+n.startX+" "+(n.startY+u.height/5)+" M "+n.startX+" "+(n.startY+u.height/5)+" Q "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" "+(n.startX+u.width/2)+" "+(n.startY-u.height/2),e={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:f,lgndCtx:!0},o.drawPath(e,r),n.startX-u.width/2},_drawSplineArea:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;return f="M "+(n.startX-u.width/2)+" "+(n.startY+u.height/5)+" Q "+n.startX+" "+(n.startY-u.height)+" "+n.startX+" "+(n.startY+u.height/5)+" Z M "+n.startX+" "+(n.startY+u.height/5)+" Q "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" "+(n.startX+u.width/2)+" "+(n.startY-u.height/2)+" Z",e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:f,lgndCtx:!0},o.drawPath(e,r),n.startX-u.width/2},_drawArea:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX-u.width/2-f/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/4+-f/8)+" "+(n.startY-u.height/2)+" L "+n.startX+" "+(n.startY+u.height/4)+" L "+(n.startX+u.width/4+f/8)+" "+(n.startY+-u.height/2+u.height/4)+" L "+(n.startX+u.height/2+f/4)+" "+(n.startY+u.height/2)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX-u.width/2-f/4},_drawStepArea:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+-u.height/2)+" L "+(n.startX-u.width/4)+" "+(n.startY-u.height/2)+" L "+(n.startX-u.width/4)+" "+(n.startY-u.height/4)+" L "+(n.startX+u.width/4)+" "+(n.startY-u.height/4)+" L "+(n.startX+u.width/4)+" "+n.startX+" L "+(n.startX+u.width/2+f/4)+" "+n.startY+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/2)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawPyramid:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/2+f/8)+" L "+n.startX+" "+(n.startY+-u.height/2+-f/8)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/2+f/8)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawFunnel:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/5)+" "+(n.startY+-u.height/2+-f/4)+" L "+(n.startX+-u.width/5)+" "+(n.startY+u.height/4)+" L "+(n.startX+-u.width/5)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+u.width/5)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+u.width/5)+" "+(n.startY+u.height/4)+" L "+(n.startX+u.width/2+f/5)+" "+(n.startY+-u.height/2+-f/4)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/5},_drawCandle:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2)+" "+(n.startY+u.height/4+f/8)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/4+f/8)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2+f/8)+" L "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/2+f/8)+" Z M "+n.startX+" "+(n.startY+-u.height/2+f/8)+" L "+n.startX+" "+(n.startY+-u.height/2+-f/4)+" M "+n.startX+" "+(n.startY+u.height/4+f/8)+" L "+n.startX+" "+(n.startY+u.height/4+f/2),o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2},_drawHilo:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+u.width/2)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2+-f/4),o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+u.width/2},_drawHiloOpenClose:function(n,i,r,u){var h=r.svgRenderer,c=r.svgObject,f=i.ShapeSize,l=t(18,12,4.0710678118654755,270),e=i.ElementSpace,o,s;return o="M "+n.startX+" "+(n.startY-3*(f.height/10))+" L "+(n.startX-f.width/2-e/4)+" "+(n.startY-3*(f.height/10))+" M "+n.startX+" "+(n.startY-f.height/2-e/4)+" L "+n.startX+" "+(n.startY+f.height/2+e/4)+" M "+n.startX+" "+(n.startY+3*(f.height/10))+" L "+(n.startX+f.width/2+e/4)+" "+(n.startY+3*(f.height/10)),s={id:i.ID,fill:"transparent","stroke-width":i.Style.BorderWidth,stroke:i.Style.Color,opacity:i.Style.Opacity,visibility:i.Style.Visibility,d:o,lgndCtx:!0},h.drawPath(s,u),n.startX-f.width/2},_drawDoughnut:function(n,i,r,u){var o=r.svgRenderer,y=r.svgObject,e=i.ShapeSize,c=i.ElementSpace,f=Math.sqrt(e.height*e.width)/2;f=f+c/5;var s=t(n.startX,n.startY,f,270),h=t(n.startX+e.width/10,n.startY,f,270),c=i.ElementSpace,l="M "+n.startX+" "+n.startY+" L "+(n.startX+f)+" "+n.startY+" A "+f+" "+f+" 0 1 1 "+s[0]+" "+s[1]+" Z M "+(n.startX+e.width/10)+" "+(n.startY-e.height/10)+" L"+(n.startX+f)+" "+(n.startY-e.height/10)+" A "+f+" "+f+" 0 0 0 "+h[0]+" "+h[1]+" Z",a={id:i.ID,fill:i.Style.Color,"stroke-width":i.Style.BorderWidth,stroke:i.Style.BorderColor,opacity:i.Style.Opacity,visibility:i.Style.Visibility,d:l,lgndCtx:!0},v={id:i.ID,cx:n.startX,cy:n.startY,r:f/2,lgndCtx:!0,fill:"white","stroke-width":i.Style.BorderWidth,stroke:i.Style.BorderColor,opacity:i.Style.Opacity,visibility:i.Style.Visibility};return o.drawPath(a,u),o.drawCircle(v,u),n.startX-f},_drawPie:function(n,i,r,u){var h=r.svgRenderer,v=r.svgObject,e=i.ShapeSize,c=i.ElementSpace,f=Math.sqrt(e.height*e.width)/2;f=f+c/5;var o=t(n.startX,n.startY,f,270),s=t(n.startX+e.width/10,n.startY,f,270),c=i.ElementSpace,l="M "+n.startX+" "+n.startY+" L "+(n.startX+f)+" "+n.startY+" A "+f+" "+f+" 0 1 1 "+o[0]+" "+o[1]+" Z M "+(n.startX+e.width/10)+" "+(n.startY-e.height/10)+" L"+(n.startX+f)+" "+(n.startY-e.height/10)+" A "+f+" "+f+" 0 0 0 "+s[0]+" "+s[1]+" Z",a={id:i.ID,fill:i.Style.Color,"stroke-width":i.Style.BorderWidth,stroke:i.Style.BorderColor,opacity:i.Style.Opacity,visibility:i.Style.Visibility,d:l,lgndCtx:!0};return h.drawPath(a,u),n.startX-f}};ej.EjSvgRender.seriesPalette={defaultMetro:["#E94649","#F6B53F","#6FAAB0","#C4C24A","#FB954F","#005277","#8BC652","#69D2E7","#E27F2D","#6A4B82"],defaultHighContrast:["#F93A00","#44E2D6","#DDD10D","#0AA368","#0556CB","#AB40B2","#5F930A","#D12E41","#E0670E","#008FFF"],defaultOffice:["#005277","#8BC652","#6A4B82","#E94649","#6FAAB0","#F7B74F","#C4C24A","#EF863F","#69D2E7","#FFD13E"],defaultMaterial:["#663AB6","#EB3F79","#F8AB1D","#B82E3D","#049CB1","#F2424F","#C2C924","#3DA046","#074D67","#02A8F4"],defaultGradient:{borderColors:["#F34649","#F6D321","#6EB9B0","#CBC26A","#FBAF4F","#E2CDB1","#FFC0B7","#68E1E6","#E1A62D","#9C6EBF"],seriesColors:[[{color:"#F34649",colorStop:"0%"},{color:"#B74143",colorStop:"100%"}],[{color:"#F6D321",colorStop:"0%"},{color:"#F6AE26",colorStop:"100%"}],[{color:"#6EB9B0",colorStop:"0%"},{color:"#3F77BD",colorStop:"100%"}],[{color:"#CBC26A",colorStop:"0%"},{color:"#9AAD21",colorStop:"100%"}],[{color:"#FBAF4F",colorStop:"0%"},{color:"#F07542",colorStop:"100%"}],[{color:"#E2CDB1",colorStop:"0%"},{color:"#AAA089",colorStop:"100%"}],[{color:"#8BC652",colorStop:"0%"},{color:"#6F9E41",colorStop:"100%"}],[{color:"#68E1E6",colorStop:"0%"},{color:"#3D9CBE",colorStop:"100%"}],[{color:"#E1A62D",colorStop:"0%"},{color:"#B66824",colorStop:"100%"}],[{color:"#9C6EBF",colorStop:"0%"}],[{color:"#593F6D",colorStop:"100%"}]]},blueMetro:["#005378","#006691","#007EB5","#0D97D4","#00AEFF","#14B9FF","#54CCFF","#87DBFF","#ADE5FF","#C5EDFF"],blueGradient:{seriesColors:[[{color:"#005277",colorStop:"0%"},{color:"#00304F",colorStop:"100%"}],[{color:"#006590",colorStop:"0%"},{color:"#004068",colorStop:"100%"}],[{color:"#007DB4",colorStop:"0%"},{color:"#00558B",colorStop:"100%"}],[{color:"#0D97D4",colorStop:"0%"},{color:"#057FC7",colorStop:"100%"}],[{color:"#00ADFE",colorStop:"0%"},{color:"#008BE9",colorStop:"100%"}],[{color:"#14B8FE",colorStop:"0%"},{color:"#0798EB",colorStop:"100%"}],[{color:"#53CBFF",colorStop:"0%"},{color:"#35AFEB",colorStop:"100%"}],[{color:"#86DAFF",colorStop:"0%"},{color:"#64C0EC",colorStop:"100%"}],[{color:"#ACE5FF",colorStop:"0%"},{color:"#8DCEED",colorStop:"100%"}],[{color:"#C4ECFF",colorStop:"0%"}],[{color:"#A3D1E6",colorStop:"100%"}]],borderColors:["#005277","#006590","#007DB4","#0D97D4","#00ADFE","#14B8FE","#53CBFF","#86DAFF","#ACE5FF","#C4ECFF"]},greenMetro:["#496612","#597B15","#709A1B","#87B62A","#9AD926","#A6DC37","#BCE654","#C8E780","#D5EFA5","#E2F3BE"],greenGradient:{seriesColors:[[{color:"#5C7F16",colorStop:"0%"},{color:"#384C08",colorStop:"100%"}],[{color:"#6A9319",colorStop:"0%"},{color:"#486009",colorStop:"100%"}],[{color:"#739D1C",colorStop:"0%"},{color:"#57760B",colorStop:"100%"}],[{color:"#90B546",colorStop:"0%"},{color:"#6E9215",colorStop:"100%"}],[{color:"#9AD826",colorStop:"0%"},{color:"#75A010",colorStop:"100%"}],[{color:"#A5DB36",colorStop:"0%"},{color:"#8EB91D",colorStop:"100%"}],[{color:"#BBE554",colorStop:"0%"},{color:"#A4C849",colorStop:"100%"}],[{color:"#C8E780",colorStop:"0%"},{color:"#B4D072",colorStop:"100%"}],[{color:"#D4EEA5",colorStop:"0%"},{color:"#BFD593",colorStop:"100%"}],[{color:"#E1F2BD",colorStop:"0%"}],[{color:"#C8D7A8",colorStop:"100%"}]],borderColors:["#5C7F16","#6A9319","#739D1C","#90B546","#9AD826","#A5DB36","#BBE554","#C8E780","#D4EEA5","#E1F2BD"]},sandleMetro:["#6C450C","#82520D","#A36812","#C07F1F","#E69719","#E89A2B","#EEB564","#F3CB93","#F7DEB4","#F9E6CA"],sandleGradient:{seriesColors:[[{color:"#7F602F",colorStop:"0%"},{color:"#512D04",colorStop:"100%"}],[{color:"#986827",colorStop:"0%"},{color:"#673803",colorStop:"100%"}],[{color:"#A16C1F",colorStop:"0%"},{color:"#8A4B05",colorStop:"100%"}],[{color:"#BF812A",colorStop:"0%"},{color:"#AD630D",colorStop:"100%"}],[{color:"#E49519",colorStop:"0%"},{color:"#B86607",colorStop:"100%"}],[{color:"#E7992A",colorStop:"0%"},{color:"#D7780D",colorStop:"100%"}],[{color:"#EDB463",colorStop:"0%"},{color:"#D98F31",colorStop:"100%"}],[{color:"#F2CA92",colorStop:"0%"},{color:"#DAAC6F",colorStop:"100%"}],[{color:"#F6DDB3",colorStop:"0%"},{color:"#DABE8F",colorStop:"100%"}],[{color:"#F8E5C9",colorStop:"0%"}],[{color:"#DDBE92",colorStop:"100%"}]],borderColors:["#7F602F","#986827","#A16C1F","#BF812A","#E49519","#E7992A","#EDB463","#F2CA92","#F6DDB3","#F8E5C9"]}};ej.EjSvgRender.themes={flatlight:{highlightColor:"black",background:"transparent",legend:{font:{color:"#282828"},title:{font:{color:"#282828"}}},title:{font:{color:"#565656"},subTitle:{font:{color:"#565656"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",borderWidth:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#565656"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultMetro,colors:ej.EjSvgRender.seriesPalette.defaultMetro},flatdark:{highlightColor:"white",background:"#111111",legend:{font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}}},title:{font:{color:"#C9C9C9"},subTitle:{font:{color:"#C9C9C9"}}},primaryXAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryX:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},primaryYAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryY:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#C9C9C9"}}},errorBar:{fill:"#ffffff",cap:{fill:"#ffffff"}},connectorLine:{color:"#C9C9C9"}},crosshair:{line:{width:1,color:"White"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultMetro,colors:ej.EjSvgRender.seriesPalette.defaultMetro},gradientlight:{highlightColor:"black",background:"transparent",legend:{font:{color:"#282828"},title:{font:{color:"#282828"}}},title:{font:{color:"#565656"},subTitle:{font:{color:"#565656"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#565656"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.defaultGradient.seriesColors},gradientdark:{highlightColor:"white",background:"#111111",legend:{font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}}},title:{font:{color:"#C9C9C9"},subTitle:{font:{color:"#C9C9C9"}}},primaryXAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryX:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},primaryYAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryY:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#C9C9C9"}}},errorBar:{fill:"#ffffff",cap:{fill:"#ffffff"}},connectorLine:{color:"#C9C9C9"}},crosshair:{line:{width:1,color:"White"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.defaultGradient.seriesColors},highcontrast01:{highlightColor:"white",background:"#111111",legend:{font:{color:"#ffffff"},title:{font:{color:"#ffffff"}}},title:{font:{color:"#ffffff"},subTitle:{font:{color:"#ffffff"}}},primaryXAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#ffffff",axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryX:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},primaryYAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#ffffff",axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryY:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#ffffff"}}},errorBar:{fill:"#ffffff",cap:{fill:"#ffffff"}},connectorLine:{color:"#C9C9C9"}},crosshair:{line:{width:1,color:"White"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultHighContrast,colors:ej.EjSvgRender.seriesPalette.defaultHighContrast},material:{highlightColor:"black",background:"transparent",legend:{font:{color:"#333333"},title:{font:{color:"#333333"}}},title:{font:{color:"#333333"},subTitle:{font:{color:"#333333"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",borderWidth:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#333333"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultMaterial,colors:ej.EjSvgRender.seriesPalette.defaultMaterial},office365:{highlightColor:"black",background:"transparent",legend:{font:{color:"#333333"},title:{font:{color:"#333333"}}},title:{font:{color:"#333333"},subTitle:{font:{color:"#333333"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",borderWidth:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#333333"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultOffice,colors:ej.EjSvgRender.seriesPalette.defaultOffice}};n.extend(ej.EjSvgRender.themes,{azure:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueMetro,colors:ej.EjSvgRender.seriesPalette.blueMetro},azuredark:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueMetro,colors:ej.EjSvgRender.seriesPalette.blueMetro},"gradient-azure":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.blueGradient.seriesColors},"gradient-azuredark":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.blueGradient.seriesColors},lime:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenMetro,colors:ej.EjSvgRender.seriesPalette.greenMetro},limedark:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenMetro,colors:ej.EjSvgRender.seriesPalette.greenMetro},"gradient-lime":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.greenGradient.seriesColors},"gradient-limedark":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.greenGradient.seriesColors},saffron:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleMetro,colors:ej.EjSvgRender.seriesPalette.sandleMetro},saffrondark:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleMetro,colors:ej.EjSvgRender.seriesPalette.sandleMetro},"gradient-saffron":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.sandleGradient.seriesColors},"gradient-saffrondark":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.sandleGradient.seriesColors}})}(jQuery)}); diff --git a/vendors/scripts/ej/datavisualization/ej.chart.min.js b/vendors/scripts/ej/datavisualization/ej.chart.min.js index 4b5918a8..def2e1dd 100644 --- a/vendors/scripts/ej/datavisualization/ej.chart.min.js +++ b/vendors/scripts/ej/datavisualization/ej.chart.min.js @@ -1,10 +1,10 @@ /*! * filename: ej.chart.min.js -* version : 19.3.0.43 +* version : 19.3.0.53 * Copyright Syncfusion Inc. 2001 - 2021. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ -(function(n){typeof define=="function"&&define.amd?define(["./../common/ej.globalize.min","./../common/ej.core.min","./../common/ej.data.min","./../common/ej.scroller.min"],n):n()})(function(){ej.Ej3DRender=function(){},function(n){var r;ej.Ej3DRender.Polygons=[];ej.Ej3DRender.prototype={matrix3D:function(){},vector3D:function(){},BSPTreeBuilder:function(){},Graphics3D:function(){},polygon3D:function(){}};r=new ej.Ej3DRender;r.vector3D.prototype={x:"",y:"",z:"",Epsilon:1e-5,isValid:function(n){return!isNaN(n.x)&&!isNaN(n.y)&&!isNaN(n.z)},vector3D:function(n,t){this.x=n.x;this.y=n.y;this.z=t},vector3D:function(n,t,i){return this.x=n,this.y=t,this.z=i,{x:n,y:t,z:i}},vector3DMinus:function(n,t){return this.vector3D(n.x-t.x,n.y-t.y,n.z-t.z)},vector3DPlus:function(n,t){return this.vector3D(n.x+t.x,n.y+t.y,n.z+t.z)},vector3DMultiply:function(n,t){var i=n.y*t.z-t.y*n.z,r=n.z*t.x-t.z*n.x,u=n.x*t.y-t.x*n.y;return this.vector3D(i,r,u)},vector3dAND:function(n,t){return n.x*t.x+n.y*t.y+n.z*t.z},vector3DStarMultiply:function(n,t){var i=n.x*t,r=n.y*t,u=n.z*t;return this.vector3D(i,r,u)},getLength:function(n){var t=this.vector3dAND(n,n);return Math.sqrt(t)},normalize:function(){var n=this.getLength(),t,i,r;t/=n;i/=n;r/=n},getNormal:function(n,t,i){var f=this.vector3DMinus(n,t),e=this.vector3DMinus(i,t),u=this.vector3DMultiply(f,e),r=this.getLength(u);return r=t?r+1:r,e[r]=this.createArray(f),u=0;u=i?u+1:u,e[r][u]=n[o][s];return e},getDeterminant:function(n){var u=n.length,r=0,i,t,f;if(u<2)r=n[0][0];else for(i=1,t=0;t0?-1:1;return r},transform:function(n,t,i){var r=this.getIdentity();return r[3][0]=n,r[3][1]=t,r[3][2]=i,r},turn:function(n){var t=this.getIdentity();return t[0][0]=Math.cos(n),t[2][0]=-Math.sin(n),t[0][2]=Math.sin(n),t[2][2]=Math.cos(n),t},tilt:function(n){var t=this.getIdentity();return t[1][1]=Math.cos(n),t[2][1]=Math.sin(n),t[1][2]=-Math.sin(n),t[2][2]=Math.cos(n),t},transposed:function(n){for(var t,r=this.getIdentity(),i=0;in.Plane.D){if(n.Front!=null&&this.drawBspNode3D(n.Front,i,r,u),this.draw3DElement(n,u),n.Back!=null){n=n.Back;continue}}else if(n.Back!=null&&this.drawBspNode3D(n.Back,i,r,u),this.draw3DElement(n,u),n.Front!=null){n=n.Front;continue}break}}};r.BSPTreeBuilder.prototype={EPSILON:.0005,Polygon:[],add:function(n){return ej.Ej3DRender.Polygons.push(n),ej.Ej3DRender.Polygons.length-1},remove:function(n){ej.Ej3DRender.Polygons.splice(n,1)},clear:function(){ej.Ej3DRender.Polygons=[]},count:function(){return ej.Ej3DRender.Polygons.length},getNext:function(n,t){return n>=t?n-t:n<0?n+t:n},getNodeCount:function(n){return n==null?0:1+this.getNodeCount(n.Back)+this.getNodeCount(n.Front)},vector3DIndexClassification:function(n,t,i){return{index:t,result:i,vector:n,isCuttingBackPoint:!1,cuttingBackPairIndex:null,alreadyCuttedBack:!1,isCuttingFrontPoint:!1,cuttingFrontPairIndex:null,alreadyCuttedFront:!1}},classifyPoint:function(n,t){var i="OnPlane",u=-t.D-r.vector3D.prototype.vector3dAND(n,t.normal);return u>this.EPSILON?i="OnBack":u<-this.EPSILON&&(i="OnFront"),i},classifyPolygon:function(n,t){var i=t.Points,f,h,s;if(i==null)return"Unknown";var e=0,o=0,u=0,c=n.normal,l=n.D;for(f=0,h=i.length;fthis.EPSILON?e++:s<-this.EPSILON?o++:u++,e>0&&o>0)break;return u==i.length?"OnPlane":o+u==i.length?"ToRight":e+u==i.length?"ToLeft":"Unknown"},splitPolygon:function(i,r){var w=[],b=[],rt,v,e,k,ut,u,o,ft;if(i.Points!=null){var l=[],s=[],h=[],k,d,g=i.Points.length;for(u=0;u2&&(ut=f.polygon3D(k,i),w.push(n.extend({},ut))));for(u=0;u2&&(ft=f.polygon3D(d,i),b.push(n.extend({},ft))))}}else w.push(i),b.push(i);return{BackP:w,FrontP:b}},cutOutFrontPolygon:function(n,t){for(var r=[],i=t,s,u,f,e,o;;)if(i.alreadyCuttedFront=!0,r.push(i.vector),s=n[i.CuttingFrontPairIndex],i.CuttingFrontPoint)if(s.alreadyCuttedFront)if(u=n[this.getNext(i.index-1,n.length)],f=n[this.getNext(i.index+1,n.length)],u.result!="OnFront"||u.alreadyCuttedFront){if(f.result!="OnFront"||f.alreadyCuttedFront)return r;i=f}else i=u;else i=s;else if(e=n[this.getNext(i.index-1,n.length)],o=n[this.getNext(i.index+1,n.length)],e.result=="OnBack"||e.alreadyCuttedFront){if(o.result=="OnBack"||o.alreadyCuttedFront)return r;i=o}else i=e;return r},cutOutBackPolygon:function(n,t){for(var f=[],i=t,e,r,u;;)if(i.alreadyCuttedBack=!0,f.push(i.vector),e=n[i.CuttingBackPairIndex],i.CuttingBackPoint)if(e.alreadyCuttedBack)if(r=n[this.getNext(i.index-1,n.length)],u=n[this.getNext(i.index+1,n.length)],r.result!="OnBack"||r.alreadyCuttedBack){if(u.result!="OnBack"||u.alreadyCuttedBack)return f;i=u}else i=r;else i=e;else if(r=n[this.getNext(i.index-1,n.length)],u=n[this.getNext(i.index+1,n.length)],r.result=="OnFront"||r.alreadyCuttedBack){if(u.result=="OnFront"||u.alreadyCuttedBack)return f;i=u}else i=r;return f},build:function(){var f,e,o,i,s,h,c,n,l,t,r,u;if(arguments[0]){if(f=arguments[0],f.length<1)return null;for(e={Back:null,Front:null,Plane:null},o=f[0],e.Plane=o,i=[],s=[],h=1,c=f.length;h0&&(e.Back=this.build(i)),s.length>0&&(e.Front=this.build(s)),e}return this.build(ej.Ej3DRender.Polygons)}};r.polygon3D.prototype={epsilon:1e-5,normal:{x:0,y:0,z:0},vector:new(new ej.Ej3DRender).vector3D,polygon3D:function(n,t,i,r,u,f,e,o){var h,s;if(arguments.length==3)this.calcNormal(arguments[0],arguments[1],arguments[2]);else return arguments.length==2?(n=arguments[0],this.calcNormal(n[0],n[1],n[2]),this.vectorPoints=n,this.calcNormal(this.vectorPoints),s=arguments[1],s.Normal=this.normal,s.normal=this.normal,s.Points=n,s.VectorPoints=this.vectorPoints,s.IsSplitted=!0,s.d=this.d,s.D=this.d,s):(this.calcNormal(n[0],n[1],n[2]),this.vectorPoints=n,this.calcNormal(this.vectorPoints),h={Tag:"path",Parent:arguments[arguments.length-1]},s={Normal:this.normal,normal:this.normal,Points:n,VectorPoints:this.vectorPoints,Index:i,Tag:t,Name:o?o:null,StrokeThickness:u,Opacity:f,Fill:e,d:this.d,D:this.d},arguments.length!=1&&(s.Element=h),s)},createLine:function(n,i,r,u,f,e){var s=n.width,o=[];return o[0]=t.vector3D(i,r,e),o[1]=t.vector3D(i+s,f+s,e),o[2]=t.vector3D(u,f,e),this.line3D(n,o)},createPolyline:function(n,i){if(n.length==2){var r=n[1];n.push(t.vector3D(r.x,r.y,r.z))}return this.polyLine3D(i,n)},polyLine3D:function(n,t){var i=this.polygon3D(t);return i.element=n,i},line3D:function(n,t){var i=this.polygon3D(t);return i.element=n,i},text3D:function(n,t){var i=this.polygon3D(t);return i.element=n,i},createCylinder:function(n,r,u,f,e,o,s,h,c,l,a,v){var y=0,rt,ut,k,d,b=24,g=360/b,nt=Math.PI/180,ft=parseFloat((n.z+r.z)/2),w=[],p=[],tt=[],it=[],et=r.y-n.y0&&(d=[t.vector3D(n.x,p[y-1].Y,p[y-1].Z),t.vector3D(r.x,p[y-1].Y,p[y-1].Z),t.vector3D(r.x,p[y].Y,p[y].Z),t.vector3D(n.x,p[y].Y,p[y].Z)],w[y+1]=this.polygon3D(d,u,f,s,0,c,s,"_"+(y+1).toString()+"_"+a,v),i.addVisual(w[y+1])),y++;break;case"column":case"stackingcolumn":case"stackingcolumn100":for(b++;b--;)rt=parseFloat(st+ot*Math.cos(y*g*nt)),k=parseFloat(ft+ot*Math.sin(y*g*nt)),p[y]={X:rt,Z:k},tt.push(t.vector3D(p[y].X,n.y,p[y].Z)),it.push(t.vector3D(p[y].X,r.y,p[y].Z)),y>0&&(d=[t.vector3D(p[y-1].X,n.y,p[y-1].Z),t.vector3D(p[y-1].X,r.y,p[y-1].Z),t.vector3D(p[y].X,r.y,p[y].Z),t.vector3D(p[y].X,n.y,p[y].Z)],w[y+1]=this.polygon3D(d,u,f,s,0,c,s,"_"+(y+1).toString()+"_"+a,v),i.addVisual(w[y+1])),y++}return w[0]=this.polygon3D(it,u,f,o,0,c,s,"_0_"+a,v),w[1]=this.polygon3D(tt,u,f,o,h,c,s,"_1_"+a,v),i.addVisual(w[0]),i.addVisual(w[1]),w},createBox:function(n,r,u,f,e,o,s,h,c,l,a,v){var y=[],p=[t.vector3D(n.x,n.y,n.z),t.vector3D(r.x,n.y,n.z),t.vector3D(r.x,r.y,n.z),t.vector3D(n.x,r.y,n.z)],w=[t.vector3D(n.x,n.y,r.z),t.vector3D(r.x,n.y,r.z),t.vector3D(r.x,r.y,r.z),t.vector3D(n.x,r.y,r.z)],b=[t.vector3D(n.x,n.y,r.z),t.vector3D(r.x,n.y,r.z),t.vector3D(r.x,n.y,n.z),t.vector3D(n.x,n.y,n.z)],k=[t.vector3D(n.x,r.y,r.z),t.vector3D(r.x,r.y,r.z),t.vector3D(r.x,r.y,n.z),t.vector3D(n.x,r.y,n.z)],d=[t.vector3D(n.x,n.y,n.z),t.vector3D(n.x,n.y,r.z),t.vector3D(n.x,r.y,r.z),t.vector3D(n.x,r.y,n.z)],g=[t.vector3D(r.x,n.y,n.z),t.vector3D(r.x,n.y,r.z),t.vector3D(r.x,r.y,r.z),t.vector3D(r.x,r.y,n.z)],v;return arguments[10]?(y[0]=this.polygon3D(p,u,f,o,h,c,s,"_0_"+a,v),y[1]=this.polygon3D(w,u,f,o,h,c,s,"_1_"+a,v),y[2]=this.polygon3D(b,u,f,o,h,c,s,"_2_"+a,v),y[3]=this.polygon3D(k,u,f,o,h,c,s,"_3_"+a,v),y[4]=this.polygon3D(d,u,f,o,h,c,s,"_4_"+a,v),y[5]=this.polygon3D(g,u,f,o,h,c,s,"_5_"+a,v)):(v=arguments[arguments.length-1],y[0]=this.polygon3D(p,u,f,o,h,c,s,"_0_"+f,v),y[1]=this.polygon3D(w,u,f,o,h,c,s,"_1_"+f,v),y[2]=this.polygon3D(b,u,f,o,h,c,s,"_2_"+f,v),y[3]=this.polygon3D(k,u,f,o,h,c,s,"_3_"+f,v),y[4]=this.polygon3D(d,u,f,o,h,c,s,"_4_"+f,v),y[5]=this.polygon3D(g,u,f,o,h,c,s,"_5_"+f,v)),l?(i.addVisual(y[0]),i.addVisual(y[1]),i.addVisual(y[2]),i.addVisual(y[3]),i.addVisual(y[4]),i.addVisual(y[5])):(i.addVisual(y[5]),i.addVisual(y[4]),i.addVisual(y[0]),i.addVisual(y[1]),i.addVisual(y[2]),i.addVisual(y[3])),y},calcNormal:function(){var n,r;if(arguments.length>=3){var u=arguments[0],e=arguments[1],o=arguments[2],s=t.vector3DMinus(u,e),h=t.vector3DMinus(o,e),f=t.vector3DMultiply(s,h),i=t.getLength(f);i0&&(c=n(r.chartObj.chart3D).find("#"+r.chartObj.svgObject.id+"_"+i.Name)[0],r.chartObj.svgRenderer._setAttr(n(c),{d:h}))}}};var r=new ej.Ej3DRender,t=new r.vector3D,u=new r.matrix3D,e=new r.BSPTreeBuilder,f=new r.polygon3D,i=new r.Graphics3D}(jQuery);ej.Ej3DAxisRenderer=function(){};ej.Ej3DSeriesRender=function(){};ej.Ej3DChart=function(){};ej.series3DTypes={},function(n){ej.Ej3DAxisRenderer.prototype={_drawAxes:function(n,t,i){t.majorGridLines.visible&&this._drawGridLines3D(t,i);t.visible&&t.majorTickLines.visible&&this._renderTicks3D(t,t.majorTickLines.size,t.majorTickLines.width,i);t.visible&&(this._drawAxisLabel(t,i),this._drawMultiLevelLabel(n,t,i),this._drawAxisTitle(t))},_drawAxisTitle:function(t){var i,tt,a,v,e,u,o,s;if(t.title.visible){i=t.title.font;this.gAxisTitleEle=this.svgRenderer.createGroup({id:this.svgObject.id+"axisTitle_"+t.name});var h=t._opposed,b={Width:n(this.svgObject).width(),Height:n(this.svgObject).height()},k=10,f=ej.EjSvgRender.chartTransform3D.transform3D(b);f.mViewport=b;f.Rotation=0;f.Tilt=0;f.Depth=100;f.PerspectiveAngle=90;ej.EjSvgRender.chartTransform3D.transform(f);var d=ej.EjSvgRender.chartTransform3D.result,g=ej.Ej3DRender.prototype.matrix3D.prototype,nt=t.orientation.toLowerCase(),y=!1,c,l;for(a=0;a0){for(b=this.svgObject.id+"_"+i.name+"MultiLevelLabelsBorder_"+t+"_"+rt,wt=h-f+i.multiLevelLabelHeight[l]+f/2,bi=e.border.color?e.border.color:i.multiLevelLabelsColor,at=="horizontal"?(ii={x1:o,y1:h-f,x2:s,y2:h-f},ri={x1:o,y1:wt,x2:s,y2:wt},ui={x1:o,y1:h-f,x2:o,y2:wt},fi={x1:s,y1:h-f,x2:s,y2:wt}):(a=i.multiLevelLabelHeight[l]-f/2,ii={x1:u-a/2-f/2,y1:s,x2:u+a/2+f/2,y2:s},ri={x1:u-a/2-f/2,y1:o,x2:u+a/2+f/2,y2:o},ui={x1:u-a/2-f/2,y1:s,x2:u-a/2-f/2,y2:o},fi={x1:u+a/2+f/2,y1:s,x2:u+a/2+f/2,y2:o}),ti=0;ti<4;ti++){switch(ti){case 0:lt=b+"_top";nt=ii;break;case 1:lt=b+"_bottom";nt=ri;break;case 2:lt=b+"_left";nt=ui;break;case 3:lt=b+"_right";nt=fi}ni[0]=ej.Ej3DRender.prototype.vector3D.prototype.vector3D(nt.x1,nt.y1,ci);ni[1]=ej.Ej3DRender.prototype.vector3D.prototype.vector3D(nt.x2,nt.y2,ci);ei=ej.EjSvgRender.chartTransform3D.toScreen(ni[0],p,vt,yt);oi=ej.EjSvgRender.chartTransform3D.toScreen(ni[1],p,vt,yt);v={id:lt,x1:ei.x,y1:ei.y,x2:oi.x,y2:oi.y,stroke:bi,"stroke-width":ht};this.svgRenderer.drawLine(v,this.gMultiLevelEle)}this.svgRenderer.append(this.gMultiLevelEle,this.svgObject)}}},_textTrim:function(n,t,i){var e=t.length,f,u,o=ej.EjSvgRender.utils._measureText(t,this.model.m_AreaBounds.Width,i),r;if(o.width>n){for(r=e-1;r>=0;--r)if(u=t.substring(0,r)+"...",f=ej.EjSvgRender.utils._measureText(u,this.model.m_AreaBounds.Width,i),f.width<=n)return u}else return t},_textWrap:function(n,t,i){for(var o=t.toString().split(" "),r="",f=[],s=o.length,u="",e=0;en-5?(e.push(f),u=r++):r===o&&e.push(f);return e},_multipleRows:function(n,t,i,r){for(var u,e,o,s=[],h,f=n-1;f>=0;f--)u=r.visibleLabels[f],o=ej.EjSvgRender.utils._measureText(u.Text,this.model.m_AreaBounds.Width,r.font),e=ej.EjSvgRender.utils._valueToCoefficient(r,f)*r.width+r.x,h=tu.index?i.index:u.index+1):i.index=s.indexOf(u.index)>-1?i.index:u.index},_drawAxisLabel:function(n,t){for(var w,e,f,v,r,y,o=[],l=null,g=n.visibleLabels.length,a=this.model.m_AreaBounds,c=n._opposed,b,k=t.axes[n.name]._validCross,d=k?n.y:a.Y+(!c&&a.Height),nt=k?n.x:a.X+(c&&a.Width),i=0;in.x+n.width&&i===n.visibleLabels.length-1)&&n.labelIntersectAction!="trim"&&n.labelIntersectAction.indexOf("wrap")<0)if(n.edgeLabelPlacement==="hide")continue;else n.edgeLabelPlacement==="shift"&&(i==0?r.x=s=n.x+r.size.width/2:i==n.visibleLabels.length-1&&(r.x=s=n.x+n.width-r.size.width/2));if(n.orientation.toLowerCase()=="horizontal")if(n.labelRotation)l=n.labelRotation,y=ej.EjSvgRender.utils.rotatedLabel(n,this,n.labelRotation,n.visibleLabels[i].Text,!0),u+=y.height/2;else if(n.labelIntersectAction=="trim")n.visibleLabels[i].Text=this._textTrim(v,n.visibleLabels[i].Text,n.font);else if(n.labelIntersectAction=="wrapByWord")n.visibleLabels[i].Text=this._textWrap(v,n.visibleLabels[i].Text,n.font);else if(n.labelIntersectAction=="wrap")n.visibleLabels[i].Text=this._textWrapByLength(v,n.visibleLabels[i].Text,n.font);else if(n.labelIntersectAction=="rotate45"||n.labelIntersectAction=="rotate90")l=n.labelIntersectAction.indexOf("45")>-1?45:90,y=ej.EjSvgRender.utils.rotatedLabel(n,this,l,n.visibleLabels[i].Text,!0),u+=y.height/2;else if(n.labelIntersectAction==="multipleRows")p=r.x,p-=e.width/2,this._multipleRows(i,p,n.visibleLabels[i],n),u=n.visibleLabels[i].index?u+n.visibleLabels[i].index*(e.height+5):u;else if(n.labelIntersectAction==="hide"){if(h=h?h:0,i!=0&&o[h].x+o[h].size.width/2>=o[i].x-o[i].size.width/2)continue;h=i}b={Width:e.width,Height:e.height,Label:n.visibleLabels[i],TextAnchor:w,tag:"text",font:n.font,id:this.svgObject.id+n.orientation+i,child:this.chart3D,Angle:l};this.graphics.addVisual(this.polygon.createTextElement(this.vector.vector3D(s,u,0),b,10,10))}},_renderTicks3D:function(n,t,i,r){for(var s,f,o,y=n.visibleLabels.length,p,h=this.model.m_AreaBounds,w=n.y,e=0;e0&&e2?this.model.depth-2:1,nt=d?t.y:this.model.m_AreaBounds.Y+(!k&&this.model.m_AreaBounds.Height),f={opacity:t.majorGridLines.opacity,width:t.majorGridLines.width,stroke:t.majorGridLines.color,child:this.chart3D,tag:"line"};if(f.id=this.svgObject.id+t.name+"_gridlines_"+u,this.graphics.addVisual(this.polygon.createLine(f,l,o,e,s,a)),v=n.extend({},f),v.id=this.svgObject.id+t.name+"_parallelGridlines_"+u,h=this.polygon.createLine(v,e,0,e,-a,nt),this.polygon.transform(this.matrixobj.tilt(parseFloat(Math.PI/2)),h),this.graphics.addVisual(h),t.minorGridLines.visible&&t.minorTicksPerInterval>0&&u2?this.model.depth-2:1,f={opacity:t.majorGridLines.opacity,width:t.majorGridLines.width,stroke:t.majorGridLines.color,axisName:t.name,child:this.chart3D,tag:"line"},f.id=this.svgObject.id+t.name+"_gridlines_"+u,this.graphics.addVisual(this.polygon.createLine(f,l,o,e,s,a)),b=d?t.x:this.model.m_AreaBounds.X+(k&&this.model.m_AreaBounds.Width+1),y=n.extend({},f),y.id=this.svgObject.id+t.name+"_parallelGridlines_"+u,h=this.polygon.createLine(y,-a,s,0,s,b),this.polygon.transform(this.matrixobj.turn(parseFloat(-Math.PI/2)),h),this.graphics.addVisual(h),t.minorGridLines.visible&&t.minorTicksPerInterval>0&&u90&&t<270)^(i>90&&i<270)?!0:!1},createSector:function(n,t,i,r){var o=parseInt(Math.ceil(n.ActualEndValue/6)),v=Math.PI/180,s=0,rt=[],h=t.chartObj.model.depth,k,d,tt,it,g,p,nt,l,a,u,w,b;if(o<1)return null;var c=[],y=n.ActualEndValue/o,f=[],e=[];for(u=0;u0){for(nt=[],u=0;u0)for(u=o;u>-1;u--)l.push(t.chartObj.vector.vector3D(e[u].X,e[u].Y,0)),a.push(t.chartObj.vector.vector3D(e[u].X,e[u].Y,h));else l.push(n.Center),a.push(t.chartObj.vector.vector3D(n.Center.x,n.Center.y,h));return c[0]=[],c[0].push(t.chartObj.polygon.polygon3D(l,this,n.index,i.borderColor,i.borderWidth,i.opacity,i.interior,s.toString()+"_Region_Series_"+r+"_Point_"+n.index,t.chartObj.chart3D)),s++,c[0].push(t.chartObj.polygon.polygon3D(a,this,n.index,i.borderColor,i.borderWidth,i.opacity,i.interior,s.toString()+"_Region_Series_"+r+"_Point_"+n.index,t.chartObj.chart3D)),s++,n.inSideRadius>0?(w=[t.chartObj.vector.vector3D(f[0].X,f[0].Y,0),t.chartObj.vector.vector3D(f[0].X,f[0].Y,h),t.chartObj.vector.vector3D(e[0].X,e[0].Y,h),t.chartObj.vector.vector3D(e[0].X,e[0].Y,0)],b=[t.chartObj.vector.vector3D(f[o].X,f[o].Y,0),t.chartObj.vector.vector3D(f[o].X,f[o].Y,h),t.chartObj.vector.vector3D(e[o].X,e[o].Y,h),t.chartObj.vector.vector3D(e[o].X,e[o].Y,0)],c[2]=[],c[2].push(t.chartObj.polygon.polygon3D(w,this,n.index,i.borderColor,i.borderWidth,i.opacity,i.interior,s.toString()+"_Region_Series_"+r+"_Point_"+n.index,t.chartObj.chart3D)),s++,c[2].push(t.chartObj.polygon.polygon3D(b,this,n.index,i.borderColor,i.borderWidth,i.opacity,i.interior,s.toString()+"_Region_Series_"+r+"_Point_"+n.index,t.chartObj.chart3D)),s++):(w=[t.chartObj.vector.vector3D(f[0].X,f[0].Y,0),t.chartObj.vector.vector3D(f[0].X,f[0].Y,h),t.chartObj.vector.vector3D(n.Center.x,n.Center.y,h),t.chartObj.vector.vector3D(n.Center.x,n.Center.y,0)],b=[t.chartObj.vector.vector3D(f[o].X,f[o].Y,0),t.chartObj.vector.vector3D(f[o].X,f[o].Y,h),t.chartObj.vector.vector3D(n.Center.x,n.Center.y,h),t.chartObj.vector.vector3D(n.Center.x,n.Center.y,0)],c[2]=[],c[2].push(t.chartObj.polygon.polygon3D(w,this,n.index,i.borderColor,i.borderWidth,i.opacity,i.interior,s.toString()+"_Region_Series_"+r+"_Point_"+n.index,t.chartObj.chart3D)),s++,c[2].push(t.chartObj.polygon.polygon3D(b,this,n.index,i.borderColor,i.borderWidth,i.opacity,i.interior,s.toString()+"_Region_Series_"+r+"_Point_"+n.index,t.chartObj.chart3D)),s++),c},createPolygons:function(t,i,r){var s,f=[],a,v,h,y,e,p=n.inArray(t,i.chartObj.model._visibleSeries),o,c,u,l;for(s=t.segments&&r?t.segments:this.createPoints(t,i),y=s.length,o=0;o-1?h=l.replace("{value}",r.y):l.indexOf("e")==0||l.indexOf("E")==0?(a=l.match(/(\d+)/g),a=a==null?6:a>rt?rt:a,h=r.y.toExponential(a)):h=ej.globalize.format(r.y,l,this.chartObj.model.locale));var g=0,f=n.extend({},ej.EjSvgRender.commonChartEventArgs),c=ej.EjSvgRender.utils._measureText(h,null,t.marker.dataLabel.font),u=ej.EjSvgRender.utils.Transform3DToVisible(t,r.symbolLocation.x,r.symbolLocation.y,this.chartObj),s=t.marker.dataLabel.connectorLine.height?t.marker.dataLabel.connectorLine.height:0,b=6.28*(1-90/360),o=u.Y,e=u.X;this.chartObj.model.requireInvertedAxes?(e=r.x>0?u.X-Math.sin(b)*s:u.X+Math.sin(b)*s,g=-c.height/3):o=r.y>0?u.Y+Math.sin(b)*s:u.Y+Math.sin(-b)*s;o=t.marker.dataLabel.textPosition=="bottom"?u.Y+v:u.Y-v;e=u.X+d;f.data={text:h,location:{x:e,y:o},series:t,pointIndex:i};f.data.Text=f.data.text;this.chartObj._trigger("displayTextRendering",f);e=f.data.location.x;o=f.data.location.y}ut=this._getSegmentDepth(t);t.marker.dataLabel.shape.toLowerCase()=="none"||r.marker.dataLabel.template||f.data.Text==""||(y={tag:"dataLabel",series:t,point:r,pointIndex:i,id:this.chartObj.svgObject.id+w+"_DataLabel"+i,child:this.chartObj.chart3D},this.chartObj.graphics.addVisual(this.chartObj.polygon.createTextElement(this.chartObj.vector.vector3D(e,o,r.symbolLocation.z?r.symbolLocation.z:0),y,0,-c.height)));nt=r.marker.dataLabel.template?"template":"text";y={Width:c.width,Height:c.height,Label:f.data,TextAnchor:"middle",tag:nt,font:t.marker.dataLabel.font,Angle:t.marker.dataLabel.angle,id:this.chartObj.svgObject.id+"_SeriesText"+i+w,child:this.chartObj.chart3D};this.chartObj.model.AreaType!="none"?(t.marker.dataLabel.connectorLine.height&&t.marker.dataLabel.connectorLine.height>0&&(k=[],k.push({x:u.X,y:u.Y+g,z:r.symbolLocation.z}),k.push({x:e,y:o+g,z:r.symbolLocation.z}),this.drawLineSegment(k,i,t)),this.chartObj.graphics.addVisual(this.chartObj.polygon.createTextElement(this.chartObj.vector.vector3D(e,o,r.symbolLocation.z),y,0,-c.height))):(t.labelPosition.toLowerCase()!="inside"&&this.updateConnectorLine(r,i,t,u,s),ft={x:t.actualWidth,y:t.actualHeight},this.chartObj.graphics.addVisual(this.chartObj.polygon.createTextElement(this.chartObj.vector.vector3D(u.X,u.Y,-1),y,0,-c.height)))},updateConnectorLine:function(n,t,i,r,u){var e=[],f=n.symbolLocation,o=f.center.x+Math.cos(f.angle)*f.radius,s=f.center.y+Math.sin(f.angle)*f.radius,h;e.push({x:o,y:s});h=f.radius+u;o=f.center.x+Math.cos(f.angle)*h;s=f.center.y+Math.sin(f.angle)*h;e.push({x:o,y:s});i.marker.dataLabel.connectorLine.type=="bezier"&&(e=this.getBezierApproximation(e,256,i));this.drawLineSegment(e,t,i)},getBezierApproximation:function(n,t,i){for(var f,u=[],r=0;r<=t;r++)f=r/t,u.push(this.GetBezierPoint(f,n,0,n.length,i));return u},drawLineSegment:function(t,i,r){for(var f=[],u=0;u1){for(f=u;f=o&&w<=s||b>=o&&b<=s){d=i.Top<0?i.Top>e?i.Top:e:t.yAxis.valueType&&t.yAxis.valueType.toLowerCase()=="logarithmic"?i.Top:i.Topo?i.Left:o,d,u.chartObj),c=ej.EjSvgRender.utils.Transform3DToVisible(t,s>i.Right?i.Right:s,e>i.Bottom?e:i.Bottom,u.chartObj),g=u.chartObj.vector.vector3D(Math.min(h.X,c.X),Math.min(h.Y,c.Y),i.StartDepth),nt=u.chartObj.vector.vector3D(Math.max(h.X,c.X),Math.max(h.Y,c.Y),i.EndDepth),f=u.chartObj.setStyle(u,t,l,r);f.interior.indexOf("url")>=0&&(f.interior=u.chartObj.model.seriesColors[l][0].color);a="Region_Series_"+l+"_Point_"+r;t.columnFacet=="cylinder"?u.chartObj.polygon.createCylinder(g,nt,this,r,t.type,f.borderColor,f.interior,f.borderWidth,f.opacity,u.chartObj.model.requireInvertedAxes,a,u.chartObj.chart3D):t.columnFacet=="rectangle"&&u.chartObj.polygon.createBox(g,nt,this,r,t.type,f.borderColor,f.interior,f.borderWidth,f.opacity,u.chartObj.model.requireInvertedAxes,a,u.chartObj.chart3D)}},_setData:function(){var t=arguments,n=arguments[arguments.length-1],i=arguments[arguments.length-2];n.Left=t[0];n.Bottom=t[3];n.Top=t[1];n.Right=t[2];n.StartDepth=t[4];n.EndDepth=t[5];n.XRange=i.getDoubleRange(n.Left,n.Right);isNaN(n.Top)||isNaN(n.Bottom)||(n.YRange=i.getDoubleRange(n.Top,n.Bottom))},createSegments:function(n,t,i){var e=t.chartObj._getXValues(n._visiblePoints),a=t.chartObj._getYValues(n._visiblePoints),r;if(e!=null){var s=t.getSideBySideInfo(n,i),f=t._getSegmentDepth(n),v=t.chartObj._getXCrossValue(n,n.xAxis,i),h=s.Delta/2,u=n._visiblePoints,y,p;for(r=0;r0?(t.d=this.changePathValue(t.d),this.applyVMLStyle(n("#"+t.id),t)):(t.d=this.changePathValue(t.d),o=document.createElement("v:shape"),u=n(o),this.applyVMLStyle(u,t),u.appendTo(i))},createLegendSvg:function(n){var t=document;return this._rootId=jQuery(n).attr("id"),this.legendsvgObj=t.createElement("div"),this.legendsvgObj.style.position="relative",this.legendsvgObj.setAttribute("id","legend_"+this._rootId+"_vml"),this.legendsvgObj},drawPolyline:function(t,i){var f=t.points.split(" "),u,r;n("#"+t.id).length>0?(t.points=this.changePathValue(t.points),this.applyVMLStyle(n("#"+t.id),t)):(t.points=this.changePathValue(t.points),u=document.createElement("v:polyline"),r=n(u),this.applyVMLStyle(r,t),r.appendTo(i))},setFillAttribute:function(t,i){var r=document.createElement("v:fill"),f=i["fill-opacity"]?i["fill-opacity"]:i.opacity,u,e;f=ej.util.isNullOrUndefined(f)?i.opacity?i.opacity:1:f;u=i.fill;u=="none"||ej.util.isNullOrUndefined(u)?u=="none"?(r.setAttribute("type","gradient"),r.setAttribute("color",i.color),r.setAttribute("color2",i.color2),r.setAttribute("colors",i.colors),r.setAttribute("angle",i.angle),f=i.fill_opacity):f=.1:u.match("gradient")?(e=u.replace("gradient",""),r.setAttribute("type","gradient"),r.setAttribute("colors",e)):n(t).attr("fillcolor",u);r.setAttribute("opacity",f);n(r).appendTo(t)},setStrokeAttribute:function(t,i){var f=i.stroke,r,u;f=="transparent"&&(i.opacity=.1);i.name&&n(t).attr("name",i.name);r=i.opacity;r&&(u=document.createElement("v:stroke"),u.setAttribute("opacity",r),n(u).appendTo(t))},changePathValue:function(n){var t,i,r;if(!n.d){for(t=n.split(" "),i=0;i0)r=t.x1+","+t.y1,u=t.x2+","+t.y2,n(t).attr("from",r).attr("to",u),this.applyVMLStyle(n("#"+t.id),t);else{var e=document.createElement("v:line"),f=n(e),r=t.x1+","+t.y1,u=t.x2+","+t.y2;f.attr("from",r).attr("to",u);this.applyVMLStyle(f,t);f.appendTo(i)}},drawCircle:function(t,i){if(n("#"+t.id).length>0)t.x=t.cx-t.r,t.y=t.cy-t.r,t.width=t.height=2*t.r,this.applyVMLStyle(n("#"+t.id),t);else{var u=document.createElement("v:oval"),r=n(u);t.x=t.cx-t.r;t.y=t.cy-t.r;t.width=t.height=2*t.r;this.applyVMLStyle(r,t);n("#"+t.id).length==0&&r.appendTo(i)}},drawEllipse:function(t,i){if(n("#"+t.id).length>0)t.x=t.cx-t.rx,t.y=t.cy-t.ry,t.width=2*t.rx,t.height=2*t.ry,this.applyVMLStyle(n("#"+t.id),t);else{var u=document.createElement("v:oval"),r=n(u);t.x=t.cx-t.rx;t.y=t.cy-t.ry;t.width=2*t.rx;t.height=2*t.ry;this.applyVMLStyle(r,t);r.appendTo(i)}},drawRect:function(t,i){if(n("#"+t.id).length>0)this.applyVMLStyle(n("#"+t.id),t);else{var u=document.createElement("v:rect"),r=n(u);this.applyVMLStyle(r,t);r.appendTo(i)}},drawCylinder:function(t,i,r){var a=t.x,v=t.y,d=t.width,wt=t.height,bt=t.id,s,f,e,h,g,c,nt,tt,it,rt,ut,ft,y,p,w,et,ot,b,k,st,ht,ct,lt,at,vt,yt,l=t.fill,ti=ej.EjSvgRender.prototype.checkColorFormat(l),u,ni,pt;ti||(l=ej.datavisualization.Chart.prototype.colorNameToHex(t.fill));var ii=t.opacity,kt={svgRenderer:ej.EjSvgRender.prototype},dt=ej.Ej3DRender.prototype.polygon3D.prototype.applyZLight(l,kt),gt=ej.Ej3DRender.prototype.polygon3D.prototype.applyXLight(l,kt),o=65535;for(r.isColumn==!0?(t.rx=f=d/2,t.ry=e=f/4,h=g=a+f,tt=c=v-e,ft=k=y=v+wt-e,it=h+f,nt=ut=b=h-f,at=-Math.round(o*180),vt=Math.round(o*180),et=Math.round(o*360),ot=-Math.round(o*180),yt="90",r.stacking==!0&&(r.isLastSeries||(c=v+e)),rt=c):(t.ry=e=wt/2,t.rx=f=e/4,it=nt=g=a+f,b=h=a+d+f,at=Math.round(o*90),vt=Math.round(o*180),et=Math.round(o*270),ot=-Math.round(o*180),y=c=v+e,k=rt=c+e,tt=ft=y-e,yt="0",r.stacking==!0&&(r.isLastSeries||(h=a+d-f)),ut=h),delete t.x,delete t.y,t.width=1e3,t.x=0,t.y=0,delete t.stacking,t.height=1e3,delete t.isColumn,t.fill=dt,t.fill_opacity=ii,t.stroke=dt,t["stroke-width"]=0,u=1;u<=4;u++)u%2==0?(st=g,ht=c,ct=ut,lt=ft,p=et,w=ot):(st=h,ht=y,ct=it,lt=rt,p=at,w=vt),u<3&&(p=o,w=23592600),u<4&&(s=["M",Math.round(b),Math.round(k)]),s.push("ae",Math.round(st),Math.round(ht),Math.round(f),Math.round(e),p,w),u>2&&(s.push("l",Math.round(ct),Math.round(lt)),t.fill="none",t.color=l,t.color2=l,t.colors="30% "+gt+",70% "+gt,t.angle=yt),u!=3&&(s.push("e"),s=s.join(" "),t.d=s,t.id=bt+"_Region_"+(u-1).toString(),u==4&&(t.id=bt+"_Region_"+(u-2).toString()),ni=document.createElement("v:shape"),pt=n(ni),this.applyVMLStyle(pt,t),pt.appendTo(i)),b=nt,k=tt},_getAttrVal:function(t,i,r){i=i=="x"?"left":i;i=i=="y"?"top":i;var u=n(t).attr(i),f=u?u:n(t).css(i);return f!=null?f:r},_setAttr:function(t,i){var r,u,f;i.transform&&(r=i.transform,u=r.slice(r.indexOf("(")+1,r.indexOf(")")).split(","),i.x=u[0],i.y=u[1]);f=n(t);f.length>0&&this.changeVMLStyle(f,i)},createGradientElement:function(n,t){var i,f,r,u;if(Object.prototype.toString.call(t)=="[object Array]")for(i="gradient ",f="",r=0,u=t.length-1;u>=0,r0?t["font-size"]+"px":t["font-size"],u={size:e,fontStyle:t["font-style"],fontFamily:t["font-family"]},f=ej.EjSvgRender.utils._measureText(i,null,u);n(r).css("white-space","nowrap");t["text-anchor"]==="middle"?t.x=Math.round(t.x-f.width/2):t["text-anchor"]==="end"&&(t.x=Math.round(t.x-f.width));t.y=Math.round(t.y-u.size.replace("px",""));this.applyVMLStyle(r,t)},drawText:function(t,i,r,u){var c=document,v=n("#"+t.id),f,y,l,e,s,o,h,a,p;if(v.length>0)this._textAttrReplace(t,i,u,v);else if(t.id.indexOf("YAxisTitle")>0&&!this.isdocmode8)t.on=!0,f=document.createElement("v:line"),f.style.behavior="url(#default#VML)",f.style.display="inline-block",y=ej.EjSvgRender.utils._measureText(i,null,null),f.setAttribute("to",(t.x-1).toString()+","+(t.y-y.width/2).toString()),f.setAttribute("from",t.x.toString()+","+t.y.toString()),l=document.createElement("v:path"),l.setAttribute("textpathok",!0),e=document.createElement("v:textpath"),e.setAttribute("on",!0),e.setAttribute("string",i),e.style["font-style"]=t["font-style"],e.style["font-size"]=t["font-size"],e.style["font-family"]=t["font-family"],f.appendChild(l),f.appendChild(e),n(f).appendTo(r);else{if(s=c.createElement("span"),o=n(s),jQuery.type(i)=="array")for(this.setSpanAttr(t,i,o),h=0;h0&&f.length==i.length)for(e=0;e0&&this.ctx.stroke();this.ctx.restore();this.ctx=l}},_setLinePathStyle:function(n,t){var r=n["stroke-width"],i;t&&this.ctx.translate(t[0],t[1]);this.ctx.globalAlpha=n.opacity?n.opacity:n["fill-opacity"];this.ctx.lineWidth=r;i=n["stroke-dasharray"]?n["stroke-dasharray"].split(","):!1;i&&this.ctx.setLineDash(i);this.ctx.strokeStyle=n.stroke;n.fill!="none"&&n.fill!=undefined&&(this.ctx.fillStyle=n.fill,this.ctx.fill())},drawRect:function(n,t){var u=this.ctx,r=n.rx,i;this.ctx=t?t.canvas?t:this.ctx:this.ctx;this.ctx.save();this.ctx.beginPath();this.ctx.globalAlpha=n.opacity;this.ctx.lineWidth=n["stroke-width"];i=n["stroke-dasharray"]?n["stroke-dasharray"].split(","):!1;i&&this.ctx.setLineDash(i);this.ctx.strokeStyle=n.stroke;this.ctx.rect(n.x,n.y,n.width,n.height);r!=null&&r>=0?this.drawCornerRadius(n):(n.fill=="none"&&(n.fill="transparent"),this.ctx.fillStyle=n.fill,this.ctx.fillRect(n.x,n.y,n.width,n.height),this.ctx.stroke());n.id.indexOf("Series")>=0&&this.ctx.clip();this.ctx.restore();this.ctx=u},drawCylinder:function(n,t,i){var kt=this.ctx,h,a,wt,c,f,s;this.ctx=t?t.canvas?t:this.ctx:this.ctx;this.ctx.save();h=ej.datavisualization.Chart.prototype.colorNameToHex(n.fill);a={svgRenderer:ej.EjSvgRender.prototype};"use strict";var s,d,g,v=Math.PI,dt=2*v+.1,r,u,nt,y,p,tt,w,it,rt,b,ut,ft,et,ot,st,ht,ct,lt,at,vt,yt,pt,e=n.x,o=n.y,l=n.width,k=n.height,bt=dt;for(this.ctx.fillStyle=ej.Ej3DRender.prototype.polygon3D.prototype.applyZLight(h,a),this.ctx.lineWidth=0,this.ctx.strokeStyle=ej.Ej3DRender.prototype.polygon3D.prototype.applyZLight(h,a),this.ctx.globalAlpha=n.opacity,i.isColumn==!0?(ct=e,at=l+e,vt=lt=0,r=l/2,u=r/4,y=nt=e+r,b=p=o-u,it=e,w=e+l,tt=rt=o+k-u,ht=0,st=v,yt=-r,pt=u,(i.stacking=!0)&&(i.isLastSeries||(b=p=o+u))):(ct=at=0,lt=k+o,vt=o,u=k/2,r=u/4,it=nt=e+r,w=y=e+l+r,rt=o+k,b=o,tt=p=o+u,ht=v/2,st=v*1.5,(i.stacking=!0)&&(i.isLastSeries||(w=y=e+l-r)),u=-u,r=-r,yt=r,pt=-u),wt=ej.Ej3DRender.prototype.polygon3D.prototype.applyXLight(h,a),c=this.ctx.createLinearGradient(ct,vt,at,lt),c.addColorStop(0,h),c.addColorStop(.3,wt),c.addColorStop(.7,wt),c.addColorStop(1,h),f=1;f<=4;f++){for(s=0,f<4?this.ctx.beginPath():"",f%2==0?(ut=y,ft=tt,et=it,ot=b):(ut=nt,ft=p,et=w,ot=rt),f==4&&(r=yt,u=pt,this.ctx.fillStyle=c),f>2&&(s=ht,bt=st);s<=bt;s+=.1)d=ut-r*Math.cos(s),g=ft+u*Math.sin(s),s===0?this.ctx.moveTo(d,g):this.ctx.lineTo(d,g);f>2&&this.ctx.lineTo(et,ot);f!=3&&(this.ctx.stroke(),this.ctx.fill())}n.id.indexOf("Series")>=0&&this.ctx.clip();this.ctx.restore();this.ctx=kt},drawCornerRadius:function(n){var t=n.rx,i=n.x,r=n.y,u=n.width,f=n.height;n.fill=="none"&&(n.fill="transparent");this.ctx.fillStyle=n.fill;u<2*t&&(t=u/2);f<2*t&&(t=f/2);this.ctx.beginPath();this.ctx.moveTo(i+u-t,r);this.ctx.arcTo(i+u,r,i+u,r+f,t);this.ctx.arcTo(i+u,r+f,i,r+f,t);this.ctx.arcTo(i,r+f,i,r,t);this.ctx.arcTo(i,r,i+u,r,t);this.ctx.closePath();this.ctx.fill();this.ctx.stroke()},createGradientElement:function(n,t){var u,o=this.ctx,f,i,e,r;if(Object.prototype.toString.call(t)=="[object Array]"){for(f=o.createLinearGradient(0,0,0,this.svgObj.height),i=0;i<=t.length-1;i++)e=t[i].color,r=t[i].colorStop.slice(0,-1),r=parseInt(r)/100,f.addColorStop(r,e);u=f}else u=t;return u},drawLine:function(n){this.ctx.save();this.ctx.beginPath();this.ctx.lineWidth=n["stroke-width"];this.ctx.strokeStyle=n.stroke;this.ctx.moveTo(n.x1,n.y1);this.ctx.lineTo(n.x2,n.y2);this.ctx.stroke();this.ctx.restore()},drawText:function(t,i,r){var o,u,k,g,w,a,e,y;ej.util.isNullOrUndefined(t["font-weight"])||t["font-weight"].toLowerCase()!="regular"||(t["font-weight"]="normal");var l=t["font-style"].toLowerCase()+" "+t["font-weight"]+" "+t["font-size"]+" "+t["font-family"],f=t["text-anchor"],b=t.opacity!==undefined?t.opacity:1;if(f=="middle"&&(f="center"),t.lgndCtx)this.lgndCtx.save(),this.lgndCtx.fillStyle=t.fill,this.lgndCtx.font=l,this.lgndCtx.textAlign=f,this.lgndCtx.globalAlpha=b,t["dominant-baseline"]=="middle"&&(this.lgndCtx.textBaseline="center"),t.labelRotation?(this.lgndCtx.translate(t.x,t.y),this.lgndCtx.rotate(t.labelRotation*Math.PI/180),this.lgndCtx.fillText(i,0,0)):this.lgndCtx.fillText(i,t.x,t.y),this.lgndCtx.restore();else{if(this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=l,this.ctx.textAlign=f,this.ctx.globalAlpha=b,t.baseline&&(this.ctx.textBaseline=t.baseline),t.labelRotation)if(o=0,u=t.labelRotation,u&&(t.id.indexOf("XLabel")!=-1||t.id.indexOf("YLabel")!=-1)){k="rotate("+t.labelRotation.toString()+"deg)";n(t).attr("rotateAngle",k);var d=r?r:i,v=ej.EjSvgRender.utils._measureText(d,null,l).height,p=this.createText(t,d);n(document.body).append(p);g=p.getBoundingClientRect();n(p).remove();o=g.height;u<0&&(u=360+u);w=t.transform.split(",");f=f!=undefined?f:"center";var s=parseFloat(w[1]),h=parseFloat(w[2]),c=o/2;if(t.labelPosition=="outside"?f=="start"?this.ctx.translate(s,h+c-(u<0&&u>-180||u>180?o/2:(o-v)/2)):f=="end"?this.ctx.translate(s,h+c-(u<0&&u>-180||u>180?o/2:-(o-v)/2)):this.ctx.translate(s,h+c):f=="start"?this.ctx.translate(s,h-c-(u<0&&u>-180||u>180?o/2:(o-v)/2)):f=="end"?this.ctx.translate(s,h-c-(u<0&&u>-180||u>180?o/2:-(o-v)/2)):this.ctx.translate(s,h-c),this.ctx.textAlign=f,this.ctx.rotate(u*(Math.PI/180)),typeof i=="object")for(a=i.length,e=0;e<\/div>"),u=i.model.m_AreaBounds;t.xr.left+n(this.svgObj).width()-20?(f=this.prevWidth,o=this.prevX):(f=this.prevWidth=t.width,o=this.prevX=t.x+r.left);t.yr.top+u.Y+u.Height?(e=this.prevHeight,s=this.prevY):(e=this.prevHeight=t.height,s=this.prevY=t.y+r.top);n(h).css({width:f,height:e,top:s,left:o,"background-color":t.fill,"border-style":"solid",position:"absolute","border-color":t.stroke,"border-width":t["stroke-width"]});document.getElementById("chartContainer_"+this._rootId).appendChild(h[0])},zoomButton:function(t,i,r){var l=r.svgObj?r.svgObj:r.svgObject,y=r._rootId?r._rootId:r._id,o,e,c,f,s,h,a,v,u;o=i=="zoom"?"_Zoom":i=="zoomIn"?"_ZoomIn":"_ZoomOut";e={left:0,top:0};n("#"+t.zoomId).length<=0?(u=n("
<\/div>"),n(u).css({width:t.width,height:t.height,top:t.top+e.top,left:t.left+e.left,"background-color":t.fill,"border-style":"solid",position:"absolute","border-radius":"0.4em","border-color":t.fill,"box-sizing":"content-box","z-index":2e3}),c="http://www.w3.org/2000/svg",f=document.createElementNS(c,"svg"),f.setAttribute("id",t.zoomId),f.setAttribute("width",25),f.setAttribute("height",25),i=="zoom"?(s="M26.101,22.893l-6.605-6.174c1.414-2.781,0.897-6.267-1.496-8.504c-2.901-2.711-7.448-2.56-10.161,0.341 c-2.712,2.9-2.56,7.45,0.341,10.163c2.426,2.266,6,2.523,8.694,0.853l6.579,6.151L26.101,22.893z M10.186,16.571 c-1.715-1.604-1.805-4.293-0.203-6.009c1.605-1.715,4.295-1.805,6.009-0.201c1.715,1.603,1.805,4.293,0.202,6.007 C14.59,18.084,11.901,18.175,10.186,16.571",h="translate(-3,-3)"):i=="zoomIn"?(s="M9.0983096,4.2999878L9.0983096,9.3999634 3.9983783,9.3999634 3.9983783,12.699951 9.0983096,12.699951 9.0983096,17.799988 12.398249,17.799988 12.398249,12.699951 17.49818,12.699951 17.49818,9.5 12.398249,9.5 12.398249,4.2999878z M10.998276,0C14.298215,0 17.49818,1.3999634 19.69813,4.1999512 22.79809,8.0999756 22.79809,13.5 19.998144,17.399963L28.597992,28.299988 23.898081,32 15.398205,21.199951C10.898271,23.099976 5.5983606,21.899963 2.3983956,17.899963 -1.4015366,13.099976 -0.60156059,6.0999756 4.1983567,2.3999634 6.1983276,0.79998779 8.5983163,0 10.998276,0z",h="translate(4,4) scale(0.6)"):(s="M3.9983433,9.5L3.9983433,12.799988 17.598165,12.799988 17.598165,9.5z M10.998234,0C14.298169,0 17.498131,1.3999634 19.698108,4.1999512 22.798034,8.0999756 22.798034,13.5 19.998092,17.399963L28.597994,28.299988 23.898054,32 15.398188,21.199951C10.898259,23.099976 5.5983546,21.899963 2.398393,17.899963 -1.4015351,13.099976 -0.60155994,6.0999756 4.1983522,2.3999634 6.1983207,0.79998779 8.5983074,0 10.998234,0z",h="translate(4,4) scale(0.6)"),a={id:o+"Path",fill:t.iconColor,transform:h,d:s},v=document.createElementNS(c,"path"),n(v).attr(a).appendTo(f),u[0].appendChild(f),document.getElementById("chartContainer_"+y).appendChild(u[0])):(u=document.getElementById(l.id+o+"Btn"),n(u).css({top:t.top+e.top,left:t.left+e.left}))},panButton:function(t,i){var s=i.svgObj?i.svgObj:i.svgObject,c=i._rootId?i._rootId:i._id,f={left:0,top:0},e,u,o,h,r;n("#"+t.panId).length<=0?(r=n("
<\/div>"),n(r).css({width:t.width,height:t.height,top:t.top+f.top,left:t.left+f.left,"background-color":t.fill,"border-style":"solid",position:"absolute","border-radius":"0.4em","border-color":t.fill,"box-sizing":"content-box","z-index":2e3}),e="http://www.w3.org/2000/svg",u=document.createElementNS(e,"svg"),u.setAttribute("id",t.panId),u.setAttribute("width",25),u.setAttribute("height",25),o={id:"panPath",fill:t.iconColor,transform:"translate(-3,-3)"},o.points="26.105,16 21.053,12.211 21.053,14.737 17.263,14.737 17.263,10.947 19.834,10.947 16.044,5.895 12.255,10.947 14.737,10.947 14.737,14.737 10.947,14.737 10.947,12.211 5.895,16 10.947,19.789 10.947,17.263 14.737,17.263 14.737,21.053 12.255,21.053 16.044,26.105 19.834,21.053 17.263,21.053 17.263,17.263 21.053,17.263 21.053,19.789",h=document.createElementNS(e,"polygon"),n(h).attr(o).appendTo(u),r[0].appendChild(u),document.getElementById("chartContainer_"+c).appendChild(r[0])):(r=document.getElementById(s.id+"_PanBtn"),n(r).css({top:t.top+f.top,left:t.left+f.left}))},resetZoom:function(t,i){var l=i.svgObj?i.svgObj:i.svgObject,w=i._rootId?i._rootId:i._id,e={left:0,top:0},f,r,o,a,s,v,h,y,c,p,u;n("#"+t.resetZoomId).length<=0?(u=n("
<\/div>"),n(u).css({width:t.width,height:t.height,top:t.top+e.top,left:t.left+e.left,"background-color":t.fill,"border-style":"solid","border-radius":"0.4em",position:"absolute","border-color":t.fill,"box-sizing":"content-box","z-index":2e3}),f="http://www.w3.org/2000/svg",r=document.createElementNS(f,"svg"),r.setAttribute("id",t.resetZoomId),r.setAttribute("width",25),r.setAttribute("height",25),o={id:"p1",fill:t.iconColor,transform:"translate(-3,-3)"},o.points="11.895,18.398 8.061,22.23 5.796,19.967 5.796,26.283 12.112,26.283 9.848,24.018 13.682,20.186",a=document.createElementNS(f,"polygon"),n(a).attr(o).appendTo(r),s={id:"p2",fill:t.iconColor,transform:"translate(-3,-3)"},s.points="19.691,6.072 21.955,8.337 18.121,12.172 19.908,13.959 23.742,10.123 26.007,12.389 26.007,6.072",v=document.createElementNS(f,"polygon"),n(v).attr(s).appendTo(r),h={id:"p3",fill:t.iconColor,transform:"translate(-3,-3)"},h.points="11.895,13.958 13.682,12.172 9.848,8.337 12.112,6.072 5.796,6.072 5.796,12.389 8.061,10.123",y=document.createElementNS(f,"polygon"),n(y).attr(h).appendTo(r),c={id:"p4",fill:t.iconColor,transform:"translate(-3,-3)"},c.points="19.908,18.396 18.121,20.186 21.955,24.018 19.691,26.283 26.007,26.283 26.007,19.967 23.741,22.23",p=document.createElementNS(f,"polygon"),n(p).attr(c).appendTo(r),u[0].appendChild(r),document.getElementById("chartContainer_"+w).appendChild(u[0])):(u=document.getElementById(l.id+"_ResetZoom"),n(u).css({top:t.top+e.top,left:t.left+e.left}))},drawCrosshairLine:function(t,i){var r=n("
<\/div>");n(r).css({width:t.width,height:t.height,left:t.left,top:t.top,"border-style":t.style,opacity:t.opacity,visibility:"visible","border-color":t.stroke,"border-width":t["stroke-width"],position:t.position});n(i).append(r[0])},drawCrosshairlabel:function(t,i,r){var e=n("#"+this._rootId).offset(),f={left:0,top:0},u;n("#"+t.id).length>0?(u=document.getElementById(t.id),n(u).css({width:t.width-5,height:t.height-5,left:i.x+f.left-5,top:i.y+f.top-15,visibility:"visible",display:t.display}),document.getElementById(t.id).textContent=r):(u=n("
<\/div>"),n(u).css({color:i.fill,"font-family":i["font-family"],"font-size":i["font-size"],"font-weight":i["font-weight"],"font-style":i["font-style"],"background-color":t.fill,"border-style":"solid","border-color":t.stroke,"border-width":t["stroke-width"],opacity:t["fill-opacity"],"text-align":"center"}),document.getElementById(this._rootId).appendChild(u[0]))},createCrosshairCanvas:function(){var i=document.getElementById(this._rootId+"_canvas"),u=n("#"+this._rootId).offset(),t,r={left:0,top:0};return n("#secondCanvas").length?t=document.getElementById("secondCanvas"):(t=document.createElement("canvas"),n(document).find("#"+this.svgObj.id+"_CrosshairGroup").append(t),n(t).attr({id:"secondCanvas",width:i.width,height:i.height,top:r.top,left:r.left}),n(t).css({width:i.width,height:i.height,top:r.top,left:r.left})),t},drawTrackToolTip:function(t,i,r,u){var s={left:this.svgObj.offsetLeft,top:this.svgObj.offsetTop},h,e,o,f;if(n("#"+t.id).length>0)if(f=document.getElementById(t.id),n(f).css({left:t.x+s.left,top:t.y+s.top,visibility:"visible","border-box":"content-box","background-color":t.fill,color:i.fill,"border-color":t.stroke,"border-width":t["stroke-width"]}),jQuery.type(r)=="array"){for(h=0,e="",o=0;o";n("#"+t.id).html(e)}else n("#"+t.id).html(r);else f=n("
<\/div>"),n(f).css({color:i.fill,"font-family":i["font-family"],"font-size":i["font-size"],"font-weight":i["font-weight"],"font-style":i["font-style"],width:t.width,height:t.height-u-2*t["stroke-width"],"background-color":t.fill,"border-style":"solid","text-align":"center",padding:"0px","padding-top":u/2+"px","padding-bottom":u/2+"px","border-color":t.stroke,"border-width":t["stroke-width"],opacity:t["fill-opacity"]}),document.getElementById(this._rootId).appendChild(f[0])},trackSymbol:function(t,i,r,u,f){var l=f.model.m_AreaBounds,ht=n("#"+this._rootId).offset(),d,b,h,g,nt,tt,v,e,o,w,s;if(i.startX>=l.X&&i.startX<=l.X+l.Width&&i.startY>=l.Y&&i.startY<=l.Y+l.Height)if(b=t.SeriesIndex,g=t.PointIndex,f.model.series[b].type.toLowerCase()=="bubble"&&(nt=f.model.series[b]._visiblePoints[g],h=nt.radius*2+5,t.Style.BorderColor=t.Style.Color),f.model.series[b].type.toLowerCase()=="scatter"&&ej.util.isNullOrUndefined(u))tt={cx:i.startX-2,cy:i.startY-2,r:t.ShapeSize.width/2,fill:t.Style.Color,opacity:t.Style.Opacity,stroke:t.Style.BorderColor},this.drawCircle(tt,null);else{n("#canvas_trackSymbol").length>0?(v=n("#canvas_trackSymbol"),n(v).css({visibility:"visible",display:"block"})):v=n("
<\/div>");var y={left:i.startX,top:i.startY},c=n("
<\/div>"),a=y.left-(h||t.ShapeSize.width),p=y.top-(h||t.ShapeSize.height);n(c).css({left:a,top:p,"box-sizing":"content-box",position:"absolute",visibility:"visible",opacity:t.Style.Opacity,"z-index":200});e=t.ShapeSize;t.symbol=c;o={};switch(r.toLowerCase()){case"circle":n(c).css({width:h||t.ShapeSize.width+"px",height:h||t.ShapeSize.height+"px",left:h?a+h/2:a+t.ShapeSize.width/2-t.Style.BorderWidth+"px",top:h?p+h/2:p+t.ShapeSize.height/2-t.Style.BorderWidth+"px","border-style":"solid","background-color":t.Style.Color,"border-color":t.Style.BorderColor,"border-width":t.Style.BorderWidth,"border-radius":"100%"});break;case"rectangle":n(c).css({width:t.ShapeSize.width,height:t.ShapeSize.height,left:a+t.ShapeSize.width/2-t.Style.BorderWidth/2,top:p+t.Style.BorderWidth/2,"border-style":"solid","background-color":t.Style.Color,"border-color":t.Style.BorderColor,"border-width":t.Style.BorderWidth});break;case"diamond":s="M "+(i.startX+-e.width/2)+" "+i.startY+" L "+i.startX+" "+(i.startY+-t.ShapeSize.height/2)+" L "+(i.startX+t.ShapeSize.width/2)+" "+i.startY+" L "+i.startX+" "+(i.startY+t.ShapeSize.height/2)+" L "+(i.startX+-t.ShapeSize.width/2)+" "+i.startY+"z";o.direction=s;this.drawSvgShape(t,o);break;case"triangle":s="M "+(i.startX+-e.width/2)+" "+(i.startY+e.height/2)+" L "+i.startX+" "+(i.startY+-e.height/2)+" L "+(i.startX+e.width/2)+" "+(i.startY+e.height/2)+" L "+(i.startX+-e.width/2)+" "+(i.startY+e.height/2)+"z";o.direction=s;this.drawSvgShape(t,o);break;case"invertedtriangle":var s="M "+(i.startX+-e.width/2)+" "+(i.startY+e.height/2)+" L "+i.startX+" "+(i.startY+-e.height/2)+" L "+(i.startX+e.width/2)+" "+(i.startY+e.height/2)+" L "+(i.startX+-e.width/2)+" "+(i.startY+e.height/2)+"z",ft=i.startX,et=i.startY,ot="rotate(180,"+ft+","+et+")";o.direction=s;o.rotate=ot;this.drawSvgShape(t,o);break;case"cross":s="M "+(i.startX+-e.width/2)+" "+i.startY+" L "+(i.startX+e.width/2)+" "+i.startY+" M "+i.startX+" "+(i.startY+e.height/2)+" L "+i.startX+" "+(i.startY+-e.height/2)+"z";o.direction=s;this.drawSvgShape(t,o);break;case"star":s="M "+(i.startX+e.width/3)+" "+(i.startY+-e.height/2)+" L "+(i.startX+-e.width/2)+" "+(i.startY+e.height/6)+" L "+(i.startX+e.width/2)+" "+(i.startY+e.height/6)+" L "+(i.startX+-e.width/3)+" "+(i.startY+-e.height/2)+" L "+i.startX+" "+(i.startY+e.height/2)+" L "+(i.startX+e.width/3)+" "+(i.startY+-e.height/2)+"z";o.direction=s;this.drawSvgShape(t,o);break;case"hexagon":s="M "+(i.startX+-e.width/2)+" "+i.startY+" L "+(i.startX+-e.width/4)+" "+(i.startY+-e.height/2)+" L "+(i.startX+e.width/4)+" "+(i.startY+-e.height/2)+" L "+(i.startX+e.width/2)+" "+i.startY+" L "+(i.startX+e.width/4)+" "+(i.startY+e.height/2)+" L "+(i.startX+-e.width/4)+" "+(i.startY+e.height/2)+" L "+(i.startX+-e.width/2)+" "+i.startY+"z";o.direction=s;this.drawSvgShape(t,o);break;case"wedge":s="M "+(i.startX-e.width)+" "+i.startY+" L "+(i.startX+e.width)+" "+(i.startY+-e.height/2)+" L "+(i.startX+3*(e.width/4))+" "+i.startY+" L "+(i.startX+e.width)+" "+(i.startY+e.height/2)+" L "+(i.startX-e.width)+" "+i.startY+"z";o.direction=s;this.drawSvgShape(t,o);break;case"trapezoid":s="M "+(i.startX+-e.width/2)+" "+i.startY+" L "+(i.startX+-e.width/2)+" "+(i.startY+-e.height/4)+" L "+(i.startX+-e.width/2+e.width)+" "+(i.startY+-e.height/2)+" L "+(i.startX+-e.width/2+e.width)+" "+(i.startY+e.height/2)+" L "+(i.startX+-e.width/2)+" "+(i.startY+e.height/4)+" L "+(i.startX+-e.width/2)+" "+i.startY+"z";o.direction=s;this.drawSvgShape(t,o);break;case"uparrow":s="M "+(i.startX-e.width/2+e.width/4)+" "+(i.startY-e.height/2+e.height)+" L "+(i.startX-e.width/2+e.width/4)+" "+(i.startY-e.height/2+e.height/2)+" L "+(i.startX-e.width/2)+" "+(i.startY-e.height/2+e.height/2)+" L "+i.startX+" "+(i.startY-e.height/2)+" L "+(i.startX+e.width/2)+" "+(i.startY-e.height/2+e.height/2)+" L "+(i.startX+e.width/2-e.width/4)+" "+(i.startY-e.height/2+e.height/2)+" L "+(i.startX+e.width/2-e.width/4)+" "+(i.startY-e.height/2+e.height)+" L "+(i.startX-e.width/2+e.width/4)+" "+(i.startY-e.height/2+e.height)+"z";o.direction=s;this.drawSvgShape(t,o);break;case"downarrow":s="M "+(i.startX-e.width/2+e.width/4)+" "+(i.startY-e.height/2)+" L "+(i.startX+e.width/2-e.width/4)+" "+(i.startY-e.height/2)+" L "+(i.startX+e.width/2-e.width/4)+" "+(i.startY-e.height/2+e.height/2)+" L "+(i.startX+e.width/2)+" "+(i.startY-e.height/2+e.height/2)+" L "+i.startX+" "+(i.startY-e.height/2+e.height)+" L "+(i.startX-e.width/2)+" "+(i.startY-e.height/2+e.height/2)+" L "+(i.startX-e.width/2+e.width/4)+" "+(i.startY-e.height/2+e.height/2)+" L "+(i.startX-e.width/2+e.width/4)+" "+(i.startY-e.height/2)+"z";o.direction=s;this.drawSvgShape(t,o);break;case"leftarrow":s="M "+(i.startX-e.width/2+e.width)+" "+(i.startY+e.height/4)+" L "+(i.startX-e.width/2+e.width)+" "+(i.startY+-e.height/4)+" L "+(i.startX-e.width/2+e.width/2)+" "+(i.startY+-e.height/4)+" L "+(i.startX-e.width/2+e.width/2)+" "+(i.startY+-e.height/2)+" L "+(i.startX-e.width/2)+" "+i.startY+" L "+(i.startX-e.width/2+e.width/2)+" "+(i.startY+e.height/2)+" L "+(i.startX-e.width/2+e.width/2)+" "+(i.startY+e.height/4)+" L "+(i.startX-e.width/2+e.width)+" "+(i.startY+e.height/4)+"z";o.direction=s;this.drawSvgShape(t,o);break;case"rightarrow":s="M "+(i.startX-e.width/2)+" "+(i.startY+e.height/4)+" L "+(i.startX-e.width/2)+" "+(i.startY+-e.height/4)+" L "+(i.startX-e.width/2+e.width/2)+" "+(i.startY+-e.height/4)+" L "+(i.startX-e.width/2+e.width/2)+" "+(i.startY+-e.height/2)+" L "+(i.startX-e.width/2+e.width)+" "+i.startY+" L "+(i.startX-e.width/2+e.width/2)+" "+(i.startY+e.height/2)+" L "+(i.startX-e.width/2+e.width/2)+" "+(i.startY+e.height/4)+" L "+(i.startX-e.width/2)+" "+(i.startY+e.height/4)+"z";o.direction=s;this.drawSvgShape(t,o);break;case"pentagon":var h=Math.sqrt(e.height*e.height+e.width*e.width)/2,k=ej.EjSvgRender.utils._getStringBuilder();for(w=0;w<=5;w++){var st=w*72,it=Math.PI/180*st,rt=h*Math.cos(it),ut=h*Math.sin(it);w==0?k.append("M "+(i.startX+rt)+" "+(i.startY+ut)+" "):k.append("L "+(i.startX+rt)+" "+(i.startY+ut)+" ")}k.append("z");s=k.toString();o.direction=s;this.drawSvgShape(t,o);break;case"ellipse":n(c).css({width:t.ShapeSize.width,height:t.ShapeSize.height/2,"border-style":"solid",left:a+t.ShapeSize.height/2-t.Style.BorderWidth/2,top:i.startY+y.top-t.ShapeSize.height+4,"background-color":t.Style.Color,"border-color":t.Style.BorderColor,"border-width":t.Style.BorderWidth,"-moz-border-radius":"50%","-webkit-border-radius":"50%","border-radius":"50%","border-box":"content-box"});break;case"horizline":n(c).css({width:t.ShapeSize.width,height:0,"border-style":"solid",left:a+t.ShapeSize.width/2,top:i.startY+y.top-1,"border-color":t.Style.BorderColor,"border-width":"2px","border-box":"content-box"});break;case"vertline":n(c).css({width:0,height:t.ShapeSize.height,"border-style":"solid",left:i.startX+y.left-1,top:p+t.ShapeSize.height/2-2,"border-color":t.Style.BorderColor,"border-width":"2px","border-box":"content-box"});break;default:n(c).css({width:t.ShapeSize.width,height:t.ShapeSize.height,"border-style":"solid","background-color":t.Style.Color,"border-color":t.Style.BorderColor,"border-width":t.Style.BorderWidth,"border-radius":"50px"})}v[0].appendChild(c[0]);d=document.getElementById(this.svgObj.id+"_CrosshairGroup")||document.getElementById("chartContainer_"+this._rootId);d.appendChild(v[0])}},drawSvgShape:function(t,i){var f=document.getElementById(this._rootId+"_canvas"),e={left:0,top:0},o="http://www.w3.org/2000/svg",r=document.createElementNS(o,"svg"),u,s;r.setAttribute("id","mySVG");r.setAttribute("width",n(f).width());r.setAttribute("height",n(f).height());n(t.symbol).css({left:e.left+"px",top:e.top+"px"});u={id:"svgPath","fill-opacity":t.Style.Opacity,"stroke-width":t.Style.BorderWidth,fill:t.Style.Color,transform:i.rotate,stroke:t.Style.BorderColor};u.d=i.direction;s=document.createElementNS(o,"path");n(s).attr(u).appendTo(r);t.symbol[0].appendChild(r)},drawCircle:function(n,t){var r,i,u;n.lgndCtx?(u=this.lgndCtx,this.lgndCtx=t!=undefined?t:this.lgndCtx,this.lgndCtx.save(),this.lgndCtx.beginPath(),this.lgndCtx.arc(n.cx,n.cy,n.r,0,2*Math.PI),this.lgndCtx.fillStyle=n.fill,this.lgndCtx.globalAlpha=n.opacity,this.lgndCtx.fill(),this.lgndCtx.lineWidth=n["stroke-width"],this.lgndCtx.strokeStyle=n.stroke,this.lgndCtx.stroke(),this.lgndCtx.restore(),this.lgndCtx=u):(r=this.ctx,this.ctx=t!=undefined?t:this.ctx,this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.cx,n.cy,n.r,0,2*Math.PI),this.ctx.fillStyle=n.fill,this.ctx.globalAlpha=n.opacity,this.ctx.fill(),this.ctx.lineWidth=n["stroke-width"],i=n["stroke-dasharray"]?n["stroke-dasharray"].split(","):!1,i&&this.ctx.setLineDash(i),this.ctx.strokeStyle=n.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=r)},drawPolyline:function(n){var i,t;for(this.ctx.save(),this.ctx.beginPath(),i=n.points.split(" "),t=0;t0){i=0;do i++;while($(document).find("#"+this._rootId+"_svg"+i).length>0);t=this._rootId+"_svg"+i}this.svgObj.setAttribute("id",t)},function(n){function t(n,t,i,r){var u=r*Math.PI/180,f=n+i*Math.cos(u),e=t+i*Math.sin(u);return[f,e]}ej.EjSvgRender.prototype={drawPath:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"path");n(r).attr(t).appendTo(i)}},createLegendSvg:function(n){return this.svgLink="http://www.w3.org/2000/svg",this.legendsvgObj=document.createElementNS(this.svgLink,"svg"),this._rootId=jQuery(n).attr("id"),this.legendsvgObj.setAttribute("id","legend_"+this._rootId+"_svg"),this.legendsvgObj},drawPolyline:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"polyline");n(r).attr(t).appendTo(i)}},drawLine:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"line");n(r).attr(t);n(r).appendTo(i)}},drawPolygon:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"polygon");n(r).attr(t);n(r).appendTo(i)}},drawCircle:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"circle");n(r).attr(t).appendTo(i)}},drawEllipse:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"ellipse");n(r).attr(t).appendTo(i)}},drawRect:function(t,i){if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var r=document.createElementNS(this.svgLink,"rect");n(r).attr(t).appendTo(i)}},drawCylinder:function(t,i,r){var d,ot,y;if(n("#"+t.id).length>0)n("#"+t.id).attr(t);else{var rt=t.x,s=t.y,g=t.id,h=t.fill,st=h,ht=this.checkColorFormat(h);ht||(h=ej.datavisualization.Chart.prototype.colorNameToHex(h));var a,v,p,w,l,e,b,nt,ut=2,tt,k,ft=0,et=0,c,it={svgRenderer:this};if(r.isColumn==!0){var o=t.width/2,u=t.height,f=o/4;l=tt=rt;e=f0)this._textAttrReplace(t,i,u);else{if(e=document.createElementNS(this.svgLink,"text"),o=n(e),jQuery.type(i)=="array")for(h=0,o.attr(t),f=0;f0&&f.length==i.length)for(u=0;u0)n(i).find("#"+t.id).attr(t);else{var r=this.createDefs(),u=this.createClipPath({id:t.id});t.id=t.id+"_Rect";this.drawRect(t,u);this.append(u,r);this.append(r,i)}},drawCircularClipPath:function(n,t){var i=this.createDefs(),r=this.createClipPath({id:n.id});this.drawCircle(n,r);this.append(r,i);this.append(i,t)},append:function(t,i){n(t).appendTo(i)},_setAttr:function(t,i){n(t).attr(i)}};ej.EjSvgRender.commonChartEventArgs={cancel:!1,data:null};ej.EjSvgRender.utils={_decimalPlaces:function(n){var t=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_getLabelContent:function(n,t,i){switch(t._categoryValueType){case"number":var r=ej.util.isNullOrUndefined(t.labelFormat)?null:t.labelFormat.match("{value}");return ej.util.isNullOrUndefined(t.labelFormat)?t.labels[Math.floor(n)]:r!=null?t.labelFormat.replace("{value}",t.labels[Math.floor(n)]):ej.format(t.labels[Math.floor(n)],t.labelFormat,i);case"date":return ej.format(new Date(t.labels[Math.floor(n)]),ej.util.isNullOrUndefined(t.labelFormat)?"dd/MM/yyyy":t.labelFormat,i);case"string":return t.labels[Math.floor(n)];default:return""}},_getSeriesTemplateSize:function(t,i,r,u,f){var t,i,a=f.model.AreaType,o=f._id,v=n.inArray(r,f.model._visibleSeries),s,h,e,c,l;s=n("#template_group_"+o).length!=0?n("#template_group_"+o):n("
<\/div>").attr("id","template_group_"+o);s.css("position","relative").css("z-index",1e3);h=n("#"+r.marker.dataLabel.template).clone();n(h).attr("id",r.marker.dataLabel.template+"_"+v+"_"+i+"_"+o);e=n(h);e.css("position","absolute");t.count=1;c={series:r,point:t};e.html(e.html().parseTemplate(c));l=a=="cartesianaxes"||!r.enableAnimation||r.type.toLowerCase()=="pyramid"||r.type.toLowerCase()=="funnel"?"block":"none";e.css("display",l).appendTo(n(s));n(s).appendTo("#"+o);t.size={height:e.height(),width:e.width()};u?((ej.util.isNullOrUndefined(r.LeftLabelMaxHeight)||r.LeftLabelMaxHeight0&&t.xValue){var i=t.xValue-o[n-1].xValue;i!=0&&(u=Math.min(u,i))}}):(h=ej.util.isNullOrUndefined(r)?e.xAxis.visibleRange.min:r,s=o[0].xValue-h,s!=0&&(u=Math.min(u,s))))}),u==Number.MAX_VALUE&&(u=1),u},_getSeriesMaxLabel:function(t){var i={width:0,height:0},s=n(this.svgObject).width(),e=[],o,h,r,f,u;if(t.labels.length>0){for(u=0;u")!=-1?f=a.split("
"):f.push(a),u=0;u")!=-1||typeof r=="object"))for(e=0,f=typeof r=="object"?r:r.split("
"),u=0;u")!=-1&&t.orientation=="vertical"?(ai=t.visibleLabels[e].Text.split("
"),vi=this._getHighestLabel(t,n(this.svgObject).width(),ai),g=this._measureText(vi,n(this.svgObject).width(),t.font,t.labelRotation)):g=this._measureText(t.visibleLabels[e].Text,n(this.svgObject).width(),t.font,t.labelRotation),r.widthot?ot:r.width),r.rows=1,r.maxWidth=r.width,r.maxHeight=r.height,!rr&&(f||h)&&(yt=0,h=="rotate45"?yt=45:h=="rotate90"&&(yt=90),f=f!=null||ii=="vertical"?f:yt,t.rotationValue=f,f)){if(o=ej.isNullOrUndefined(o)?"":o,pi=this._measureText(o,n(this.svgObject).width(),t.font,t.labelRotation),(t.enableTrim||h=="trim")&&pi.width>ot&&o!="")for(a=o,p=1;p=ot){a=a.toString().substring(0,p-1)+"... ";o=a;break}o=(h||t.enableTrim)&&f?typeof o=="string"&&o.indexOf("
")!=-1?this._getHighestLabel(t,i,null):o:this._getHighestLabel(t,i,null);tt=this.rotatedLabel(t,i,f,o);t.labelIntersectAction&&t.labelIntersectAction.toLowerCase()=="multiplerows"&&(k=r.height+tt.height);r.height=t.rowsCount&&t.rowsCount>1&&f!=90&&t.enableTrim?t.rowsCount*r.height:tt.height;r.width=tt.width}if(t.labelIntersectAction)if(t.rowsCount&&(h=="none"||h=="trim"||h=="hide"||f==0)&&(h!="wrap"||t.enableTrim)&&(h!="wrapbyword"||t.enableTrim)&&(h!="multiplerows"||t.enableTrim))f==0&&(r.rows=t.rowsCount,r.height=t.rowsCount*r.height);else if(h=="wrap"||h=="wrapbyword"){if(vt=vt?vt:ej.datavisualization.Chart.LabelPlacement.BetweenTicks,vt.toLowerCase()=="betweenticks"?(st=1+(t.labels.length>1?-.5:0),st=li?parseFloat(st.toFixed(li)):parseFloat(st.toFixed(ej.EjSvgRender.utils._decimalPlaces(y.interval)==0?1:ej.EjSvgRender.utils._decimalPlaces(y.interval))),rt=Math.ceil((st-y.min)/(y.max-y.min)*t.length)):rt=Math.ceil(t.length/et.length),t.orientation=="horizontal"){var ht=0,wi=0,bi,ut=t.labels.length>0&&t.valueType!="datetimecategory"?t.labels:t.visibleLabels,er=t.width?t.width/ut.length:(t.length-(i.svgWidth-t.length)-20)/ut.length;for(t.labelsCollection=[],c=0;c")!=-1?wt=bt.split("
"):wt.push(bt),s=0;sl&&!f&&(ct=ct-1);r.height=f?tt.height+ct*tt.height:r.height+ct*r.height}else if(h=="multiplerows"){var or=i._getLegendSpace(),sr=i.model.border.width,wr=i.model._axes[1],hr=n(i.svgObject).width()-i.model.margin.left-i.model.margin.right;ri=t.title;ui=ri.text;var cr=ui==""||!t.visible?0:this._measureText(ui,hr,ri.font).height+2*i.model.elementSpacing,lr=i.model.elementSpacing+cr+t.majorTickLines.size+t.axisLine.width,ar=i._getYValues(i.model._visibleSeries[0].points),vr=Math.max.apply(Math,ar),ki=i.model._axes[1],g=this._measureText(vr,n(this.svgObject).width(),ki.font,ki.labelRotation),yr=or.rightLegendWidth+lr+g.width+i.model.margin.right+i.model.margin.left+2*sr,di=n(i.svgObject).width()-yr;if(ci){var ft=0,w=[],l=0,bi,wi=0;for(e=0;e")!=-1?d=u.Text.split("
"):d.push(u);it=d.length;oi=!1;k=Math.max(k,ft);ft=u.y=r.height;var a=this._measureText(u.Text,n(this.svgObject).width(),t.font),v=a.height,si=Math.abs(Math.floor((u.Value-y.min)/y.delta*di));if(w.length>0)for(dt=w,gt=!0,lt=0;lt=si-nt)ft=u.y+v,u.y+=v,pt++,lt+1==dt.length&&(gt=!1);else if(c+1==b.length){gt=s==it-1?!1:!0;break}}}if(u.y=ft,l=ft/v-1,w[l]==undefined&&(w[l]=[]),it==1)w[l].push(u);else for(s=0;sk?r.height:k;v>0&&(r.rows=ur?Math.round((k+v)/v):Math.round(k/v));r.rows=f?r.rows-1:r.rows;r.rows<1&&(r.rows=1)}if(!ci){for(ti=0,e=0;esi-v/2&&t.visibleLabels[at].y==u.y&&(ti=u.y+nt,u.y=ti,oi=!0);ir=ti}r.width=r.width+ir+(oi?5:0)}}}return r},rotatedLabel:function(n,t,i,r,u){var e={"font-size":n.font.size,transform:"rotate("+i+",0,0)","font-family":n.font.fontFamily,"font-style":n.font.fontStyle,rotateAngle:"rotate("+i+"deg)","text-anchor":"middle"};t=u?this.chartObj:t;var f=t.svgRenderer.createText(e,r),o=Math.ceil(this._measureBounds(f,t).height),s=Math.ceil(this._measureBounds(f,t).width);return{height:o,width:s}},_getTransform:function(n,t,i){var r,u,f,e;return i?(r=t.x,u=n.y,f=t.width,e=n.height):(r=n.x,u=t.y,f=n.width,e=t.height),{x:r,y:u,width:f,height:e}},_calculateroundedCorner:function(n,t,i,r,u,f){var e=t.x,o=t.y,c=5,l=this.chartObj.model.enableCanvasRendering&&!f?c/4:0,s=t.width,h=t.height,v,y,p,w,a;return typeof n!="object"||ej.util.isNullOrUndefined(n)?v=y=p=w=n:(v=n.topLeft,y=n.bottomLeft,p=n.topRight,w=n.bottomRight),v=ej.util.isNullOrUndefined(t.rx)?v:t.rx,y=ej.util.isNullOrUndefined(t.rx)?y:t.rx,p=ej.util.isNullOrUndefined(t.ry)?p:t.ry,w=ej.util.isNullOrUndefined(t.ry)?w:t.ry,a="M "+e+" "+(v+o)+" Q "+e+" "+o+" "+(e+v)+" "+o+" ",i&&r=="top"&&(a+="L "+(e+s/2-c/2+l)+" "+o+" L "+(e+s/2+l-u)+" "+(o-c)+" L "+(e+s/2+c/2+l)+" "+o+" "),a+="L "+(e+s-p)+" "+o+" Q "+(e+s)+" "+o+" "+(e+s)+" "+(o+p)+" ",i&&r=="right"&&(a+="L "+(e+s)+" "+(o+h/2-c/2+l)+" L "+(e+s+c)+" "+(o+h/2+l-u)+" L "+(e+s)+" "+(o+h/2+c/2+l)+" "),a+="L "+(e+s)+" "+(o+h-w)+" Q "+(e+s)+" "+(o+h)+" "+(e+s-w)+" "+(o+h)+" ",i&&r=="bottom"&&(a+="L "+(e+s/2-c/2+l)+" "+(o+h)+" L "+(e+s/2+l-u)+" "+(o+h+c)+" L "+(e+s/2+c/2+l)+" "+(o+h)+" "),a+="L "+(e+y)+" "+(o+h)+" Q "+e+" "+(o+h)+" "+e+" "+(o+h-y)+" ",i&&r=="left"&&(a+="L "+e+" "+(o+h/2-c/2+l)+" L "+(e-c)+" "+(o+h/2+l-u)+" L "+e+" "+(o+h/2+c/2+l)+" "),a+("L "+e+" "+(v+o)+" z")},browserInfo:function(){var n={},t=[],i={webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,msie:/(msie) ([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in i)if(i.hasOwnProperty(r)&&(t=navigator.userAgent.match(i[r]),t)){n.name=t[1].toLowerCase();n.version=t[2];!navigator.userAgent.match(/Trident\/7\./)||(n.name="msie");break}return n.isMSPointerEnabled=n.name=="msie"&&n.version>9&&window.navigator.msPointerEnabled,n.pointerEnabled=window.navigator.pointerEnabled,n},_measureText:function(t,i,r){var s=n(document).find("#measureTex"),u,e,o,f,v;n("#measureTex").css("display","block");s.length==0?(u=document.createElement("text"),n(u).attr({id:"measureTex"}),document.body.appendChild(u)):u=s[0];var h=null,c=null,l=null,a=null;if(typeof t=="string"&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(e=t.split(" "),o=0;o")==-1&&(e[o]=e[o].replace(/[<>]/g,"&"));t=e.join(" ")}return/<\/?[a-z][\s\S]*>/.test(t)?n(u).html(t):u.textContent=t,r!=undefined&&r.size==undefined&&(f=r,f=f.split(" "),h=f[0],c=f[1],l=f[2],a=f[3]),r!=null&&(u.style.fontSize=r.size>0?r.size+"px":r.size?r.size:c,u.style.fontStyle&&(u.style.fontStyle=r.fontStyle?r.fontStyle:h),u.style.fontFamily=r.fontFamily?r.fontFamily:l,window.navigator.userAgent.indexOf("MSIE 8.0")==-1&&(u.style.fontWeight=r.fontWeight?r.fontWeight:a)),u.style.backgroundColor="white",u.style.position="absolute",u.style.top=-100,u.style.left=0,u.style.visibility="hidden",u.style.whiteSpace="nowrap",i&&(u.style.maxwidth=i+"px"),v={width:u.offsetWidth,height:u.offsetHeight},n("#measureTex").css("display","none"),v},_trimText:function(n,t,i){var f,r,e,u;for(r=n.toString(),e=r.length,u=1;u=t)return r.substring(0,u-1)+"... ";return n},_measureBounds:function(t,i){i.model.enableCanvasRendering?n(document.body).append(t):(i.svgRenderer.append(t,i.svgObject),i.svgRenderer.append(i.svgObject,i.element));var r=t.getBoundingClientRect(),u={left:r.left,right:r.right,top:r.top,bottom:r.bottom,width:r.right-r.left,height:r.bottom-r.top};return n(t).remove(),u},_drawAxesBoundsClipPath:function(t,i,r){var u,s=n(t),f=this._getTransform(i.xAxis,i.yAxis,r.model.requireInvertedAxes),h=r.model.AreaType=="polaraxes"?n(r.svgObject).width():f.width,c=r.model.AreaType=="polaraxes"?n(r.svgObject).height():f.height,e=r.model.requireInvertedAxes?i.yAxis.plotOffset:i.xAxis.plotOffset,o=r.model.requireInvertedAxes?i.xAxis.plotOffset:i.yAxis.plotOffset;r.model.AreaType=="polaraxes"?(u={id:t?t.id+"_ClipRect":"",cx:r.model.centerX,cy:r.model.centerY,r:r.model.Radius,fill:"white","stroke-width":1,stroke:"transparent"},r.svgRenderer.drawCircularClipPath(u,t)):(u={id:t?t.id+"_ClipRect":"",x:0-e,y:0-o,width:h+2*e,height:c+2*o,fill:"white","stroke-width":1,stroke:"transparent"},r.svgRenderer.drawClipPath(u,t));u.id.indexOf("_Rect")&&(u.id=u.id.replace("_Rect",""));s.attr("clip-path","url(#"+u.id+")")},_getStringBuilder:function(){var n=[],t=0;return{append:function(i){return n[t++]=i,this},remove:function(t,i){return n.splice(t,i||1),this},insert:function(t,i){return n.splice(t,0,i),this},toString:function(t){return n.join(t||"")}}},_addRegion:function(t,i,r,u,f){var s=r.type,e=n.inArray(r,t.model._visibleSeries),o;e>=0&&(o={SeriesIndex:e,Region:{PointIndex:f,Bounds:i},type:s},t.model.chartRegions.push(o))},AddRegion:function(n,t,i){if(i){var r={isStripLine:i,Region:{Bounds:t}};n.model.chartRegions.push(r)}},_getSvgXY:function(n,t,i,r){var u,f;return r.model.requireInvertedAxes?(u=n+i.yAxis.x,f=t+i.xAxis.y):(u=n+i.xAxis.x,f=t+i.yAxis.y),{X:u,Y:f}},_getPoint:function(n,t){var f=n.xValue,i,r,u,e=t.type=="boxandwhisker"?n.YValues:n.YValues[0],s=t._isTransposed?t.xAxis.height:t.xAxis.width,o=t._isTransposed?t.yAxis.width:t.yAxis.height;return n.location={},t._hiloTypes&&(i=n.YValues[1],i=t.yAxis._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(i==0?1:i,t.xAxis.logBase):i,i=this._getPointXY(i,t.yAxis.visibleRange,t.yAxis.isInversed),n.location.low=(t._isTransposed?i:1-i)*o),r=t.xAxis._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(f==0?1:f,t.xAxis.logBase):f,u=t.yAxis._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(e==0?1:e,t.xAxis.logBase):e,r=this._getPointXY(r,t.xAxis.visibleRange,t.xAxis.isInversed),u=this._getPointXY(u,t.yAxis.visibleRange,t.yAxis.isInversed),n.location.X=t._isTransposed?u*o:r*s,n.location.Y=t._isTransposed?(1-r)*s:(1-u)*o,n.location},_getPointXY:function(n,t,i){var r=0;return r=(n-t.min)/t.delta,r=isNaN(r)?0:r,i?1-r:r},_dateTimeLabelFormat:function(n,t){switch(n.toLowerCase()){case"years":return t._labelFormat="MMM, yyyy";case"months":return t._labelFormat="dd, MMM";case"days":return t._labelFormat="dd/MM/yyyy";case"hours":return t._labelFormat="dd, hh:mm";case"minutes":return t._labelFormat="hh:mm";case"seconds":return t._labelFormat="mm:ss";case"milliseconds":return t._labelFormat="ss:fff";default:return t._labelFormat="dd/MM/yyyy"}},_getFontString:function(n){return n==null&&(n={}),n.FontFamily||(n.FontFamily="Arial"),n.FontStyle||(n.FontStyle="Normal"),n.Size||(n.Size="12px"),n.FontStyle+" "+n.Size+" "+n.FontFamily},_valueToVector:function(n,t){return this._coefficientToVector(this._valueToPolarCoefficient(n,t))},TransformToVisible:function(n,t,i,r){t=n.xAxis._valueType=="logarithmic"&&t>0?Math.log(t,n.xAxis.logBase):t;i=n.xAxis._valueType=="logarithmic"&&i>0?Math.log(i,n.yAxis.logBase):i;var u=r.model.Radius*this._valueToCoefficient(n.yAxis,i),f=this._valueToVector(n.xAxis,t);return{X:r.model.centerX+u*f.X,Y:r.model.centerY+u*f.Y}},Transform3DToVisible:function(n,t,i,r){var u,s,h,f;if(n.xAxis!=null&&n.yAxis!=null){if(u=n.xAxis._valueType.toLowerCase(),f=u=="logarithmic"?!0:!1,t=t=f&&t>0?math.log(t,s):t,i=i,r.model.requireInvertedAxes){var e=r.model.m_AreaBounds.X,o=r.model.m_AreaBounds.Y,c=e+n.yAxis.width*ej.EjSvgRender.utils._valueToCoefficient(n.yAxis,i,r),l=o+n.xAxis.height*(1-ej.EjSvgRender.utils._valueToCoefficient(n.xAxis,t,r));return{X:c,Y:l}}var e=n.xAxis.x,o=n.yAxis.y,t=e+Math.round(n.xAxis.width*ej.EjSvgRender.utils._valueToCoefficient(n.xAxis,t,r)),i=o+Math.round(n.yAxis.height*(1-ej.EjSvgRender.utils._valueToCoefficient(n.yAxis,i,r)));return{X:t,Y:i}}return new h(0,0)},_valueToPolarCoefficient:function(n,t){var f=n.visibleRange.min,r,u,i;return n._valueType!="category"?(r=n.visibleRange.max-n.visibleRange.interval-n.visibleRange.min,u=n.visibleLabels.length-1):(r=n.visibleRange.delta,u=n.visibleLabels.length),i=(t-f)/r,i*=1-1/u,i=isNaN(i)?0:i,n.isInversed?i:1-i},_coefficientToVector:function(n){var t=Math.PI*(1.5-2*n);return{X:Math.cos(t),Y:Math.sin(t)}},_valueToCoefficient:function(n,t,i){var r;return r=i&&i.model.AreaType=="polaraxes"?t:n._valueType&&n._valueType.toLowerCase()=="logarithmic"?ej.EjSvgRender.utils._logBase(t==0?1:t,n.logBase):t,r=(r-n.visibleRange.min)/n.visibleRange.delta,n.isInversed?1-r:r},_getBoundingClientRect:function(t,i,r,u){var f=t.getBoundingClientRect(),s=n("#"+i.svgObject.id)[0].getBoundingClientRect(),e,o,h,c;return u?(e=this._getTransform(r.xAxis,r.yAxis,!0).x,o=this._getTransform(r.xAxis,r.yAxis,!0).y):(e=this._getTransform(r.xAxis,r.yAxis,!1).x,o=this._getTransform(r.xAxis,r.yAxis,!1).y),h=f.left-(e+s.left),c=f.top-(o+s.top),{x:h,y:c,width:f.right-f.left,height:f.bottom-f.top}},_minMax:function(n,t,i){return n>i?i:n=t.min},_logBase:function(n,t){return Math.log(n)/Math.log(t)},_correctRect:function(n,t,i,r){return{X:Math.min(n,i),Y:Math.min(t,r),Width:Math.abs(i-n),Height:Math.abs(r-t)}},_getValuebyPoint:function(n,t,i,r){var e=r?i.xAxis.height:i.xAxis.width,o=r?i.yAxis.width:i.yAxis.height,u=i.xAxis.isInversed?1-n/e:n/e,f=i.yAxis.isInversed?1-t/o:t/o;return u=u*i.xAxis.visibleRange.delta+i.xAxis.visibleRange.min,f=f*i.yAxis.visibleRange.delta+i.yAxis.visibleRange.min,u=i.xAxis._valueType=="logarithmic"?Math.pow(i.xAxis.logBase,u):u,f=i.yAxis._valueType=="logarithmic"?Math.pow(i.yAxis.logBase,f):f,{PointX:u,PointY:f}}};ej.EjSvgRender.chartTransform3D={ToRadial:Math.PI/180,transform3D:function(n){return this.vector||(this.vector=new(new ej.Ej3DRender).vector3D,this.matrixobj=new(new ej.Ej3DRender).matrix3D,this.bsptreeobj=new(new ej.Ej3DRender).BSPTreeBuilder,this.polygon=new(new ej.Ej3DRender).polygon3D),{mViewport:n,Rotation:0,Tilt:0,Depth:0,PerspectiveAngle:0,needUpdate:!0,centeredMatrix:this.matrixobj.getIdentity(),Perspective:this.matrixobj.getIdentity(),resultMatrix:this.matrixobj.getIdentity(),viewMatrix:this.matrixobj.getIdentity(),Depth:0}},transform:function(n){this.setCenter(this.vector.vector3D(n.mViewport.Width/2,n.mViewport.Height/2,n.Depth/2),n);this.setViewMatrix(this.matrixobj.transform(0,0,n.Depth),n);this.setViewMatrix(this.matrixobj.getMatrixMultiplication(n.viewMatrix,this.matrixobj.turn(-this.ToRadial*n.Rotation)),n);this.setViewMatrix(this.matrixobj.getMatrixMultiplication(n.viewMatrix,this.matrixobj.tilt(-this.ToRadial*n.Tilt)),n);this.updatePerspective(n.PerspectiveAngle,n);n.needUpdate=!0},updatePerspective:function(n,t){var i=(t.mViewport.Width+t.mViewport.Height)*Math.tan(this.degreeToRadianConverter((180-Math.abs(n%181))/2))+t.Depth/1;t.Perspective[0][0]=i;t.Perspective[1][1]=i;t.Perspective[2][3]=1;t.Perspective[3][3]=i},degreeToRadianConverter:function(n){return n*Math.PI/180},toScreen:function(n,t,i,r){var i=i?i:this.result;return r?(this.matrixobj=r,n=r.getMatrixVectorMutiple(i(t,r),n)):(t.chartObj=this.matrixobj,n=this.matrixobj.getMatrixVectorMutiple(i(t),n)),{x:n.x,y:n.y}},setViewMatrix:function(n,t){t.viewMatrix!=n&&(t.viewMatrix=n,t.needUpdate=!0)},setCenteredMatrix:function(n,t){t.viewMatrix!=n&&(t.centeredMatrix=n,t.needUpdate=!0)},result:function(n,t){var i=n.chartObj?n.chartObj:this.matrixobj,r;return(i||(i=t),!n.needUpdate)?n.resultMatrix:(r=this.matrixobj?this.matrixobj:t,n.resultMatrix=i.getMatrixMultiplication(r.getInvertal(n.centeredMatrix),n.Perspective),n.resultMatrix=i.getMatrixMultiplication(n.resultMatrix,n.viewMatrix),n.resultMatrix=i.getMatrixMultiplication(n.resultMatrix,n.centeredMatrix),n.needUpdate=!1,n.resultMatrix)},setCenter:function(n,t){t.centeredMatrix=this.matrixobj.transform(-n.x,-n.y,-n.z);t.needUpdate=!0},toPlane:function(n,t,i){var r=this.vector.vector3D(n.x,n.y,0),u=this.vector.vector3DPlus(r,this.vector.vector3D(0,0,1));return r=this.vector.vector3DMultiply(i.centeredMatrix,r),u=this.vector.vector3DMultiply(i.centeredMatrix,u),r=this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.Perspective),r),u=this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.Perspective),u),r=this.polygon.getPoint(r,this.vector.vector3DMinus(u-r)),r=this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.viewMatrix),r),this.vector.vector3DMultiply(this.matrixobj.getInvertal(i.centeredMatrix),r)}};ej.EjSvgRender.chartSymbol={_drawSeriesType:function(n,t,i){var r=i.model.series[t.SeriesIndex].type.toLowerCase(),u=i.legendItem.drawType;r=ej.util.isNullOrUndefined(u)?r:u;switch(r){case ej.datavisualization.Chart.Type.Line:return ej.util.isNullOrUndefined(u)?this._drawLine(n,t,i,i.gLegendItemEle):this._drawStraightLine(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.StepLine:return this._drawStepLine(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.StackingArea:case ej.datavisualization.Chart.Type.StackingArea100:case ej.datavisualization.Chart.Type.Area:case ej.datavisualization.Chart.Type.RangeArea:return this._drawArea(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.StepArea:return this._drawStepArea(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Bar:case ej.datavisualization.Chart.Type.StackingBar100:case ej.datavisualization.Chart.Type.StackingBar:return this._drawBar(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Pie:return this._drawPie(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Doughnut:return this._drawDoughnut(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Hilo:return this._drawHilo(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.HiloOpenClose:return this._drawHiloOpenClose(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Candle:return this._drawCandle(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Pyramid:return this._drawPyramid(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Funnel:return this._drawFunnel(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Spline:return this._drawSpline(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.SplineArea:case ej.datavisualization.Chart.Type.StackingSplineArea:case ej.datavisualization.Chart.Type.StackingSplineArea100:return this._drawSplineArea(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.RangeColumn:return this._drawRangeColumn(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Bubble:case ej.datavisualization.Chart.Type.Scatter:return this._drawCircle(n,t,i,i.gLegendItemEle);case ej.datavisualization.Chart.Type.Column:case ej.datavisualization.Chart.Type.StackingColumn:case ej.datavisualization.Chart.Type.StackingColumn100:case ej.datavisualization.Chart.Type.Waterfall:return this._drawColumn(n,t,i,i.gLegendItemEle);default:return this._drawRectangle(n,t,i,i.gLegendItemEle)}},_drawCircle:function(n,t,i,r){var o=i.svgRenderer,h=i.svgObject,f=t.ShapeSize,e=Math.sqrt(f.height*f.height+f.width*f.width)/2,u=t.Style,s={id:t.ID,cx:n.startX,cy:n.startY,r:e,fill:u.Color,"stroke-width":u.BorderWidth,stroke:u.BorderColor,opacity:u.Opacity,visibility:u.Visibility,lgndCtx:t.context};return o.drawCircle(s,r),n.startX-e},_drawLeftArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2+u.width)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2+u.width)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX-u.width/2)+" "+n.startY+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2+u.width)+" "+(n.startY+u.height/4)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawRightArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX-u.width/2+u.width)+" "+n.startY+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width/2+u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX-u.width/2)+" "+(n.startY+u.height/4)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawUpArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX-u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+n.startX+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2+u.height)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawDownArrow:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2-u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+n.startX+" "+(n.startY-u.height/2+u.height)+" L "+(n.startX-u.width/2)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2+u.height/2)+" L "+(n.startX-u.width/2+u.width/4)+" "+(n.startY-u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawCross:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+u.width/2)+" "+n.startY+" M "+n.startX+" "+(n.startY+u.height/2)+" L "+n.startX+" "+(n.startY+-u.height/2);e={id:t.ID,opacity:t.Style.Opacity,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawHorizLine:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+u.width/2)+" "+n.startY;e={id:t.ID,opacity:t.Style.Opacity,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawVertLine:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+n.startX+" "+(n.startY+u.height/2)+" L "+n.startX+" "+(n.startY+-u.height/2);e={id:t.ID,opacity:t.Style.Opacity,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawTriangle:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+(n.startY+u.height/2)+" L "+n.startX+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawInvertedTriangle:function(n,t,i,r){var f=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,e="M "+(n.startX+u.width/2)+" "+(n.startY-u.height/2)+" L "+n.startX+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width/2)+" "+(n.startY-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY-u.height/2)+" z";var h=n.startX,c=n.startY,o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:e};f.drawPath(o,r)},_drawHexagon:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+-u.width/4)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/4)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+n.startY+" L "+(n.startX+u.width/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+n.startY+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawWedge:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX-u.width)+" "+n.startY+" L "+(n.startX+u.width)+" "+(n.startY+-u.height/2)+" L "+(n.startX+3*(u.width/4))+" "+n.startY+" L "+(n.startX+u.width)+" "+(n.startY+u.height/2)+" L "+(n.startX-u.width)+" "+n.startY+" z";e={"stroke-linecap":"miter","stroke-miterlimit":u.width/4,id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawPentagon:function(n,t,i,r){for(var l,a,v=i.svgRenderer,p=i.svgObject,u=t.ShapeSize,o=Math.sqrt(u.height*u.height+u.width*u.width)/2,f=ej.EjSvgRender.utils._getStringBuilder(),e=0;e<=5;e++){var y=e*72,s=Math.PI/180*y,h=o*Math.cos(s),c=o*Math.sin(s);e==0?f.append("M "+(n.startX+h)+" "+(n.startY+c)+" "):f.append("L "+(n.startX+h)+" "+(n.startY+c)+" ")}f.append("z");l=f.toString();a={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:l};v.drawPath(a,r)},_drawStar:function(n,t,i,r){var o=i.svgRenderer,u=t.ShapeSize,s=i.svgObject,f,e;f="M "+(n.startX+u.width/3)+" "+(n.startY+-u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/6)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/6)+" L "+(n.startX+-u.width/3)+" "+(n.startY+-u.height/2)+" L "+n.startX+" "+(n.startY+u.height/2)+" L "+(n.startX+u.width/3)+" "+(n.startY+-u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawRectangle:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/2)+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawTrapezoid:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/4)+" L "+(n.startX+-u.width/2+u.width)+" "+(n.startY+-u.height/2)+" L "+(n.startX+-u.width/2+u.width)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+(n.startY+u.height/4)+" L "+(n.startX+-u.width/2)+" "+n.startY+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawDiamond:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;f="M "+(n.startX+-u.width/2)+" "+n.startY+" L "+n.startX+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+n.startY+" L "+n.startX+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2)+" "+n.startY+" z";e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,d:f};o.drawPath(e,r)},_drawEllipse:function(n,t,i,r){var f=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,e=n.startX,o=n.startY,s={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,lgndCtx:t.context,cx:e,cy:o,rx:u.width,ry:u.height/2};f.drawEllipse(s,r)},_drawImage:function(n,t,i,r){var f=i.svgRenderer,e=i.svgObject,u=t.ShapeSize,o=n.startX+-u.width/2,s=n.startY+-u.width/2,h=u.width,c=u.height,l={id:e.id+"_image"+t.PointIndex,height:c,width:h,href:t.Imageurl,x:o,y:s,visibility:"visible",lgndCtx:t.context};f.drawImage(l,r)},_drawStraightLine:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/10)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10),o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawLine:function(n,t,i,r){var o=i.svgRenderer,l=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,s;if(i.model.enableCanvasRendering===!0){e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/10)+" L "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" M "+(n.startX+Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10);var s={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},h="M "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" a "+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+2*Math.floor(u.width/3)+" 0 a"+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+-2*Math.floor(u.width/3)+" 0",c={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:h,lgndCtx:!0};o.drawPath(s,r);o.drawPath(c,r)}else e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/10)+" L "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" M "+(n.startX+Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10)+" M "+(n.startX-Math.floor(u.width/3))+" "+(n.startY+u.height/10)+" a "+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+2*Math.floor(u.width/3)+" 0 a"+Math.floor(u.width/3)+" "+Math.floor(u.width/3)+" 0 1 0 "+-2*Math.floor(u.width/3)+" 0",s={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},o.drawPath(s,r);return n.startX+-u.width/2+-f/4},_drawColumn:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX-3*(u.width/5))+" "+(n.startY-u.height/5)+" L "+(n.startX+3*(-u.width/10))+" "+(n.startY-u.height/5)+" L "+(n.startX+3*(-u.width/10))+" "+(n.startY+u.height/2)+" L "+(n.startX-3*(u.height/5))+" "+(n.startY+u.height/2)+" Z M "+(n.startX+-u.width/10-u.width/20)+" "+(n.startY-u.height/4-f/2)+" L "+(n.startX+u.width/10+u.width/20)+" "+(n.startY-u.height/4-f/2)+" L "+(n.startX+u.width/10+u.width/20)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/10-u.width/20)+" "+(n.startY+u.height/2)+" Z M "+(n.startX+3*(u.width/10))+" "+n.startY+" L "+(n.startX+3*(u.width/5))+" "+n.startY+" L "+(n.startX+3*(u.width/5))+" "+(n.startY+u.height/2)+" L "+(n.startX+3*(u.width/10))+" "+(n.startY+u.height/2)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX-3*(u.width/5)},_drawRangeColumn:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/5)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+-u.width/5)+" "+(n.startY-u.height/2-f/4)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2+-f/4)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2+f/4)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/5},_drawBar:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY-3*(u.height/5))+" L "+(n.startX+3*(u.width/10))+" "+(n.startY-3*(u.height/5))+" L "+(n.startX+3*(u.width/10))+" "+(n.startY-3*(u.height/10))+" L "+(n.startX-u.width/2+-f/4)+" "+(n.startY-3*(u.height/10))+" Z M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY-u.height/5+f/20)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY-u.height/5+f/20)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/10+f/20)+" L "+(n.startX-u.width/2+-f/4)+" "+(n.startY+u.height/10+f/20)+" Z M "+(n.startX-u.width/2+-f/4)+" "+(n.startY+u.height/5+f/10)+" L "+(n.startX+-u.width/4)+" "+(n.startY+u.height/5+f/10)+" L "+(n.startX+-u.width/4)+" "+(n.startY+u.height/2+f/10)+" L "+(n.startX-u.width/2+-f/4)+" "+(n.startY+u.height/2+f/10)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawStepLine:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2-f/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2+u.width/10)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2+u.width/10)+" "+n.startY+" L "+(n.startX+-u.width/10)+" "+n.startY+" L "+(n.startX+-u.width/10)+" "+(n.startY+u.height/2)+" L "+(n.startX+u.width/5)+" "+(n.startY+u.height/2)+" L "+(n.startX+u.width/5)+" "+(n.startY+-u.height/2)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2)+"L "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" L"+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/2),o={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2-f/4},_drawSpline:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;return f="M "+(n.startX-u.width/2)+" "+(n.startY+u.height/5)+" Q "+n.startX+" "+(n.startY-u.height)+" "+n.startX+" "+(n.startY+u.height/5)+" M "+n.startX+" "+(n.startY+u.height/5)+" Q "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" "+(n.startX+u.width/2)+" "+(n.startY-u.height/2),e={id:t.ID,fill:"transparent","stroke-width":t.Style.BorderWidth*2,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:f,lgndCtx:!0},o.drawPath(e,r),n.startX-u.width/2},_drawSplineArea:function(n,t,i,r){var o=i.svgRenderer,s=i.svgObject,u=t.ShapeSize,f,e;return f="M "+(n.startX-u.width/2)+" "+(n.startY+u.height/5)+" Q "+n.startX+" "+(n.startY-u.height)+" "+n.startX+" "+(n.startY+u.height/5)+" Z M "+n.startX+" "+(n.startY+u.height/5)+" Q "+(n.startX+u.width/2)+" "+(n.startY+u.height/2)+" "+(n.startX+u.width/2)+" "+(n.startY-u.height/2)+" Z",e={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:f,lgndCtx:!0},o.drawPath(e,r),n.startX-u.width/2},_drawArea:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX-u.width/2-f/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/4+-f/8)+" "+(n.startY-u.height/2)+" L "+n.startX+" "+(n.startY+u.height/4)+" L "+(n.startX+u.width/4+f/8)+" "+(n.startY+-u.height/2+u.height/4)+" L "+(n.startX+u.height/2+f/4)+" "+(n.startY+u.height/2)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX-u.width/2-f/4},_drawStepArea:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/2)+" L "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+-u.height/2)+" L "+(n.startX-u.width/4)+" "+(n.startY-u.height/2)+" L "+(n.startX-u.width/4)+" "+(n.startY-u.height/4)+" L "+(n.startX+u.width/4)+" "+(n.startY-u.height/4)+" L "+(n.startX+u.width/4)+" "+n.startX+" L "+(n.startX+u.width/2+f/4)+" "+n.startY+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/2)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawPyramid:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/4)+" "+(n.startY+u.height/2+f/8)+" L "+n.startX+" "+(n.startY+-u.height/2+-f/8)+" L "+(n.startX+u.width/2+f/4)+" "+(n.startY+u.height/2+f/8)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/4},_drawFunnel:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2+-f/5)+" "+(n.startY+-u.height/2+-f/4)+" L "+(n.startX+-u.width/5)+" "+(n.startY+u.height/4)+" L "+(n.startX+-u.width/5)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+u.width/5)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+u.width/5)+" "+(n.startY+u.height/4)+" L "+(n.startX+u.width/2+f/5)+" "+(n.startY+-u.height/2+-f/4)+" Z",o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.BorderColor,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2+-f/5},_drawCandle:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+-u.width/2)+" "+(n.startY+u.height/4+f/8)+" L "+(n.startX+u.width/2)+" "+(n.startY+u.height/4+f/8)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2+f/8)+" L "+(n.startX+-u.width/2)+" "+(n.startY+-u.height/2+f/8)+" Z M "+n.startX+" "+(n.startY+-u.height/2+f/8)+" L "+n.startX+" "+(n.startY+-u.height/2+-f/4)+" M "+n.startX+" "+(n.startY+u.height/4+f/8)+" L "+n.startX+" "+(n.startY+u.height/4+f/2),o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+-u.width/2},_drawHilo:function(n,t,i,r){var s=i.svgRenderer,h=i.svgObject,u=t.ShapeSize,f=t.ElementSpace,e,o;return e="M "+(n.startX+u.width/2)+" "+(n.startY+u.height/2+f/4)+" L "+(n.startX+u.width/2)+" "+(n.startY+-u.height/2+-f/4),o={id:t.ID,fill:t.Style.Color,"stroke-width":t.Style.BorderWidth,stroke:t.Style.Color,opacity:t.Style.Opacity,visibility:t.Style.Visibility,d:e,lgndCtx:!0},s.drawPath(o,r),n.startX+u.width/2},_drawHiloOpenClose:function(n,i,r,u){var h=r.svgRenderer,c=r.svgObject,f=i.ShapeSize,l=t(18,12,4.0710678118654755,270),e=i.ElementSpace,o,s;return o="M "+n.startX+" "+(n.startY-3*(f.height/10))+" L "+(n.startX-f.width/2-e/4)+" "+(n.startY-3*(f.height/10))+" M "+n.startX+" "+(n.startY-f.height/2-e/4)+" L "+n.startX+" "+(n.startY+f.height/2+e/4)+" M "+n.startX+" "+(n.startY+3*(f.height/10))+" L "+(n.startX+f.width/2+e/4)+" "+(n.startY+3*(f.height/10)),s={id:i.ID,fill:"transparent","stroke-width":i.Style.BorderWidth,stroke:i.Style.Color,opacity:i.Style.Opacity,visibility:i.Style.Visibility,d:o,lgndCtx:!0},h.drawPath(s,u),n.startX-f.width/2},_drawDoughnut:function(n,i,r,u){var o=r.svgRenderer,y=r.svgObject,e=i.ShapeSize,c=i.ElementSpace,f=Math.sqrt(e.height*e.width)/2;f=f+c/5;var s=t(n.startX,n.startY,f,270),h=t(n.startX+e.width/10,n.startY,f,270),c=i.ElementSpace,l="M "+n.startX+" "+n.startY+" L "+(n.startX+f)+" "+n.startY+" A "+f+" "+f+" 0 1 1 "+s[0]+" "+s[1]+" Z M "+(n.startX+e.width/10)+" "+(n.startY-e.height/10)+" L"+(n.startX+f)+" "+(n.startY-e.height/10)+" A "+f+" "+f+" 0 0 0 "+h[0]+" "+h[1]+" Z",a={id:i.ID,fill:i.Style.Color,"stroke-width":i.Style.BorderWidth,stroke:i.Style.BorderColor,opacity:i.Style.Opacity,visibility:i.Style.Visibility,d:l,lgndCtx:!0},v={id:i.ID,cx:n.startX,cy:n.startY,r:f/2,lgndCtx:!0,fill:"white","stroke-width":i.Style.BorderWidth,stroke:i.Style.BorderColor,opacity:i.Style.Opacity,visibility:i.Style.Visibility};return o.drawPath(a,u),o.drawCircle(v,u),n.startX-f},_drawPie:function(n,i,r,u){var h=r.svgRenderer,v=r.svgObject,e=i.ShapeSize,c=i.ElementSpace,f=Math.sqrt(e.height*e.width)/2;f=f+c/5;var o=t(n.startX,n.startY,f,270),s=t(n.startX+e.width/10,n.startY,f,270),c=i.ElementSpace,l="M "+n.startX+" "+n.startY+" L "+(n.startX+f)+" "+n.startY+" A "+f+" "+f+" 0 1 1 "+o[0]+" "+o[1]+" Z M "+(n.startX+e.width/10)+" "+(n.startY-e.height/10)+" L"+(n.startX+f)+" "+(n.startY-e.height/10)+" A "+f+" "+f+" 0 0 0 "+s[0]+" "+s[1]+" Z",a={id:i.ID,fill:i.Style.Color,"stroke-width":i.Style.BorderWidth,stroke:i.Style.BorderColor,opacity:i.Style.Opacity,visibility:i.Style.Visibility,d:l,lgndCtx:!0};return h.drawPath(a,u),n.startX-f}};ej.EjSvgRender.seriesPalette={defaultMetro:["#E94649","#F6B53F","#6FAAB0","#C4C24A","#FB954F","#005277","#8BC652","#69D2E7","#E27F2D","#6A4B82"],defaultHighContrast:["#F93A00","#44E2D6","#DDD10D","#0AA368","#0556CB","#AB40B2","#5F930A","#D12E41","#E0670E","#008FFF"],defaultOffice:["#005277","#8BC652","#6A4B82","#E94649","#6FAAB0","#F7B74F","#C4C24A","#EF863F","#69D2E7","#FFD13E"],defaultMaterial:["#663AB6","#EB3F79","#F8AB1D","#B82E3D","#049CB1","#F2424F","#C2C924","#3DA046","#074D67","#02A8F4"],defaultGradient:{borderColors:["#F34649","#F6D321","#6EB9B0","#CBC26A","#FBAF4F","#E2CDB1","#FFC0B7","#68E1E6","#E1A62D","#9C6EBF"],seriesColors:[[{color:"#F34649",colorStop:"0%"},{color:"#B74143",colorStop:"100%"}],[{color:"#F6D321",colorStop:"0%"},{color:"#F6AE26",colorStop:"100%"}],[{color:"#6EB9B0",colorStop:"0%"},{color:"#3F77BD",colorStop:"100%"}],[{color:"#CBC26A",colorStop:"0%"},{color:"#9AAD21",colorStop:"100%"}],[{color:"#FBAF4F",colorStop:"0%"},{color:"#F07542",colorStop:"100%"}],[{color:"#E2CDB1",colorStop:"0%"},{color:"#AAA089",colorStop:"100%"}],[{color:"#8BC652",colorStop:"0%"},{color:"#6F9E41",colorStop:"100%"}],[{color:"#68E1E6",colorStop:"0%"},{color:"#3D9CBE",colorStop:"100%"}],[{color:"#E1A62D",colorStop:"0%"},{color:"#B66824",colorStop:"100%"}],[{color:"#9C6EBF",colorStop:"0%"}],[{color:"#593F6D",colorStop:"100%"}]]},blueMetro:["#005378","#006691","#007EB5","#0D97D4","#00AEFF","#14B9FF","#54CCFF","#87DBFF","#ADE5FF","#C5EDFF"],blueGradient:{seriesColors:[[{color:"#005277",colorStop:"0%"},{color:"#00304F",colorStop:"100%"}],[{color:"#006590",colorStop:"0%"},{color:"#004068",colorStop:"100%"}],[{color:"#007DB4",colorStop:"0%"},{color:"#00558B",colorStop:"100%"}],[{color:"#0D97D4",colorStop:"0%"},{color:"#057FC7",colorStop:"100%"}],[{color:"#00ADFE",colorStop:"0%"},{color:"#008BE9",colorStop:"100%"}],[{color:"#14B8FE",colorStop:"0%"},{color:"#0798EB",colorStop:"100%"}],[{color:"#53CBFF",colorStop:"0%"},{color:"#35AFEB",colorStop:"100%"}],[{color:"#86DAFF",colorStop:"0%"},{color:"#64C0EC",colorStop:"100%"}],[{color:"#ACE5FF",colorStop:"0%"},{color:"#8DCEED",colorStop:"100%"}],[{color:"#C4ECFF",colorStop:"0%"}],[{color:"#A3D1E6",colorStop:"100%"}]],borderColors:["#005277","#006590","#007DB4","#0D97D4","#00ADFE","#14B8FE","#53CBFF","#86DAFF","#ACE5FF","#C4ECFF"]},greenMetro:["#496612","#597B15","#709A1B","#87B62A","#9AD926","#A6DC37","#BCE654","#C8E780","#D5EFA5","#E2F3BE"],greenGradient:{seriesColors:[[{color:"#5C7F16",colorStop:"0%"},{color:"#384C08",colorStop:"100%"}],[{color:"#6A9319",colorStop:"0%"},{color:"#486009",colorStop:"100%"}],[{color:"#739D1C",colorStop:"0%"},{color:"#57760B",colorStop:"100%"}],[{color:"#90B546",colorStop:"0%"},{color:"#6E9215",colorStop:"100%"}],[{color:"#9AD826",colorStop:"0%"},{color:"#75A010",colorStop:"100%"}],[{color:"#A5DB36",colorStop:"0%"},{color:"#8EB91D",colorStop:"100%"}],[{color:"#BBE554",colorStop:"0%"},{color:"#A4C849",colorStop:"100%"}],[{color:"#C8E780",colorStop:"0%"},{color:"#B4D072",colorStop:"100%"}],[{color:"#D4EEA5",colorStop:"0%"},{color:"#BFD593",colorStop:"100%"}],[{color:"#E1F2BD",colorStop:"0%"}],[{color:"#C8D7A8",colorStop:"100%"}]],borderColors:["#5C7F16","#6A9319","#739D1C","#90B546","#9AD826","#A5DB36","#BBE554","#C8E780","#D4EEA5","#E1F2BD"]},sandleMetro:["#6C450C","#82520D","#A36812","#C07F1F","#E69719","#E89A2B","#EEB564","#F3CB93","#F7DEB4","#F9E6CA"],sandleGradient:{seriesColors:[[{color:"#7F602F",colorStop:"0%"},{color:"#512D04",colorStop:"100%"}],[{color:"#986827",colorStop:"0%"},{color:"#673803",colorStop:"100%"}],[{color:"#A16C1F",colorStop:"0%"},{color:"#8A4B05",colorStop:"100%"}],[{color:"#BF812A",colorStop:"0%"},{color:"#AD630D",colorStop:"100%"}],[{color:"#E49519",colorStop:"0%"},{color:"#B86607",colorStop:"100%"}],[{color:"#E7992A",colorStop:"0%"},{color:"#D7780D",colorStop:"100%"}],[{color:"#EDB463",colorStop:"0%"},{color:"#D98F31",colorStop:"100%"}],[{color:"#F2CA92",colorStop:"0%"},{color:"#DAAC6F",colorStop:"100%"}],[{color:"#F6DDB3",colorStop:"0%"},{color:"#DABE8F",colorStop:"100%"}],[{color:"#F8E5C9",colorStop:"0%"}],[{color:"#DDBE92",colorStop:"100%"}]],borderColors:["#7F602F","#986827","#A16C1F","#BF812A","#E49519","#E7992A","#EDB463","#F2CA92","#F6DDB3","#F8E5C9"]}};ej.EjSvgRender.themes={flatlight:{highlightColor:"black",background:"transparent",legend:{font:{color:"#282828"},title:{font:{color:"#282828"}}},title:{font:{color:"#565656"},subTitle:{font:{color:"#565656"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",borderWidth:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#565656"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultMetro,colors:ej.EjSvgRender.seriesPalette.defaultMetro},flatdark:{highlightColor:"white",background:"#111111",legend:{font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}}},title:{font:{color:"#C9C9C9"},subTitle:{font:{color:"#C9C9C9"}}},primaryXAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryX:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},primaryYAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryY:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:0,ry:0,fill:"#B5B5B5",border:{color:"#B5B5B5",width:1},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#C9C9C9"}}},errorBar:{fill:"#ffffff",cap:{fill:"#ffffff"}},connectorLine:{color:"#C9C9C9"}},crosshair:{line:{width:1,color:"White"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultMetro,colors:ej.EjSvgRender.seriesPalette.defaultMetro},gradientlight:{highlightColor:"black",background:"transparent",legend:{font:{color:"#282828"},title:{font:{color:"#282828"}}},title:{font:{color:"#565656"},subTitle:{font:{color:"#565656"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#282828",axisLine:{color:"#8E8E8E"},font:{color:"#282828"},title:{font:{color:"#282828"}},crosshairLabel:{rx:3,ry:3,fill:"#3D3D3D",border:{color:"#3D3D3D",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#565656"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.defaultGradient.seriesColors},gradientdark:{highlightColor:"white",background:"#111111",legend:{font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}}},title:{font:{color:"#C9C9C9"},subTitle:{font:{color:"#C9C9C9"}}},primaryXAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryX:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},primaryYAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryY:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#C9C9C9",axisLine:{color:"#AAAAAA"},font:{color:"#C9C9C9"},title:{font:{color:"#C9C9C9"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#C9C9C9"}}},errorBar:{fill:"#ffffff",cap:{fill:"#ffffff"}},connectorLine:{color:"#C9C9C9"}},crosshair:{line:{width:1,color:"White"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.defaultGradient.seriesColors},highcontrast01:{highlightColor:"white",background:"#111111",legend:{font:{color:"#ffffff"},title:{font:{color:"#ffffff"}}},title:{font:{color:"#ffffff"},subTitle:{font:{color:"#ffffff"}}},primaryXAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#ffffff",axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryX:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},primaryYAxis:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},labelBorder:{color:"#AAAAAA"},multiLevelLabelsColor:"#AAAAAA",multiLevelLabelsFontColor:"#ffffff",axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},secondaryY:{majorGridLines:{color:"#333333"},majorTickLines:{color:"#AAAAAA"},minorGridLines:{color:"#333333"},minorTickLines:{color:"#AAAAAA"},axisLine:{color:"#AAAAAA"},font:{color:"#ffffff"},title:{font:{color:"#ffffff"}},crosshairLabel:{rx:3,ry:3,fill:"#B5B5B5",border:{color:"#B5B5B5",width:2},font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#444444"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#ffffff"}}},errorBar:{fill:"#ffffff",cap:{fill:"#ffffff"}},connectorLine:{color:"#C9C9C9"}},crosshair:{line:{width:1,color:"White"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultHighContrast,colors:ej.EjSvgRender.seriesPalette.defaultHighContrast},material:{highlightColor:"black",background:"transparent",legend:{font:{color:"#333333"},title:{font:{color:"#333333"}}},title:{font:{color:"#333333"},subTitle:{font:{color:"#333333"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",borderWidth:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#333333"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultMaterial,colors:ej.EjSvgRender.seriesPalette.defaultMaterial},office365:{highlightColor:"black",background:"transparent",legend:{font:{color:"#333333"},title:{font:{color:"#333333"}}},title:{font:{color:"#333333"},subTitle:{font:{color:"#333333"}}},primaryXAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryX:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},primaryYAxis:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},labelBorder:{color:"#8E8E8E"},multiLevelLabelsColor:"#8E8E8E",multiLevelLabelsFontColor:"#333333",axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",borderWidth:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},secondaryY:{majorGridLines:{color:"#DFDFDF"},majorTickLines:{color:"#8E8E8E"},minorGridLines:{color:"#DFDFDF"},minorTickLines:{color:"#8E8E8E"},axisLine:{color:"#8E8E8E"},font:{color:"#333333"},title:{font:{color:"#333333"}},crosshairLabel:{rx:0,ry:0,border:{color:"#3D3D3D",width:1},fill:"#3D3D3D",font:{fontFamily:"Segoe UI",fontStyle:"Normal",size:"13px",fontWeight:"regular",opacity:1,color:"#DBDBDB"}}},commonSeriesOptions:{marker:{dataLabel:{font:{color:"#333333"}}},errorBar:{fill:"#000000",cap:{fill:"#000000"}},connectorLine:{color:"#565656"}},crosshair:{line:{width:1,color:"Black"}},seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.defaultOffice,colors:ej.EjSvgRender.seriesPalette.defaultOffice}};n.extend(ej.EjSvgRender.themes,{azure:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueMetro,colors:ej.EjSvgRender.seriesPalette.blueMetro},azuredark:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueMetro,colors:ej.EjSvgRender.seriesPalette.blueMetro},"gradient-azure":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.blueGradient.seriesColors},"gradient-azuredark":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.blueGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.blueGradient.seriesColors},lime:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenMetro,colors:ej.EjSvgRender.seriesPalette.greenMetro},limedark:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenMetro,colors:ej.EjSvgRender.seriesPalette.greenMetro},"gradient-lime":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.greenGradient.seriesColors},"gradient-limedark":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.greenGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.greenGradient.seriesColors},saffron:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleMetro,colors:ej.EjSvgRender.seriesPalette.sandleMetro},saffrondark:{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleMetro,colors:ej.EjSvgRender.seriesPalette.sandleMetro},"gradient-saffron":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.sandleGradient.seriesColors},"gradient-saffrondark":{seriesBorderDefaultColors:ej.EjSvgRender.seriesPalette.sandleGradient.borderColors,colors:ej.EjSvgRender.seriesPalette.sandleGradient.seriesColors}})}(jQuery);ej.axisTypes={};ej.EjAxisRenderer=function(){};var _sideBySeriesPadding=function(n,t,i,r){for(var u,f,o=ej.DataManager(n.model._visibleSeries,ej.Query().sortBy("_zOrder")).executeLocal(),s=!1,h=o.length,c=r.orientation.toLowerCase(),e=0;eNumber.MAX_VALUE?Number.MAX_VALUE:i+f,r.padding=f):r.padding=0,{startPadding:t,endPadding:i}};ej.EjStripline=function(n){this.chart=n},function(n){function t(t,i){var r=function(){};return r.prototype=new t,n.extend(r.prototype,i),r}var i,r,u,f,e;ej.EjAxisRenderer.prototype={_seriesMinMax:function(t,i,r,u,f){var vt=i.orientation.toLowerCase(),ti=r.length,yt,d,e,l,w,lt,at,s,o,nt,tt,rt,ui,li,fi,y,ei,gt,oi,ni,ut;if(f.seriesCollection=ej.util.isNullOrUndefined(f.seriesCollection)?{}:f.seriesCollection,ti>0&&t.model._hasSeriesPoints&&r[0].points.length>0||this.chartObj.model.indicators[0]._points.length>0){var pt,a,wt,v,bt,kt,ii,si={maxX:null,minX:null},hi={maxY:null,minY:null},k=si.maxX,b=si.minX,c=hi.maxY,h=hi.minY,dt,ft,et,ot;for(e=0;e0&&(dt=r[e].visibility.toLowerCase(),ft=r[e].points.length,dt==="visible"&&ft>0))if(vt=="horizontal"&&!t.model.requireInvertedAxes||vt=="vertical"&&t.model.requireInvertedAxes){for(wt=pt=r[e]._visiblePoints[0].xValue,s=0;so&&(wt=o),pt0&&(k=r[e].maxX,b=r[e].minX);b>r[e].minX&&(b=r[e].minX);ko.YValues[nt]&&(a=o.YValues[nt]),vo.YValues[0][tt]&&(lt=o.YValues[0][tt]),ata?a:lt;v=ato.YValues[0]&&(a=o.YValues[0]),v0&&(c=r[e].maxY,h=r[e].minY);h>r[e].minY&&(h=r[e].minY);cy.min||h==null)&&(h=y.min),(cy.min&&(h=y.min),cy.min||h==null)&&(h=y.min),(c0?h=0:(h=0,c+=1)),ot!="column"&&ot!="bar"||i.startFromZero||(ei=i.range&&i.range.max||c,gt=i.range&&i.range.interval||this.calculateNumericNiceInterval(ei-h,i,null,ei),c+=gt,h-gt<0&&h>0||fi?h=0:h-=gt),oi=c-h,fi=!1,i.range=u=="double"?this._getDoubleAutoRange(i,h,c,oi):this._getLogAutoRange(i,h,c,oi))}else i.setRange?(bt=i.range.min==null||i.range.min==undefined?0:i.range.min,kt=i.range.max==null||i.range.max==undefined?5:i.range.max,ii=kt-bt,i.range=u=="double"?this._getDoubleAutoRange(i,bt,kt,ii):this._getLogAutoRange(i,bt,kt,ii)):i.range={min:0,max:5,interval:1,Delta:4};ni=n.extend({},ej.EjSvgRender.commonChartEventArgs);ni.data={range:i.range,axis:i};this.chartObj._trigger("axesRangeCalculate",ni);ut=ni.data.range;i.range={min:ut.min,max:ut.max,interval:ut.interval,delta:ut.max-ut.min}},_calculateTrendLineRange:function(n,t,i){for(var f,u,e,r,l,s,h,c,a=i.length,o=0;o1&&(l=r.points.length-1,t.range.min=t.range.min>r.minY?r.minY:t.range.min,t.range.max=t.range.max0)&&this.chartObj.model.AreaType!="polaraxes"&&!this.chartObj.model.disableZoom){t.zoomFactor=t.zoomFactor>1?1:t.zoomFactor<0?0:t.zoomFactor;t.zoomPosition=t.zoomPosition<0?0:t.zoomPosition>1?1:t.zoomPosition;e=t.actualRange;t.isInversed?(u=t.actualRange.max-t.zoomPosition*t.actualRange.delta,f=u-t.zoomFactor*t.actualRange.delta):(u=t.actualRange.min+t.zoomPosition*t.actualRange.delta,f=u+t.zoomFactor*t.actualRange.delta);ue.max&&(u=u-(f-e.max),f=e.max);o=new Date(u);s=new Date(f);u==f&&(o=new Date(Date.parse(o)-2592e6),s=new Date(Date.parse(s)+2592e6));var c=Math.min(o.getTime(),s.getTime()),l=Math.max(o.getTime(),s.getTime()),h=t.enableAutoIntervalOnZooming?this.calculateDateTimeNiceInterval(t,o,s):{interval:t._interval,intervalType:t._intervalType},a=this._increaseDateTimeInterval(o,h.interval,h.intervalType).getTime()-c;if(r)return{min:c,max:l,interval:a};t._intervalType=h.intervalType;t.visibleRange.min=c;t.visibleRange.max=l;t.visibleRange.interval=a;t.visibleRange.delta=Math.abs(t.visibleRange.max-t.visibleRange.min);t._interval=h.interval}},_calculateAxisLabels:function(t){for(var u,f=t.enableAutoIntervalOnZooming?t.visibleRange.min:t.actualRange.min,r,i=this.chartObj.zoomed||t.zoomed||!t.setRange?this.AlignRangeStart(new Date(f),t._interval,t._intervalType).getTime():t.visibleRange.min;i<=t.visibleRange.max;)i>=t.visibleRange.min&&i<=t.visibleRange.max&&(u=ej.format(new Date(i),t.labelFormat?t.labelFormat:ej.EjSvgRender.utils._dateTimeLabelFormat(t._intervalType,t),this.chartObj.model.locale),r=n.extend({},ej.EjSvgRender.commonChartEventArgs),r.data={label:{Text:u,Value:i},axis:t},this.chartObj._trigger("axesLabelRendering",r),t.visibleLabels.push({Value:i,Text:r.data.label.Text})),i=this._increaseDateTimeInterval(new Date(i),t._interval,t._intervalType).getTime(),t.visibleLabels[t.visibleLabels.length-1]=t.visibleLabels[t.visibleLabels.length-1];t._LableMaxWidth=ej.EjSvgRender.utils._getMaxLabelWidth(t,this.chartObj)},calculateDateTimeNiceInterval:function(n,t,i){var u=Math.abs((t.getTime()-i.getTime())/864e5),r=this.calculateNumericNiceInterval(u/365,n,"years"),f,e,o,s;return r>=1?{interval:r,intervalType:"Years"}:(r=this.calculateNumericNiceInterval(u/30,n,"months"),r>=1)?{interval:r,intervalType:"Months"}:(r=this.calculateNumericNiceInterval(u,n,"days"),r>=1)?{interval:r,intervalType:"Days"}:(f=u*24,r=this.calculateNumericNiceInterval(f,n,"hours"),r>=1)?{interval:r,intervalType:"Hours"}:(e=u*1440,r=this.calculateNumericNiceInterval(e,n,"minutes"),r>=1)?{interval:r,intervalType:"Minutes"}:(o=u*86400,r=this.calculateNumericNiceInterval(o,n,"seconds"),r>=1)?{interval:r,intervalType:"Seconds"}:(s=u*864e5,r=this.calculateNumericNiceInterval(s,n,"milliseconds"),r>=1?{interval:r,intervalType:"Milliseconds"}:void 0)},calculateNumericNiceInterval:function(n,t,i,r){var o=this.GetActualDesiredIntervalsCount(t,t.length),u=n/o,f,e;if(t._valueType=="double"&&t.desiredIntervals!=null)return u;var h=Math.pow(10,Math.floor(ej.EjSvgRender.utils._logBase(u,10))),s=[10,5,2,1],c=r||t.range&&t.range.max;for(f=0;fc?e:u;u=e}return u},GetActualDesiredIntervalsCount:function(n,t){if(ej.util.isNullOrUndefined(n.desiredIntervals)){var i=(n.orientation.toLowerCase()=="horizontal"?.533:1)*n.maximumLabels;return Math.max(t*(i/100),1)}return n.desiredIntervals},_calculateRange:function(t,i,r){var p,st,f,o,tt,v,it,rt,ut,ct,b,a,l,e,s,k,ft,ht,y,lt,ot,d;if(!this.chartObj.zoomed){if(p=new Date,r.seriesCollection=ej.util.isNullOrUndefined(r.seriesCollection)?{}:r.seriesCollection,st=t.orientation.toLowerCase(),i.length>0&&this.chartObj.model._hasSeriesPoints&&i[0].points.length>0||this.chartObj.model.indicators[0]._points.length>0){var g,h,c,w,u={maxX:null,minX:null},et={maxY:null,minY:null},nt;for(f=0;f0&&i[f].visibility.toLowerCase()==="visible"&&i[f].points.length>0){for(tt=o.type.toLowerCase().indexOf("spline")!=-1,st=="vertical"&&tt?(b=0,a=i[f]._visiblePoints,tt&&(l=o._name=o.name||"series"+f,r.seriesCollection[l]={},a=ej.ejSplineSeries.prototype._isVisiblePoints(o),it=r.seriesCollection[l].naturalSpline=ej.ejSplineSeries.prototype.naturalSpline(a,o,0,t),o.type.toLowerCase()=="splinerangearea"&&(rt=r.seriesCollection[l].naturalSpline1=ej.ejSplineSeries.prototype.naturalSpline(a,o,1,t)),r.seriesCollection[l].controlPoints=[],ut=ej.ejSplineSeries.prototype.getBezierControlPoints,ct=a.filter(function(n){return!ej.isNullOrUndefined(n.YValues[0])&&!isNaN(n.YValues[0])})),c=h=tt?ct[0].YValues[0]:a[0].YValues[0]):(w=g=new Date(i[f].points[0].xValue),c=h=i[f].points[0].YValues[0]),e=0;ei[f].points[e].xValue&&(w=i[f].points[e].xValue),gi[f].points[e].YValues[0]&&(h=i[f].points[e].YValues[0]),ci[f].minX&&(u.minX=typeof i[f].minX!="number"?i[f].minX:u.minX);(u.maxX=u.maxX==null&&typeof i[f].maxX!="number"?i[f].maxX:u.maxX)i[f].minY&&(et.minY=i[f].minY);et.maxYnew Date(ft.min)||u.minX==null)&&(u.minX=new Date(ft.min)),(u.maxX20&&(f=u.toString(),u=parseFloat(f.substring(0,f.indexOf("."))+f.substring(f.indexOf("."),22))),(ej.util.isNullOrUndefined(t.range.interval)||t.range.interval<0)&&(t.range.interval=u),t.range.delta=e,t.range},_calculatePadding:function(n,t,i){var e=i.min,u=i.max,s=t.rangePadding.toLowerCase(),r=i.interval,o,h,f;t.setRange||n.zoomed||(s=="normal"?(o=0,e<0?(e=0,o=i.min+i.min/20,h=r+o%r,.365*r>=h&&(o-=r),o%r<0&&(o=o-r-o%r)):(o=e<5/6*u?0:e-(u-e)/2,o%r>0&&(o-=o%r)),f=u>0?u+(u-e)/20>Number.MAX_VALUE?Number.MAX_VALUE:u+(u-e)/20:u-(u-e)/20,h=r-f%r,.365*r>=h&&(f=f+r>Number.MAX_VALUE?Number.MAX_VALUE:f+r),f%r>0&&(f=f+r-f%r>Number.MAX_VALUE?Number.MAX_VALUE:f+r-f%r),o<=0&&(r=this.calculateNumericNiceInterval(f-o,t),f=Math.ceil(f/r)*r>Number.MAX_VALUE?Number.MAX_VALUE:Math.ceil(f/r)*r),e=t.roundingPlaces?parseFloat(o.toFixed(t.roundingPlaces)):parseFloat(o.toFixed(ej.EjSvgRender.utils._decimalPlaces(r)==0?1:ej.EjSvgRender.utils._decimalPlaces(r))),u=t.roundingPlaces?parseFloat(f.toFixed(t.roundingPlaces)):parseFloat(f.toFixed(ej.EjSvgRender.utils._decimalPlaces(r)==0?1:ej.EjSvgRender.utils._decimalPlaces(r)))):(s=="additional"||s=="round")&&(e=Math.floor(e/r)*r,u=Math.ceil(u/r)*r>Number.MAX_VALUE?Number.MAX_VALUE:Math.ceil(u/r)*r,s=="additional"&&(e-=r,u=u+r>=Number.MAX_VALUE?Number.MAX_VALUE:u+r)));t.actualRange.min=e;t.actualRange.max=u;t.actualRange.interval=r;t.range.min=e;t.range.max=u;t.range.interval=r;t.actualRange.delta=u-e>=Number.MAX_VALUE?u:u-e;this._calculateVisibleRange(t);t.rangePadding=t._rangePadding},_calculateVisibleRange:function(t,i,r){var e,u,f,o,s;if(this.chartObj=i?i:this.chartObj,t.visibleRange=r?t.visibleRange:n.extend(!0,{},t.actualRange),(t.zoomFactor<1||t.zoomPosition>0)&&this.chartObj.model.AreaType!="polaraxes"&&!this.chartObj.model.disableZoom){if(e=t.actualRange,t.zoomFactor=t.zoomFactor>1?1:t.zoomFactor<0?0:t.zoomFactor,t.zoomPosition=t.zoomPosition<0?0:t.zoomPosition>1?1:t.zoomPosition,t.isInversed?(u=t.actualRange.max-t.zoomPosition*t.actualRange.delta,f=u-t.zoomFactor*t.actualRange.delta):(u=t.actualRange.min+t.zoomPosition*t.actualRange.delta,f=u+t.zoomFactor*t.actualRange.delta),ue.max&&(u=u-(f-e.max),f=e.max),o=Math.abs(f-u),s=t.enableAutoIntervalOnZooming?this.calculateNumericNiceInterval(o,t):t.actualRange.interval,r)return{min:Math.min(u,f),max:Math.max(u,f),delta:o,interval:s};t.visibleRange.min=Math.min(u,f);t.visibleRange.max=Math.max(u,f);t.visibleRange.delta=o;t.visibleRange.interval=s;t.zoomed=this.chartObj.zoomed===null||this.chartObj.zoomed===undefined?!0:this.chartObj.zoomed}},_calculateAxisLabels:function(t,i){var r,u,e=i.roundingPlaces,a,y,h,f,v=this.chartObj.model.locale,p,k=i.labelFormat,o,w=20,c,l,s,b;for(i.visibleRange.min=parseFloat(i.visibleRange.min.toPrecision(14)),i.visibleRange.max=parseFloat(i.visibleRange.max.toPrecision(14)),r=t.zoomed||i.zoomed||i.padding?i.visibleRange.min-i.visibleRange.min%i.visibleRange.interval:i.visibleRange.min;r<=i.visibleRange.max;r+=i.visibleRange.interval)if(ej.EjSvgRender.utils._inside(r,i.visibleRange)){if(r==p)break;p=r;a=r.toString().split(0).length-1>10?10:20;r=parseFloat(r.toFixed(!e&&e>a?e:a));y=e?r:parseFloat(r.toFixed(ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval)==0?1:ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval)));f=e?parseFloat(r.toFixed(e)):parseFloat(r.toFixed(ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval)==0?1:ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval)));u=i.labelFormat;u?u.match("{value}")!=null?f=u.replace("{value}",f):(u.indexOf("e")==0||u.indexOf("E")==0)&&u.indexOf("ej.format")==-1?(o=u.match(/(\d+)/g),o=o==null?6:o>w?w:o,f=f.toExponential(o)):(u.indexOf("ej.format")!=-1&&(u=u.substring(u.indexOf("(")+1,u.indexOf(")"))),f=ej.format(f,u,v)):f=i.isStacked100?f+"%":v?f.toLocaleString(v):f;h=n.extend({},ej.EjSvgRender.commonChartEventArgs);h.data={label:{Text:f,Value:r},axis:i};t._trigger("axesLabelRendering",h);i.visibleLabels.push({Value:y,Text:h.data.label.Text})}for(c=0,l=i.visibleLabels,s=0;s").length,c=Math.max(b,c));i.rowsCount=c;i._LableMaxWidth=ej.EjSvgRender.utils._getMaxLabelWidth(i,this.chartObj)},_calculateRanges:function(n,t,i,r){this.chartObj=n;this._saveRange(n,t);this._calculateRange(n,t,i,r);t._range=t.range;n.model._drawTrendline&&this._calculateTrendLineRange(n,t,i);this._calculatePadding(n,t,t.range);t.maximumLabels>0&&this._calculateAxisLabels(n,t)}});ej.axisTypes.double=r;u=t(ej.EjAxisRenderer,{_getRoundValue:function(n,t,i){return(i?Math.ceil(n/t):Math.floor(n/t))*t},calculateLogNiceInterval:function(n,t){for(var u,e=this.GetActualDesiredIntervalsCount(t,t.length),i=n,o=Math.pow(10,Math.floor(ej.EjSvgRender.utils._logBase(i,10))),f=[10,5,2,1],r=0;r0)&&this.chartObj.model.AreaType!="polaraxes"&&!this.chartObj.model.disableZoom){t.zoomFactor=t.zoomFactor>1?1:t.zoomFactor<0?0:t.zoomFactor;t.zoomPosition=t.zoomPosition<0?0:t.zoomPosition>1?1:t.zoomPosition;e=t.actualRange;t.isInversed?(u=t.actualRange.max-t.zoomPosition*t.actualRange.delta,f=u-t.zoomFactor*t.actualRange.delta):(u=t.actualRange.min+t.zoomPosition*t.actualRange.delta,f=u+t.zoomFactor*t.actualRange.delta);ue.max&&(u=u-(f-e.max),f=e.max);var s=Math.abs(f-u),o=t.enableAutoIntervalOnZooming?this.calculateLogNiceInterval(s,t):t.visibleRange.interval,h=ej.util.isNullOrUndefined(t.roundingPlaces)?ej.EjSvgRender.utils._decimalPlaces(t.visibleRange.interval)==0?1:ej.EjSvgRender.utils._decimalPlaces(t.visibleRange.interval):t.roundingPlaces;if(o=parseFloat(t.visibleRange.interval.toFixed(h)),r)return{min:Math.min(u,f),max:Math.max(u,f),interval:o};t.visibleRange.interval=o;t.visibleRange.min=Math.min(u,f);t.visibleRange.max=Math.max(u,f);t.visibleRange.delta=s;t.zoomed=this.chartObj.zoomed===null||this.chartObj.zoomed===undefined?!0:this.chartObj.zoomed}},_calculateAxisLabels:function(t,i){for(var e=i.roundingPlaces,s,f,r=t.zoomed||i.zoomed?i.visibleRange.min-i.visibleRange.min%i.visibleRange.interval:i.visibleRange.min;r<=i.visibleRange.max;r+=i.visibleRange.interval)if(ej.EjSvgRender.utils._inside(r,i.visibleRange)){var h=i.labelFormat?i.labelFormat.match("{value}"):null,u=Math.pow(i.logBase,r),o=u.toString().split(0).length-1>10?10:20;u=parseFloat(u.toFixed(!e&&e>o?e:o));s=i.labelFormat?h!=null?i.labelFormat.replace("{value}",u):ej.format(u,i.labelFormat,t.model.locale):u;f=n.extend({},ej.EjSvgRender.commonChartEventArgs);f.data={label:{Text:s,Value:r},axis:i};t._trigger("axesLabelRendering",f);i.visibleLabels.push({Value:r,Text:f.data.label.Text})}i._LableMaxWidth=ej.EjSvgRender.utils._getMaxLabelWidth(i,this.chartObj)},_calculateRanges:function(n,t,i,r){this.chartObj=n;this._calculateLogRange(n,t,i,r);n.model._drawTrendline&&this._calculateTrendLineRange(n,t,i);this._calculateLogPadding(n,t,t.actual_Range);this._calculateAxisLabels(n,t)}});ej.axisTypes.logarithmic=u;f=t(ej.EjAxisRenderer,{_calculateCategoryRange:function(t,i){var tt=this.chartObj.model.legendCollapsed==undefined?!this.chartObj.zoomed:this.chartObj.model.legendCollapsed,e,h,r,o,a,l;if(!this.chartObj.model.excludeDataUpdate||tt){var u={maxX:null,minX:0},f=[],s,y,c,b,p,k=t.isIndexed,d=this.chartObj.model.locale;if(i.length>0&&this.chartObj.model._hasSeriesPoints&&i[0].points.length>0||this.chartObj.model.indicators[0]._points.length>0){for(e=0;ea.min||u.minX==null)&&(u.minX=a.min),(u.maxX0?(c=l-1,y=this._calculateActualInterval(c,t),t.range={min:0,max:l-1,interval:y,Delta:c}):t.range||(t.range={min:0,max:6,interval:1,Delta:6})}var w=0,v,g=t.labelIntersectAction,nt=t.labelRotation;if((g!="rotate45"||g!="rotate90")&&(nt==0||nt==null))for(v=0;v").length,w=Math.max(l,w));t.rowsCount=w},_calculateActualInterval:function(n,t){return t.categoryInterval==null?Math.max(1,Math.floor(n/this.GetActualDesiredIntervalsCount(t,t.length))):t.categoryInterval},_applyRangePadding:function(n){var t,i;this.chartObj.zoomed||this.chartObj._scrollBarEnabled||n.zoomed||(t=0,this.chartObj.model.AreaType!=="polaraxes"&&(t=n.labelPlacement===null||n.labelPlacement===undefined||n.labelPlacement===""?-.5:n.labelPlacement.toLowerCase()=="betweenticks"?-.5:0),this.chartObj.scrollsvgObj||(t<0?(n.range.min=n.range.min+t,n.range.max=n.range.max-t,n.range.delta=n.range.max-n.range.min,n.actualRange=n.range):(i=_sideBySeriesPadding(this.chartObj,n.range.min,n.range.max,n),n.range.min=i.startPadding,n.range.max=i.endPadding,n.range.delta=n.range.max-n.range.min,n.actualRange=n.range)));this._calculateVisibleRange(n)},_calculateVisibleRange:function(t,i,r){var e,u,f,o;if(this.chartObj=i?i:this.chartObj,t.visibleRange=r?t.visibleRange:n.extend(!0,{},t.actualRange),(t.zoomFactor<1||t.zoomPosition>0)&&this.chartObj.model.AreaType!="polaraxes"&&!this.chartObj.model.disableZoom){t.zoomFactor=t.zoomFactor>1?1:t.zoomFactor<0?0:t.zoomFactor;t.zoomPosition=t.zoomPosition<0?0:t.zoomPosition>1?1:t.zoomPosition;e=t.actualRange;t.isInversed?(u=t.actualRange.max-t.zoomPosition*t.actualRange.delta,f=u-t.zoomFactor*t.actualRange.delta):(u=t.actualRange.min+t.zoomPosition*t.actualRange.delta,f=u+t.zoomFactor*t.actualRange.delta);ue.max&&(u=u-(f-e.max),f=e.max);var o=Math.abs(f-u),s=this._calculateActualInterval(o,t),h=Math.min(u,f),c=Math.max(u,f);if(r)return{min:h,max:c,interval:s};o=Math.abs(f-u);t.visibleRange.interval=s;t.visibleRange.min=h;t.visibleRange.max=c;t.visibleRange.delta=o;t.zoomed=this.chartObj.zoomed===null||this.chartObj.zoomed===undefined?!0:this.chartObj.zoomed}},_calculateAxisLabels:function(t){for(var f=t.visibleRange.interval,i=t.visibleRange.min-t.visibleRange.min%t.range.interval,u,r;i<=t.visibleRange.max;i+=f)ej.EjSvgRender.utils._inside(i,t.visibleRange)&&(u=Math.round(i),t.visibleLabels.push({Value:u,Text:ej.EjSvgRender.utils._getLabelContent(u,t,this.chartObj.model.locale)}),r=n.extend({},ej.EjSvgRender.commonChartEventArgs),r.data={label:t.visibleLabels[t.visibleLabels.length-1],axis:t},this.chartObj._trigger("axesLabelRendering",r),t.visibleLabels[t.visibleLabels.length-1]=r.data.label);t._LableMaxWidth=ej.EjSvgRender.utils._getMaxLabelWidth(t,this.chartObj)},_calculateRanges:function(n,t,i){this.chartObj=n;this._saveRange(n,t);this._calculateCategoryRange(t,i);t._range=t.range;n.model._drawTrendline&&this._calculateTrendLineRange(n,t,i);this._applyRangePadding(t);this._calculateAxisLabels(t)}});ej.axisTypes.category=f;e=t(ej.EjAxisRenderer,{_calculateDateTimeCategoryRange:function(t,i){for(var v={minX:0,MaxX:null},w=[],a=[],e,st,g,it,nt,c,s,rt=[],b,tt=[],ut=[],o,f,h,l,ft,r,k,d,ht,et,ot,p,y,u=0;u=0){i[u].points[r].xValue=y==0?g:i[y].points[g].xValue;break}else if(y==u-1){i[u].points[r].x==i[u].points[r].xValue?i[u].points[r].xValue=t.maxPointLength++:(et=i[u].points[r].xValue,i[u].points[r].xValue=i[u].points[et].xValue);break}st=u==0?-1:n.inArray(e.getTime(),rt);switch(t.intervalType){case"auto":w.indexOf(e.getTime())==-1&&w.push(e.getTime());break;case"years":f=e.getFullYear();break;case"months":l=e.getFullYear();o=e.getMonth();r<=0?f=r+1:(h=new Date(s[r-1]).getFullYear(),f+=l!=h?12-c+o:o-c);c=o;break;case"days":l=e.getMonth();o=e.getDate();r<=0?f=r+1:(h=new Date(s[r-1]).getMonth(),f+=l!=h?new Date(e.getFullYear(),h,1).getDate()-c+o:o-c,l==h&&(p=this._diffDate(e,new Date(s[r-1]),1),ot=new Date(e.getFullYear(),h,0).getDate(),f=p>ot?a[a.length-1]+1:f));c=o;break;case"hours":l=e.getDate();o=e.getHours();r<=0?f=r+1:(h=new Date(s[r-1]).getDate(),f+=l!=h?24-c+o:o-c,l==h&&(p=this._diffDate(e,new Date(s[r-1]),24),f=p>24?a[a.length-1]+1:f));c=o;break;case"minutes":l=e.getHours();o=e.getMinutes();r<=0?f=r+1:(h=new Date(s[r-1]).getHours(),f+=l!=h?60-c+o:o-c,l==h&&(p=this._diffDate(e,new Date(s[r-1]),1440),f=p>60?a[a.length-1]+1:f));c=o;break;case"seconds":l=e.getMinutes();o=e.getSeconds();r<=0?f=r+1:(h=new Date(s[r-1]).getMinutes(),f+=l!=h?60-c+o:o-c,l==h&&(p=this._diffDate(e,new Date(s[r-1]),86400),f=p>60?a[a.length-1]+1:f));c=o;break;case"milliseconds":l=e.getSeconds();o=e.getMilliseconds();r<=0?f=r+1:(h=new Date(s[r-1]).getSeconds(),f+=l!=h?1e3-c+o:o-c,l==h&&(p=this._diffDate(e,new Date(s[r-1]),864e5),f=p>1e3?a[a.length-1]+1:f));c=o}t.intervalType!="auto"&&w.indexOf(e.getTime())==-1&&w.push(e.getTime());f=u==0?f:a[a.length-1]+f;a.indexOf(f)==-1&&a.push(f);ut.push(f);rt.push(new Date(s[r]).getTime())}t.maxPointLength||(t.maxPointLength=t.intervalType!="auto"?a.length:w.length)}for(k=0;kw.length-1?w.length-1:t.range.max,v.MaxX=i[k].maxX,v.minX=i[k].minX,t.labels=w,t.dateLabels=ut,t._categoryValueType="date";if(v.minX==v.MaxX&&t.labelPlacement.toLowerCase()=="onticks"&&(v.MaxX+=1),i.length>0)it=v.MaxX-v.minX,nt=t.range.interval==null||t.range.interval==undefined?1:t.range.interval<1?1:Math.ceil(t.range.interval),t.range={min:v.minX,max:v.MaxX,interval:nt,Delta:it};else if(!t.setInterval)for(t.range={min:0,max:6,interval:1,Delta:6},t.dateLabels=[],y=0;y<=t.range.max;y++)t.labels.push(""),t.dateLabels.push("")},_diffDate:function(n,t,i){var r,u;return r=864e5,u=Math.abs(n.getTime()-t.getTime())/r,Math.round(u*i)},_calculateAxisLabels:function(t){for(var f=t.visibleRange.interval,o=[],c=this.chartObj.model.series.length,s,i,r,h,e,u=t.visibleRange.min-t.visibleRange.min%t.range.interval;u<=t.visibleRange.max;u+=f)ej.EjSvgRender.utils._inside(u,t.visibleRange)&&(i=Math.round(u),r=t.dateLabels,ej.util.isNullOrUndefined(r)||(r[r.length-1]-r[i]>=f&&t.visibleRange.max0)&&this.chartObj.model.AreaType!="polaraxes"&&!this.chartObj.model.disableZoom){t.zoomFactor=t.zoomFactor>1?1:t.zoomFactor<0?0:t.zoomFactor;t.zoomPosition=t.zoomPosition<0?0:t.zoomPosition>1?1:t.zoomPosition;e=t.actualRange;t.isInversed?(u=t.actualRange.max-t.zoomPosition*t.actualRange.delta,f=u-t.zoomFactor*t.actualRange.delta):(u=t.actualRange.min+t.zoomPosition*t.actualRange.delta,f=u+t.zoomFactor*t.actualRange.delta);ue.max&&(u=u-(f-e.max),f=e.max);var o=Math.abs(f-u),s=this._calculateActualInterval(o,t),h=Math.min(u,f),c=Math.max(u,f);if(r)return{min:h,max:c,interval:s};o=Math.abs(f-u);t.visibleRange.interval=s;t.visibleRange.min=h;t.visibleRange.max=c;t.visibleRange.delta=o;t.zoomed=this.chartObj.zoomed===null||this.chartObj.zoomed===undefined?!0:this.chartObj.zoomed}},_calculateRanges:function(n,t,i){this.chartObj=n;this._saveRange(n,t);this._calculateDateTimeCategoryRange(t,i);n.model._drawTrendline&&this._calculateTrendLineRange(n,t,i);t._range=t.range;this._applyRangePadding(t);this._calculateAxisLabels(t)}});ej.axisTypes.datetimecategory=e;ej.EjAxisRenderer.prototype={_drawGridLines:function(n,t,i){this.model.AreaType=="cartesianaxes"?t.orientation.toLowerCase()=="horizontal"?this._drawXAxisGridLine(n,t,i):this._drawYAxisGridLine(n,t,i):t.orientation.toLowerCase()=="horizontal"&&n==0?(this._drawPolarGridLine(t),this._drawPolarLabels(t)):n==1&&this._drawPolarCircle(t)},_drawGridRect:function(n,t,i){this.model.AreaType=="cartesianaxes"&&(t.orientation.toLowerCase()=="horizontal"?this._drawXAxisRect(n,t,i):this._drawYAxisRect(n,t))},_drawAxes:function(n,t){this.model.AreaType=="cartesianaxes"&&(t.visible&&t.orientation.toLowerCase()=="horizontal"&&(this._drawXAxisLabels(n,t),this._drawXTitle(n,t)),t.visible&&t.orientation.toLowerCase()=="vertical"&&(this._drawYAxisLabels(n,t),this._drawYTitle(n,t)))},_getSharpPath:function(n){return n%2==0?0:.5},_drawAxisLine:function(t){var u=this.svgRenderer.createGroup({id:this.svgObject.id+"_YAxisLine"}),h=ej.EjSvgRender.utils._getStringBuilder(),y=this.model.centerX,p=this.model.centerY,w=this.model.centerX,b=this.model.centerY-this.model.Radius,k="M "+y+" "+p+" L "+w+" "+b,l,f,i;if(t.visible&&t.axisLine.visible&&(f={id:this.svgObject.id+"_YAxisLines",fill:"none","stroke-width":t.axisLine.width,stroke:t.axisLine.color,opacity:t.axisLine.opacity,"stroke-dasharray":t.axisLine.dashArray,d:k},this.svgRenderer.drawPath(f,u),n(u).appendTo(this.gPolarAxisEle)),t.visible&&t.majorTickLines.visible){for(u=this.svgRenderer.createGroup({id:this.svgObject.id+"_YAxisMajorTicks"}),i=0;ithis.model.centerX?"start":"middle",f=ej.EjSvgRender.utils._measureText(c,this.model.m_AreaBounds.Height,t.font);i==.25?(r-=this.model.elementSpacing/2,o+=f.height/4):i==.5?o+=f.height:i==.75?(r+=this.model.elementSpacing/2,o+=f.height/4):i==1||i==0?o-=f.height/2:.25w&&(c=""));s={id:this.svgObject.id+"_"+t.name+"_XLabel_"+u,x:r,y:o,fill:e.color,"font-size":e.size,"font-family":e.fontFamily,"font-style":e.fontStyle,"font-weight":e.fontWeight,opacity:e.opacity,"text-anchor":a};this.svgRenderer.drawText(s,c,v);k=a=="middle"?s.x-f.width/2:a=="end"?s.x-f.width:s.x;b={x:k,y:s.y,width:f.width,height:f.height};t.visibleLabels[u].region={bounds:b,labelText:c}}n(v).appendTo(this.gXaxisEle)},_drawPolarCircle:function(t){var s,o,i,h,u,f,r,e,l,a,v,y,c;if(t.majorGridLines.visible)if(s=ej.EjSvgRender.utils._getStringBuilder(),o=this.svgRenderer.createGroup({id:this.svgObject.id+"_YAxisGrid"}),this.model.isPolar)for(i=0;i0&&i.labelPlacement.toLowerCase()=="betweenticks"?-.5:0,b=i.visibleLabels.length,i._valueType.toLowerCase()==ej.datavisualization.Chart.ValueType.Category&&ft<0&&(b=b>0?i.visibleLabels.length+1:b),e=0;e0&&ft<0?ht+ft:ht,k=i.roundingPlaces?k:parseFloat(k.toFixed(ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval)==0?1:ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval))),ej.EjSvgRender.utils._inside(k,i.visibleRange)){if(i.hidePartialLabels&&(e==0||e==b-1))continue;if(i.minorGridLines.visible||i.minorTickLines.visible)if(p=this._getSharpPath(i.minorTickLines.width),ei=this._getSharpPath(i.minorGridLines.width),i._valueType=="logarithmic"){h=k;var ni=i.visibleRange.max,lt=i.visibleRange.min,ti=Math.pow(i.logBase,h-i.visibleRange.interval),oi=Math.pow(i.logBase,h),si=(oi-ti)/(i.minorTicksPerInterval+1),hi=ti+si;for(h=ej.EjSvgRender.utils._logBase(hi,i.logBase),g=0;glt&&(rt=Math.ceil((h-lt)/(ni-lt)*i.width),i.minorTickLines&&i.minorTickLines.visible&&(at=Math.floor(rt+c),et=i.tickLinesPosition!="inside"&&i.labelPosition!="inside"||i.tickLinesPosition!="inside"&&i.labelPosition=="inside"?o?Math.floor(f-i.minorTickLines.size):Math.floor(i.minorTickLines.size+f):o?Math.floor(f+i.minorTickLines.size):f-Math.floor(i.minorTickLines.size),st.append("M "+(at+p)+" "+(et+p)+" L "+(at+p)+" "+(f+p)+" ")))}else for(g=0,h=k;gi.visibleRange.min&&(rt=Math.ceil((h-i.visibleRange.min)/(i.visibleRange.max-i.visibleRange.min)*i.width),i.minorTickLines&&i.minorTickLines.visible&&(et=i.tickLinesPosition!="inside"&&i.labelPosition!="inside"||i.tickLinesPosition!="inside"&&i.labelPosition=="inside"?o?Math.floor(f-i.minorTickLines.size):Math.floor(i.minorTickLines.size+f):o?Math.floor(f+i.minorTickLines.size):Math.floor(f-i.minorTickLines.size),vt=Math.floor(rt+c),st.append("M "+(vt+p)+" "+(et+p)+" L "+(vt+p)+" "+(f+p)+" ")));if(i.majorTickLines.visible||i.majorGridLines.visible||nt.width>0){var ot=this._getSharpPath(i.majorTickLines.width),ai=this._getSharpPath(i.majorGridLines.width),ii=l[e]=this.pointX=Math.ceil(ej.EjSvgRender.utils._getPointXY(k,i.visibleRange,i.isInversed)*i.width);i.majorTickLines.visible&&(w=i.majorTickLines.size+i.axisLine.width/2,v=i.tickLinesPosition=="inside"&&i.labelPosition=="inside"||i.tickLinesPosition=="inside"&&i.labelPosition!="inside"?o?f+w:f-w:(o?f-w:w+f)-(dt?o?this.model.scrollerSize:-this.model.scrollerSize:0),kt.append("M "+(Math.floor(ii+c)+ot)+" "+(Math.floor(v)+ot)+" L "+(Math.floor(ii+c)+ot)+" "+(Math.floor(f+(o?-i.axisLine.width/2:i.axisLine.width/2))+ot)+" "))}}if(nt.width>0){var d=ej.EjSvgRender.utils._getStringBuilder(),ri=dt?this.model.scrollerSize:0,w=i.axisLine.width,v,s,y,a,e,tt,ui=i.labelPosition.toLowerCase(),vi=this.model.m_AreaBounds.X,yi=this.model.m_AreaBounds.Width,ci=nt.width,it=i._LableMaxWidth.height+i.axisLine.width/2+2,b=i.visibleLabels.length;for(f=i.y,i.tickLinesPosition==ui&&(it+=i.majorTickLines.size),ui=="inside"?(v=o?f+w:f+w,s=o?f+it:f-it):(v=o?f-w:w+f+(i.zoomFactor<1&&this.model.zooming.enableScrollbar&&t==0?this.model.scrollerSize:0),s=o?f-it-ri:f+it+ri),e=0;e=1&&!isNaN(tt)&&(i._valueType=="category"&&i.labelPlacement.toLowerCase()=="betweenticks"?(y=l[e]+c,a=l[e]+tt*2+c):(y=l[e]-tt+c,a=l[e]+tt+c),a=Math.floor(a),s=Math.floor(s),y=Math.floor(y),v=Math.floor(v),yi.width+i.x?(d.append("M "+y+" "+v+" L "+y+" "+s+" L "+Math.floor(i.width+c)+" "+s+" "),a-ci<=i.width+i.x&&d.append("M "+Math.floor(i.width+c)+" "+s+" L "+(i.x+i.width)+" "+v)):(e==0&&d.append("M "+i.x+" "+s+" L "+y+" "+s+" "),d.append("M "+y+" "+v+" L "+y+" "+s+" L "+a+" "+s+" "),e==b-1&&d.append("M "+a+" "+v+" L "+a+" "+s+" M "+a+" "+s+" L "+(i.x+i.width)+" "+s)));fi={id:this.svgObject.id+"_XAxisLabelBorder_"+t,fill:"transparent","stroke-width":nt.width,stroke:nt.color,d:d.toString()};this.svgRenderer.drawPath(fi,r);n(r).appendTo(this.gXaxisEle)}i.minorTickLines.visible&&i.visible&&i.minorTicksPerInterval>0&&(bt=st.toString(),yt={id:this.svgObject.id+"_XAxisMinorTicks_"+t,fill:"none","stroke-width":i.minorTickLines.width,stroke:i.minorTickLines.color,d:bt},r?this.svgRenderer.drawPath(yt,r):this.svgRenderer.drawPath(yt,ut));i.majorTickLines.visible&&i.visible&&(wt=kt.toString(),pt={id:this.svgObject.id+"_XAxisMajorTicks_"+t,fill:"none","stroke-width":i.majorTickLines.width,stroke:i.majorTickLines.color,d:wt},r?this.svgRenderer.drawPath(pt,r):this.svgRenderer.drawPath(pt,ut));i.tickLinesPosition=="inside"&&n(ut).appendTo(this.gXaxisEle)},_drawXAxisGridLine:function(t,i,r){var ct,lt,ut=ej.EjSvgRender.utils._getStringBuilder(),at=ej.EjSvgRender.utils._getStringBuilder(),w,f=[],vt=this.model.elementSpacing+5,ft,l=i._opposed,b=Math.floor(i.x),ni=Math.floor(i.x+i.width),d=this.svgRenderer.createGroup({id:this.svgObject.id+"_XAxisGrid_"+t}),g=this.svgRenderer.createGroup({id:this.svgObject.id+"_XAxisAlternateGridBand_"+t}),yt=r.axes[i.name]._validCross,a,k,tt,s,c,ii,h,st,p,o,it,rt,dt,u,e,gt,ht;if(t==0||yt||i.labelPosition!="inside"||i.tickLinesPosition!="inside"||i.y==this.model.m_AreaBounds.Height+this.model.m_AreaBounds.Y||i.y==this.model.m_AreaBounds.Y?i.labelPosition!="inside"||i.tickLinesPosition=="inside"||i.y==this.model.m_AreaBounds.Height+this.model.m_AreaBounds.Y||i.y==this.model.m_AreaBounds.Y?t==0||yt||i.labelPosition=="inside"||i.tickLinesPosition!="inside"||i.y==this.model.m_AreaBounds.Height+this.model.m_AreaBounds.Y||i.y==this.model.m_AreaBounds.Y?(a=Math.floor(i.y),k=Math.floor(i.y)):(a=l?Math.floor(i.y-i.majorTickLines.size):Math.floor(i.y+i.majorTickLines.size),k=l?Math.floor(i.y-i.majorTickLines.size):Math.floor(i.y+i.majorTickLines.size)):a=k=l?Math.floor(i.y-i._LableMaxWidth.height)+vt:i.showNextToAxisLine?Math.floor(i.y+i._LableMaxWidth.height)-vt:Math.floor(i.y+i._LableMaxWidth.height):(a=l?Math.floor(i.y-i._LableMaxWidth.height):Math.floor(i.y+i._LableMaxWidth.height),k=l?Math.floor(i.y-i._LableMaxWidth.height):Math.floor(i.y+i._LableMaxWidth.height)),i.visible&&i.axisLine.visible){var pt=i.axisLine.offset>0?i.axisLine.offset:0,nt=this._getSharpPath(i.axisLine.width),ti={id:this.svgObject.id+"_XAxisLine_"+t,x1:b-i.plotOffset+nt+pt,y1:a+nt,x2:ni+i.plotOffset-pt+nt,y2:k+nt,"stroke-dasharray":i.axisLine.dashArray,"stroke-width":i.axisLine.width,stroke:i.axisLine.color,opacity:i.axisLine.opacity||1};r.axes[i.name]._lineOption=[ti,this.gXaxisEle]}else r.axes[i.name]._lineOption=[null,this.gXaxisEle];for(i.labelPlacement=i.labelPlacement?i.labelPlacement:ej.datavisualization.Chart.LabelPlacement.BetweenTicks,tt=i.labels.length>0&&i.labelPlacement.toLowerCase()=="betweenticks"?-.5:0,s=i.visibleLabels.length,i._valueType.toLowerCase()==ej.datavisualization.Chart.ValueType.Category&&tt<0&&(s=s>0?i.visibleLabels.length+1:s),u=0;u0&&tt<0?ft+tt:ft,c=i.roundingPlaces?c:parseFloat(c.toFixed(ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval)==0?1:ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval))),ej.EjSvgRender.utils._inside(c,i.visibleRange)){if(i.hidePartialLabels&&(u==0||u==s-1))continue;if(i.minorGridLines.visible||i.minorTickLines.visible)if(ii=this._getSharpPath(i.minorTickLines.width),h=this._getSharpPath(i.minorGridLines.width),i._valueType=="logarithmic"){o=c;var wt=i.visibleRange.max,et=i.visibleRange.min,bt=Math.pow(i.logBase,o-i.visibleRange.interval),ri=Math.pow(i.logBase,o),kt=(ri-bt)/(i.minorTicksPerInterval+1),ot=bt+kt;for(o=ej.EjSvgRender.utils._logBase(ot,i.logBase),p=0;pet&&(w=Math.ceil((o-et)/(wt-et)*i.width),i.minorGridLines&&i.minorGridLines.visible&&(st=Math.floor(w+b),ut.append("M "+(st+h)+" "+(a+h)+" L "+(st+h)+" "+(Math.floor(l?this.model.m_AreaBounds.Y+this.model.m_AreaBounds.Height:this.model.m_AreaBounds.Y)+h)+" "))),ot+=kt,o=ej.EjSvgRender.utils._logBase(ot,i.logBase)}else for(p=0,o=c;pi.visibleRange.min&&(w=Math.ceil((o-i.visibleRange.min)/(i.visibleRange.max-i.visibleRange.min)*i.width),i.minorGridLines&&i.minorGridLines.visible&&ut.append("M "+(Math.floor(w+b)+h)+" "+(a+h)+" L "+(Math.floor(w+b)+h)+" "+(Math.floor(l?this.model.m_AreaBounds.Y+this.model.m_AreaBounds.Height:this.model.m_AreaBounds.Y)+h)+" "));if(i.majorTickLines.visible||i.majorGridLines.visible){var fi=this._getSharpPath(i.majorTickLines.width),v=this._getSharpPath(i.majorGridLines.width),ui=this.pointX=Math.ceil(ej.EjSvgRender.utils._getPointXY(c,i.visibleRange,i.isInversed)*i.width),y=Math.floor(ui+b);if(i.zoomed&&(f[0]=i.x),u==0&&y==Math.floor(this.model.m_AreaBounds.X)){f.push(y+v);continue}if(u==s-1&&this.model.chartArea.border.color!="transparent"&&this.model.chartArea.border.width>0){if(y==Math.floor(this.model.m_AreaBounds.X+this.model.m_AreaBounds.Width))continue;i.zoomed&&(f[s]=y+v)}if(i.majorGridLines.visible&&at.append("M "+(y+v)+" "+(Math.floor(this.model.m_AreaBounds.Y+this.model.m_AreaBounds.Height)+v)+" L "+(y+v)+" "+(Math.floor(this.model.m_AreaBounds.Y)+v)+" "),i._valueType.toLowerCase()!="category"&&u==s-1)continue;f.push(y+v)}}if(i.alternateGridBand.odd.fill!="transparent"||i.alternateGridBand.even.fill!="transparent"){for(it=this.model.m_AreaBounds.Height,f.length===0&&(rt={id:this.svgObject.id+"_XAxis"+t+"_Alternateeven0",x:i.x,y:Math.floor(this.model.m_AreaBounds.Y),width:i.width,height:it,fill:i.alternateGridBand.even.fill,opacity:i.alternateGridBand.even.opacity,"clip-path":"url(#"+this.svgObject.id+"_ChartAreaClipRect)",stroke:"transparent"},this.svgRenderer.drawRect(rt,g)),u=1;u0&&this.svgRenderer.drawRect(dt,g);for(u=0;u0&&this.svgRenderer.drawRect(rt,g);n(g).appendTo(d)}i.minorGridLines.visible&&i.minorTicksPerInterval>0&&(lt=ut.toString(),gt={id:this.svgObject.id+"_XAxisMinorGridLines_"+t,fill:"none","stroke-width":i.minorGridLines.width,stroke:i.minorGridLines.color,"stroke-dasharray":i.minorGridLines.dashArray,d:lt},this.svgRenderer.drawPath(gt,d));ct=at.toString();i.majorGridLines.visible&&(ht={id:this.svgObject.id+"_XAxisMajorGridLines_"+t,fill:"none","stroke-width":i.majorGridLines.width,stroke:i.majorGridLines.color,opacity:i.majorGridLines.opacity,"stroke-dasharray":i.majorGridLines.dashArray,d:ct},ht.d!=""&&this.svgRenderer.drawPath(ht,d));n(d).appendTo(this.svgObject)},_drawYAxisTickLine:function(t,i,r,u){var at="",vt="",et=0,yt=i._isScroll&&!(i.scrollbarSettings.pointsLength!=null&&i.scrollbarSettings.pointsLength0&&i.labelPlacement.toLowerCase()=="betweenticks"?-.5:0,y=i.visibleLabels.length,i._valueType.toLowerCase()==ej.datavisualization.Chart.ValueType.Category&&ut<0&&(y=y>0?i.visibleLabels.length+1:y),e=0;e0&&ut<0?ot+ut:ot,v=i.roundingPlaces?v:parseFloat(v.toFixed(ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval)==0?1:ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval))),ej.EjSvgRender.utils._inside(v,i.visibleRange)){if(i.hidePartialLabels&&(e==0||e==i.visibleLabels.length-1))continue;if(i.minorGridLines.visible||i.minorTickLines.visible)if(l=this._getSharpPath(i.minorTickLines.width),ii=this._getSharpPath(i.minorGridLines.width),i._valueType=="logarithmic"){s=v;var wt=i.visibleRange.max,ct=i.visibleRange.min,bt=Math.pow(i.logBase,s-i.visibleRange.interval),ri=Math.pow(i.logBase,s),kt=(ri-bt)/(i.minorTicksPerInterval+1),lt=bt+kt;for(s=ej.EjSvgRender.utils._logBase(lt,i.logBase),k=0;kct&&(b=Math.ceil((s-ct)/(wt-ct)*i.height),i.minorTickLines&&i.minorTickLines.visible&&i.minorTickLines.visible&&(ft=i.tickLinesPosition!="inside"&&i.labelPosition!="inside"||i.tickLinesPosition!="inside"&&i.labelPosition=="inside"?o?i.minorTickLines.size:-i.minorTickLines.size:o?-i.minorTickLines.size:i.minorTickLines.size,ht.append("M "+(Math.floor(ft+f)+l)+" "+(Math.floor(b*-1+h)+l)+" L "+(f+l)+" "+(Math.floor(b*-1+h)+l)+" "))),lt+=kt,s=ej.EjSvgRender.utils._logBase(lt,i.logBase)}else for(k=0,s=v;ki.visibleRange.min&&(b=(s-i.visibleRange.min)/i.visibleRange.delta*i.height,i.minorTickLines.visible&&(ft=i.tickLinesPosition!="inside"&&i.labelPosition!="inside"||i.tickLinesPosition!="inside"&&i.labelPosition=="inside"?o?i.minorTickLines.size:-i.minorTickLines.size:o?-i.minorTickLines.size:i.minorTickLines.size,ht.append("M "+(Math.floor(ft+f)+l)+" "+(Math.floor(b*-1+h)+l)+" L "+(f+l)+" "+(Math.floor(b*-1+h)+l)+" ")));(i.majorTickLines.visible||i.majorGridLines.visible||rt.width>0)&&(nt=this._getSharpPath(i.minorTickLines.width),ui=this._getSharpPath(i.majorGridLines.width),et=c[e]=ej.EjSvgRender.utils._getPointXY(v,i.visibleRange,i.isInversed)*i.height,i.majorTickLines.visible&&(i.tickLinesPosition!="inside"&&i.labelPosition!="inside"||i.tickLinesPosition!="inside"&&i.labelPosition=="inside"?d=(o?i.majorTickLines.size+i.axisLine.width/2:-(i.majorTickLines.size+i.axisLine.width/2))+(yt?o?this.model.scrollerSize:o-this.model.scrollerSize:0):(i.tickLinesPosition=="inside"&&i.labelPosition!="inside"||i.tickLinesPosition=="inside"&&i.labelPosition=="inside")&&(d=o?-(i.majorTickLines.size+i.axisLine.width/2):i.majorTickLines.size+i.axisLine.width/2),pt.append("M "+(Math.floor(d+f)+nt)+" "+(Math.floor(et*-1+h)+nt)+" L "+(Math.floor(f+(o?i.axisLine.width/2:i.axisLine.width/2))+nt)+" "+(Math.floor(et*-1+h)+nt)+" ")))}if(rt.width>0){var tt=ej.EjSvgRender.utils._getStringBuilder(),d=i.axisLine.width/2,e,p,w,a,it,dt=yt?this.model.scrollerSize:0,g=i._LableMaxWidth.maxWidth+10;for(f=i.x,i.tickLinesPosition==i.labelPosition&&(g+=i.majorTickLines.size),a=Math.floor(f-g),a=i.labelPosition=="outside"?o?Math.floor(f+g)+dt:Math.floor(f-g)-dt:o?Math.floor(f-g):Math.floor(f+g),e=0;e1&&!isNaN(it)&&(i._valueType=="category"&&i.labelPlacement.toLowerCase()=="betweenticks"?(p=Math.floor(c[e]*-1+h),w=Math.floor(c[e]*-1-it*2+h)):(p=Math.floor(c[e]*-1+it+h),w=Math.floor(c[e]*-1-it+h)),p>h?tt.append("M "+a+" "+h+" L "+a+" "+w+" "):w0&&(vt=ht.toString(),ni={id:this.svgObject.id+"_YAxisMinorTicks_"+t,fill:"none","stroke-width":i.minorTickLines.width,stroke:i.minorTickLines.color,d:vt},this.svgRenderer.drawPath(ni,r));i.majorTickLines.visible&&i.visible&&(at=pt.toString(),ti={id:this.svgObject.id+"_YAxisMajorTicks_"+t,fill:"none","stroke-width":i.majorTickLines.width,stroke:i.majorTickLines.color,d:at},this.svgRenderer.drawPath(ti,r))},_drawYAxisGridLine:function(t,i,r){var st="",ht="",ct=0,nt,s=Math.floor(i.y+i.height),ii=Math.floor(i.y),b=i._opposed,f=[],lt=r.axes[i.name]._validCross,at=i.name.replace(/[^a-zA-Z0-9]/g,""),k,d,pt,rt,wt,h,v,ui,o,y,e,ei,c,et,gt,u,a,p,ni,ti,ot;t==1||lt||(i.labelPosition!="inside"||i.tickLinesPosition!="inside")&&(i.labelPosition!="inside"||i.tickLinesPosition=="inside")||i.x==this.model.m_AreaBounds.Width+this.model.m_AreaBounds.X||i.x==this.model.m_AreaBounds.X?t==1||lt||i.labelPosition=="inside"||i.tickLinesPosition!="inside"||i.x==this.model.m_AreaBounds.Width+this.model.m_AreaBounds.X||i.x==this.model.m_AreaBounds.X?(k=Math.floor(i.x),d=Math.floor(i.x)):(k=b?Math.floor(i.x+i.majorTickLines.size):Math.floor(i.x-i.majorTickLines.size),d=b?Math.floor(i.x+i.majorTickLines.size):Math.floor(i.x-i.majorTickLines.size)):(k=b?Math.floor(i.x+i._LableMaxWidth.width+this.model.elementSpacing):Math.floor(i.x-i._LableMaxWidth.width-this.model.elementSpacing),d=b?Math.floor(i.x+i._LableMaxWidth.width+this.model.elementSpacing):Math.floor(i.x-i._LableMaxWidth.width-this.model.elementSpacing));var tt=ej.EjSvgRender.utils._getStringBuilder(),vt=ej.EjSvgRender.utils._getStringBuilder(),w=this.svgRenderer.createGroup({id:this.svgObject.id+"_YAxisGrid_"+t}),it=this.svgRenderer.createGroup({id:this.svgObject.id+"_YAxisAlternateGridBand_"+t});if(i.visible&&i.axisLine.visible){var yt=i.axisLine.offset>0?i.axisLine.offset:0,g=this._getSharpPath(i.axisLine.width),ri={id:this.svgObject.id+at+"_YAxisLine_"+t,x1:k+g,y1:ii-i.plotOffset+yt+g,x2:d+g,y2:s+i.plotOffset-yt+g,"stroke-width":i.axisLine.width,"stroke-dasharray":i.axisLine.dashArray,stroke:i.axisLine.color,opacity:i.axisLine.opacity||1};r.axes[i.name]._lineOption=[ri,this.gYaxisEle]}else r.axes[i.name]._lineOption=[null,this.gYaxisEle];for(i.axisBottomLine&&i.axisBottomLine.visible&&(pt={id:this.svgObject.id+at+"_YAxisBottomLine_"+t,x1:this.model.m_AreaBounds.X,y1:s,x2:this.model.m_AreaBounds.X+this.model.m_AreaBounds.Width,y2:s,"stroke-width":i.axisBottomLine.width,stroke:i.axisBottomLine.color},this.svgRenderer.drawLine(pt,w)),i.labelPlacement=i.labelPlacement?i.labelPlacement:ej.datavisualization.Chart.LabelPlacement.BetweenTicks,rt=i.labels.length>0&&i.labelPlacement.toLowerCase()=="betweenticks"?-.5:0,wt=i.visibleLabels.length,u=0;u0&&rt<0?nt+rt:nt,h=i.roundingPlaces?h:parseFloat(h.toFixed(ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval)==0?1:ej.EjSvgRender.utils._decimalPlaces(i.visibleRange.interval))),ej.EjSvgRender.utils._inside(h,i.visibleRange)){if(i.hidePartialLabels&&(u==0||u==i.visibleLabels.length-1))continue;if(i.minorGridLines.visible||i.minorTickLines.visible)if(ui=this._getSharpPath(i.minorTickLines.width),o=this._getSharpPath(i.minorGridLines.width),i._valueType=="logarithmic"){e=h;var bt=i.visibleRange.max,ut=i.visibleRange.min,kt=Math.pow(i.logBase,e-i.visibleRange.interval),fi=Math.pow(i.logBase,e),dt=(fi-kt)/(i.minorTicksPerInterval+1),ft=kt+dt;for(e=ej.EjSvgRender.utils._logBase(ft,i.logBase),y=0;yut&&(v=Math.ceil((e-ut)/(bt-ut)*i.height),i.minorGridLines.visible&&tt.append("M "+(Math.floor(this.model.m_AreaBounds.X)+o)+" "+(Math.floor(v*-1+s)+o)+" L "+(Math.floor(this.model.m_AreaBounds.Width+this.model.m_AreaBounds.X)+o)+" "+(Math.floor(v*-1+s)+o)+" ")),ft+=dt,e=ej.EjSvgRender.utils._logBase(ft,i.logBase)}else for(y=0,e=h;yi.visibleRange.min&&(v=(e-i.visibleRange.min)/i.visibleRange.delta*i.height,i.minorGridLines.visible&&tt.append("M "+(Math.floor(this.model.m_AreaBounds.X)+o)+" "+(Math.floor(v*-1+s)+o)+" L "+(Math.floor(this.model.m_AreaBounds.Width+this.model.m_AreaBounds.X)+o)+" "+(Math.floor(v*-1+s)+o)+" "));if((i.majorTickLines.visible||i.majorGridLines.visible)&&(ei=this._getSharpPath(i.minorTickLines.width),c=this._getSharpPath(i.majorGridLines.width),i.majorGridLines.visible)){ct=ej.EjSvgRender.utils._getPointXY(h,i.visibleRange,i.isInversed)*i.height;var oi=Math.floor(this.model.m_AreaBounds.X)+c,l=Math.floor(ct*-1+s),si=Math.floor(this.model.m_AreaBounds.Width+this.model.m_AreaBounds.X)+c;if(u==0){if(l==Math.floor(this.model.m_AreaBounds.Y+this.model.m_AreaBounds.Height))continue;i.zoomed&&(f[0]=l+c)}if(u==i.visibleLabels.length-1&&this.model.chartArea.border.color!="transparent"&&this.model.chartArea.border.width>0&&l==Math.floor(this.model.m_AreaBounds.Y)){f.push(l+c);continue}if(vt.append("M "+oi+" "+(l+c)+" L "+si+" "+(l+c)+" "),u==0)continue;f.push(l+c)}}if(i.alternateGridBand.odd.fill!="transparent"||i.alternateGridBand.even.fill!="transparent"){for(et=this.model.m_AreaBounds.Width,i.zoomed&&(f[f.length]=i.y),u=1;u0&&(ht=tt.toString(),ti={id:this.svgObject.id+"_YAxisMinorGridLines_"+t,fill:"none","stroke-width":i.minorGridLines.width,stroke:i.minorGridLines.color,"stroke-dasharray":i.minorGridLines.dashArray,d:ht},this.svgRenderer.drawPath(ti,w));st=vt.toString();i.majorGridLines.visible&&(ot={id:this.svgObject.id+"_YAxisMajorGridLines_"+t,fill:"none","stroke-width":i.majorGridLines.width,opacity:i.majorGridLines.opacity,"stroke-dasharray":i.majorGridLines.dashArray,stroke:i.majorGridLines.color,d:st},ot.d!=""&&this.svgRenderer.drawPath(ot,w));n(w).appendTo(this.svgObject)},textOverflowMultiLevelLabels:function(n,t,i,r,u,f,e,o,s,h){var v=o.y,y=0,a,p,l,w,b,c;if(u=="wrap"||u=="wrapandtrim"){for(p=h._wrap(n,t,i,u,f,e),l=p.text,w=l.length,c=0;c-1&&(h.model.enable3D&&y==0&&(o.y-=e.height),b=p.unTrimmedText,e=ej.EjSvgRender.utils._measureText(l[c],null,f),a={X:o.x-e.width/2,Y:o.y,Width:e.width,Height:e.height},h.model.axisMultiLevelLabelRegions.push({trimText:l[c],labelText:b[y],Bounds:a}),y++);return l}return i=u=="trim"?ej.EjSvgRender.utils._trimText(r,t,f):r,h.model.enable3D||(v=o.y+e.height),n.orientation.toLowerCase()=="vertical"&&(v=o.y-e.height/4),e=ej.EjSvgRender.utils._measureText(i,null,f),a={X:o.x-e.width/2,Y:v,Width:e.width,Height:e.height},h.model.axisMultiLevelLabelRegions.push({trimText:i,labelText:r,Bounds:a}),i},_triggerMultiLevelLabelsRendering:function(t,i,r,u,f,e,o){var s=n.extend({},ej.EjSvgRender.commonChartEventArgs);return s.data={text:t,location:{x:i,y:r},textOverflow:u,font:f,border:e},o._trigger("multiLevelLabelRendering",s),s.data},_drawXAxisMultiLevelLabels:function(t,i){var tt,u,r,ri,ui,st,vt,a,e,v,y,h,d,c,s,it,kt,ht,dt,gt,yt,o,f,ni,pt,w,ct,rt,wt=this.svgObject.id,g=i.visibleRange,et=this.svgRenderer.createGroup({id:wt+"_XAxisMultiLevelLabels_"+t,"clip-path":"url(#"+this.svgObject.id+"_XAxis_Clippath_"+t+")"}),bt=this.model.m_AreaBounds,nt=i.opposedPosition,b,p=i.labelPosition.toLowerCase(),fi=i.labelBorder,l=10,ot=i._isScroll?this.model.scrollerSize:0,ti,k,ft,ii,ut,ei,at,lt;for(h=i.majorTickLines.size+i._LableMaxWidth.height+fi.width,kt=i.x,ht=i.y+h+ot,dt=i.width+this.model.chartArea.border.width,gt=i._multiLevelLabelHeight+l-2,nt?ht=p=="outside"?i.y-h-i._multiLevelLabelHeight-l/2-ot:i.y+h-l/2:p=="inside"&&(ht=i.y-h-i._multiLevelLabelHeight),ti={id:this.svgObject.id+"_XAxis_Clippath_"+t,x:kt,y:ht,width:dt,height:gt,fill:"white","stroke-width":1,stroke:"Gray"},this.svgRenderer.drawClipPath(ti,et),tt=0;tt=g.min&&e.start<=g.max||e.end>=g.min&&e.end<=g.max||e.startg.max)){if(v=e.font,w=e.border,b=w.width,s=e._level,it=e.textOverflow.toLowerCase(),ct=w.type.toLowerCase(),rt=e.textAlignment.toLowerCase(),y=Math.ceil(ej.EjSvgRender.utils._getPointXY(e.start,g,i.isInversed)*i.width),d=Math.ceil(ej.EjSvgRender.utils._getPointXY(e.end,g,i.isInversed)*i.width),i.isInversed&&(y=y-d,d=y+d,y=d-y),ft=e.text,a=ej.EjSvgRender.utils._measureText(ft,null,v),st=ej.util.isNullOrUndefined(e.maximumTextWidth)?d-y-b-l:e.maximumTextWidth-l,ri=1,ui=0,u=y+i.x+l/2,r=h+i.y,r=nt?p=="outside"?i.y-h-i.multiLevelLabelHeight[s]-l-i.prevHeight[s]-ot:i.y+h-l/2+i.prevHeight[s]:p=="inside"?i.y-h-i.multiLevelLabelHeight[s]-i.prevHeight[s]:h+i.y+i.prevHeight[s]+ot,this.model.enableCanvasRendering&&(this.svgRenderer.ctx.save(),this.svgRenderer.ctx.beginPath(),this.svgRenderer.ctx.rect(kt,ht,dt,gt),this.svgRenderer.ctx.clip()),rt=="center"?(u+=st/2,yt="middle"):rt=="far"?(u=u+st-b/2,yt="end"):(yt="start",u+=b/2),k=this._triggerMultiLevelLabelsRendering(ft,u,r,it,v,e.border,this),ft=k.text,u=k.location.x,r=k.location.y,it=k.textOverflow.toLowerCase(),v=k.font,w=k.border,ct=k.border.type.toLowerCase(),b=k.border.width,c={id:wt+"_XAxisMultiLevelLabels_Text_"+t+"_"+tt,x:u,y:ct=="curlybrace"?r+10:r,fill:v.color?v.color:i.multiLevelLabelsFontColor,"font-size":v.size,"font-family":v.fontFamily,"font-style":v.fontStyle,"font-weight":v.fontWeight,opacity:v.opacity,"text-anchor":yt},vt=ft,it!="none"&&(vt=this.textOverflowMultiLevelLabels(i,st,vt,ft,it,v,a,c,et,this)),it!="wrap"&&it!="wrapandtrim"&&(c.y+=a.height,a.heightbt.X+d?bt.X+d-l:c.x+a.width/2+2):(lt=c.x-a.width-2,at=c.x);ut=!nt&&p=="outside"||nt&&p=="inside"?"M "+u+" "+r+" L "+u+" "+(r+o/2)+" M "+u+" "+(r+o/2)+" L "+(lt-2)+" "+(r+o/2)+" M "+at+" "+(r+o/2)+" L "+(u+f)+" "+(r+o/2)+" M "+(u+f)+" "+(r+o/2)+" L "+(u+f)+" "+r:"M "+u+" "+(r+o)+" L "+u+" "+(r+o/2)+" M "+u+" "+(r+o/2)+" L "+lt+" "+(r+o/2)+" M "+at+" "+(r+o/2)+" L "+(u+f)+" "+(r+o/2)+" M "+(u+f)+" "+(r+o)+" L "+(u+f)+" "+(r+o/2);break;case"curlybrace":r=i.y+h+i.prevHeight[s];ut=f<30?"M "+(u+f/2-5)+" "+(r+10)+" L "+(u+f/2)+" "+(r+15)+" L "+(u+f/2+5)+" "+(r+10):nt?"M "+u+" "+r+" C "+u+" "+r+" "+(u+5)+" "+(r+10)+" "+(u+10)+" "+(r+10)+" L "+(u+f/2-5)+" "+(r+10)+" L "+(u+f/2)+" "+(r+15)+" L "+(u+f/2+5)+" "+(r+10)+" L "+(u+f-10)+" "+(r+10)+" C "+(u+f-10)+" "+(r+10)+" "+(u+f)+" "+(r+5)+" "+(u+f)+" "+r:rt=="center"?"M "+u+" "+r+" C "+u+" "+r+" "+(u+5)+" "+(r+10)+" "+(u+10)+" "+(r+10)+" L "+(u+f/2-5)+" "+(r+10)+" L "+(u+f/2)+" "+(r+15)+" L "+(u+f/2+5)+" "+(r+10)+" L "+(u+f-10)+" "+(r+10)+" C "+(u+f-10)+" "+(r+10)+" "+(u+f)+" "+(r+5)+" "+(u+f)+" "+r:rt=="near"?"M "+u+" "+r+" C "+u+" "+r+" "+(u+5)+" "+(r+10)+" "+(u+10)+" "+(r+10)+" L "+(u+15)+" "+(r+15)+" L "+(u+15+5)+" "+(r+10)+" L "+(u+f-10)+" "+(r+10)+" C "+(u+f-10)+" "+(r+10)+" "+(u+f)+" "+(r+5)+" "+(u+f)+" "+r:"M "+u+" "+r+" C "+u+" "+r+" "+(u+5)+" "+(r+10)+" "+(u+10)+" "+(r+10)+" L "+(u+f-20)+" "+(r+10)+" L "+(u+f-15)+" "+(r+15)+" L "+(u+f-10)+" "+(r+10)+" L "+(u+f-10)+" "+(r+10)+" C "+(u+f-10)+" "+(r+10)+" "+(u+f)+" "+(r+5)+" "+(u+f)+" "+r}ut&&(pt={id:wt+"_XAxisMultiLevelLabels_Rect_"+t+"_"+tt,d:ut,stroke:w.color?w.color:i.multiLevelLabelsColor,"stroke-width":w.width,fill:"none"},this.svgRenderer.drawPath(pt,et))}this.model.enableCanvasRendering&&this.svgRenderer.ctx.restore();n(et).appendTo(this.gXaxisEle)}},_drawYAxisMultiLevelLabels:function(t,i){var g,r,u,fi,ht,nt,s,a,p,b,ft,tt,l=5,c,pt,ti,ei,ct,o,e,wt,bt,kt,lt,h,et,ot,at=this.svgObject.id,k=i.visibleRange,dt,ii,gt,ni,st,it,oi,y,si,f,ut=this.svgRenderer.createGroup({id:at+"_YAxisMultiLevelLabels_"+t,"clip-path":"url(#"+this.svgObject.id+"_YAxis_Clippath_"+t+")"}),ci=this.model.m_AreaBounds,w=i.opposedPosition,d=i.labelPosition.toLowerCase(),hi=i.labelBorder,vt=i._multiLevelLabelHeight,v=i.majorTickLines.size+i._LableMaxWidth.width+hi.width+2*l,yt=i._isScroll?this.model.scrollerSize:0,ri,rt,ui;for(ii=i.y,gt=vt+l,ni=i.height+l,dt=w?d=="outside"?i.x+v-l+yt:i.x-vt-v+l:d=="outside"?i.x-vt-v-yt:i.x+v-l,ri={id:this.svgObject.id+"_YAxis_Clippath_"+t,x:dt,y:i.y,width:gt,height:ni,fill:"white","stroke-width":1,stroke:"Gray"},this.svgRenderer.drawClipPath(ri,ut),g=0;g=k.min&&s.start<=k.max||s.end>=k.min&&s.end<=k.max||s.startk.max)){if(a=s.font,h=s.border,c=s._level,pt=s.maximumTextWidth,tt=s.textOverflow.toLowerCase(),et=h.type.toLowerCase(),ot=s.textAlignment.toLowerCase(),p=Math.ceil(ej.EjSvgRender.utils._getPointXY(s.start,k,i.isInversed)*i.height),b=Math.ceil(ej.EjSvgRender.utils._getPointXY(s.end,k,i.isInversed)*i.height),i.isInversed&&(p=p-b,b=p+b,p=b-p),rt=s.text,nt=ej.EjSvgRender.utils._measureText(rt,null,a),ht=b-p-h.width,ti=ej.util.isNullOrUndefined(pt)?i.multiLevelLabelHeight[c]+l:pt-l,fi=1,ei=0,st=0,r=i.x-v-i.prevHeight[c]-i.multiLevelLabelHeight[c]/2+h.width-l/2,u=i.height+i.y-p-ht/2,r=w?d=="outside"?i.x+v+i.multiLevelLabelHeight[c]/2+i.prevHeight[c]+h.width+yt:i.x-v-i.multiLevelLabelHeight[c]/2-i.prevHeight[c]+h.width+l/2:d=="inside"?i.x+v+i.multiLevelLabelHeight[c]/2+i.prevHeight[c]-l/2:r+st-yt,this.model.enableCanvasRendering&&(this.svgRenderer.ctx.save(),this.svgRenderer.ctx.beginPath(),this.svgRenderer.ctx.rect(dt,ii,gt,ni),this.svgRenderer.ctx.clip()),u=ot=="far"?u+ht/2-nt.height/2:ot=="near"?u-ht/2+nt.height:u+nt.height/4,it=this._triggerMultiLevelLabelsRendering(rt,r,u,tt,a,s.border,this),rt=it.text,r=it.location.x,u=it.location.y,tt=it.textOverflow,a=it.font,h=it.border,et=h.type.toLowerCase(),oi=h.width,ft={id:at+"_YAxisMultiLevelLabels_Text_"+t+"_"+g,x:et=="curlybrace"?w?r+st+10:r+st-10:r+st,y:u,fill:a.color?a.color:i.multiLevelLabelsFontColor,"font-size":a.size,"font-family":a.fontFamily,"font-style":a.fontStyle,"font-weight":a.fontWeight,opacity:a.opacity,"text-anchor":"middle"},ct=rt,tt!="none"&&(ct=this.textOverflowMultiLevelLabels(i,ti,ct,rt,tt,a,nt,ft,ut,this)),tt!="wrap"&&tt!="wrapandtrim"&&this.svgRenderer.drawText(ft,ct,ut),r=r-l/2-i.multiLevelLabelHeight[c]/2,u=i.y+i.height-b+h.width,o=b-p,e=i.multiLevelLabelHeight[c]+l,y="",si=(e+h.width-vt)/2-2,ui={bounds:{x:r,y:u,height:o,width:e},axisIndex:t,multiLevelLabel:s},this.model.multiLevelLabelRegions.push(ui),et=="rectangle")lt={id:at+"_YAxisMultiLevelLabels_Rect_"+t+"_"+g,x:r,y:u,width:e,height:o,fill:"transparent",stroke:h.color?h.color:i.multiLevelLabelsColor,"stroke-width":h.width},this.svgRenderer.drawRect(lt,ut);else{switch(et){case"withouttopandbottomborder":y="M "+r+" "+(u+o)+" L "+(r+e)+" "+(u+o)+" M "+r+" "+u+" L "+(r+e)+" "+u;break;case"withouttopborder":kt=!w&&d=="outside"||w&&d=="inside"?0:e;y="M "+r+" "+(u+o)+" L "+(r+e)+" "+(u+o)+" M "+r+" "+u+" L "+(r+e)+" "+u+" M "+(r+kt)+" "+(u+o)+" L "+(r+kt)+" "+u;break;case"brace":wt=ft.y-nt.height/2-4;bt=ft.y+nt.height/4+2;y=!w&&d=="outside"||w&&d=="inside"?"M "+(r+e)+" "+u+" L "+(r+e/2)+" "+u+" M "+(r+e/2)+" "+u+" L "+(r+e/2)+" "+wt+" M "+(r+e/2)+" "+bt+" L "+(r+e/2)+" "+(u+o)+" M "+(r+e/2)+" "+(u+o)+" L "+(r+e)+" "+(u+o):"M "+r+" "+u+" L "+(r+e/2)+" "+u+" M "+(r+e/2)+" "+u+" L "+(r+e/2)+" "+wt+" M "+(r+e/2)+" "+bt+" L "+(r+e/2)+" "+(u+o)+" M "+(r+e/2)+" "+(u+o)+" L "+r+" "+(u+o);break;case"curlybrace":r=i.x-v-i.prevHeight[c];f=o-10;o<30?w?(r=i.x+v+i.prevHeight[c],f=o-10,y=" M "+(r+10)+" "+(u+f/2)+" L "+(r+15)+" "+(u+f/2+5)+" L "+(r+10)+" "+(u+f/2+10)):y="M "+(r-10)+" "+(u+o/2-5)+" L "+(r-15)+" "+(u+o/2)+" L "+(r-10)+" "+(u+o/2+5):w?(r=i.x+v+i.prevHeight[c],f=o-10,y="M "+r+" "+u+" C "+r+" "+u+" "+(r+10)+" "+u+" "+(r+10)+" "+(u+10)+" L "+(r+10)+" "+(u+f/2)+" L "+(r+15)+" "+(u+f/2+5)+" L "+(r+10)+" "+(u+f/2+10)+" L "+(r+10)+" "+(u+f)+" C"+(r+10)+" "+(u+f)+" "+(r+5)+" "+(u+f+10)+" "+r+" "+(u+f+10)):y=ot=="center"?"M "+r+" "+u+" C "+r+" "+u+" "+(r-10)+" "+u+" "+(r-10)+" "+(u+10)+" L "+(r-10)+" "+(u+f/2)+" L "+(r-15)+" "+(u+f/2+5)+" L "+(r-10)+" "+(u+f/2+10)+" L "+(r-10)+" "+(u+f)+" C "+(r-10)+" "+(u+f)+" "+(r-5)+" "+(u+f+10)+" "+r+" "+(u+f+10):ot=="far"?"M "+r+" "+u+" C "+r+" "+u+" "+(r-10)+" "+u+" "+(r-10)+" "+(u+10)+" L "+(r-10)+" "+(u+f-10)+" L "+(r-15)+" "+(u+f-5)+" L "+(r-10)+" "+(u+f)+" L "+(r-10)+" "+(u+f)+" C"+(r-10)+" "+(u+f)+" "+(r-10)+" "+(u+f+10)+" "+r+" "+(u+f+10):"M "+r+" "+u+" C "+r+" "+u+" "+(r-10)+" "+u+" "+(r-10)+" "+(u+10)+" L "+(r-15)+" "+(u+10+5)+" L "+(r-10)+" "+(u+10+10)+" L "+(r-10)+" "+(u+f)+" C"+(r-10)+" "+(u+f)+" "+(r-5)+" "+(u+f+10)+" "+r+" "+(u+f+10)}y&&(lt={id:at+"_YAxisMultiLevelLabels_Rect_"+t+"_"+g,d:y,stroke:h.color?h.color:i.multiLevelLabelsColor,"stroke-width":h.width,fill:"none"},this.svgRenderer.drawPath(lt,ut))}this.model.enableCanvasRendering&&this.svgRenderer.ctx.restore();n(ut).appendTo(this.gYaxisEle)}},_getLabelCollection:function(n,t,i,r,u){var f=[],h=[],c,s,e,o;for(typeof n=="string"&&n.indexOf("
")!=-1?f=n.split("
"):f.push(n),r=r<=0?i.width/i.labels.length:r,c=f.length,e=0;e")!=-1?ej.EjSvgRender.utils._getHighestLabel(i,hi,e):e,tt=ej.EjSvgRender.utils._measureText(ut,ui,i.font),f=tt.width,w=tt.height,c=0,yi=!1,l=="trim"||i.enableTrim){if(ni=="onticks")if(s!=a.length-1){for(wu=u,bu=a[s+1],o=[],oi=[],ri=a[s+1],typeof ri.Text=="string"&&ri.Text.indexOf("
")!=-1||typeof u.Text=="string"&&u.Text.indexOf("
")!=-1?(o=u.Text.split("
"),oi=ri.Text.split("
")):(oi.push(ri.Text),u.displayText?o.push(u.displayText):o.push(u.Text)),d=0;df?(ef=pr=oi[d],ou=!1):(pr=o[bi],ou=!0),ht=pr,ur={},ur.displayText=pr,g=1;g")!=-1?o=e.split("
"):o.push(e),ku=o.length,d=0;dfr&&o[d]!=""){for(g=1;g=fr){if(o[d]=o[d].toString().substring(0,g-1)+"... ",u.displayText=o[d],s==a.length-1&&it+i.x+f/2>hi&&fr==lt){fr-=f/2;g=1;continue}break}u.displayText=o[d]}(i._valueType!="double"||typeof u.displayText=="string")&&(ut=o.length>0?ej.EjSvgRender.utils._getHighestLabel(i,hi,o,null):ut,tt=ej.EjSvgRender.utils._measureText(ut,et,y))}else tt=typeof e=="string"&&e.indexOf("
")!=-1?ej.EjSvgRender.utils._measureText(ut,et,y):ej.EjSvgRender.utils._measureText(u.displayText,et,y);if(ar=tt.width/2,w=tt.height,f=tt.width,tu=i.majorGridLines.width>ir?i.majorGridLines.width:ir,!ej.util.isNullOrUndefined(u.Text)){if(gi=vu=="near"?it+i.x+tu+(gt=="category"&&ni!="onticks"?-(bt/i.actualRange.delta)/2+gr:-tt.width-gr):vu=="far"?it+i.x+(gt=="category"&&ni!="onticks"?+(bt/i.actualRange.delta/2)-tt.width:+tu+gr):it+i.x-ar,v&&st||v&&!st&&l=="multiplerows"?b=h?i.y+wt+w/2+ii/2+pt/(2*ti)-ei:i.y-wt-ii/2-pt/(2*ti)+ei:v&&!st?b=h?i.y+w/2+ii/2+pt/(2*ti)-ei:i.y-ii/2-pt/(2*ti)+ei:(v||st)&&(v||!st||l!="multiplerows")?!v&&st&&(b=h?i.y+w/2-ii/2-pt/(2*ti)-ei:i.y+ii/2+pt/(2*ti)+ei,b=b+(hu?h?-wr:wr:0)):(b=h?i.y-wt+w/2-ii/2-pt/(2*ti)-ei:i.y+wt+ii/2+pt/(2*ti)+ei,b=b+(hu?h?-wr:wr:0)),v&&!st?(p==90||l=="rotate90")&&(b=h?b:b-wt):!v&&st?(i.labelRotation==90||l=="rotate90")&&(b=h?b-wt:b-wt):v&&st&&(i.labelRotation==90||l=="rotate90")&&(b=h?b:b-wt),r={id:this.svgObject.id+"_"+rf+"_XLabel_"+s,x:gi,y:b,fill:y.color,"font-size":y.size,"font-family":y.fontFamily,"font-style":y.fontStyle,"font-weight":y.fontWeight,opacity:y.opacity},i.edgeLabelPlacement){fu=i.edgeLabelPlacement.toLowerCase();eu=a.length-1;switch(fu){case"shift":s==0?r.xi.x+i.width&&(pi=r.x+tt.width-(i.x+i.width),r.x=gi=r.x-pi,this.diff=pi,this.edgeLabel=!0);break;case"hide":(s==0&&r.xet+ff)&&(e="")}}if((l=="wrap"||l=="wrapbyword")&&(vt=this._getLabelCollection(e,ui,i,lt,r),du=ej.EjSvgRender.utils._getHighestLabel(i,n(this.svgObject).width(),vt,null),f=ej.EjSvgRender.utils._measureText(du,et,y).width),p==0||uf||(u.displayText=typeof u.displayText=="string"&&u.displayText.indexOf("
")!=-1?ej.EjSvgRender.utils._getHighestLabel(i,hi,u.displayText):u.displayText,this.labelRotation(i,gi+ar,b,r,u,p)),i.labelIntersectAction||i.enableTrim)if(this.diff=ej.util.isNullOrUndefined(this.diff)?0:this.diff,l!="none"||i.enableTrim)if(l!="wrap"&&l!="wrapbyword"||i.enableTrim){if(l=="hide")for(er=a.length-1,or=0;or=tf-this.diff)&&(e=u.displayText="")}l=="hide"&&(i.isInversed?kit-sr)&&(u.displayText=e="")}else if(l=="multiplerows"&&!i.enableTrim){if(ot=[],kt=u,typeof kt.Text=="string"&&kt.Text.indexOf("
")!=-1?ot=kt.Text.split("
"):ot.push(kt.Text),dt=ot.length,e==""&&i.edgeLabelPlacement=="hide")for(dr=0;dr0)for(ki=rt,di=0;diit-f)if(h){wi=v?r.y+w:r.y-w;r.y=wi;c=c+1;c")!=-1?ft=e.split("
"):ft.push(e),ai="",lt=lt<=0?bt/a.length:lt,kr=0;kr")!=-1?(ft=e.split("
"),r.y=v?h?r.y:r.y-w*(ft.length-1):h?r.y-w*(ft.length-1):r.y,p!=0&&(r.x=r.x+f/2,r["text-anchor"]=at),this.svgRenderer.drawText(r,ft,si?ut:yt)):((at=="start"||at=="end")&&p!=0&&p!=-360&&p!=360&&(r.x=r.x+f/2,r["text-anchor"]=at),this.svgRenderer.drawText(r,e,si?ut:yt));a[s].region=this.calculateRegion(e,y,r,u);this.model.xAxisLabelRegions.push(a[s].region);v?n(yt).appendTo(this.gXaxisTickEle):n(yt).appendTo(this.gXaxisEle);continue}this.edgeLabel||this.zoomed||i.zoomed||p||lr=="rotate90"||lr=="rotate45"||!(it+i.x+f/2>n(this.svgObject).width())||(n(r).attr("x",n(this.svgObject).width()-2),n(r).attr("text-anchor","end"));i.visibleLabels[s].y=r.y;this.model.enableCanvasRendering&&v&&(i.labelIntersectAction=="rotate45"||i.labelIntersectAction=="rotate90")&&(r.y=r.y-f);(l=="trim"||i.enableTrim)&&(i._valueType!="double"||typeof u.displayText=="string")?(r.y=v?h?r.y:r.y-w*(o.length-1):h?r.y-w*(o.length-1):r.y,u.displayText=o.length>0?o.join(""):e,u.displayText.indexOf("...")!=-1||(u.displayText=e),p!=0&&at!="middle"&&(r.x=r.x+f/2,r["text-anchor"]=at),this.svgRenderer.drawText(r,o.length>0?o:e,si?ut:yt)):l!="multiplerows"&&(typeof e=="string"&&e.indexOf("
")!=-1?(ft=e.split("
"),r.y=v?h?r.y:r.y-w*(ft.length-1):h?r.y-w*(ft.length-1):r.y,(p!=0||lr=="rotate45"||lr=="rotate90")&&(r.x=r.x+f/2,r["text-anchor"]=at),this.svgRenderer.drawText(r,ft,si?ut:yt)):(at=="start"&&p!=0&&p!=-360&&p!=360&&(r.x=r.x+f/2,r["text-anchor"]=at),this.svgRenderer.drawText(r,e,si?ut:yt)));s!=a.length-1&&(l=="trim"||i.enableTrim)&&(r.x=r.x-f/2);i.visibleLabels[s].region=this.calculateRegion(e,y,r,u,o?o:ft,ut,l);this.model.xAxisLabelRegions.push(i.visibleLabels[s].region)}}n(yt).appendTo(this.gXaxisEle)},calculateRegion:function(n,t,i,r,u,f,e){var o;e=="trim"&&u.length>0?(o=u.join(""),o.indexOf("...")!=-1||(o=r.Text)):o=f?f:n;var s=u?u.length>0?u.length:1:1,h=s>1&&f?ej.EjSvgRender.utils._measureText(f,null,t):ej.EjSvgRender.utils._measureText(o,null,t),c=h.height*s,l={x:i.x,y:i.y,width:h.width,height:c};return{bounds:l,trimText:o,labelText:r.Text}},rowscalculation:function(n,t,i,r,u){var h=ej.EjSvgRender.utils._measureText,s=i.font,nt=h(n,t,s),c=nt.width,rt=c/2,e=n.toString(),tt=e.length,a=[],f=0,w,d,it=i.labelIntersectAction,v=e.split(" "),g=v.length,l,b,y,o,p,k;if(this.edgeLabel&&(r=f==0?r-this.diff:r),c>r&&u&&(w=0,this.edgeLabel&&(u.x=f==0?u.x-this.diff:u.x+this.diff)),it=="wrap"){if(c>r)for(l=1;l<=e.length;l++)n=e.substring(0,l),c=h(n,t,s).width,c>r&&(w=w+1,n=e.substring(0,l-1),a[f]=n,e=e.slice(l-1,tt),d=e.split(" "),e=v.indexOf(d[0])>-1?e:"-"+e,b=h(n,t,s).width,f++,l=0);u&&(u.x=i.valueType=="datetimeCategory"&&i.labelPlacement.toLowerCase()=="betweenticks"?i._gap:u.x);a[f]=n}else for(y=0,f=0;fr){while(f0)o=o.concat(" "+v[f+1]),f++;else{y=Math.max(y,p);break}a.push(o)}else if(c>r)o=ej.EjSvgRender.utils._trimText(o,r,s),b=h(o,t,s).width,y=Math.max(y,b),a.push(o);else{a.push(n);break}return a},labelRotation:function(t,i,r,u,f,e,o){var y=t._opposed,p=t.rotateOn.toLowerCase(),w=t.labelIntersectAction.toLowerCase(),c=0,l=f.displayText?f.displayText:f.Text,s=e>360?e-360:e<-360?e+360:e,v="rotate("+s+","+i+","+r+")",h;if(n(u).attr("transform",v),n(u).attr("labelRotation",s),n(u).attr("labelPosition",t.labelPosition),w=="wrap"||w=="wrapbyword")var d=t.width/t.labels.length,g=this._getLabelCollection(l,this.model.m_AreaBounds.width,t,d,u),l=ej.EjSvgRender.utils._getHighestLabel(t,n(this.svgObject).width(),g,null);var b=this.svgRenderer.createText(u,l),a=Math.round(ej.EjSvgRender.utils._measureBounds(b,this).height),k=ej.EjSvgRender.utils._measureText(l,null,t.font).height;c=Math.ceil(ej.EjSvgRender.utils._measureBounds(b,this).height-ej.EjSvgRender.utils._measureText(l,null,t.font).height);c=t._LableMaxWidth.height-c-ej.EjSvgRender.utils._measureText(l,null,t.font).height;h=t.labelPosition!="inside"?y?c/2:-c/2:y?-c/2:c/2;p=="end"&&(h=h+(s<0&&s>-180||s>180?-(a/2):(a-k)/2));p=="start"&&(h=h+(s<0&&s>-180||s>180?a/2:-((a-k)/2)));v="rotate("+s+","+i+","+(r+(this.model.enableCanvasRendering&&t.opposedPosition?-h:h))+")";this.edgeLabel&&e==90&&(r=o==0?u.y+this.diff:u.y-this.diff);n(u).attr({transform:v,y:r+(this.model.enableCanvasRendering&&t.opposedPosition?-h:h)})},_drawYAxisLabels:function(t,i){var wi=i.name.replace(/[^a-zA-Z0-9]/g,""),gt=this.svgRenderer.createGroup({id:this.svgObject.id+"_YAxisLabels_"+t,cursor:"default"}),k,fi,et,yt,e=i._opposed,a=i.labelPosition=="inside",nt=i.tickLinesPosition=="inside",tt,pt,s=this.model.m_AreaBounds,di=this.model.requireInvertedAxes,bi=this.model.enableCanvasRendering,ei=i._isScroll&&!(i.scrollbarSettings.pointsLength!=null&&i.scrollbarSettings.pointsLengthi.majorTickLines.width?i.majorGridLines.width:i.majorTickLines.width,ft=yi=="far"?-wt+(i.y+w)-ui-pi:yi=="near"?-wt+(i.y+w)+v/2+ui+pi:-wt+(i.y+w)+v/4,u={id:this.svgObject.id+"_"+wi+"_YLabel_"+c,x:o,y:ft,fill:h.color,"font-size":h.size,"font-family":h.fontFamily,"font-style":h.fontStyle,"font-weight":h.fontWeight,opacity:h.opacity,"text-anchor":!ej.util.isNullOrUndefined(b)&&b!=0?"middle":ot},r=f.displayText?f.displayText:f.Text,l=[],typeof r=="string"&&r.indexOf("
")!=-1?(l=r.split("
"),ct=r=ej.EjSvgRender.utils._getHighestLabel(i,s.Height,l),y=ej.EjSvgRender.utils._measureText(r,ii,h).width):l.push(r),i.edgeLabelPlacement){si=i.edgeLabelPlacement.toLowerCase();ni=rt.length-1;switch(si){case"shift":c==0?u.y>i.y+w&&(it=u.y-(i.y+w),u.y=ft=u.y-it,this.diff=it,this.edgeLabel=!0):c==ni&&u.y-v/2i.y+w||c==ni&&u.y-v/2360?b-360:b<-360?b+360:b,kt="rotate("+bt+","+o+","+ft+")",n(u).attr("transform",kt),n(u).attr("labelRotation",bt),fi=this.svgRenderer.createText(u,r),et=Math.ceil(ej.EjSvgRender.utils._measureBounds(fi,this).width-ej.EjSvgRender.utils._measureText(r,null,h).width),ti=a?e?-et/2:et/2:e?et/2:-et/2,kt="rotate("+bt+","+(o+ti)+","+ft+")",n(u).attr({transform:kt,x:o+ti})),i.labelIntersectAction||i.enableTrim){if(ri!="none"||i.enableTrim){if(i.enableTrim)for(lt=0;ltci&&r!=""){for(at=1;at=ci){r=r.toString().substring(0,at-1)+"...";break}f.displayText=l[lt]=r}}else{this.svgRenderer.drawText(u,l.length>0?l:f.Text,bi&&ct?ct:gt);k=ej.EjSvgRender.utils._measureText(r,null,h);pt=i.opposedPosition?u.x:u.x-k.width;tt={x:pt,y:u.y,width:k.width,height:k.height};yt={bounds:tt,trimText:r,labelText:f.Text};i.visibleLabels[c].region={bounds:tt,trimText:r,labelText:f.Text};this.model.yAxisLabelRegions.push(yt);continue}for(vt=0;vtu.y-v/4:pu.y-v/4:p0?l:r,gt);k=ej.EjSvgRender.utils._measureText(r,null,h);pt=e?u.x:u.x-k.width;tt={x:pt,y:u.y,width:k.width,height:k.height};yt={bounds:tt,trimText:r,labelText:f.Text};rt[c].region={bounds:tt,trimText:r,labelText:f.Text};this.model.yAxisLabelRegions.push(yt)}n(gt).appendTo(this.gYaxisEle)},trimText:function(n,t,i){return t--,n=n.substring(0,t-i.length),n+i},_drawXTitle:function(t,i){var et,f,w,o,st,ht;if(i.title.text!=""&&i.title.text&&i.title.visible){var g=this.svgRenderer.createGroup({id:this.svgObject.id+"_XAxis_Title_"+t,cursor:"default"}),pt=this.model.elementSpacing+i._LableMaxWidth.height,u=ej.EjSvgRender.utils._measureText(i.title.text,i.width,i.title.font),e=u.height/2,it=i._opposed,l=i.title.text,b=i._LableMaxWidth,p="middle",r=this.model.elementSpacing,rt=i.title.enableTrim,a=i._isScroll||this.model.zooming.enableScrollbar&&i.scrollbarSettings.visible&&(i.zoomFactor<1||i.zoomPosition>0),v=i.title.maximumTitleWidth,k=i.title.position.toLowerCase(),ft=i.title.alignment.toLowerCase(),w,nt=i.title.isReversed,s=i.tickLinesPosition.toLowerCase(),h=i.labelPosition.toLowerCase(),c=this.model.m_AreaBounds,d=i.title.offset,tt,ut,y=this.model.scrollerSize;if(rt&&(ej.util.isNullOrUndefined(v)||v>0||isNaN(v)))for(et=v?v:i.width-r*2;u.width>et;)if(l=this.trimText(l,l.length,"..."),u=ej.EjSvgRender.utils._measureText(l,i.width,i.title.font),l=="..."){l="";break}if(f=n.extend({},ej.EjSvgRender.commonChartEventArgs),w=r+b.height+e+i._multiLevelLabelHeight+i.majorTickLines.size+i.axisLine.width,s=="inside"&&h=="inside"&&(t==0||i.y==c.Height+c.Y||i.y==c.Y)?w=k=="inside"?r+b.height+e+i._multiLevelLabelHeight+i.majorTickLines.size+i.axisLine.width:r+e+i.axisLine.width:(t==0||i.y==c.Width+c.X||i.y==c.X)&&s!="inside"&&h=="inside"?w=k=="inside"?r+b.height+e+i._multiLevelLabelHeight+i.axisLine.width:r+i.majorTickLines.size+i.axisLine.width:(t==0||i.y==c.Width+c.X||i.y==c.X)&&s=="inside"&&h!="inside"?w=k=="inside"?r+e+i.majorTickLines.size+i.axisLine.width:r+b.height+e+i._multiLevelLabelHeight+i.axisLine.width:s!="inside"&&h!="inside"||t!=1?w=k=="inside"?r:r+b.height+e+i.majorTickLines.size+i.axisLine.width+i._multiLevelLabelHeight:s=="inside"||h!="inside"||i.showNextToAxisLine||(w=k=="inside"?r+b.height+e+i._multiLevelLabelHeight+i.axisLine.width:r+e+i.majorTickLines.size+i.axisLine.width+r+r),ft=="far"?(tt=nt?i.x+d:i.x+i.width+d,p=nt?"start":"end"):ft=="near"?(tt=nt?i.x+i.width+d:i.x+d,p=nt?"end":"start"):tt=i.x+i.width/2+d,f.data={title:i.title.text,location:{x:tt,y:w},axes:i},this._trigger("axesTitleRendering",f),ut=k=="inside"?(it?s=="inside"&&h=="outside"?i.y+f.data.location.y-(a?y:0)-i.majorTickLines.size:i.y+f.data.location.y-(a?y:0):s=="outside"&&h=="inside"?(a?y:0)+(i.y-f.data.location.y)+i.majorTickLines.size:(a?y:0)+(i.y-f.data.location.y))+u.height/3.5:(it?s=="inside"&&h=="outside"?i.y-f.data.location.y-(a?y:0)-i.majorTickLines.size:i.y-f.data.location.y-(a?y:0):s=="outside"&&h=="inside"?(a?y:0)+(f.data.location.y+i.y)-i.majorTickLines.size:(a?y:0)+(f.data.location.y+i.y))+u.height/3.5,o={id:this.svgObject.id+"_XAxisTitle_"+t,x:f.data.location.x,y:ut,fill:i.title.font.color,"font-size":i.title.font.size,"font-family":i.title.font.fontFamily,"font-style":i.title.font.fontStyle,"font-weight":i.title.font.fontWeight,opacity:i.title.font.opacity,"text-anchor":p},this.model.enableCanvasRendering){var ct=jQuery.uaMatch(navigator.userAgent),lt=!!navigator.userAgent.match(/Trident\/7\./),ot=ct.browser.toLowerCase();ot=="msie"||lt||(o.y=it?o.y+e/2+1:o.y+e/2+(ot=="mozilla"?1:-2))}if(n(this.svgObject).find("#"+this.svgObject.id+"_XAxisTitle_"+t).length>0)n(this.svgObject).find("#"+this.svgObject.id+"_XAxisTitle_"+t).attr(o);else if(rt){if(rt&&(ej.util.isNullOrUndefined(v)||v>0||isNaN(v))){var at=p=="middle"?o.x-u.width/2:p=="end"?o.x-u.width:o.x,vt={X:at,Y:o.y,Width:u.width,Height:u.height},yt={Bounds:vt,trimText:l,labelText:i.title.text};this.model.xAxisTitleRegion.push(yt);this.svgRenderer.drawText(o,l,g)}}else this.svgRenderer.drawText(o,f.data.title,g);this.model.enableCanvasRendering||(st=p=="start"?0:p=="end"?u.width:u.width/2,ht={id:this.svgObject.id+"_XAxisTitleBorder_"+t,x:f.data.location.x-st-r,y:ut-u.height+u.height/4,width:u.width+2*r,height:u.height,fill:"transparent","class":"e-xaxistitleborder"},this.svgRenderer.drawRect(ht,g));n(g).appendTo(this.gXaxisEle)}},_drawYTitle:function(t,i){var u,ot,w,o,ht,ct,lt,at;if(i.title.text!=""&&i.title.text&&i.title.visible){var e=i._opposed,r=this.model.elementSpacing,p="middle",ft=this.model.series.isTransposed,h=i.majorTickLines.size,b=i.title.position.toLowerCase(),c=i._LableMaxWidth,l=this.model.m_AreaBounds,s,f=i.axisLine,g=i.tickLinesPosition.toLowerCase(),k=i.labelPosition.toLowerCase(),a=i.title.text,nt=i.title.enableTrim,wt=this.model.requireInvertedAxes,y,vt=i._isScroll,v=i.title.maximumTitleWidth,tt=i.title.offset,it=i.title.alignment.toLowerCase(),et=i.title.titleRotation.toLowerCase(),rt,d=this.svgRenderer.createGroup({id:this.svgObject.id+"_YAxisTitleGroup_"+t,cursor:"default"}),ut=ej.EjSvgRender.utils._measureText(i.title.text,i.height,i.title.font);if(g=="inside"&&k=="inside"&&(t==1||i.x==l.Width+l.X||i.x==l.X)?s=b=="inside"?e?i.x-(3*r+c.width+i._multiLevelLabelHeight+h+f.width):i.x+(3*r+c.width+i._multiLevelLabelHeight+h+f.width):e?i.x+(3*r+f.width-5):i.x-(3*r+f.width):(t==1||i.x==l.Width+l.X||i.x==l.X)&&g!="inside"&&k=="inside"?s=b=="inside"?e?i.x-(3*r+c.width+i._multiLevelLabelHeight+f.width):i.x+(3*r+c.width+i._multiLevelLabelHeight+f.width):e?i.x+(3*r+h+f.width):i.x-(3*r+h+f.width):(t==1||i.x==l.Width+l.X||i.x==l.X)&&g=="inside"&&k!="inside"?s=b=="inside"?e?i.x-(3*r+h+f.width):i.x+(3*r+h+f.width)+(i.showNextToAxisLine?k=="inside"?-i._multiLevelLabelHeight:i._multiLevelLabelHeight:-r):e?i.x+(3*r+i._multiLevelLabelHeight+c.width+f.width):i.x-(3*r+c.width+f.width+i._multiLevelLabelHeight):(i.tickLinesPosition!="inside"&&i.labelPosition!="inside"||t!=1)&&(s=b=="inside"?e?i.x-(r+f.width+h):i.x+(r+(i.showNextToAxisLine?0:c.width)+f.width+h):e?i.x+(3*r+i._multiLevelLabelHeight+c.width+h+f.width):i.x-(3*r+c.width+i._multiLevelLabelHeight+h+f.width)),u=ej.EjSvgRender.utils._measureText(a,i.height,i.title.font),nt&&(ej.util.isNullOrUndefined(v)||v>0||isNaN(v)))for(ot=v?v:i.height-r*2;u.width>ot;)if(a=this.trimText(a,a.length,"..."),u=ej.EjSvgRender.utils._measureText(a,i.height,i.title.font),a=="..."){a="";break}if(s=i.opposedPosition?s:s-(vt?this.model.scrollerSize:0),document.documentMode===8&&(s=e?s+u.width/2-r:s-u.width/2+r),w=n.extend({},ej.EjSvgRender.commonChartEventArgs),w.data={title:i.title.text,location:{x:ut.width/2,y:0},axes:i},this._trigger("axesTitleRendering",w),y=w.data.location.y+(i.y+i.height)+i.height/-2,it=="near"?(y=i.y+i.height-tt,p=e||ft?"end":"start"):it=="far"?(y=i.y-tt,p=e||ft?"start":"end"):it=="center"&&(y=i.y+i.height/2-tt),rt=et=="none"?e?90:-90:et=="rotateminus90"?-90:90,o={id:this.svgObject.id+"_YAxisTitle_"+t,x:s,y:y,fill:i.title.font.color,labelRotation:rt,transform:"rotate("+rt+","+s+","+y+")","font-size":i.title.font.size,"font-family":i.title.font.fontFamily,"font-style":i.title.font.fontStyle,"font-weight":i.title.font.fontWeight,opacity:i.title.font.opacity,"text-anchor":p,"dominant-baseline":"middle"},this.model.enableCanvasRendering){var yt=jQuery.uaMatch(navigator.userAgent),pt=!!navigator.userAgent.match(/Trident\/7\./),st=yt.browser.toLowerCase();st=="msie"||pt||(o.x=e?o.x-ut.height/4+1:o.x+ut.height/4+(st=="mozilla"?1:-2))}n(this.svgObject).find("#"+this.svgObject.id+"_YAxisTitle_"+t).length>0?n(this.svgObject).find("#"+this.svgObject.id+"_YAxisTitle_"+t).attr(o):nt?nt&&(ej.util.isNullOrUndefined(v)||v>0||isNaN(v))&&(ht=this.svgRenderer.vmlNamespace?{X:o.x-u.width/2,Y:o.y+u.height/2,Width:u.width,Height:u.height}:{X:o.x-u.height/2,Y:o.y+u.width/2,Width:u.height/2,Height:u.width},ct={Bounds:ht,trimText:a,labelText:i.title.text},this.model.yAxisTitleRegion.push(ct),this.svgRenderer.drawText(o,a,d)):this.svgRenderer.drawText(o,w.data.title,d);this.model.enableCanvasRendering||(lt=p=="start"?u.width:p=="end"?0:u.width/2,at={id:this.svgObject.id+"_YAxisTitleBorder_"+t,x:o.x-u.height+u.height/2,y:o.y-lt-r,width:u.height,height:u.width+2*r,fill:"transparent","class":"e-yaxistitleborder"},this.svgRenderer.drawRect(at,d));n(d).appendTo(this.gYaxisEle)}},_drawXAxisRect:function(t,i,r){var s,o;if(this.model.primaryXAxis.backGround!="transparent"&&i.visible&&i.axisLine.visible){s=this.model.border;axisTitleSize=ej.EjSvgRender.utils._measureText(r.title.text,r.width,r.title.font);titlesize=axisTitleSize.height/2;opposedPosition=r._opposed;_LableMaxWidth=r._LableMaxWidth;elementSpacing=this.model.elementSpacing;isScroll=r._isScroll||this.model.zooming.enableScrollbar&&r.scrollbarSettings.visible&&(r.zoomFactor<1||r.zoomPosition>0);tickLinesPosition=r.tickLinesPosition.toLowerCase();labelPosition=r.labelPosition.toLowerCase();axistitleoffset=r.title.offset;scrollerSize=this.model.scrollerSize;var u=n.extend({},ej.EjSvgRender.commonChartEventArgs),h=elementSpacing+_LableMaxWidth.height+titlesize+r._multiLevelLabelHeight+r.majorTickLines.size+r.axisLine.width,c=r.x+r.width/2+axistitleoffset;u.data={title:r.title.text,location:{x:c,y:h},axes:r};this._trigger("axesTitleRendering",u);o=(opposedPosition?tickLinesPosition=="inside"&&labelPosition=="outside"?r.y-u.data.location.y-(isScroll?scrollerSize:0)-r.majorTickLines.size:r.y-u.data.location.y-(isScroll?scrollerSize:0):tickLinesPosition=="outside"&&labelPosition=="inside"?(isScroll?scrollerSize:0)+(u.data.location.y+r.y)-r.majorTickLines.size:(isScroll?scrollerSize:0)+(u.data.location.y+r.y))+axisTitleSize.height/3.5;x1=Math.floor(i.x);x2=Math.floor(i.x+i.width);y1=Math.floor(i.y);y2=Math.floor(i.y);var e=i.axisLine.offset>0?i.axisLine.offset:0,f=this._getSharpPath(i.axisLine.width),l={id:this.svgObject.id+"_XAxisRect_"+t,x:x1-i.plotOffset+f+e-15,y:y1+f,width:x2+i.plotOffset-e+f-(x1-i.plotOffset+f+e)+30,height:o,fill:this.model.primaryXAxis.backGround,"class":"e-XAxisarea"};this.svgRenderer.drawRect(l,this.gXaxisEle)}},_drawYAxisRect:function(t,i){var s,h;if(this.model.primaryYAxis.backGround!="transparent"&&i.visible&&i.axisLine.visible){var f=this.model.border,c=Math.floor(i.y+i.height),e=Math.floor(i.y),o=i._opposed;t==1||i.labelPosition=="inside"||i.tickLinesPosition!="inside"||i.x==this.model.m_AreaBounds.Width+this.model.m_AreaBounds.X||i.x==this.model.m_AreaBounds.X?(s=Math.floor(i.x),h=Math.floor(i.x)):(s=o?Math.floor(i.x+i.majorTickLines.size):Math.floor(i.x-i.majorTickLines.size),h=o?Math.floor(i.x+i.majorTickLines.size):Math.floor(i.x-i.majorTickLines.size));var r=i.axisLine.offset>0?i.axisLine.offset:0,u=this._getSharpPath(i.axisLine.width),l={id:this.svgObject.id+"_YAxisRect_"+t,x:0,y:e-i.plotOffset+r+u-7,width:n(this.svgObject).width()-2*f.width+this.model.m_AreaBounds.X-(n(this.svgObject).width()-2*f.width),height:c+i.plotOffset-r+u-(e-i.plotOffset+r+u)+14,fill:this.model.primaryYAxis.backGround,"class":"e-YAxisarea"};this.svgRenderer.drawRect(l,this.gYaxisEle)}}};ej.EjStripline.prototype={_drawStripline:function(n,t,i,r){var a=ej.util.isNullOrUndefined(n.valueType)?n._valueType.toLowerCase():n.valueType.toLowerCase(),f,e,h,s,c,l,d,v,w;typeof t.start=="string"&&typeof t.end=="string"&&(t.start=t.start.indexOf("/Date(")!=-1?new Date(parseInt(t.start.substr(6))):t.start,t.end=t.end.indexOf("/Date(")!=-1?new Date(parseInt(t.end.substr(6))):t.end);a=="datetimecategory"?(f=t.start!=null&&typeof t.start!="number"?n.labels.indexOf(t.start.getTime()):t.start,e=t.end!=null&&typeof t.end!="number"?n.labels.indexOf(t.end.getTime()):t.end):(f=t.startn.visibleRange.max?n.visibleRange.max:t.end);var v=0,b=t.isRepeat,y=t.repeatEvery,p=t.repeatUntil,k=t.borderWidth,o=t.width,u;if(t.visible)if(this.model._stripeline=!0,h=t.startFromAxis,s=t.zIndex=="over"?this.gStriplineOver:this.gStriplineBehind,s=ej.util.isNullOrUndefined(s)?"":s,c=!0,l=0,n.orientation.toLowerCase()=="horizontal")if(d=0,v=-90,ej.util.isNullOrUndefined(f)&&(ej.util.isNullOrUndefined(e)||ej.util.isNullOrUndefined(o)))c=!1;else if(f=h?ej.util.isNullOrUndefined(t.offset)?n.visibleRange.min:n.visibleRange.min+t.offset:jQuery.type(f)=="date"?f.getTime():f,ej.util.isNullOrUndefined(e)||jQuery.type(e)!="date"||(e=e.getTime()),b&&!ej.util.isNullOrUndefined(y)&&(o||k))for(w=ej.util.isNullOrUndefined(p)?e?e:n.visibleRange.max:n._valueType=="datetime"?p.getTime():p;fh)?Math.abs(o-s):Math.abs(o-h);return this._calculateHorizontalStripline(c,o,i,u)},_getVerticalValue:function(n,t,i,r,u,f){var e=i.y+i.height-(f?(n-i.visibleRange.min)/i.visibleRange.delta:ej.EjSvgRender.utils._getPointXY(n,i.visibleRange,i.isInversed))*i.height,o=i.y+i.height-ej.EjSvgRender.utils._getPointXY(ej.util.isNullOrUndefined(t)?0:t,i.visibleRange,i.isInversed)*i.height,s=i.y+i.height-ej.EjSvgRender.utils._getPointXY(n+(ej.util.isNullOrUndefined(r)?0:r),i.visibleRange,i.isInversed)*i.height,h=(i.isInversed?o>s:o=r&&Math.ceil(t.Height)>=u&&(i=!0),i},drawLegendTitle:function(){var f=this.chartObj,e=f.model,o=e.legend,s=o.isReversed,a=e.LegendBounds,v=e.elementSpacing,u=o.title,y=ej.EjSvgRender.utils._measureText,t=u.font,i=a.Width,h=y(u.text,null,t),r=h.width,p=h.height,c=u.textAlignment.toLowerCase(),n=0,w=v+p/2,l;switch(c){case"far":n=s?n:i-r-n;break;case"center":n=i/2-r/2}n<0&&(n=0,i=r);int.height?v:nt.height)/2};for(ft in hi)if(t.Shape.toLowerCase()==ft.toLowerCase()){o=ft.toLowerCase()=="seriestype"?"SeriesType":ft;break}if(o=="SeriesType"&&((h=="radar"||h=="polar")&&(b=ii.toLowerCase()=="scatter"?it.marker.shape:b=ii,o=b.toLowerCase()=="rangecolumn"?"RangeColumn":b.capitalizeFirstString()),h=="scatter"&&(b=it.marker.shape,o=b.capitalizeFirstString()),t.drawType&&(o="SeriesType"),f.vmlRendering&&(h=="pie"||h=="doughnut"||h=="pieofpie")&&(o="Circle")),o=="None"&&(o=h=="pie"||h=="doughnut"||h=="pieofpie"?"Circle":"Rectangle"),at=ej.util.isNullOrUndefined(tt)?lt:tt,f.gLegendItemEle=g.createGroup({id:ci.id+"_Legend"+at,cursor:"pointer"}),t.CommonEventArgs.data.gLegendItemEle=f.gLegendItemEle,ut=n.extend(!0,{},t.CommonEventArgs.data),ut.model=f.model,ti=ut.style,!t.CommonEventArgs.cancel){if(vt=si.chartSymbol["_draw"+o](c,ti,ut,f.gLegendItemEle),ni=rt.Color&&rt.Color.toString().toLowerCase()!=="gray"&>?e.color:rt.Color&&rt.Color.toLowerCase()!=="gray"?e.color:"gray",a=t,yt=a.Text.length,(y.shape=="seriestype"||y.shape=="seriesType")&&(i=w?i-p/2:i+p/2),u={id:this.chartObj.svgObject.id+"_LegendItemText"+at,x:w?i:nt.width+i+p/2,y:c.startY,fill:ni,"font-size":e.size,"font-style":e.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight,"text-anchor":"start",direction:"ltr"},gt&&(u.lgndCtx=!0),u.y=c.startY+v/4,d=="wrap"||d=="wrapandtrim")for(u.y=u.y-v,ht=0;ht0?e.itemPadding:0,bt=10,et=10,tr=nt.text==""||!nt.visible||!it.visible?0:ui(nt.text,w-fi.left-fi.right,nt.font).height+s,ei=u._titleLocation?u._titleLocation.Y:0+tr,oi=ui(ft.text,null,ft.font),ot=oi.height,ir=oi.width,si=u._rowDefinitions,kt=0,hi,st,g,b,ht,ci,li=u._columnDefinitions,rr=this.sumofArray(si.farSizes),ur=this.sumofArray(si.nearSizes),cr=this.sumofArray(li.farSizes),fr=this.sumofArray(li.nearSizes),rt=!1,a=u.m_AreaBounds,ct=e.enableScrollbar,f=n(o.legendContainer),er=n("#ScrollerParent_vertical_"+o._id).length>0?18:0,or=n("#ScrollerParent_horizontal_"+o._id).length>0?18:0,sr=n(o.legendSvgContainer),ai=1.2,vi=10,dt=10,it=u.title,nt=u.title.subTitle,gt=it.visible?parseInt(gi)*ai:0,lt=nt.visible?parseInt(nr)*ai:0,gt=u.titleWrapTextCollection&&u.titleWrapTextCollection.length>1?u._titleLocation._height*u.titleWrapTextCollection.length-1:gt,lt=u.subTitleWrapTextCollection&&u.subTitleWrapTextCollection.length>1?u._subTitleLocation.size.height:lt,at,yi,ni,ti,c,ut;if(u.legend.border&&!nt.text&&(lt=0,dt=5),l=="right"||l=="left"?bt=10:et=ct?tt>200?10:tt>100?5:0:10,bi.Height+=ot,i.Height+=ot,e.visible){if(l!="custom"){if(ri=="cartesianaxes")switch(l){case"bottom":i.Y=a.Y+a.Height+fr-s/2+or;break;case"top":i.Y=ei==0?p+s:gt+vi+lt+dt+s;break;case"right":i.X=a.X+a.Width+rr+s*2;break;case"left":i.X=a.X-ur-r.Width-s/2-h*2-er}else switch(l){case"bottom":i.Y=tt-(r.Height+h)-s*2;break;case"top":i.Y=ei==0?p+s:gt+vi+lt+dt+s;break;case"right":i.X=w-r.Width-s*2;break;case"left":i.X=p+s*2}if(!u.enable3D&&ri=="cartesianaxes"&&t._crossAxisOverlap!=null)for(at=0,yi=u._axes.length;ati.Y?i.Y+=v.y+k-i.Y:l=="left"&&!vt&&v._opposed&&v.x-ki.X&&(i.X-=i.X+i.Width-v.x+k)}if(l=="left"||l=="right")if(ct)switch(pt){case"center":i.Y=a.Height/2-r.Height/2+a.Y-h;break;case"near":i.Y=a.Y;break;case"far":i.Y=a.Y+a.Height-r.Height-h*2}else switch(pt){case"center":i.Y=tt/2-(r.Height+h*2)/2+s/2;break;case"near":i.Y=p+s*2;break;case"far":i.Y=tt-(r.Height+h)-s*2}else switch(pt){case"center":i.X=w/2-(r.Width+h*2)/2+s/2;break;case"near":i.X=yt?w-(r.Width+h)-s*2:p+s*2;break;case"far":i.X=yt?p+s*2:w-(r.Width+h)-s*2}}else i.Y=e.location.y=a.Height)for(ni=h*2,c=0;ca.Height){r.Height=a.Height-h*2;i.Y=a.Y;break}}else if(h*2+r.Width>=w)for(ti=h*2,c=0;cw){r.Width=w-h*2-r.vScrollSize-p*2;i.X=w/2-(r.Width+h*2)/2+s/2;break}for(o.legendSvgContainer.setAttribute("height",i.Height),o.legendSvgContainer.setAttribute("width",Math.max(ir,i.Width)),g=hi=bt,b=st=et,ft.text!=""&&ft.text&&(this.drawLegendTitle(),b=st=et+ot),c=0;ci.Width+hi&&(g=bt,b+=y[c].Bounds.Height+d),this.drawLegendItem(y[c],g,b),g+=y[c].Bounds.Width+d):(b+y[c].Bounds.Height+d+ot+p>i.Height+st&&(b=st,g+=kt+d),this.drawLegendItem(y[c],g,b),b+=y[c].Bounds.Height+d,kt=Math.max(kt,y[c].Bounds.Width));var pi=o.legendContainer[0].offsetLeft,wi=n(o.element).offset(),ii=o.vmlRendering?pi<=0?i.X:pi-wi.left:n(o.svgObject).offset().left-wi.left,hr=o.vmlRendering?ii:i.X+(ii<=0?0:ii);f.attr("style","");f.show();e._ejScroller||(yt?f.css({direction:"rtl"}):f.css({direction:"ltr"}));f.css({position:"absolute",background:e.background,left:hr,top:i.Y,width:r.Width,height:r.Height,"border-width":e.border.width,"border-color":e.border.color,"border-style":"solid"});f.addClass("e-legendborder");sr.css({height:i.Height,width:i.Width});i.Height=i.Height-(20-et*2);ut=this.legendRectSpace(i,r);ct&&(e._ejScroller?!ut&&(i.Width>Math.ceil(r.Width)||i.Height>Math.ceil(r.Height))?(n("#"+f[0].id).ejScroller({scrollTop:o.scrolltop,scrollLeft:o.scrollleft,height:r.Height,width:r.Width}),rt=!0,i.Height>Math.ceil(r.Height)&&r.vScrollSize==0&&(ht=f[0].offsetWidth+h*5-f[0].clientWidth,f.css({width:r.Width+ht}))):(n("#"+f[0].id).ejScroller("instance").destroy(),e._ejScroller=!1):!ut&&i.Width>Math.ceil(r.Width)&&i.Height>Math.ceil(r.Height)?(f.css({overflow:"scroll"}),rt=!0):(!ut&&i.Height>Math.ceil(r.Height)&&r.vScrollSize>=0&&(f[0].style.overflowY="scroll",f[0].style.overflowX="hidden",r.vScrollSize==0&&(ht=f[0].offsetWidth-h*2-f[0].clientWidth,f.css({width:r.Width+ht})),rt=!0),!ut&&i.Width>Math.ceil(r.Width)&&r.hScrollSize>=0&&(f[0].style.overflowX="scroll",f[0].style.overflowY="hidden",r.hScrollSize==0&&(ci=f[0].offsetHeight-h*2-f[0].clientHeight,f.css({height:r.Height+ci})),rt=!0)));o.svgRenderer.append(o.gLegendEle,o.legendSvgContainer);rt||f.css({width:r.Width-r.vScrollSize,height:r.Height-r.hScrollSize});e._ejScroller||(o.scrolltop!=undefined&&f.scrollTop(o.scrolltop),o.scrollleft!=undefined&&f.scrollLeft(o.scrollleft))}else f.hide()}}}(jQuery);ej.seriesTypes={};ej.EjSeriesRender=function(){};ej.indicatorTypes={};ej.EjIndicatorRender=function(){};ej.trendlineTypes={};ej.EjTrendLineRenderer=function(){},function(n){function t(t,i){var r=function(){};return r.prototype=new t,n.extend(r.prototype,i),r}ej.EjTrendLineRenderer.prototype={draw:function(t,i,r){var u,f;return this.chartObj=r,u=n.inArray(t,i.trendlines),t._isTransposed=r.model.requireInvertedAxes,t.xAxis=i.xAxis,t.yAxis=i.yAxis,f=t.type.toLowerCase(),t.points.length>1&&(f=="linear"||f=="movingaverage"?this.calculateLineDirection(t,i,u):this.calculateSplineDirection(t,i,u)),!1},calculateSplineDirection:function(n,t,i){for(var a="",h=ej.EjSvgRender.utils._getStringBuilder(),v=!0,c=n.points,y=ej.EjSeriesRender.prototype.naturalSpline(c,t),r=null,u=null,p=-1,l,g=c.length,f=0;ft.xValue?1:t.xValue>n.xValue?-1:0});switch(s){case"linear":this.updateTrendSource(f,i);this.calculateLinearTrendline(t,i,r);break;case"exponential":this.updateExponentialTrendSource(f,i);this.calculateExponentialTrendline(t,i,r);break;case"logarithmic":this.updateLogarithmicTrendSource(f,i);this.calculateLogarithmicTrendline(t,i,r);break;case"power":this.updatePowerTrendSource(f,i);this.calculatePowerTrendline(t,i,r);break;case"polynomial":e=t.points.length;i.polynomialOrder=e<=i.polynomialOrder?e:i.polynomialOrder;i.polynomialOrder=i.polynomialOrder<2?2:i.polynomialOrder;i.polynomialOrder=i.polynomialOrder>6?6:i.polynomialOrder;e>1&&(this.updateTrendSource(f,i),this.calculatePolynomialTrendline(t,i,r));break;case"movingaverage":this.updateMovingAverageTrendSource(f,i);this.calculateMovingAverageTrendline(t,i,r)}return t.points.length>1&&i.points&&this.calculateTrendLineRange(i,r),!1},updateTrendSource:function(n,t){var f=n.length,i,u,r;for(t.xPoints=[],t.xValues=[],t.yValues=[],r=0;r1&&(i._valueType.toLowerCase()=="datetime"?(r=this._increaseDateTimeInterval(t.xPoints[0],-t.backwardForecast,i._intervalType),u=this._increaseDateTimeInterval(t.xPoints[f-1],t.forwardForecast,i._intervalType)):(r=t.xPoints[0]-t.backwardForecast,u=t.xPoints[f-1]+t.forwardForecast),e=t.slope*r+t._intercept,o=t.slope*u+t._intercept,t.points.push({x:r,xValue:r,y:e,YValues:[],visible:!0}),t.points.push({x:u,xValue:u,y:o,YValues:[],visible:!0}),t.points[0].YValues[0]=t.points[0].y,t.points[1].YValues[0]=t.points[1].y),!1},calculateTrendLineRange:function(n,t){var i=n.points.length,u,r;for(n.minY=n.points[0].y,n.maxY=n.points[i-1].y,t.setRange||(n.backwardForecast>0&&t._valueType!="category"&&i>1&&(t.range.min=t.range.min>n.points[0].x?n.points[0].x:t.range.min,t.visibleRange.min=t.range.min),n.forwardForecast>0&&i>1&&(t.range.max=t.range.max1){i._valueType.toLowerCase()=="datetime"?(r=this._increaseDateTimeInterval(t.xPoints[0],-t.backwardForecast,i._intervalType),o=r.getTime(),u=t.xPoints[c-1],s=new Date(u).getTime(),f=this._increaseDateTimeInterval(t.xPoints[e-1],t.forwardForecast,i._intervalType),h=f.getTime()):(r=o=t.xPoints[0]-t.backwardForecast,u=s=t.xPoints[c-1],f=h=t.xPoints[e-1]+t.forwardForecast);var l=t._intercept*Math.exp(t.slope*r),a=t._intercept*Math.exp(t.slope*u),v=t._intercept*Math.exp(t.slope*f);t.points.push({x:r,xValue:o,y:l,YValues:[],visible:!0});t.points.push({x:u,xValue:s,y:a,YValues:[],visible:!0});t.points.push({x:f,xValue:h,y:v,YValues:[],visible:!0});t.points[0].YValues[0]=t.points[0].y;t.points[1].YValues[0]=t.points[1].y;t.points[2].YValues[0]=t.points[2].y}return!1}});ej.trendlineTypes.exponential=ej.Exponential;ej.Logarithmic=t(ej.EjTrendLineRenderer,{updateLogarithmicTrendSource:function(n,t){var e=n.length,i,r,u,f;for(t.xPoints=[],t.xValues=[],t.yValues=[],u=0;u1){i._valueType.toLowerCase()=="datetime"?(r=this._increaseDateTimeInterval(t.xPoints[0],-t.backwardForecast,i._intervalType),o=r.getTime(),u=t.xPoints[c-1],s=new Date(u).getTime(),f=this._increaseDateTimeInterval(t.xPoints[e-1],t.forwardForecast,i._intervalType),h=f.getTime()):(r=o=t.xPoints[0]-t.backwardForecast,u=s=t.xPoints[c-1],f=h=t.xPoints[e-1]+t.forwardForecast);var l=t._intercept+t.slope*(isFinite(Math.log(r))?Math.log(r):r),a=t._intercept+t.slope*(isFinite(Math.log(u))?Math.log(u):u),v=t._intercept+t.slope*(isFinite(Math.log(f))?Math.log(f):f);t.points.push({x:r,xValue:o,y:l,YValues:[],visible:!0});t.points.push({x:u,xValue:s,y:a,YValues:[],visible:!0});t.points.push({x:f,xValue:h,y:v,YValues:[],visible:!0});t.points[0].YValues[0]=t.points[0].y;t.points[1].YValues[0]=t.points[1].y;t.points[2].YValues[0]=t.points[2].y}return!1}});ej.trendlineTypes.logarithmic=ej.Logarithmic;ej.Power=t(ej.EjTrendLineRenderer,{updatePowerTrendSource:function(n,t){var f=n.length,i,u,r;for(t.xPoints=[],t.xValues=[],t.yValues=[],r=0;r1){i._valueType.toLowerCase()=="datetime"?(r=this._increaseDateTimeInterval(t.xPoints[0],-t.backwardForecast,i._intervalType),o=r.getTime(),u=t.xPoints[l-1],s=new Date(u).getTime(),f=this._increaseDateTimeInterval(t.xPoints[e-1],t.forwardForecast,i._intervalType),h=f.getTime()):(c=t.xPoints[0]-t.backwardForecast,r=o=c>-1?c:0,u=s=t.xPoints[l-1],f=h=t.xPoints[e-1]+t.forwardForecast);var a=t._intercept*Math.pow(r,t.slope),v=t._intercept*Math.pow(u,t.slope),y=t._intercept*Math.pow(f,t.slope);t.points.push({x:r,xValue:o,y:a,YValues:[],visible:!0});t.points.push({x:u,xValue:s,y:v,YValues:[],visible:!0});t.points.push({x:f,xValue:h,y:y,YValues:[],visible:!0});t.points[0].YValues[0]=t.points[0].y;t.points[1].YValues[0]=t.points[1].y;t.points[2].YValues[0]=t.points[2].y}return!1}});ej.trendlineTypes.power=ej.Power;ej.Polynomial=t(ej.EjTrendLineRenderer,{calculatePolynomialTrendline:function(n,t,i){var f=t.polynomialOrder,c,l,e,s,h,a,o,v,u,r;for(t.polynomialSlopes=new Array(f+1),c=t.xValues.length,u=0;us&&(r=new Date(u).getTime())),c=this.getPolynomialYValue(f,r)),(e==1||e==f.length||h=="category"||o>s)&&(i.points.push({x:u,xValue:r,y:c,YValues:[],visible:!0}),i.points[i.points.length-1].YValues[0]=i.points[i.points.length-1].y)}return!1},getPolynomialYValue:function(n,t){for(var r=0,i=0;i=y&&(y=Math.abs(n[i][o]),f=i,r=o);if(++l[r],f!=r){for(i=0;i=0;--u)if(c[u]!=h[u])for(f=0;f=o?o-1:t.period,u,f,r,s,e,h,c;for(i=i<2?2:i,t.points=[],u=0;u0)for(u=0;u0&&(p={id:this.chartObj.svgObject.id+"_"+l+"_"+f.name,x:u.X+s.chartObj.canvasX,y:u.Y+s.chartObj.canvasY,width:u.Width,height:u.Height,fill:o[e].fill?o[e].fill:i.fill,"stroke-width":f.border.width,plot:a<0?"negative":"positive",opacity:f.histogram.opacity,stroke:o[e].fill?o[e].fill:f.border.color},this.chartObj.svgRenderer.drawRect(p,this.gIndicatorGroupEle),c=ej.EjSvgRender.utils._getSvgXY(u.X,u.Y,f,s.chartObj),y={X:c.X,Y:c.Y,Width:u.Width,Height:u.Height},this._addRegion(s.chartObj,y,f,h,d))}}this.chartObj.svgRenderer.append(this.gIndicatorGroupEle,this.chartObj.gIndicatorEle)},_addRegion:function(n,t,i,r,u){var e=i.type,f;i.index>=0&&(f={SeriesIndex:i.index,Region:{PointIndex:u,Bounds:t},type:e,isIndicator:!0},n.model.chartRegions.push(f))},calculateSegment:function(t,i){var o,v,b,y,a,p,s,w,e,l;if(this.chartObj=i,t.segment=[],t.xRange={},t.yRange={},t.period=parseInt(t.period),t.period0){for(o=n.extend(!0,{},t),o.name="upperseries",o.fill=t.upperLine.fill,o.width=t.upperLine.width,o.type="line",v=0;vf?h+=u-f:uf?(h=(h*(r-1)+(u-f))/r,c=c*(r-1)/r):ut.xRange.min&&(n.model.indicatorRange[t.xAxisName].min=t.xRange.min),n.model.indicatorRange[t.xAxisName].maxt.yRange.min&&(n.model.indicatorRange[t.yAxisName].min=t.yRange.min),n.model.indicatorRange[t.yAxisName].max=0&&g<=a&&g>0){for(rt=this.calculateEMA(t._points,g,!0),tt=this.calculateEMA(t._points,a,!0),e=0;ew?t.yRange.max:w;t.segment.push(o);break;case"histogram":b=Math.min.apply(Math,v);k=Math.max.apply(Math,v);t.yRange.min=t.yRange.mink?t.yRange.max:k;t.segment.push(u);break;case"both":b=Math.min.apply(Math,v);k=Math.max.apply(Math,v);t.yRange.min=t.yRange.mink?t.yRange.max:k;t.segment.push(u);t.yRange.min=Math.min.apply(Math,s);t.yRange.max=Math.max.apply(Math,s);t.segment.push(f);p=Math.min.apply(Math,c);w=Math.max.apply(Math,c);t.yRange.min=t.yRange.minw?t.yRange.max:w;t.segment.push(o)}this.calculateIndicatorRange(i,t)}},calculateEMA:function(n,t,i){var e=0,o=0,c=n.length,h=[],s=[],l=2/(t+1),r,u,f;if(i){for(r=0;r=u;){for(s=0,o=0;o=r-1&&(t._points[f].YValues[0]=t._points[f].y=s[f-(r-1)]);for(u.points=n.extend(!0,[],t._points),a=i._getXValues(u.points),h=[],e=r,o=0;e=n+i&&g(n,i,r)}function g(n,i,r){for(var v,h,o,c,u,l=n+(i-1),e=[],a=[],f,s=0;s=l;){for(f=0,o=n-1;on&&tt(n,i,r)}function tt(n,i,r){for(var f,a=n+i,e=[],h=[],o,s,c=0,l=0,u=0;ut._points.length)&&!(y>t._points.length)&&!(l>t._points.length)){for(r=n.extend(!0,{},t),r.name="upperseries",r.type="line",r.fill=t.upperLine.fill,r.width=t.upperLine.width,c=0;c0){for(r=0;r=u-1&&r=0?(ft=t._points[r].close-t._points[r-u].close,b=b+ft,v=b/w,y[r]=v,p[r]=Math.pow(t._points[r].close-v,2),g+=p[r]-p[r-u]):(y[r]=v,p[r]=Math.pow(t._points[r].close-v,2),g+=p[r]);var et=Math.sqrt(g/w),ot=y[r]-ut*et,st=y[r]+ut*et;if(r+1==u)for(d=0;d=u-1?(t._points[e].YValues.length=1,t._points[e].YValues[0]=t._points[e].y=k[e].ub):t._points[e].YValues[0]=t._points[e].y=null;for(f.points=n.extend(!0,[],t._points),l=i._getXValues(f.points),tt=[],r=u;r=u-1?(t._points[s].YValues.length=1,t._points[s].YValues[0]=t._points[s].y=k[s].lb):t._points[s].YValues[0]=t._points[s].y=null;for(o.points=n.extend(!0,[],t._points),l=i._getXValues(o.points),it=[],r=u;r=u-1?(t._points[c].YValues.length=1,t._points[c].YValues[0]=t._points[c].y=k[c].mb):t._points[c].YValues[0]=t._points[c].y=null;for(h.points=n.extend(!0,[],t._points),l=i._getXValues(h.points),rt=[],r=u;rt._points.length)){for(r=0;r0&&(h=Math.abs(t._points[r].high-t._points[r-1].close),c=Math.abs(t._points[r].low-t._points[r-1].close)),l=Math.max(s,h,c),p+=l,a=p/e,o[r]={X:t._points[r].X,YValues:a};for(r=e;r=e-1?(t._points[f].YValues.length=1,t._points[f].YValues[0]=t._points[f].y=o[f].YValues):t._points[f].YValues[0]=t._points[f].y=null;for(u.points=n.extend(!0,[],t._points),y=i._getXValues(u.points),v=[],r=e;r=f;){for(e=0,u=0;u=f;){for(c=0,u=0;u0&&c1?1:t.cardinalSplineTension,o=t.type.toLowerCase()=="splinerangearea"?i:0,y,k,d,p,s,tt,it,rt,u,c,a;if(r&&r._valueType=="datetime")for(y=n,c=0;cs+1&&(h[s]*h[s+1]<=0?f[s+1]=0:(p=l[s]+l[s+1],f[s+1]=3*p/((p+l[s+1])/h[s]+(p+l[s])/h[s+1])))}else if(t.splineType=="cardinal")for(u=0;u2?b*(n[u+2].xValue-n[u].xValue):0:u==e-1?e>2?b*(n[e-1].xValue-n[e-3].xValue):0:b*(n[u+1].xValue-n[u-1].xValue);else{for(tt=6,t.splineType=="clamped"?(it=(n[1].xValue-n[0].xValue)/(n[1].YValues[o]-n[0].YValues[o]),rt=(n[e-1].xValue-n[e-2].xValue)/(n[e-1].YValues[o]-n[e-2].YValues[o]),f[0]=3*(n[1].YValues[o]-n[0].YValues[o])/(n[1].xValue-n[0].xValue)-3*it,v[0]=.5,f[n.length-1]=3*rt-3*(n[n.length-1].YValues[o]-n[n.length-2].YValues[o])/(n[n.length-1].xValue-n[n.length-2].xValue),f[0]=Math.abs(f[0])=="Infinity"?0:f[0],f[n.length-1]=Math.abs(f[n.length-1])=="Infinity"?0:f[n.length-1]):(f[0]=v[0]=0,f[n.length-1]=0),u=1;u=0;a--)f[a]=f[a]*f[a+1]+v[a]}return f},getDaysInMonth:function(n,t){return new Date(t,n+1,0).getDate()},getBezierControlPoints:function(t,i,r,u,f,e,o){var a,v,y,p,w=864e5,g=new Date(t.xValue),nt=o.chartObj.model.hAxes.length,k=n.inArray(e,o.chartObj.model._visibleSeries),b=k!=nt&&kf?0:f,w=u[0]&&u[0].y>e?0:e,i=0,r=0,t,h,c,b=u.length,k=0,d=0,o=!0,g=0,l=b>0&&u[0].xValue,a=0;a=f||-h>=f||c>=e||-c>=e)&&(t.visible=t.isEmpty?t.visible||!1:!0,s[g++]=t,i===i&&(p=i),r===r&&(w=r));return o&&(n._sorted=o),n._pointMarker=k,n._dataLabels=d,y==0&&n.marker&&!n.marker.dataLabel.visible?s:this._calculateEmptyPoints(n,s)},_isVisiblePoints:function(n){for(var t=n.pointCollection&&n.dragPoint?n.pointCollection:n.points,r,f,u=ej.util.isNullOrUndefined,e=t.length,i=0;i=0;ft--)k=t.stackedValue.StartValues[ft],r[ft].y=Math.max(t.yAxis.actualRange.min,k),u=ej.EjSvgRender.utils.TransformToVisible(t,r[ft].xValue,r[ft].y,this.chartObj),yi=ft==r.length-1?"M":"L",l.append(""+yi+" "+u.X+" "+u.Y+" ");i<=r.length-1&&(r[i].y=rt,u=ej.EjSvgRender.utils.TransformToVisible(t,r[i].xValue,r[i].y,this.chartObj),l.append("L "+u.X+" "+u.Y+" "),i==r.length-1&&(t.isClosed?(c=ej.EjSvgRender.utils.TransformToVisible(t,r[0].xValue,t.stackedValue.EndValues[0],this.chartObj),it=ej.EjSvgRender.utils.TransformToVisible(t,r[0].xValue,t.stackedValue.StartValues[0],this.chartObj),hi=ej.EjSvgRender.utils.TransformToVisible(t,r[i].xValue,t.stackedValue.StartValues[i],this.chartObj),l.append("L "+c.X+" "+c.Y+" L "+it.X+" "+it.Y+" L "+hi.X+" "+hi.Y+" L "+it.X+" "+it.Y+" z ")):l.append("L "+o+" "+s+" ")))}else u=ej.EjSvgRender.utils.TransformToVisible(t,r[i].xValue,r[i].y,this.chartObj),i==0||li?l.append("M "+u.X+" "+u.Y+" "):i==r.length-1?t.isClosed?(c=ej.EjSvgRender.utils.TransformToVisible(t,r[0].xValue,r[0].y,this.chartObj),l.append("L "+u.X+" "+u.Y+" z")):l.append("L "+u.X+" "+u.Y+" L "+o+" "+s):r[i+1].visible?l.append("L "+u.X+" "+u.Y+" "):l.append("L "+u.X+" "+u.Y+" L "+o+" "+s+" z"),li=r[i+1]&&r[i+1].visible?!1:!0;t.regionAdded||t.drawType.toLowerCase()=="column"||t.drawType.toLowerCase()=="rangecolumn"||(et={X:u.X-d.width/2,Y:u.Y-d.height/2,Width:d.width,Height:d.height},ej.EjSvgRender.utils._addRegion(this.chartObj,et,t,r[i],i));(!t.regionAdded&&t.drawType.toLowerCase()=="column"&&this.chartObj.model.enableCanvasRendering||t.drawType.toLowerCase()=="rangecolumn"&&this.chartObj.model.enableCanvasRendering)&&ej.EjSvgRender.utils._addRegion(this.chartObj,et,t,null,null)}return(t.regionAdded||t.drawType.toLowerCase()!="column"||this.chartObj.model.enableCanvasRendering)&&(t.drawType.toLowerCase()!="rangecolumn"||this.chartObj.model.enableCanvasRendering)||ej.EjSvgRender.utils._addRegion(this.chartObj,et,t,null,null),l.toString()},_calculateVisiblePoints:function(t,i){for(var r,c=[],h=[],v,s=ej.util.isNullOrUndefined,l=s(i)?t.points:i.model._isPieOfPie?t.pieCollections[t.collectionIndex]:t.points,e,a=l.length,u,f,o=0;op&&o[r]w&&(u[u.length]=o[r]%360<0?o[r]%360+360:o[r]%360);if(this.chartObj.model.centerCount==1){var f=this.chartObj.model.circularRadius[i],b=2*Math.PI*(p-90)/360,k=2*Math.PI*(w-90)/360,a={x:this.chartObj.model.circleCenterX[i],y:this.chartObj.model.circleCenterY[i]},s={x:this.chartObj.model.circleCenterX[i]+f*Math.cos(b),y:this.chartObj.model.circleCenterY[i]+f*Math.sin(b)},h={x:this.chartObj.model.circleCenterX[i]+f*Math.cos(k),y:this.chartObj.model.circleCenterY[i]+f*Math.sin(k)};switch(u.length){case 0:var it=Math.abs(a.x-s.x)>Math.abs(a.x-h.x)?s.x:h.x,rt=Math.abs(a.y-s.y)>Math.abs(a.y-h.y)?s.y:h.y,e={x:(a.x+it)/2,y:(a.y+rt)/2};this.chartObj.model.circleCenterX[i]=this.chartObj.model.circleCenterX[i]+(this.chartObj.model.circleCenterX[i]-e.x);this.chartObj.model.circleCenterY[i]=this.chartObj.model.circleCenterY[i]+(this.chartObj.model.circleCenterY[i]-e.y);break;case 1:y=2*Math.PI*(u[0]-90)/360;v={x:this.chartObj.model.circleCenterX[i]+f*Math.cos(y),y:this.chartObj.model.circleCenterY[i]+f*Math.sin(y)};switch(u[0]){case 0:case 360:c={x:s.x,y:v.y};l={x:h.x,y:a.y};break;case 90:c={x:a.x,y:h.y};l={x:v.x,y:s.y};break;case 180:c={x:h.x,y:a.y};l={x:s.x,y:v.y};break;case 270:c={x:v.x,y:s.y};l={x:a.x,y:h.y}}e={x:(c.x+l.x)/2,y:(c.y+l.y)/2};this.chartObj.model.circleCenterX[i]=this.chartObj.model.circleCenterX[i]+(this.chartObj.model.circleCenterX[i]-e.x>=f?0:this.chartObj.model.circleCenterX[i]-e.x);this.chartObj.model.circleCenterY[i]=this.chartObj.model.circleCenterY[i]+(this.chartObj.model.circleCenterY[i]-e.y>=f?0:this.chartObj.model.circleCenterY[i]-e.y);break;case 2:var d=2*Math.PI*(u[0]-90)/360,y=2*Math.PI*(u[1]-90)/360,v={x:this.chartObj.model.circleCenterX[i]+f*Math.cos(y),y:this.chartObj.model.circleCenterY[i]+f*Math.sin(y)},g={x:this.chartObj.model.circleCenterX[i]+f*Math.cos(d),y:this.chartObj.model.circleCenterY[i]+f*Math.sin(d)},c,l;c=u[0]==90&&u[1]==180||u[0]==270&&u[1]==0?{x:g.x,y:v.y}:{x:v.x,y:g.y};l=u[0]==90||u[0]==270?{x:this.getMinMaxValue(s,h,u[0]),y:this.getMinMaxValue(s,h,u[1])}:{x:this.getMinMaxValue(s,h,u[1]),y:this.getMinMaxValue(s,h,u[0])};e={x:Math.abs(c.x-l.x)/2>=f?0:(c.x+l.x)/2,y:Math.abs(c.y-l.y)/2>=f?0:(c.y+l.y)/2};this.chartObj.model.circleCenterX[i]=this.chartObj.model.circleCenterX[i]+(e.x==0?0:this.chartObj.model.circleCenterX[i]-e.x>=f?0:this.chartObj.model.circleCenterX[i]-e.x);this.chartObj.model.circleCenterY[i]=this.chartObj.model.circleCenterY[i]+(e.y==0?0:this.chartObj.model.circleCenterY[i]-e.y>=f?0:this.chartObj.model.circleCenterY[i]-e.y)}}for(r=0;r1&&this.chartObj.model._visibleSeries[i+1].startAngle==p&&this.chartObj.model._visibleSeries[i+1].endAngle==w&&(this.chartObj.model.circleCenterX[i]=this.chartObj.model.circleCenterX[i+1],this.chartObj.model.circleCenterY[i]=this.chartObj.model.circleCenterY[i+1]),this.chartObj.model.startX[r]=this.chartObj.model.startX[r]-(nt-this.chartObj.model.circleCenterX[i]),this.chartObj.model.startY[r]=this.chartObj.model.startY[r]-(tt-this.chartObj.model.circleCenterY[i])},_drawEmptyPieOfPie:function(n){var u=-.5*Math.PI,f=2*Math.PI+-.5*Math.PI-1e-6,i=n.model.circleCenterX[1],r=n.model.circleCenterY[1],t=n.model.circularRadius[1],o="M "+(i+t*Math.cos(u))+" "+(r+t*Math.sin(u))+" A "+t+" "+t+" 0 1 1 "+(i+t*Math.cos(f))+" "+(r+t*Math.sin(f))+" z",e=n.model.theme.toLowerCase();return{id:n.svgObject.id+"_Series0_EmptyCircle",fill:"none","stroke-width":1.5,stroke:e.indexOf("dark")>=0||e.indexOf("contrast")>=0?" #FFFFFF":"#000000","stroke-dasharray":"",d:o,opacity:1,radius:t,start:0-1.57,end:2*Math.PI-1.57,cx:i,cy:r}},calculatingSliceAngle:function(t,i){var e=this.chartObj?this.chartObj:i,r=e.model,d=r.legend,f=n.inArray(t,r._visibleSeries),g=d.position.toLowerCase(),lt=r.LegendActualBounds,ft=t._visiblePoints,dt=ft.length,et=0,s,ot=0,at=d.border.width,vt=r.border.width,u,y=r.margin,yt=r.elementSpacing,h=0,p=r.title.subTitle.text?r.title.subTitle:"",o,v,ht,bt,ct,rt,a,w,b,ut,c,kt,k,tt,it,l;for(r.arcData=[],t.rightsidePoints=[],t.leftsidePoints=[],t.labels=[],r.sumofYValues=0,r.midPoint=0,o=t.type.toLowerCase(),v=t.gapWidth,l=0;l=v?v:0),bt=o=="pieofpie"?f==0?.25:.25*3:.5,r.circleCenterX[f]=nt*bt+(f==1&&o=="pieofpie"?v:0)+y.left+(d.visible&&g==="left"?et:0),r.circleCenterY[f]=wt*.5+y.top+pt+(d.visible&&g==="top"?ot:0),ej.util.isNullOrUndefined(e.model.pieGapWidth)||e.model.pieGapWidth==0||(r.circleCenterX[f]=f==0?r.circleCenterX[f]+e.model.pieGapWidth/2:r.circleCenterX[f]-e.model.pieGapWidth/2),t.startAngle=o=="pieofpie"?0:t.startAngle,s=t.endAngle-t.startAngle,ct=s/180,rt=s/4*(Math.PI/180),a=0;an.Bottom||t.Left>n.Right?!1:!0},IntersectWith:function(t,i,r,u,f,e){var y=this,c,a,o,l,s,h,v;if((ej.util.isNullOrUndefined(t.model.rightsidebounds[f])||ej.util.isNullOrUndefined(t.model.leftsidebounds[f]))&&(t.model.leftsidebounds[f]=[],t.model.rightsidebounds[f]=[],t.model.leftsidebounds[f].points=[],t.model.rightsidebounds[f].points=[]),u=="outsideExtended"){for(o=f;o0)for(l=t.model.bounds[o].points.left.length,s=l-1;s>=0&&!ej.util.isNullOrUndefined(t.model.bounds[o].points.left[s]);s--)t.model.leftsidebounds[o].points[s]=t.model.bounds[o].points.left[s];if(!ej.util.isNullOrUndefined(t.model.bounds[o].points.right)&&t.model.bounds[o].points.right.length>0)for(l=t.model.bounds[o].points.right.length,a=0;a0||f>=0)for(o=f;o0&&(c=t.model.leftsidebounds[o].points,c.length>0))for(s=c.length-1;s>=0;s--)if(h=c[s],!(ej.util.isNullOrUndefined(h)&&h!=r))if(h.SeriesIndex==r.SeriesIndex&&h.PointIndex==r.PointIndex)if(i.smartLabelPosition=="outside")continue;else break;else{if(this.isIntersec(h,r))return!0;r.Xr.Top&&h.Left0)for(s=c.length-1;s>=0;s--)if(h=c[s],!(ej.util.isNullOrUndefined(h)&&h!=r))if(h.SeriesIndex==r.SeriesIndex&&h.PointIndex==r.PointIndex)if(i.smartLabelPosition=="outside")continue;else break;else{if(this.isIntersec(h,r))return!0;r.X>t.model.circleCenterX[f]&&h.X>t.model.circleCenterX[f]&&t.model.series[f].marker.dataLabel.shape!="none"&&(v=Math.abs(h.Y-r.Y),e&&v<=e.height&&h.Bottom>r.Top&&h.X+(h.Right-h.Left)>r.X&&(r.overlap=!0))}return!1},_calculateArcData:function(n,t,i,r,u,f){var u=n.model._isPieOfPie?f:u,ct=r._visiblePoints,ut=i.actualIndex,l=n,p=-.5*Math.PI,e,o,it,rt;r.type.toLowerCase()=="doughnut"&&r._visiblePoints.length==1&&Math.abs(r.endAngle-r.startAngle)==360&&r.startAngle%90!=0?(e=parseFloat((i.startAngle+p).toFixed(3)),o=parseFloat((i.endAngle+p).toFixed(3))-1e-6):(e=i.startAngle+p,o=i.endAngle+p-1e-6);var ft=r.endAngle-r.startAngle,w=o-e0?1:0,w=v?o-e-1*Math.PI?0:1,s=l.model.circularRadius[u],a=l.model.innerRadius[u];(ut==r.explodeIndex||r.explodeAll)&&!l.vmlRendering?(h=l.model.circleCenterX[u]+Math.cos(tt)*r.explodeOffset,c=l.model.circleCenterY[u]+Math.sin(tt)*r.explodeOffset):(h=l.model.circleCenterX[u],c=l.model.circleCenterY[u]);var k=h+s*Math.cos(e),d=c+s*Math.sin(e),y=h+s*Math.cos(o),g=c+s*Math.sin(o);if(r.type.toLowerCase()=="doughnut"){var et=h+a*Math.cos(e),ot=c+a*Math.sin(e),nt=h+a*Math.cos(o),st=c+a*Math.sin(o),ht=v?0:1;e<0&&Math.round(i.endAngle-i.startAngle)==6&&(nt=nt-.01,y=y-.01);b="M "+k+" "+d+" A "+s+" "+s+" 0 "+w+" "+v+" "+y+" "+g+" L "+nt+" "+st+" A "+a+" "+a+" 1 "+w+" "+ht+" "+et+" "+ot+" z"}else(i.endAngle-i.startAngle).toFixed(4)==(2*Math.PI).toFixed(4)?(it=h,rt=c,b="M "+k+" "+d+" A "+s+" "+s+" 0 "+w+" "+v+" "+y+" "+g):b="M "+k+" "+d+" A "+s+" "+s+" 0 "+w+" "+v+" "+y+" "+g+" L "+h+" "+c+" z";return{Direction:b,centerX:it,centerY:rt}},getXCordinate:function(n,t,i){return n+t*Math.cos(i)},getYCordinate:function(n,t,i){return n+t*Math.sin(i)},getDoubleRange:function(n,t){var i,r;n>t?(i=t,r=n):(i=n,r=t);var u=r-i,f=(i+r)/2,e=isNaN(i)||isNaN(r);return{Start:i,End:r,Delta:u,Median:f,IsEmpty:e}},isDependentSeries:function(n){var t=n.type.toLowerCase(),i=this.chartObj.model.requireInvertedAxes;return!i||i&&n.isTransposed?t.indexOf("bar")!=-1&&!n._isTransposed||t.indexOf("column")!=-1||t.indexOf("waterfall")!=-1||t.indexOf("hilo")!=-1||t.indexOf("candle")!=-1||t.indexOf("boxandwhisker")!=-1?!0:!1:t.indexOf("bar")!=-1?!0:!1},getPointXYOrgin:function(n,t,i,r){var e=r.model.requireInvertedAxes,u,f;return i.isTransposed&&e||i._isTransposed?(u=(1-ej.EjSvgRender.utils._valueToCoefficient(i.xAxis,n))*i.xAxis.height,f=ej.EjSvgRender.utils._valueToCoefficient(i.yAxis,t)*i.yAxis.width,{X:f,Y:u}):(u=ej.EjSvgRender.utils._valueToCoefficient(i.xAxis,n)*i.xAxis.width,f=(1-ej.EjSvgRender.utils._valueToCoefficient(i.yAxis,t))*i.yAxis.height,{X:u,Y:f})},getRectangle:function(n,t,i,r,u,f){var e=this.getPointXYOrgin(n,t,u,f),o=this.getPointXYOrgin(i,r,u,f);return ej.EjSvgRender.utils._correctRect(e.X,e.Y,o.X,o.Y)},calculateMean:function(n,t,i){var u,f,l,a,v,y,e,o,tt,p,it,rt,w,ut,ft,et,ot=0,c=0,s=[],r=0,b,h,ct;for(n.length>1&&n.sort(function(n,t){return n-t}),b=0;bn[h]&&(g[nt]=n[h],nt++,d=n[h+1]);return s[r]=d,r++,s[r]=k,r++,ct={Minimum:d,LowerQuartile:e,midvalue:l,UpperQuartile:o,Maximum:k,boxAverage:c,outliers:g},t._visiblePoints[i].boxPlotValues=ct,t._visiblePoints[i].boxPlotValues.quartileValues=s,{Minimum:d,LowerQuartile:e,midvalue:l,UpperQuartile:o,Maximum:k,boxAverage:c,outliers:g}},calculateBoxAndWhiskerPath:function(n,t,i,r,u,f,e){var y,p,b,k,d;u._visiblePoints[e].boxPlotLocation=[];u._visiblePoints[e].dataLabelLocation=[];var h=0,o=this,w=u._isTransposed,g=u.outlierSettings.shape.toLowerCase(),nt=this.chartObj.model.requireInvertedAxes,s,l,a,v,c;for(y=0;y0&&l[0].columnWidth,o=0;ok+1&&(a=u[k+1],e=wt(y,ct,lt,at,yt,vt,pt,i),f=wt(a,ct,lt,at,yt,vt,pt,i),rt?(g&&(h.lineTo(f.X+o,f.Y+s),g=null),h.moveTo(e.X+o,e.Y+s),h.lineTo(f.X+o,f.Y+s),g=f):(v.append(d+(e.X+o)+" "+(e.Y+s)+" L "+(f.X+o)+" "+(f.Y+s)+" "),d="L ")),y=b,k=r):(y=g=null,d="M ");rt?(h.stroke(),h.restore()):this._drawLinePath(i,ft,v.toString())}this.chartObj.dragPoint?this.chartObj.svgRenderer.append(this.chartObj.gPreviewSeriesGroupEle,this.chartObj.gSeriesEle):this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle);i._visiblePoints=i._dataLabels>0||i.marker&&i.marker.dataLabel.visible==!0&&i.enableSmartLabels?this._isVisiblePoints(i):u},doCircularAnimation:function(t,i,r,u,f){var e=i.type.toLowerCase();if(e=="pie"||e=="doughnut"||e=="pieofpie"){var o=this,h,c,s=i.points[0]?i.points[0].startAngle:0,l=t.model._isPieOfPie?i.collectionIndex:0,a=i.emptyPointSettings.visible?i.visiblePoints:i._visiblePoints;f=ej.util.isNullOrUndefined(f)?1200:f;n.each(a,function(r,a){h=a.startAngle;c=a.endAngle;t.model._radius=t.model._isPieOfPie?t.model.circularRadius[l]:t.model.circularRadius[u];a.startAngle=0;a.endAngle=a.startAngle;t.model.Radius=0;var v=n(t.gSeriesEle).find("#"+t.svgObject.id+"_SeriesGroup_"+u)[l].childNodes[r];e=="pie"||e=="pieofpie"?n(v).each(function(){this.StartAngle=s;this.EndAngle=s}).animate({StartAngle:h,EndAngle:c,pieRadius:t.model._radius},{duration:f,queue:!1,step:function(f,e){if(e.prop.toString()==="StartAngle"?(a.startAngle=f,a.endAngle=a.startAngle):e.prop.toString()=="pieRadius"&&t.model?t.model.Radius=f:a.endAngle=f,t.model){var s=o._calculateArcData(t,r,a,i,u,l);t.svgRenderer._setAttr(n(v),{d:s.Direction});t.model.Radius=t.model._radius}},complete:function(){o.circularAnimationComplete(r,t,i)}}):n(v).each(function(){this.StartAngle=s;this.EndAngle=s}).animate({StartAngle:h,EndAngle:c},{duration:f,queue:!1,step:function(f,e){if(e.prop.toString()==="StartAngle"?(a.startAngle=f,a.endAngle=a.startAngle):a.endAngle=f,t.model){var s=o._calculateArcData(t,r,a,i,u);t.svgRenderer._setAttr(n(v),{d:s.Direction});t.model.Radius=t.model._radius}},complete:function(){o.circularAnimationComplete(r,t,i)}})})}},circularAnimationComplete:function(t,i,r){if(!ej.util.isNullOrUndefined(i.model)){var e,f,u=n.inArray(r,i.model._visibleSeries),o;if(i.gSeriesTextEle[u]&&i.svgRenderer._setAttr(n(i.gSeriesEle).find("#"+i.gSeriesTextEle[u].id),{visibility:"visible"}),i.gSymbolGroupEle[u]&&i.svgRenderer._setAttr(n(i.gSeriesEle).find("#"+i.gSymbolGroupEle[u].id),{visibility:"visible"}),i.gDataLabelEle[u]&&i.svgRenderer._setAttr(n(i.gSeriesEle).find("#"+i.gDataLabelEle[u].id),{visibility:"visible"}),r.marker.dataLabel.template)for(o=n(i.element[0].childNodes[0].childNodes),f=0;f-1?(t.svgRenderer._setAttr(n(u),{x:o}),n(u).animate({x:0},f,function(){})):(e=u[0].height.animVal.value,t.svgRenderer._setAttr(n(u),{y:0}),n(u).animate({y:parseFloat(t.svgRenderer._getAttrVal(u,"y")),height:parseFloat(t.svgRenderer._getAttrVal(u,"height"))},{duration:f,step:function(i){t.svgRenderer._setAttr(n(u),{y:e-i});t.svgRenderer._setAttr(n(u),{height:i})}}))):t.model.series[0].type.indexOf("bar")>-1?n(u).animate({width:parseFloat(t.svgRenderer._getAttrVal(u,"width"))},{duration:f,step:function(i){t.svgRenderer._setAttr(n(u),{width:i})}}):(e=u[0].height.animVal.value,t.svgRenderer._setAttr(n(u),{y:e}),n(u).animate({y:0},f,function(){}))},animateRect:function(t,i,r,u,f){var a=i.animationType.toLowerCase(),e=ej.EjSvgRender.utils._getBoundingClientRect(a=="smooth"?t[0]:t,u,i,r),h,c,y,p,w,s=n(t),o,v,l;i.isTransposed&&r||r?(o=a=="smooth"?parseFloat(u.svgRenderer._getAttrVal(t,"width")):0,v=!0,u.svgRenderer._getAttrVal(s,"plot")==="negative"?(h=e.x+e.width,c=e.y+e.height):(h=e.x,c=e.y),y=") scale(",p=",1) translate("):(o=a=="smooth"?parseFloat(u.svgRenderer._getAttrVal(t,"height")):0,v=!1,u.svgRenderer._getAttrVal(s,"plot")==="negative"?(h=e.x,c=e.y):(h=e.x+e.width,c=e.y+e.height),y=") scale(1,",p=") translate(");l=Math.abs(ej.EjSvgRender.utils._getPointXY(i.yAxis.visibleRange.min<0?0:i.yAxis.visibleRange.min,i.yAxis.visibleRange,i.yAxis.isInversed)*(v?i.yAxis.width:i.yAxis.height));s.animate({scales:a=="smooth"?o:1},{duration:f,complete:function(){i.type.toLowerCase()=="waterfall"&&n("#"+u.svgObject.id+"_SeriesGroup_waterfallLine_"+i.index).attr("visibility","visible")},step:function(n){w=n;a=="smooth"?(n&&(v?u.svgRenderer._setAttr(s,{width:l+n>=o?o:n}):u.svgRenderer._setAttr(s,{height:n})),v?u.svgRenderer._setAttr(s,{x:l+n>=o?o-n:l}):u.svgRenderer._setAttr(s,{y:o-l-n>=0?o-l-n:0})):u.svgRenderer._setAttr(s,{transform:"translate("+h+" "+c+y+w+p+-h+" "+-c+")"})}})},animateStackingRect:function(t,i,r,u,f){var e,o,s,h,c=n(t),l,a,v,y=ej.EjSvgRender.utils._getBoundingClientRect(t,u,i,r);i.isTransposed&&r||r?(l=ej.EjSvgRender.utils._valueToCoefficient(i.yAxis,0)*i.yAxis.width,e=l,o=y.y,s=") scale(",h=",1) translate("):(a=(1-ej.EjSvgRender.utils._valueToCoefficient(i.yAxis,0))*i.yAxis.height,e=y.x,o=a,s=") scale(1,",h=") translate(");c.animate({scales:1},{duration:f,step:function(n){v=n;u.svgRenderer._setAttr(c,{transform:"translate("+e+" "+o+s+v+h+-e+" "+-o+")"})}})},_doLineAnimation:function(t,i,r){var r=ej.util.isNullOrUndefined(r)?2e3:r,f=t.model.primaryXAxis.isInversed,e=parseFloat(t.svgRenderer._getAttrVal(i,"width")),u;t.model.requireInvertedAxes?(u=parseFloat(t.svgRenderer._getAttrVal(i,"height")),n(i).animate({clipRectHeight:parseFloat(t.svgRenderer._getAttrVal(i,"height"))},{duration:r,step:function(r){t.svgRenderer._setAttr(n(i),{y:u-r});t.svgRenderer._setAttr(n(i),{height:r})}})):n(i).animate({clipRectWidth:parseFloat(t.svgRenderer._getAttrVal(i,"width"))},{duration:r,step:function(r){f&&t.svgRenderer._setAttr(n(i),{x:e-r});t.svgRenderer._setAttr(n(i),{width:r})}})},_drawLinePath:function(t,i,r){var h=this.chartObj.model.requireInvertedAxes,f,e=n.inArray(t,this.chartObj.model._visibleSeries),o=null,s,u;this.chartObj.model.AreaType=="cartesianaxes"&&(f=ej.EjSvgRender.utils._getTransform(t.xAxis,t.yAxis,h),o="translate("+f.x+","+f.y+")");s={id:this.chartObj.svgObject.id+"_SeriesGroup_"+e,transform:o};this.chartObj.gSeriesGroupEle=this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(s);r!=""&&r.indexOf("NaN")==-1&&(u={id:this.chartObj.svgObject.id+"_Series"+e,fill:"none","stroke-dasharray":t.dashArray,"stroke-width":t.width,stroke:i.SeriesInterior,"stroke-linecap":t.lineCap,"stroke-linejoin":t.lineJoin,opacity:t.opacity,d:r},this.chartObj.dragPoint?(u.id=this.chartObj.svgObject.id+"_PreviewSeries"+e,u.opacity=.6,this.chartObj.model.enableCanvasRendering?this.chartObj.svgRenderer.drawPath(u,this.chartObj.canvasElement,o):this.chartObj.svgRenderer.drawPath(u,this.chartObj.gPreviewSeriesGroupEle)):this.chartObj.svgRenderer.drawPath(u,this.gSeriesGroupEle))},_applySaturation:function(n,t){var r,u,i;return r=ej.EjSvgRender.prototype.checkColorFormat(t),r||(t=n.colorNameToHex(t)),i=ej.EjSvgRender.prototype.hexToRGB(t),u=Math.round((parseInt(i.R)*299+parseInt(i.G)*587+parseInt(i.B)*114)/1e3),u>=128?"black":"white"},drawDataLabel:function(t,i,r,u,f,e,o,s){var ci,et,g,ii,yi,nt,pi,ri,ui;r.marker=r.marker?r.marker:{};var ct=t.yAxis.labelFormat,yt,fi=20,nr=t.yAxis.valueType,lt,rt,ot,tt,st,at,b,ei,wi=t._visiblePoints[i].boxPlotValues,dt=t.type.toLowerCase()=="waterfall"&&(r.showIntermediateSum||r.showTotalSum)?r.waterfallSum:r.y;r.text?lt=r.text:ct?ct.indexOf("{value}")>-1?lt=ct.replace("{value}",dt):ct.indexOf("e")==0||ct.indexOf("E")==0?(yt=ct.match(/(\d+)/g),yt=yt==null?6:yt>fi?fi:yt,lt=dt.toExponential(yt)):lt=ej.format(dt,ct,this.chartObj.model.locale):lt=dt;var c=this.chartObj,a=c.model,v=n.inArray(t,a._visibleSeries),oi,ut,ft,kt=n.extend(!0,{},t.marker,r.marker),it=kt.dataLabel,pt=a.m_AreaBounds,l=it.font,d=it.textPosition.toLowerCase(),vt=it.textAnchor.toLowerCase(),wt=t.type.toLowerCase(),si=a.enableCanvasRendering,bi=ej.seriesTypes[wt].prototype.isRegion,ki=ej.util.isNullOrUndefined(l.size)?"11px":l.size,di=ej.util.isNullOrUndefined(l.fontStyle)?"Normal":l.fontStyle,gi=ej.util.isNullOrUndefined(l.fontFamily)?"Segoe UI":l.fontFamily,hi={size:ki,fontStyle:di,fontFamily:gi},y=ej.EjSvgRender.utils._measureText(lt,null,hi);degree=it.angle;padding=10;angle=degree>360?degree-360:degree<-360?degree+360:degree;d=="middle"&&(angle==-90||angle==90)&&(ci=c.model.chartRegions[e].Region.Bounds,y.width>ci.Height?d="bottom":d=="middle");var li=this.textPosition(t,v,r,y,wt,u,f,e,i,o,d),h=n.extend({},ej.EjSvgRender.commonChartEventArgs),ni=it.enableContrastColor,k=a.chartArea.background.toLowerCase(),ht=a.background.toLowerCase();h.data={text:lt,location:{x:li.x+c.canvasX,y:li.y+c.canvasY},seriesIndex:v,pointIndex:i};t.isStacking&&t.drawType=="area"&&(t.type=="polar"||t.type=="radar")&&(h.data.text=t.stackedValue.EndValues[i]-t.stackedValue.StartValues[i]);c._trigger("displayTextRendering",h);var ai=kt.dataLabel.offset.y==undefined?kt.dataLabel.offset:kt.dataLabel.offset.y,vi=kt.dataLabel.offset.x,y=ej.EjSvgRender.utils._measureText(h.data.text,null,hi);if(h.data.location.y=d=="bottom"?h.data.location.y+ai:h.data.location.y-ai,vi&&(h.data.location.x=h.data.location.x+vi),(angle==90||angle==-90)&&(d=="bottom"?(vt=angle==-90?"start":"end",h.data.location.y=h.data.location.y+padding/2):d=="top"&&(vt=="middle"||vt=="start"?(vt=angle==-90?"start":"end",h.data.location.y=h.data.location.y+padding):(vt="end",h.data.location.y=h.data.location.y+padding*2))),!h.cancel){var p={id:c.svgObject.id+"_SeriesText"+i+v,x:h.data.location.x,y:h.data.location.y,fill:l.color,"font-size":l.size,"font-family":l.fontFamily,"font-style":l.fontStyle,"font-weight":l.fontWeight,opacity:l.opacity,"text-anchor":vt},w=it.margin,gt=y.width+w.left+w.right,bt=y.height+w.top+w.bottom,ti={X:h.data.location.x,Y:h.data.location.y};if(ej.util.isNullOrUndefined(it.template)?(oi=it.shape?it.shape:"None",n.each(a.symbolShape,function(n){oi.toLowerCase()==n.toLowerCase()&&(ft=n)}),et=h.data.location.x-w.left/2+w.right/2,g=h.data.location.y-w.top/2-bt/w.top+w.bottom/2,a.enableCanvasRendering&°ree%360!=0&&(p.y-=y.height/4,p.baseline="middle"),it.showEdgeLabels&&(rt=si?p.x-c.canvasX:p.x,ot=si?p.y-c.canvasY:p.y,(angle==90||angle==-90)&&(y.width=[y.height,y.height=y.width][0]),tt=y.width,st=y.height,ii=t._visiblePoints[t._visiblePoints.length-1]==r&&rt+tt/2>=c.model.m_AreaBounds.Width,(rt-tt/2<0||rt<-tt/2)&&ii?(at=rt-tt/2,p.x=et=Math.abs(at)+(ii?-10:rt+10)):(rt+tt/2>pt.textWidth||rt+tt/2>pt.textWidth+tt/2)&&(at=rt-tt/2,p.x=et=pt.textWidth-tt/2-10),ot+st/2>pt.textHeight||ot+st/2>pt.textHeight+st/2?(at=ot+st/2-pt.textHeight,g=ot-at-10,p.y=g+5):(ot-st/2<0||ot<-st/2)&&(at=ot-st/2,g+=Math.abs(at)+10,p.y=g+5)),t._enableSmartLabels&&(r.dataLabel={textX:p.x,textY:p.y,x:et,y:g,width:gt,height:bt},r.margin={top:w.top,bottom:w.bottom}),b=jQuery.type(a.seriesColors[v])=="array"?a.seriesColors[v][0].color:a.seriesColors[v],b=r.fill?jQuery.type(r.fill)=="array"?r.fill[0].color:r.fill:b,ni&&(ut=!bi||d=="top"?k==="transparent"&&ht==="transparent"?"white":k!="transparent"?k:ht:b,p.fill=this._applySaturation(c,ut)),r.y!=r.low||r.y===undefined&&r.low===undefined?wt.toLowerCase()=="boxandwhisker"&&wi.midvalue!=r.y?(yi={id:c.svgObject.id+"_SeriesText"+i+v,x:ej.util.isNullOrUndefined(s)?h.data.location.x:et,y:ej.util.isNullOrUndefined(s)?h.data.location.y:g,fill:l.color,"font-size":l.size,"font-family":l.fontFamily,"font-style":l.fontStyle,"font-weight":l.fontWeight,opacity:l.opacity,"text-anchor":vt},nt=r.textOptionsBoxValues.length,r.textOptionsBoxValues[nt]=yi,angle!=0&&(r.textOptionsBoxValues[nt].angle=angle),r.textOptionsBoxValues[nt].drawText=h.data.text,r.textOptionsBoxValues[nt].index=i,r.textOptionsBoxValues[nt].xPos=ej.util.isNullOrUndefined(s)?et:et-w.left/2+w.right/2,r.textOptionsBoxValues[nt].yPos=ej.util.isNullOrUndefined(s)?g:g-w.top/2-bt/w.top+w.bottom/2,r.textOptionsBoxValues[nt].seriesIndex=v,r.textOptionsBoxValues[nt].width=ft=="None"?y.width:gt,r.textOptionsBoxValues[nt].height=ft=="None"?y.height:bt,r.textOptionsBoxValues[nt].symbolName=ft):(r.textOptions=p,angle!=0&&(r.textOptions.angle=angle),r.drawText=h.data.text,r.index=i,r.xPos=et,r.yPos=g,r.seriesIndex=v,r.width=ft=="None"?y.width:gt,r.height=ft=="None"?y.height:bt,(angle==90||angle==-90)&&(r.width=[r.height,r.height=r.width][0]),r.symbolName=ft):(r.xPosLow=et,r.yPosLow=g,r.widthLow=ft=="None"?y.width:gt,r.heightLow=ft=="None"?y.height:bt,r.textOptionsLow=p,r.textOptionsLow.angle=angle,r.drawTextLow=h.data.text)):(ti.X-=c.canvasX,ti.Y-=c.canvasY,this.drawLabelTemplate(t,r,i,ti,c)),(wt.indexOf("column")>-1||wt.indexOf("bar")>-1)&&ni)if(pi=c.model.chartRegions[e],ri=o.stackingGroup,d=="top"&&wt.indexOf("stacking")>-1){if(ej.util.isNullOrUndefined(t.stackingGroup)||t.stackingGroup=="")vt.endAngle?-.01:.01,ii=si.dataLabel.connectorLine.type.toLowerCase(),vt,vi=t.type.toLowerCase(),w=y._isPieOfPie?y.circularRadius[t.collectionIndex]:y.circularRadius[c],ri=vi=="pieofpie"?"inside":t.labelPosition.toLowerCase(),ci,li,ft,et,yt,ai,tt,gt,it,pt,bt,ui,ni,fi,wt,ot;if(ej.util.isNullOrUndefined(y.bounds[c])&&(y.bounds[c]=[],y.bounds[c].points=[],ri=="outsideextended"&&(y.bounds[c].points.left=[],y.bounds[c].points.right=[])),ri=="inside"&&ej.util.isNullOrUndefined(i.smartLabelPosition)){k=(v+b)/2;nt=(p+ct)/2;k=(v+k)/2;nt=(p+nt)/2;l=i.isIntersected&&y.bounds[c].points[i.index]?y.bounds[c].points[i.index]:v>b?{X:k,Y:nt,Left:k,Top:nt,Right:k+s.width,Bottom:nt+s.height,SeriesIndex:c,PointIndex:r}:{X:k,Y:nt,Left:k-s.width,Top:nt,Right:k,Bottom:nt+s.height,SeriesIndex:c,PointIndex:r};do(at=!1,this.IntersectWith(d,i,l,"inside",c))&&((vt=l.Left,ci=f*180/Math.PI,li=rt*180/Math.PI,li-ci>=270)||(rt+=hi,i.isIntersected=!0,l.Angle=rt,v>b?(l.X=l.Left=g.getXCordinate(b,w+o,rt),l.Right=l.X+s.width):(l.X=l.Right=g.getXCordinate(b,w+o,rt),l.Left=l.Right-s.width),l.Y=l.Top=g.getYCordinate(ct,w+o,rt),l.Bottom=l.Y+s.height,at=!0));while(at);v>b&&l.X=b?{X:st,Y:ht,Left:st,Top:ht,Right:st+s.width,Bottom:ht+s.height,SeriesIndex:c,PointIndex:r}:{X:st,Y:ht,Left:st-s.width,Top:ht,Right:st,Bottom:ht+s.height,SeriesIndex:c,PointIndex:r};do(at=!1,this.IntersectWith(d,i,l,"outside",c,s))&&(vt=l.Left,rt+=hi,i.isIntersected=!0,v>b?(l.X=l.Left=g.getXCordinate(b,w+o,rt),l.Right=l.X+s.width):(l.X=l.Right=g.getXCordinate(b,w+o,rt),l.Left=l.Right-s.width),l.Y=l.Top=g.getYCordinate(ct,w+o,rt),l.Bottom=l.Y+s.height,at=!0);while(at);v>b&&l.X0&&(v0?it-w-tt*2+gt:t.LeftLabelMaxWidth>yt?yt:t.LeftLabelMaxWidth+gt)-s.width/2,pt=a[1].X-t.LeftLabelMaxWidth,ni=it-w-tt*2-t.LeftLabelMaxWidth>0?tt:t.LeftLabelMaxWidth>yt?0:pt>3*(tt/2)?tt:pt/2,bt=+s.width/2):(ui=ti.visible&&oi=="right"?y.margin.right+ei.Width:0,v=(it+w+tt*2+t.RightLabelMaxWidthn(d.svgObject).width()?yt:n(d.svgObject).width()-t.RightLabelMaxWidth-ui)+s.width/2,pt=n(d.svgObject).width()-t.RightLabelMaxWidth-a[1].X,ni=it+w+tt*2+t.RightLabelMaxWidthn(d.svgObject).width()?0:pt>3*(tt/2)?tt:pt/2,bt=-s.width/2);fi=Math.sqrt(Math.pow(yt-v,2)+Math.pow(ai-p,2))/10;wt=vt.startAngle?!0:!1;if(this.IntersectWith(d,i,l,"outsideExtended",c)&&(a.push(va[2].X&&(a[2].X=a[1].X),it>a[0].X&&a[1].Xa[a.length-2].X&&(a[a.length-2].X=a[a.length-1].X)):(y.bounds[c].points.right||(y.bounds[c].points.right=[]),y.bounds[c].points.right.push(l),a[a.length-1].X0&&(y0?a.model.centerX-k-tt*2+ot:t.LeftLabelMaxWidth>ft?ft:t.LeftLabelMaxWidth:a.model.centerX+k+tt*2+t.RightLabelMaxWidthn(a.svgObject).width()?ft:n(a.svgObject).width()-t.RightLabelMaxWidth,l.push({X:y,Y:w}),g=ej.EjSvgRender.utils._getStringBuilder(),et.dataLabel.connectorLine.type.toLowerCase()!="bezier"||a.vmlRendering){for(d=0;do.Width&&u._labelPlacement=="insideoverlap"||t.model.legend.position=="right"&&f.template&&u.xPos+u.width>o.Width+t.model.LegendActualBounds.Width)&&(e=!1,u.drawTextacc=""):(u.yPos-a<0||u.xPos-l>o.Width&&u._labelPlacement=="insideoverlap"||t.model.legend.position=="right"&&f.template&&u.xPos+u.width>o.Width+t.model.LegendActualBounds.Width)&&(e=!1,u.drawTextacc=""),(c=="outside"||u._labelPlacement=="insideoverlap")&&e&&(h=this.drawConnectorLines(r,u,i,t)),f.template&&(s=n("#"+u.id),e?(v=u._labelPlacement=="insidenooverlap"?u.textOptionsacc.x+t.pyrX-u.width/2:u.textOptionsacc.x+t.pyrX,y=u._labelPlacement=="insidenooverlap"?u.textOptionsacc.y+t.pyrY:u.textOptionsacc.y+t.pyrY-t.model.elementSpacing,s.css("left",v).css("top",y),s.css("height",u.height).css("overflow","hidden")):s.css("display","none")),{xPos:u.xPos,yPos:u.yPos,textOptionsacc:u.textOptionsacc,connectorDirection:h.connectorDirection,bezierPath:h.bezierdir,drawTextacc:u.drawTextacc}},compareDataLabels:function(t,i,r,u,f){for(var l,tt,w=n.extend(!0,{},u.marker,t.marker),a=w.dataLabel,b,o,k,e,d,v,y,s=f.model.elementSpacing,h=w.dataLabel.margin,it=u._visiblePoints.length,c=u.labelPosition.toLowerCase(),g=f.model.enableCanvasRendering?f.pyrX:0,nt=f.model.enableCanvasRendering?f.pyrY:0,p=0,rt=r.length;p360?e-360:e<-360?e+360:e;v="rotate("+d+","+t.textOptionsacc.x+","+t.textOptionsacc.y+")";n(t.textOptionsacc).attr("transform",v);n(t.textOptionsacc).attr({transform:v});(c=="inside"||c=="outsideextended")&&(t.yPos=t.yPos+s/4,t.textOptionsacc.y=t.textOptionsacc.y+t.height/4+h.top/2-h.bottom/2);r[r.length]=t},calculateInsideConnectorLines:function(t,i,r,u){var s=i.Polygon,h=n.extend(!0,{},r.marker,i.marker),f=h.dataLabel,c=f.font,e,l=u.model.enableCanvasRendering?u.pyrX:0,a=u.model.enableCanvasRendering?u.pyrY:0,o=70,v=ej.EjSvgRender.utils._measureText(i.drawTextacc,null,c),y=f.template?{x:i.xPos,y:i.yPos}:{x:i.xPos+v.width/2-l,y:i.yPos-i.height/2-a},p=u.isPointInPolygon(s,y);p?i._labelPlacement="insidenooverlap":(i._labelPlacement="insideoverlap",i.textOptionsacc["text-anchor"]="start",e=i.startX+ot.yPos+t.height||n.xPos+n.width/2t.xPos+t.width),r&&e=="pyramid"?(f=n.yPos+n.height-t.yPos,u=n.xPos+n.width-t.xPos):r&&e=="funnel"&&(f=n.yPos-(t.yPos+t.height),u=n.xPos+n.width-t.xPos),{state:r,height:f,width:u}},trimText:function(n,t,i){t--;var r=t-i.length,u=n.substr(0,r);return u+i},trimfunction:function(n,t,i,r,u,f){while(t360?v-360:v<-360?v+360:v,p="rotate("+w+","+s+","+h+")";n(y).attr("transform",p);i.model.enableCanvasRendering&&n(y).attr("labelRotation",v);n(y).attr({transform:p})}return y},labelTrim:function(n,t,i,r,u,f,e,o,s,h){var d=-.5*Math.PI,ft=.5*Math.PI,p=this.calculatePosition(n,t,i,u,f),v=n.model.series[s].startAngle,a=n.model.series[s].endAngle,et=n.model.chartRegions.length0?(ej.util.isNullOrUndefined(n.firstStartAngle[0])&&n.firstStartAngle.push(c),c=n.firstStartAngle[0]<0?n.model._isPieOfPie?c:2*Math.PI+c:c,l=n.firstStartAngle[0]<0?n.model._isPieOfPie?l:2*Math.PI+l:l):(c=c<0?n.model._isPieOfPie?c:2*Math.PI+c:c,l=l<0?n.model._isPieOfPie?l:2*Math.PI+l:l),c-=w,l-=w,c>2*Math.PI&&l>2*Math.PI?(v=v+2*Math.PI,a=a+2*Math.PI):c<2*Math.PI&&l>2*Math.PI&&(v0||a==null)&&(c=c<0?2*Math.PI+c:c,l=l<=0?2*Math.PI+l:l),b=n.model.circleCenterX[s]=c&&a<=l&&v>=c&&v<=l&&b<=n.model.circularRadius[s]&&b>0)g=!0;else for(g=!1;!g;){if(r=this.trimText(r,r.length,rt),r==rt){r="";break}it=ej.EjSvgRender.utils._measureText(r,null,o);y=this.calculatePosition(n,t,it.width,u,f);k=(Math.atan2(y.rightEndY,y.rightEndX)-d-w)%(2*Math.PI);k<0&&(k=2*Math.PI+k);a=(Math.atan2(y.leftEndY,y.leftEndX)-d-w)%(2*Math.PI);a<0&&(a=2*Math.PI+a);b=n.model.circleCenterX[s]2*Math.PI&&l>2*Math.PI&&n.model._isPieOfPie?(nt=c-2*Math.PI,c=nt,ut=l-2*Math.PI,l=ut):c!=0&&c<2*Math.PI&&l>=2*Math.PI&&n.model._isPieOfPie&&(nt=c-2*Math.PI,c=nt);a>=c&&a<=l&&k>=c&&k<=l&&b<=n.model.circularRadius[s]&&b>0&&(g=!0)}return r},drawDataLabelAcc:function(t,i,r,u,f,e){var wi=u.marker,ki,vu,ft,wt,dr,yu,it,ir,gr,nu,ri,gu,ti,ui,vi,fi,yi,fr,ar,ot,pu,wu,lt,at,pi,tu,yr,bu;if(u.visible&&(wi&&wi.dataLabel&&wi.dataLabel.visible||(!wi||!wi.dataLabel)&&i.marker.dataLabel.visible)){var o=t,c=i.type.toLowerCase(),rt=new ej.seriesTypes[c],dt=ej.util.isNullOrUndefined,k=c=="pieofpie"?"inside":i.labelPosition.toLowerCase(),h=o.model,ku=h.title,st=ej.EjSvgRender.utils._measureText,er=h.elementSpacing,gt=i.marker,ht=gt.dataLabel,y=ht.margin,g=ht.font,ei=ht.connectorLine,oi=ei.type.toLowerCase(),pr=h.legend,d=pr.position.toLowerCase(),bi=h.LegendActualBounds,iu=dt(u.text)?u.y:u.text,or=ht.enableWrap,sr,ct,ru=iu,p=h._isPieOfPie?e:f,v,wr,nt,ut,l,vt,br,w=0,si,hr,b=0,ni,hi,ci=h.background.toLowerCase(),cr,uu=ht.enableContrastColor;if((c=="pyramid"||c=="funnel")&&k=="outsideextended"&&(k="inside"),nt=n.extend({},ej.EjSvgRender.commonChartEventArgs),nt.data={text:iu,series:i,pointIndex:r},o._trigger("displayTextRendering",nt),wr={size:g.size,fontStyle:g.fontStyle,fontFamily:g.fontFamily},ut=st(nt.data.text,null,wr),si=ut.width+y.left+y.right,hr=ut.height+y.top+y.bottom,c=="pyramid"||c=="funnel"){var fu=h.title.text?st(h.title.text,n(this.svgObject).width()-h.margin.left-h.margin.right,h.title.font):0,kr=o.model.title.subTitle.text?ej.EjSvgRender.utils._measureText(o.model.title.subTitle.text,n(this.svgObject).width()-o.model.margin.left-o.model.margin.right,o.model.title.subTitle.font):0,dr=o.model.title.subTitle.text===""?0:kr.height,lt=er+h.margin.left+(d==="left")?bi.Width:0,at=(d==="top"?bi.Height:0)+(h.title.text&&h.title.visible?h._titleLocation.Y+fu.height+dr:h.margin.top+er);si=si+10;ki={X:u.xLocation+o.pyrX,Y:u.yLocation+o.pyrY};w=u.xLocation;b=u.yLocation;ft=u.marker?u.marker:gt;ft=n.extend(!0,{},gt,ft);v=u.connectorLine;vt={positionX:w,positionY:b}}if(c!="pyramid"&&c!="funnel"){var du=-.5*Math.PI,et=u.midAngle+du,eu,ou,su,ti,lr,fu=h.title.text?st(h.title.text,n(this.svgObject).width()-h.margin.left-h.margin.right,h.title.font):0,kr=o.model.title.subTitle.text?ej.EjSvgRender.utils._measureText(o.model.title.subTitle.text,n(this.svgObject).width()-o.model.margin.left-o.model.margin.right,o.model.title.subTitle.font):0,dr=o.model.title.subTitle.text===""?0:kr.height,li,yt,pt,di,hu,cu,lu,gi,au,nr=h.circularRadius[p];li=dt(ei.height)?st(nt.data.text,null,g).height:ei.height;vu=o.model._isPieOfPie?u.actualIndex:i._visiblePoints[r].actualIndex;(vu==i.explodeIndex||i.explodeAll)&&!o.vmlRendering?(yt=h.circleCenterX[p]+Math.cos(et)*i.explodeOffset,pt=h.circleCenterY[p]+Math.sin(et)*i.explodeOffset):(yt=h.circleCenterX[p],pt=h.circleCenterY[p]);di=rt.getXCordinate(yt,nr,et);di=u.y!=0?di:parseFloat(di.toFixed(12));hu=rt.getYCordinate(pt,nr,et);cu=rt.getXCordinate(yt,h.innerRadius[f],et);lu=rt.getYCordinate(pt,h.innerRadius[f],et);gi=this.getXCordinate(yt,nr+li,et);gi=u.y!=0?gi:parseFloat(gi.toFixed(12));au=this.getYCordinate(pt,nr+li,et);ht.template?ct=u.size:(ft=u.marker?u.marker:gt,ft=n.extend(!0,{},gt,ft),sr=ft.dataLabel.shape,ct=st(nt.data.text,n(o.svgObject).width(),g),sr.toLowerCase()!="none"&&(ct.height=ct.height+y.top+y.bottom,ct.width=ct.width+y.left+y.right));eu={midX:di,midY:hu};ou={dMidX:cu,dMidY:lu};su={connectorX:gi,connectorY:au};ti={midPoint:eu,doughnutMidPoint:ou,connector:su};lr={startX:yt,startY:pt};i._enableSmartLabels?(l=rt.updateSmartLabelPosition(i,u,r,ti,et,lr,li,ct,t,f),o.model.bounds[f].points[r]&&(wt=o.model.bounds[f].points[r].overlap),w=l.positionX,b=l.positionY,vt={positionX:w,positionY:b,isInterSected:l.isInterSected},v=o.model._isPieOfPie||wt?"":l.connectorDirection):(l=rt.updateLabelPosition(i,u,r,ti,et,lr,li,ct,t,f),w=l.positionX,b=l.positionY,v=l.connectorDirection)}var tr=k!="inside"&&k!="insidenooverlap"||(c=="pyramid"||c=="funnel")&&k=="outside"?ws?"":f):(s=v==0?tt+e:v+e,f=dc&&(f=""),f},updateWrappedText:function(t,i,r,u,f,e,o,s,h,c,l,a){var w=this.chartObj,v=u,g={},bt=r.width,at=r.height,ui,kt,dt,gt,y,k,fi=t.x,ei=t.y,ni,b,nt=fi,st=!0,vt=w.model.m_AreaBounds.X,d=ei,tt,ot,it,ht,yt,wt,ii,et,p,rt;if(ej.util.isNullOrUndefined(a)||a==""||(typeof a=="object"?(it=a.X,ht=a.Y):(tt=a.split(" "),ot=c=="outsideextended"?tt.length-2:l.connectorLine.type.toLowerCase()=="bezier"?tt.length-2:tt.length,tt[ot-1].indexOf(",")>-1?(yt=tt[ot].split(","),it=yt[0],ht=yt[1]):(it=tt[ot-2],ht=tt[ot-1]))),f=="pie"||f=="doughnut"){if(c=="inside"){var h=ej.util.isNullOrUndefined(h)?0:h,pt=-.5*Math.PI,ct=v.startAngle+pt,lt=v.endAngle+pt,ut=v.midAngle+pt,oi=180/Math.PI*ut%360,ki=180/Math.PI*ct%360,di=180/Math.PI*lt%360,ti=f=="doughnut"?.75:.5;nt=this.getXCordinate(e,s*ti,ut);d=this.getYCordinate(o,s*ti,ut);var si=this.getXCordinate(e,s,ct),hi=this.getYCordinate(o,s,ct),ci=this.getXCordinate(e,s,lt),li=this.getYCordinate(o,s,lt),ai=this.getXCordinate(e,s,ut),vi=this.getYCordinate(o,s,ut),yi=this.getXCordinate(e,h,ut),pi=this.getYCordinate(o,h,ut),ft=this.getSegementMinMax([si,ci,f=="doughnut"?yi:e,ai],[hi,li,f=="doughnut"?pi:o,vi]);ft.width=ft.height>s?ft.height:ft.width;b=ft.width*.75}else if((c=="outside"||c=="outsideextended")&&(f=="pie"||f=="doughnut")&&a!=""){var gi=w.model.m_AreaBounds,wi=vt,bi=w.svgWidth-vt;b=it<=e?it-wi:bi-it;nt=it;d=ht}}else if(wt=w.svgWidth,c=="outside")b=wt-it;else if(b=v.width,ii=w.isPointInPolygon(v.Polygon,{x:nt+bt,y:d}),!ii){b=f=="funnel"?v.Polygon[3].x-v.Polygon[4].x:v.Polygon[1].x-v.Polygon[0].x;ni=v.Polygon[3].y-v.Polygon[0].y;var ri=Math.round(bt/b)*at,st=ri>=ni-10||b<=50?!0:!1;st?b=wt-nt-vt:(t["text-anchor"]="middle",nt=(f=="funnel"?v.Polygon[4].x:v.Polygon[0].x)+b/2+(w.model.enableCanvasRendering?w.pyrX:0),d=(v.Polygon[0].y+v.Polygon[3].y)/2-ri/2+(w.model.enableCanvasRendering?w.pyrY:0),v._labelPlacement="insidenooverlap")}if(c!="inside"&&a==""&&ej.util.isNullOrUndefined(a))y="";else{for(kt=l.maximumLabelWidth!=null?l.maximumLabelWidth:parseFloat(b),y=i,dt=w._rowsCalculation({text:y.toString(),font:l.font},kt,ui),y=dt.textCollection,k=n.extend([],y),et=0;et",k[et+1]);k=k[k.length-1]}return p=ej.EjSvgRender.utils._measureText(k,b,l.font),p.height+=at/2,(f=="pie"||f=="doughnut")&&c=="inside"&&(d=d-p.height/2+at/2,y=p.height>ft.height?"":y,y=p.width>ft.width?"":y,y==""&&(p.width=0,p.height=0)),g=this.currentBoundary=="undefined"?"undefined":this.currentBoundary,this.currentBoundary={X:nt-p.width/2,Y:parseFloat(d),Height:p.height,Width:p.width},!g||v._labelPlacement=="insidenooverlap"?gt=this.currentBoundary:(rt=this.checkOverlapping(w,this.currentBoundary,g,f,y,gt,oi,c,{startAngle:ct,endAngle:lt,radius:s,centerX:e,centerY:o}),rt[1]&&rt[2]!=""?(g=rt[0],nt=g.X+g.Width/2,d=g.Y,y=rt[2],p.height=rt[0].Height,p.width=rt[0].Width):y=rt[2]),st=y==""?!1:st,this.currentBoundary=y==""?g:this.currentBoundary,{text:y,x:nt,y:d,exceed:st,height:p.height,width:p.width}},checkOverlapping:function(n,t,i,r,u,f,e,o,s){var c=10,l=!1,h,y,a,p,v,w,b;return h=this.getOverlapArea(t,i),l=h.overlap,y=h.xOverlap,a=h.yOverlap,l&&(r=="pie"||r=="doughnut"?o.toLowerCase()=="inside"?(p=y>=a?"Y":"X",p=="X"?(v=e>0&&e<180?-1:1,t.X+=v*(y+c)):(v=e>90&&e<270?-1:1,t.Y+=v*(a+c))):t.Y-=a+c:t.Y=r=="funnel"?i.Y-t.Height-c:i.Y+i.Height+c),(r=="pie"||r=="doughnut"||r=="pieofpie")&&o.toLowerCase()=="inside"?(h=this.getOverlapArea(t,f),u=h.overlap==!0?"":u,l=h.overlap==!0?!0:l,w=this.checkSegmentExceeding(t,s),u=w?u:""):r=="funnel"?t.Y+t.Height>=i.Y&&(u=""):r=="pyramid"&&t.Y+t.Height<=i.Y+i.Height&&(u=""),b=n.model.m_AreaBounds,[{X:t.X,Y:t.Y,Height:t.Height,Width:t.Width},l,u]},getOverlapArea:function(n,t){var i=Math.max(0,Math.min(n.X+n.Width,t.X+t.Width)-Math.max(n.X,t.X)),r=Math.max(0,Math.min(n.Y+n.Height,t.Y+t.Height)-Math.max(n.Y,t.Y)),u=i*r,f=u>0?!0:!1;return{overlap:f,xOverlap:i,yOverlap:r}},getSegementMinMax:function(n,t){var i,r,u,f,e,o;return n.sort(function(n,t){return n-t}),t.sort(function(n,t){return n-t}),i=n[0],r=n[3],u=t[0],f=t[3],e=r-i,o=f-u,{minX:i,maxX:r,minY:u,maxY:f,width:e,height:o}},checkSegmentExceeding:function(n,t){var u=!1,o=n.X+n.Width/2,s=n.Y+n.Height/2,f=o-t.centerX,e=s-t.centerY,i=Math.atan2(e,f),h=Math.abs(Math.sqrt(f*f+e*e)),r;return h<=t.radius&&(r=2*Math.PI,i=i<0?r+i:i,t.startAngle=t.startAngle<0?r+t.startAngle:t.startAngle,t.endAngle=t.endAngle<0?r+t.endAngle:t.endAngle,i<=t.endAngle&&i>=t.startAngle?u=!0:(i<=r&&i>=t.startAngle&&t.endAngle0&&i<=t.endAngle&&t.startAngle>t.endAngle)&&(u=!0)),u},drawBezierSegment:function(n,t,i,r,u){for(var h,e,o,s=ej.EjSvgRender.utils._getStringBuilder(),c=new ej.seriesTypes[t.type.toLowerCase()],f=0;f<=16;f++)h=f/16,e=c.GetBezierPoint(h,n,0,n.length,t),s.append(e.X+","+e.Y+" ");if(o={id:r.svgObject.id+"_bezierLine_series"+u+"_point"+i,stroke:t.marker.dataLabel.connectorLine.color?t.marker.dataLabel.connectorLine.color:r.model.pointColors[i],"stroke-width":t.marker.dataLabel.connectorLine.width,fill:"none",points:s.toString()},t._enableSmartLabels)return o;r.svgRenderer.drawPolyline(o,r.gConnectorEle)},GetBezierPoint:function(n,t,i,r,u){var o=new ej.seriesTypes[u.type.toLowerCase()];if(r==1)return t[i];var f=o.GetBezierPoint(n,t,i,r-1,u),e=o.GetBezierPoint(n,t,i+1,r-1,u),c=f.X?f.X:f.x,l=f.Y?f.Y:f.y,a=e.X?e.X:e.x,v=e.Y?e.Y:e.y,s=(1-n)*c+n*a,h=(1-n)*l+n*v;return f.x?{x:s,y:h}:{X:s,Y:h}},drawLabelTemplate:function(t,i,r,u,f){var ut,ft,s,lt,at,vt,a,et,ot,st,d,g,yt,pt;f&&(this.chartObj=f);var tt=this.chartObj.model.m_AreaBounds.X,it=this.chartObj.model.m_AreaBounds.Y,ht=this.chartObj.model.m_AreaBounds.Width,ct=this.chartObj.model.m_AreaBounds.Height,p=n.inArray(t,this.chartObj.model._visibleSeries),nt=this.chartObj.model.AreaType,c=this.chartObj.model.series[p],w=0,rt=0,v=this.chartObj._id,l=n.extend(!0,{},t.marker,i.marker),k={interior:l.dataLabel.fill,opacity:l.dataLabel.opacity,borderColor:l.dataLabel.border.color,borderWidth:l.dataLabel.border.width},b,h,y,bt=this.chartObj.model.chartRegions[r]?this.chartObj.model.chartRegions[r].type:"";if(nt!="none"||this.chartObj.model.enable3D){if(ut=n("#template_group_"+v).length!=0?n("#template_group_"+v):n("
<\/div>").attr("id","template_group_"+v),ut.css("position","relative").css("z-index",1e3),n("#"+l.dataLabel.template).length==0)return;ft=n("#"+l.dataLabel.template).clone();n(ft).attr("id",l.dataLabel.template+"_"+p+"_"+r+"_"+v);s=n(ft);s.css("position","absolute");lt=i.x;i.dataLabeltemplate=!0;i.id=l.dataLabel.template+"_"+p+"_"+r+"_"+v;t.xAxis._valueType.indexOf("datetime")>-1&&(i.x=ej.format(new Date(i.xValue),ej.util.isNullOrUndefined(t.xAxis.labelFormat)?t.xAxis._valueType=="datetime"?ej.EjSvgRender.utils._dateTimeLabelFormat(t.xAxis._intervalType,t.xAxis):ej.EjSvgRender.utils._dateTimeLabelFormat(t.xAxis.intervalType,t.xAxis):t.xAxis.labelFormat,this.chartObj.model.locale));t.xAxis._valueType.toLowerCase()=="category"&&(i.x=ej.EjSvgRender.utils._getLabelContent(r,t.xAxis,this.chartObj.model.locale));i.count=1;at={series:t,point:i};s.html(s.html().parseTemplate(at));i.x=lt;vt=nt=="cartesianaxes"||!t.enableAnimation||t.type.toLowerCase()=="pyramid"||t.type.toLowerCase()=="funnel"?"block":"none";s.css("display",vt).appendTo(n(ut));n(ut).appendTo("#chartContainer_"+v);a=this.chartObj.model.m_AreaBounds;nt!="cartesianaxes"||this.chartObj.model.enable3D||(w=a.X+(this.chartObj.model.requireInvertedAxes?c.yAxis.plotOffset:c.xAxis.plotOffset),rt=c.yAxis.y);h=s.width()/2;y=s.height();b=ej.util.isNullOrUndefined(k)&&k.interior?k.interior:nt=="none"?this.chartObj.model.pointColors[r]:this.chartObj.model.seriesColors[p]}else b=ej.util.isNullOrUndefined(k)&&k.interior?k.interior:this.chartObj.model.pointColors[r],h=this.chartObj.model.circleCenterX[p]>u.X?i.size.width:0,s=n("#template_group_"+v).find("#"+l.dataLabel.template+"_"+p+"_"+r+"_"+v),i.id=l.dataLabel.template+"_"+p+"_"+r+"_"+v,y=this.chartObj.model.enable3D?0:i.size.height/2;if((c.type=="hilo"||c.type=="hiloopenclose"||c.type=="candle")&&(b=c._visiblePoints[r]._hiloFill),b=jQuery.type(b)=="array"?b[0].color:b,c.type.indexOf("bar")!=-1)var e=u.X+w-h,o=u.Y+(this.chartObj.model.enable3D?0:a.Y)-y+c.xAxis.plotOffset,wt=u.X+w+h;else var e=u.X+w-h,o=rt+u.Y-y,wt=u.X+w+h;et=s[0].style.backgroundColor;s.css("left",e).css("top",o).css("background-color",et!=""?et:b).css("display","block").css("cursor","default");this.chartObj.model.AreaType!="cartesianaxes"?(i.xPos=e-this.chartObj.pyrX,i.yPos=o-this.chartObj.pyrY,i.textOptionsacc={x:e-this.chartObj.pyrX,y:o-this.chartObj.pyrY}):i.y==i.low?(i.xPosLow=e,i.yPosLow=o,i.textOptionsLow={x:e,y:o},i.dataLabelLow={textX:e,textY:o,x:e,y:o}):(i.xPos=e,i.yPos=o,i.seriesIndex=p,i.textOptions={x:e,y:o},i.dataLabel={textX:e,textY:o,x:e,y:o},i.margin={top:0,bottom:0,left:0,right:0});i.height=s.outerHeight();i.width=s.outerWidth();ot=st=d=0;g=0;nt=="cartesianaxes"&&(e>w+a.Width||o+y>a.Y+a.Height||ew+a.Width||o>rt+a.Height||wt>a.Width+a.X)&&(h=s.outerWidth(),e=rt&&!t.yAxis.isInversed||r.yrt&&!t.yAxis.isInversed||r.yrt&&t.yAxis.isInversed||r.y=b&&g?e+p-u.width:e-p+nt.left:l=="middle"?e=e=b&&g?e+p/2-u.width/2:e-p/2-u.width/2:e=b&&g?e-=a+u.width/1:e+=a+u.width/1):l=="bottom"?r.y>=0&&!t.yAxis.isInversed||r.y<0&&t.yAxis.isInversed?e=tt.indexOf("stacking")==-1&&i>0?e-p+u.width/2:nt.left+u.width/4:e+=p-u.height-nt.right:l=="middle"?r.y>0&&!t.yAxis.isInversed||r.y<0&&t.yAxis.isInversed?e-=p/2+u.width/2:e+=p/2:r.y>=0&&!t.yAxis.isInversed||r.y<0&&t.yAxis.isInversed?e+=u.width/4+a:e-=u.width/4+a;v&&v=="far"?e+=l=="bottom"?u.width-u.width/4:u.width/4+a:v&&v=="near"?e-=l=="bottom"?u.width/4:a-u.width/4-ct:e+=u.width/4;y&&y=="near"?o+=w/2:y&&y=="far"&&(o-=w/2)}else if(tt=="rangecolumn"){var d=this.chartObj.model.chartRegions[ht].Region.Bounds,ut=0,ft=0;r.high!=r.y&&(ut=d.Height,ft=d.Width);this.chartObj.model.requireInvertedAxes?l=="top"?e=e-ft+(a+u.width/1):l=="bottom"?e=e-ft-(2*u.width+a):l=="middle"&&(e=e-ft):l=="top"?o+=ut-a:l=="bottom"?o=o+ut+(2*u.height+a):l=="middle"&&(o=o+ut);v&&v.toLowerCase()=="far"?e+=d.Width/2:v&&v.toLowerCase()=="near"&&(e-=d.Width/2);y&&y.toLowerCase()=="near"?o+=a-ct:y&&y.toLowerCase()=="far"&&(o-=a)}else if(tt=="boxandwhisker"){var d=this.chartObj.model.chartRegions[ht].Region.Bounds,ut=0,ft=0;this.chartObj.model.requireInvertedAxes?l=="top"?e=e-ft+(a+u.width/1):l=="bottom"?e=e-ft-(2*u.width+a):l=="middle"&&(e=e-ft):l=="top"?o+=ut-ct:l=="bottom"?o+=ut+a+u.width/2:l=="middle"&&(o+=ut+a);v&&v.toLowerCase()=="far"?e+=2*u.width:v&&v.toLowerCase()=="near"&&(e-=2*u.width);y&&y.toLowerCase()=="near"?o=l=="top"?o+a:o-a:y&&y.toLowerCase()=="far"&&(o=l=="top"?o-a:o+a)}else if(f=="waterfall"){var d=this.chartObj.model.chartRegions[ht].Region.Bounds,w=d.Height,p=d.Width,k=r.waterfallSum<0||!r.showIntermediateSum&&!r.showTotalSum&&r.y<0;switch(l){case"bottom":t.isTransposed?e=t.yAxis.isInversed?e+p-(a+u.height/1)-(k?p:0):e-p+(a+u.height/1)+(k?p:0):o=t.yAxis.isInversed?o-u.height+nt.bottom+(k?w:0):o+w-nt.bottom-(k?w:0);break;case"middle":t.isTransposed?e=t.yAxis.isInversed?e+p/2-(k?p:0):e-(p/2+u.width/4)+(k?p:0):o=t.yAxis.isInversed?o-w/2+(k?w:0):o+(w/2+u.height/4)-(k?w:0);break;default:t.isTransposed?e=t.yAxis.isInversed?e-(a+u.height/1)-(k?p:0):e+(a+u.height/1)+(k?p:0):o=t.yAxis.isInversed?o+(a+u.height/1)+(k?w:0):o-(a+u.height/1)-(k?w:0)}v&&v=="far"?e+=p/2:v&&v=="near"&&(e-=p/2);y&&y=="near"?o+=l=="bottom"?u.height/3:u.height+a:y&&y=="far"&&(o-=l=="bottom"?u.height/3:a+u.height/2)}else if(f=="polar"||f=="radar")o+=u.height/4,l=="bottom"?o+=u.height:l=="top"&&(o-=u.height),v&&v=="far"?e+=u.width:v&&v=="near"&&(e-=u.width),y&&y=="near"?o+=u.height/2:y&&y=="far"&&(o-=u.height/2);else{if((tt=="rangearea"||tt=="splinerangearea")&&r.high!=r.y)if(this.chartObj.model.series.length==1)et=this.chartObj.model.chartRegions[i][h].region.length,o=this.chartObj.model.chartRegions[i][h].region[et-1].Y,e=this.chartObj.model.chartRegions[i][h].region[et-1].X;else{for(it=0,ot=0;ot0||l.waterfallSum>0)?e.positiveFill:r.model.seriesColors[v]:jQuery.type(b[w])=="array"?b[w][0].color:b[w]),r.symbolColorName=r.svgRenderer.createGradientElement(ot+v,p,0,0,0,n(r.svgObject).height(),o),et={dashArray:t.dashArray,ShapeSize:{width:st,height:ht},Style:{BorderColor:tt,BorderWidth:it,Opacity:rt,Visibility:ct,Color:r.symbolColorName},PointIndex:w,SeriesIndex:v,Imageurl:ut.imageUrl,Image:ut.image,ID:t.id},u=n.extend({},ej.EjSvgRender.commonChartEventArgs),u.data={location:c,style:et},r._trigger("symbolRendering",u),!u.cancel)if(g)c.startY=r.model.requireInvertedAxes?c.startY:c.startY+(e.yAxis.y?e.yAxis.y-r.canvasY:0),c.startX=r.model.requireInvertedAxes?c.startX:c.startX+(e.xAxis.x?e.xAxis.x-r.canvasX:0),u.data.location.startY=c.startY,ej.util.isNullOrUndefined(d)?r.model.AreaType=="cartesianaxes"?(o=r.svgRenderer.ctx,r.svgRenderer.ctx.save(),r.svgRenderer.ctx.beginPath(),r.model.requireInvertedAxes?r.svgRenderer.ctx.rect(e.yAxis.x,e.xAxis.y,e.yAxis.width,e.xAxis.height):r.svgRenderer.ctx.rect(e.xAxis.x,e.yAxis.y,e.xAxis.width,e.yAxis.height),r.svgRenderer.ctx.clip(),ej.EjSvgRender.chartSymbol["_draw"+y](u.data.location,u.data.style,r,o),r.svgRenderer.ctx.restore()):(g&&ft&&(r.svgRenderer.ctx.save(),r.svgRenderer.ctx.beginPath(),r.svgRenderer.ctx.arc(r.model.centerX,r.model.centerY,r.model.Radius,0,2*Math.PI,!1),r.svgRenderer.ctx.clip()),ej.EjSvgRender.chartSymbol["_draw"+y](u.data.location,u.data.style,r,o),g&&ft&&r.svgRenderer.ctx.restore()):(a=u.data.style.PointIndex,s=u.data.style.SeriesIndex,r.model.series[s].highlightSettings.enable||n("#"+r._id+"_selection_"+s+"_"+a+"_canvas").length==0&&r.svgRenderer.trackSymbol(u.data.style,u.data.location,y,d,r));else{var a=u.data.style.PointIndex,s=u.data.style.SeriesIndex,nt=e.type,k;e.highlightSettings.enable&&d&&!r.model.crosshair.visible?(f=n.extend(!0,u.data.style),h=e.highlightSettings,f.Style.Color=h.pattern.toLowerCase()=="none"||h.pattern==""?h.color!=""?h.color:f.Style.Color:"url(#"+h.pattern.toLowerCase()+"_Highlight_2D_"+s+")",f.Style.Opacity=h.opacity,f.Style.BorderColor=h.border.color,f.Style.BorderWidth=h.border.width,k=nt=="bubble"?n("#"+this.chartObj.svgObject.id+"_Series"+s+"_Point"+a).attr("class"):n("#"+this.chartObj.svgObject.id+"_Series"+s+"_Point"+a+"_symbol").attr("class"),k!="SelectionStyleseries"+s&&ej.EjSvgRender.chartSymbol["_draw"+y](u.data.location,f,r,r.model.enable3D?i.chart3D:o)):(k=nt=="scatter"?n("#"+r.svgObject.id+"_Series"+s+"_Point"+a+"_symbol").attr("class"):n("#"+r.svgObject.id+"_Series"+s+"_Point"+a).attr("class"),k!="SelectionStyleseries"+s&&ej.EjSvgRender.chartSymbol["_draw"+y](u.data.location,u.data.style,r,r.model.enable3D?i.chart3D:o))}!i.chart3D&&nt!="pieofpie"&&r.model.AreaType=="none"&&n(o).children().not("defs").length>r.model._visibleSeries[v]._visiblePoints.length&&n(o.childNodes[t.pointIndex]).replaceWith(n(o.childNodes[n(o.childNodes).length-1]))},drawSymbol:function(t,i,r,u,f,e,o,s){var ht=i.drawType,c,y,p,w,b,g,nt,tt,rt;ej.util.isNullOrUndefined(this.chartObj)&&(this.chartObj=e);var h=i._visiblePoints[r],l=i.type.toLowerCase(),it=l=="boxandwhisker"?s:r,ut=l=="bubble"||l=="scatter"?i.border.dashArray:"",a="None",v=this.changeCrossHairSymbol(h.marker?h.marker:i.marker,o,r,t,i);if(c=l.toLowerCase()=="boxandwhisker"?v?v:n.extend(!0,{},i.outlierSettings,h.outlierSettings,i.border,h.border):v?v:n.extend(!0,{},i.marker,h.marker),n.each(this.chartObj.model.symbolShape,function(n){c.shape.toLowerCase()==n.toLowerCase()&&(a=n)}),a!="None"){y=this.chartObj.model.AreaType=="cartesianaxes"?{startX:u+this.chartObj.canvasX,startY:f+this.chartObj.canvasY}:{startX:u,startY:f};l=="scatter"||i.drawType=="scatter"?(p=h.border&&h.border.color?h.border.color:i.border.color,w=h.border&&h.border.width?h.border.width:i.border.width,b={interior:c.fill,opacity:c.opacity,borderColor:p,borderWidth:w}):l=="boxandwhisker"?(p=h.border&&h.border.color?h.border.color=="transparent"?this.chartObj._saturationColor(i.fill,-.6):h.border.color:i.border.color=="transparent"?this.chartObj._saturationColor(i.fill,-.6):i.border.color,w=h.border&&h.border.width?h.border.width:i.border.width,b={interior:i.fill,opacity:i.opacity,borderColor:p,borderWidth:w}):b={interior:c.fill,opacity:c.opacity,borderColor:c.border.color,borderWidth:c.border.width};var ft=o?this.chartObj.gTrackerEle:this.chartObj.gSymbolGroupEle[t],et=o?this.chartObj.svgObject.id+"_trackSymbol_"+t+"_"+it:this.chartObj.svgObject.id+"_Series"+t+"_Point"+it+"_symbol",ot=o?"TrackSymbol":"symbol",k=c.size.width,d=c.size.height,st={style:b,gradientName:ot,symbolEle:ft,width:k,height:d,point:h,location:y,seriesIndex:t,pointIndex:r,element:c,visibility:h.visible?"visible":"hidden",symbolName:a,trackSymbol:o,id:et,dashArray:ut};this.chartObj.model.enableCanvasRendering||(g=this.chartObj.gSymbolGroupEle[t].childNodes[r]);ej.util.isNullOrUndefined(g)||a.toLowerCase()!="image"?this.drawSymbolStyle(st,this.chartObj,o):(g.setAttribute("width",k),g.setAttribute("height",d));i.type.toLowerCase()=="scatter"&&(nt=i.xAxis.x,tt=i.yAxis.y,this.chartObj.model.enableCanvasRendering&&(nt=0,tt=0),rt={X:nt+y.startX-d/2,Y:tt+y.startY-k/2,Height:d,Width:k},ej.EjSvgRender.utils._addRegion(this.chartObj,rt,i,null,r))}},chartAreaType:"cartesianAxes",requireInvertedAxes:!1,stackingSeries:!1,hiloTypes:!1};ej.ejLineSeries=t(ej.EjSeriesRender);ej.seriesTypes.line=ej.ejLineSeries;ej.ejStepLineSeries=t(ej.EjSeriesRender,{draw:function(n,t){var r=this.chartObj=n,v,e;t._animationType="path";var y=ej.EjSvgRender.utils._getStringBuilder(),i=t,w=this.setLineSeriesStyle(i);i.sorting&&(i.points=ej.DataManager(i.points,ej.Query().sortBy("xValue")).executeLocal());var u=t._visiblePoints=i.points.length>100||!i.enableSmartLabels?this.improveChartPerformance(i):this._isVisiblePoints(i),f=null,s="M",h,p,c,l,a,o=-1;for(e=0;eo+1&&(p={xValue:u[o+1].xValue,YValues:[f.YValues[0]]},c=ej.EjSvgRender.utils._getPoint(f,i),l=ej.EjSvgRender.utils._getPoint(p,i),a=ej.EjSvgRender.utils._getPoint(u[o+1],i),r=this.chartObj,y.append(s+" "+(c.X+r.canvasX)+" "+(c.Y+r.canvasY)+" L "+(l.X+r.canvasX)+" "+(l.Y+r.canvasY)+" L "+(a.X+r.canvasX)+" "+(a.Y+r.canvasY)+" ")),s="L"),f=h,o=e):(f=null,s="M");v=y.toString();this._drawLinePath(i,w,v);this.chartObj.dragPoint?this.chartObj.svgRenderer.append(this.chartObj.gPreviewSeriesGroupEle,this.chartObj.gSeriesEle):this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)}});ej.ejStepAreaSeries=t(ej.EjSeriesRender,{draw:function(n,t,i){var e,h,d,w,b,u;this.chartObj=n;t._animationType="path";var p=this.chartObj.model.requireInvertedAxes,k,s=ej.EjSvgRender.utils._getStringBuilder(),f=t,g=this.setAreaSeriesStyle(f);f.sorting&&(f.points=ej.DataManager(f.points,ej.Query().sortBy("xValue")).executeLocal());var o=t._visiblePoints=f.points.length>100||!f.enableSmartLabels?this.improveChartPerformance(f):this._calculateVisiblePoints(f).visiblePoints,c=0,v=null,l;f.xAxis._valueType.toLowerCase()=="category"&&f.xAxis.labelPlacement.toLowerCase()!="onticks"&&(c=.5);var nt=ej.EjSeriesRender.prototype.getOrigin(this,f,i),a=null,y=!0,r=this.chartObj;for(e=0;e<=o.length;e++)e0?(l={xValue:o[e].xValue+c,YValues:[o[e].y]},u=ej.EjSvgRender.utils._getPoint(l,f),p?s.append("L "+(u.X+r.canvasX)+" "+(u.Y+r.canvasY)+" L "+(u.Y+r.canvasX)+" "+(h.X+r.canvasY)+" "):s.append("L "+(u.X+r.canvasX)+" "+(u.Y+r.canvasY)+" L "+(u.X+r.canvasX)+" "+(h.Y+r.canvasY)+" ")):p?s.append("L "+(h.X+r.canvasY)+" "+(u.Y+r.canvasX)+" "):s.append("L "+(u.X+r.canvasX)+" "+(h.Y+r.canvasY)+" "),a=null,v=null,y=!0)),a&&(b=u,v=l)):(a=null,v=null,y=!0):o[e-1].visible&&c>0&&(l={xValue:o[e-1].xValue+c,YValues:[o[e-1].y]},u=ej.EjSvgRender.utils._getPoint(l,f),p?s.append("L "+(u.X+r.canvasX)+" "+(u.Y+r.canvasY)+" L "+(u.Y+r.canvasX)+" "+(h.X+r.canvasY)+" "):s.append("L "+(u.X+r.canvasX)+" "+(u.Y+r.canvasY)+" L "+(u.X+r.canvasX)+" "+(h.Y+r.canvasY)+" "));k=s.toString();this.drawAreaPath(f,g,k);this.chartObj.dragPoint?this.chartObj.svgRenderer.append(this.chartObj.gPreviewSeriesGroupEle,this.chartObj.gSeriesEle):this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)}});ej.seriesTypes.steparea=ej.ejStepAreaSeries;ej.seriesTypes.stepline=ej.ejStepLineSeries;ej.ejColumnSeries=t(ej.EjSeriesRender,{draw:function(t,i,r){var v,e,h,a,c,o,d,tt,it,w;this.chartObj=t;v=this.chartObj.model.requireInvertedAxes;i._animationType="rect";i.columnFacet=="cylinder"&&(i._animationType="cylinder");var u=i,s=u.cornerRadius,y=n.inArray(u,this.chartObj.model._visibleSeries),rt=ej.EjSeriesRender.prototype.getOrigin(this,u,r),b=this.getSideBySideInfo(u,r);u.dragSettings.enable&&(u.sidebysideInfo=b);var p=this._isVisiblePoints(u),k=ej.EjSvgRender.utils._getTransform(u.xAxis,u.yAxis,v),ut,ft={id:this.chartObj.svgObject.id+"_SeriesGroup_"+y,transform:"translate("+k.x+","+k.y+")"};for(this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(ft),e=this,h=0;h0&&(i={id:e.chartObj.svgObject.id+"_Series"+y+"_Point"+a,x:f.X+e.chartObj.canvasX,y:f.Y+e.chartObj.canvasY,width:f.Width,height:f.Height,fill:l.interior,plot:o<0?"negative":"positive","stroke-width":l.borderWidth,opacity:l.opacity,stroke:l.borderColor,"stroke-dasharray":l.dashArray},tt={isColumn:!0,stacking:!1,isLastSeries:!0},u.columnFacet=="cylinder"?e.chartObj.svgRenderer.drawCylinder(i,e.gSeriesGroupEle,tt):typeof s!="object"&&s>0||s.topLeft>0||s.bottomLeft>0||s.topRight>0||s.bottomRight>0?(it=ej.EjSvgRender.utils._calculateroundedCorner(s,i),i.d=it,u._animationType="path",e.chartObj.svgRenderer.drawPath(i,e.gSeriesGroupEle)):u.columnFacet=="rectangle"&&e.chartObj.svgRenderer.drawRect(i,e.gSeriesGroupEle),w=ej.EjSvgRender.utils._getSvgXY(f.X,f.Y,u,e.chartObj),nt={X:w.X,Y:w.Y,Width:f.Width,Height:f.Height},ej.EjSvgRender.utils._addRegion(e.chartObj,nt,u,c,a));i.plot=o<0?"negative":"positive";c.symbolLocation=v?{X:o<(u.xAxis._crossValue||0)&&!u.yAxis.isInversed||u.yAxis.isInversed&&o>(u.xAxis._crossValue||0)?f.X:f.X+f.Width,Y:f.Y+f.Height/2}:{X:f.X+f.Width/2,Y:o<(u.xAxis._crossValue||0)&&!u.yAxis.isInversed||u.yAxis.isInversed&&o>(u.xAxis._crossValue||0)?f.Y+f.Height:f.Y}}this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},isRegion:!0});ej.seriesTypes.column=ej.ejColumnSeries;ej.ejStackingColumnSeries=t(ej.EjSeriesRender,{draw:function(t,i,r){var e,s,d,g,p;this.chartObj=t;i._animationType="rect";i.columnFacet=="cylinder"&&(i._animationType="cylinder");var w=this.chartObj.model.requireInvertedAxes,u=i,o=u.cornerRadius,a=n.inArray(u,this.chartObj.model._visibleSeries),tt=this.getSideBySideInfo(u,r),it=this._isVisiblePoints(u),b=ej.EjSvgRender.utils._getTransform(u.xAxis,u.yAxis,w),rt={id:this.chartObj.svgObject.id+"_SeriesGroup_"+a,transform:"translate("+b.x+","+b.y+")"};for(this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(rt),e=this,s=0;s0){i={id:e.chartObj.svgObject.id+"_Series"+a+"_Point"+v,x:f.X+e.chartObj.canvasX,y:f.Y+e.chartObj.canvasY,width:f.Width,height:f.Height,fill:c.interior,"stroke-width":c.borderWidth,plot:h<0?"negative":"positive",opacity:c.opacity,stroke:c.borderColor,"stroke-dasharray":c.dashArray};d={isColumn:!0,stacking:ht,isLastSeries:u.stackedValue.stackedSeries};u.columnFacet=="cylinder"?e.chartObj.svgRenderer.drawCylinder(i,e.gSeriesGroupEle,d):typeof o!="object"&&o>0||o.topLeft>0||o.bottomLeft>0||o.topRight>0||o.bottomRight>0?(g=ej.EjSvgRender.utils._calculateroundedCorner(o,i),i.d=g,u._animationType="path",e.chartObj.svgRenderer.drawPath(i,e.gSeriesGroupEle)):u.columnFacet=="rectangle"&&e.chartObj.svgRenderer.drawRect(i,e.gSeriesGroupEle);p=ej.EjSvgRender.utils._getSvgXY(f.X,f.Y,u,e.chartObj);y={X:p.X,Y:p.Y,Width:f.Width,Height:f.Height};var ct=f.Width/2,lt=Math.round(f.Height),nt=Math.round(ct/4);nt==lt&&(y.Height=f.Height+2*nt);ej.EjSvgRender.utils._addRegion(e.chartObj,y,u,l,v)}l.symbolLocation=w?{X:h<(u.xAxis._crossValue||0)&&!u.yAxis.isInversed||u.yAxis.isInversed&&h>(u.xAxis._crossValue||0)?f.X:f.X+f.Width,Y:f.Y+f.Height/2}:{X:f.X+f.Width/2,Y:h<(u.xAxis._crossValue||0)&&!u.yAxis.isInversed||u.yAxis.isInversed&&h>(u.xAxis._crossValue||0)?f.Y+f.Height:f.Y}}}this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},stackingSeries:!0,isRegion:!0});ej.seriesTypes.stackingcolumn=ej.ejStackingColumnSeries;ej.seriesTypes.stackingcolumn100=ej.ejStackingColumnSeries;ej.seriesTypes.rangecolumn=ej.ejRangeColumnSeries;ej.ejRangeColumnSeries=t(ej.EjSeriesRender,{draw:function(t,i,r){var e,c,g,p;this.chartObj=t;i._animationType="rect";var w=this.chartObj.model.requireInvertedAxes,f=i,s=f.cornerRadius,v=n.inArray(f,this.chartObj.model._visibleSeries),nt=this.getSideBySideInfo(f,r),b=this._isVisiblePoints(f),a=ej.EjSvgRender.utils._getTransform(f.xAxis,f.yAxis,w),tt={id:this.chartObj.svgObject.id+"_SeriesGroup_"+v,transform:"translate("+a.x+","+a.y+")"};for(this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(tt),e=this,c=0;c0||s.topLeft>0||s.bottomLeft>0||s.topRight>0||s.bottomRight>0?(g=ej.EjSvgRender.utils._calculateroundedCorner(s,i),i.d=g,f._animationType="path",e.chartObj.svgRenderer.drawPath(i,e.gSeriesGroupEle)):e.chartObj.svgRenderer.drawRect(i,e.gSeriesGroupEle,a.y),e.chartObj.svgRenderer.drawRect(i,e.gSeriesGroupEle,a.y),p=ej.EjSvgRender.utils._getSvgXY(u.X,u.Y,f,e.chartObj),d={X:p.X,Y:p.Y,Width:u.Width,Height:u.Height},ej.EjSvgRender.utils._addRegion(e.chartObj,d,f,o,y));f.type.toLowerCase()=="waterfall"&&(h=o.waterfallSum?o.waterfallSum:o.y);o.symbolLocation=w?{X:h<0&&!f.yAxis.isInversed||f.yAxis.isInversed&&h>0?u.X:u.X+u.Width,Y:u.Y+u.Height/2}:{X:u.X+u.Width/2,Y:h<0&&!f.yAxis.isInversed||f.yAxis.isInversed&&h>0?u.Y+u.Height:u.Y}}}this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},hiloTypes:!0,isRegion:!0});ej.seriesTypes.rangecolumn=ej.ejRangeColumnSeries;ej.ejBoxandwhiskerSeries=t(ej.EjSeriesRender,{draw:function(t,i,r){var ut,wt,u,a,rt,w;this.chartObj=t;ut=this.chartObj.model.requireInvertedAxes;i._animationType="rect";var f=i,l=n.inArray(f,this.chartObj.model._visibleSeries),ni=ej.EjSeriesRender.prototype.getOrigin(this,f,r),bt=this.getSideBySideInfo(f,r),b=this._isVisiblePoints(f),ft=ej.EjSvgRender.utils._getTransform(f.xAxis,f.yAxis,ut),kt,et=0,dt={id:this.chartObj.svgObject.id+"_SeriesGroup_"+l,transform:"translate("+ft.x+","+ft.y+")"};for(this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(dt),u=this,a=0;a0)){for(i={id:u.chartObj.svgObject.id+"_Series"+l+"_Point"+h,x:e.X+u.chartObj.canvasX,y:e.Y+u.chartObj.canvasY,width:e.Width,height:e.Height,fill:o.interior,"stroke-width":o.borderWidth,plot:k<0?"negative":"positive",opacity:o.opacity,stroke:rt,"stroke-dasharray":o.dashArray},nt={id:this.chartObj.svgObject.id+"_Series"+l+"_Point"+h+"_median",x1:f._isTransposed?y.X+u.chartObj.canvasX:e.X+u.chartObj.canvasX,y1:f._isTransposed?e.Y+u.chartObj.canvasY:y.Y+u.chartObj.canvasY,x2:f._isTransposed?y.X+u.chartObj.canvasX:e.X+e.Width+u.chartObj.canvasX,y2:f._isTransposed?e.Y+e.Height+u.chartObj.canvasY:y.Y+u.chartObj.canvasY,"stroke-width":o.borderWidth,stroke:rt},u.chartObj.svgRenderer.drawRect(i,u.gSeriesGroupEle),u.chartObj.svgRenderer.drawLine(nt,u.gSeriesGroupEle),p=u.calculateBoxAndWhiskerPath(i,e,nt,v,f,c,h),i.d=p.lowerWhisker,i.id=i.id+"_whisker",u.chartObj.svgRenderer.drawPath(i,u.gSeriesGroupEle),i.d=p.upperWhisker,u.chartObj.svgRenderer.drawPath(i,u.gSeriesGroupEle),f.showMedian==!0&&(i.d=p.mean,u.chartObj.svgRenderer.drawPath(i,u.gSeriesGroupEle)),w=0;w=0&&(tt={id:this.chartObj.svgObject.id+"_waterFall_"+h+"_connectorLine_"+e,fill:"none","stroke-dasharray":i.connectorLine.dashArray,"stroke-width":i.connectorLine.width,stroke:i.connectorLine.color,opacity:i.connectorLine.opacity,d:d},this.chartObj.svgRenderer.drawPath(tt,this.connectorLineGroup));this.chartObj.svgRenderer.append(this.connectorLineGroup,this.chartObj.gSeriesEle);i.enableAnimation&&!i._animatedSeries&&this.chartObj.svgRenderer._setAttr(this.connectorLineGroup,{visibility:"hidden"})},hiloTypes:!1,isRegion:!0});ej.seriesTypes.waterfall=ej.ejWaterfallSeries;ej.ejStackingBarSeries=t(ej.EjSeriesRender,{draw:function(t,i,r){var e,s,d,g,nt,y;this.chartObj=t;i._animationType="rect";i.columnFacet=="cylinder"&&(i._animationType="cylinder");var p=this.chartObj.model.requireInvertedAxes,u=i,o=u.cornerRadius,a=n.inArray(u,this.chartObj.model._visibleSeries),tt=this.getSideBySideInfo(u,r),w=this._isVisiblePoints(u),b=ej.EjSvgRender.utils._getTransform(u.xAxis,u.yAxis,p),it={id:this.chartObj.svgObject.id+"_SeriesGroup_"+a,transform:"translate("+b.x+","+b.y+")"};for(this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(it),e=this,s=0;s0||o.topLeft>0||o.bottomLeft>0||o.topRight>0||o.bottomRight>0?(nt=ej.EjSvgRender.utils._calculateroundedCorner(o,i),i.d=nt,u._animationType="path",e.chartObj.svgRenderer.drawPath(i,e.gSeriesGroupEle)):u.columnFacet=="rectangle"&&e.chartObj.svgRenderer.drawRect(i,e.gSeriesGroupEle),y=ej.EjSvgRender.utils._getSvgXY(f.X,f.Y,u,e.chartObj),d={X:y.X,Y:y.Y,Width:f.Width,Height:f.Height},ej.EjSvgRender.utils._addRegion(e.chartObj,d,u,l,v));l.symbolLocation=p?{X:h<(u.yAxis._crossValue||0)&&!u.yAxis.isInversed||u.yAxis.isInversed&&h>(u.yAxis._crossValue||0)?f.X:f.X+f.Width,Y:f.Y+f.Height/2}:{X:f.X+f.Width/2,Y:h<(u.yAxis._crossValue||0)&&!u.yAxis.isInversed||u.yAxis.isInversed&&h>(u.yAxis._crossValue||0)?f.Y+f.Height:f.Y}}}this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},stackingSeries:!0,requireInvertedAxes:!0,isRegion:!0});ej.seriesTypes.stackingbar=ej.ejStackingBarSeries;ej.seriesTypes.stackingbar100=ej.ejStackingBarSeries;ej.ejBarSeries=t(ej.EjSeriesRender,{draw:function(t,i,r){var e,h,g,nt,tt,y;this.chartObj=t;i._animationType="rect";i.columnFacet=="cylinder"&&(i._animationType="cylinder");var p=this.chartObj.model.requireInvertedAxes,u=i,o=u.cornerRadius,a=n.inArray(u,this.chartObj.model._visibleSeries),it=ej.EjSeriesRender.prototype.getOrigin(this,u,r),ht=n.extend(!0,{},this.chartObj.model.seriesStyle,u.style),w=this.getSideBySideInfo(u,r);u.dragSettings.enable&&(u.sidebysideInfo=w);var b=this._isVisiblePoints(u),k=ej.EjSvgRender.utils._getTransform(u.xAxis,u.yAxis,p),rt={id:this.chartObj.svgObject.id+"_SeriesGroup_"+a,transform:"translate("+k.x+","+k.y+")"};for(this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(rt),e=this,h=0;h0||o.topLeft>0||o.bottomLeft>0||o.topRight>0||o.bottomRight>0?(tt=ej.EjSvgRender.utils._calculateroundedCorner(o,i),i.d=tt,u._animationType="path",e.chartObj.svgRenderer.drawPath(i,e.gSeriesGroupEle)):u.columnFacet=="rectangle"&&e.chartObj.svgRenderer.drawRect(i,e.gSeriesGroupEle),y=ej.EjSvgRender.utils._getSvgXY(f.X,f.Y,u,e.chartObj),g={X:y.X,Y:y.Y,Width:f.Width,Height:f.Height},ej.EjSvgRender.utils._addRegion(e.chartObj,g,u,c,v));c.symbolLocation=p?{X:s<(u.xAxis._crossValue||0)&&!u.yAxis.isInversed||u.yAxis.isInversed&&s>(u.xAxis._crossValue||0)?f.X:f.X+f.Width,Y:f.Y+f.Height/2}:{X:f.X+f.Width/2,Y:s<(u.xAxis._crossValue||0)&&!u.yAxis.isInversed||u.yAxis.isInversed&&s>(u.xAxis._crossValue||0)?f.Y+f.Height:f.Y}}}this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},requireInvertedAxes:!0,isRegion:!0});ej.seriesTypes.bar=ej.ejBarSeries;ej.ejStackingAreaSeries=t(ej.EjSeriesRender,{draw:function(n,t){var i,h,a,s;this.chartObj=n;t._animationType="path";var v,e,f,o=ej.EjSvgRender.utils._getStringBuilder(),r=t,b=this.setAreaSeriesStyle(r),u=this._isVisiblePoints(r),y=Math.max(t.yAxis.visibleRange.min,r.stackedValue.StartValues[0]),c=this.chartObj.canvasX,l=this.chartObj.canvasY,a={xValue:u[0].xValue,YValues:[y]},s=ej.EjSvgRender.utils._getPoint(a,r),p=0,w=r.stackedValue.EndValues.length;for(o.append("M "+(s.X+c)+" "+(s.Y+l)+" "),i=0;i<=w;i++)if(i!=w&&u[i].visible)e={xValue:u[i].xValue,YValues:[r.stackedValue.EndValues[i]]},u[i].visible&&(f=u[i].location=ej.EjSvgRender.utils._getPoint(e,r),o.append("L "+(f.X+c)+" "+(f.Y+l)+" "),u[i].YValues[0]=e.YValues[0]);else{for(y=r.stackedValue.StartValues[i+1],h=i-1;h>=p;h--)e={xValue:u[h].xValue,YValues:[r.stackedValue.StartValues[h]]},f=ej.EjSvgRender.utils._getPoint(e,r),o.append("L "+(f.X+c)+" "+(f.Y+l)+" ");u[i+1]&&u[i+1].visible&&(a={xValue:u[i+1].xValue,YValues:[r.stackedValue.StartValues[i+1]]},s=ej.EjSvgRender.utils._getPoint(a,r),o.append("M "+(s.X+c)+" "+(s.Y+l)+" "));p=i+1}v=o.toString();this.drawAreaPath(r,b,v);this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},stackingSeries:!0});ej.seriesTypes.stackingarea=ej.ejStackingAreaSeries;ej.seriesTypes.stackingarea100=ej.ejStackingAreaSeries;ej.ejAreaSeries=t(ej.EjSeriesRender,{draw:function(n,t,i){var a,f,e,w,l;this.chartObj=n;t._animationType="path";var o=ej.EjSvgRender.utils._getStringBuilder(),r=t,b=this.setAreaSeriesStyle(r),v=this.chartObj;r.sorting&&(r.points=ej.DataManager(r.points,ej.Query().sortBy("xValue")).executeLocal());var u=this.chartObj.dragPoint?r.pointCollection:this._isVisiblePoints(r),h=ej.EjSeriesRender.prototype.getOrigin(this,r,i),s,c=[];if(c[0]=v.canvasX,c[1]=v.canvasY,u.length>0){for(f=0;ff+1){if(s||(s={xValue:u[f].xValue,YValues:[h]},e=ej.EjSvgRender.utils._getPoint(s,r),o.append("M "+e.X+" "+e.Y+" ")),e=ej.EjSvgRender.utils._getPoint(u[f],r),o.append("L "+e.X+" "+e.Y+" "),!u[f+1].visible){var k={xValue:u[f].xValue,YValues:[h]},y=ej.EjSvgRender.utils._getPoint(k,r),p=ej.EjSvgRender.utils._getPoint(s,r);o.append("L "+y.X+" "+y.Y+" L "+p.X+" "+p.Y+" ");s=null}}else u[f-1]&&u[f-1].visible&&(e=ej.EjSvgRender.utils._getPoint(u[f],r),o.append("L "+e.X+" "+e.Y+" "));w={xValue:u[u.length-1].xValue,YValues:[h]};l=ej.EjSvgRender.utils._getPoint(w,r);u.length>1&&o.append("L "+l.X+" "+l.Y+" ");a=o.toString();this.drawAreaPath(r,b,a,c)}this.chartObj.dragPoint?this.chartObj.svgRenderer.append(this.chartObj.gPreviewSeriesGroupEle,this.chartObj.gSeriesEle):this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)}});ej.seriesTypes.area=ej.ejAreaSeries;ej.ejRangeAreaSeries=t(ej.EjSeriesRender,{draw:function(t,i){var b,u,v,y,s,l,o,h,r,p,f,w,a;this.chartObj=t;i._animationType="path";var c=ej.EjSvgRender.utils._getStringBuilder(),e=i,k=this.setAreaSeriesStyle(e),d=n.inArray(e,this.chartObj.model._visibleSeries);for(e.points=ej.DataManager(e.points,ej.Query().sortBy("xValue")).executeLocal(),u=this._isVisiblePoints(e),v=[],v[0]=this.chartObj.canvasX,v[1]=this.chartObj.canvasY,s=[],r=0;r=0;h--)if(u[h].visible)l=u[h].low,p={xValue:u[h].xValue,YValues:[l]},f=ej.EjSvgRender.utils._getPoint(p,e),c.append("L "+f.X+" "+f.Y+" "),s[h].region.push({X:f.X,Y:f.Y}),h!=0&&s[h-1].region.push({X:f.X,Y:f.Y});else break;y=null}for(r=u.length-1;r>=0;r--)if(u[r].visible)l=u[r].low,p={xValue:u[r].xValue,YValues:[l]},f=ej.EjSvgRender.utils._getPoint(p,e),c.append("L "+f.X+" "+f.Y+" "),s[r].region.push({X:f.X,Y:f.Y}),r!=0&&s[r-1].region.push({X:f.X,Y:f.Y});else if(u.length>r&&u[r].visible){f=ej.EjSvgRender.utils._getPoint(u[r],e);c.append("L "+f.X+" "+f.Y+" ");break}else if(r!=u.length-1){for(w=0,a=r-1;a>=0;a--)if(u[a].visible)w++;else if(!u[a].visible)break;r=r-w}b=c.toString();this.chartObj.model.chartRegions.push(s);this.drawAreaPath(e,k,b,v);this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},hiloTypes:!0});ej.seriesTypes.rangearea=ej.ejRangeAreaSeries;ej.ejSplineRangeAreaSeries=t(ej.EjSeriesRender,{draw:function(n,t,i){this.chartObj=n;var r=new ej.seriesTypes.splinearea;r.draw(n,t,i)},chartAreaType:"cartesianAxes",hiloTypes:!0});ej.seriesTypes.splinerangearea=ej.ejSplineRangeAreaSeries;ej.ejSplineSeries=t(ej.EjSeriesRender,{draw:function(n,t,i){var o,h;i.seriesCollection||(i.seriesCollection={},t._name=ej.util.isNullOrUndefined(t.name)?"":t.name.replace(/ /g,""));i.seriesCollection[t._name]||(i.seriesCollection[t._name]={});this.chartObj=n;t._animationType="path";var r=t,c="",l=ej.EjSvgRender.utils._getStringBuilder(),nt=this.setLineSeriesStyle(r),s=this.chartObj.dragPoint?r.pointCollection:this._isVisiblePoints(r),a=this.naturalSpline(s,r)||i.seriesCollection[r._name].naturalSpline,f=null,e=null,v=-1,tt=0,it=i.seriesCollection[r._name].controlPoints||[];for(o=0;o0;ot--)if(wt=o.model.series[ot-1],wt.visibility!="hidden"){yt=wt.points;break}b={xValue:s[f].xValue,YValues:[yt[f].YValues[0]]}}k=ej.EjSvgRender.utils._getPoint(b,u)}if(e=="splinerangearea"&&(it=ej.EjSvgRender.utils._getPoint(s[f],u),g[f].region.push({X:it.X,Y:it.Y}),f!=0&&g[f-1].region.push({X:it.X,Y:it.Y})),d!=null){bt=null;kt=null;dt=e.indexOf("stackingsplinearea")!=-1||e=="splinerangearea"?et[h-1]||this.getBezierControlPoints(d,l,ft[ct],ft[h],ht,u,this):et[ui++]||this.getBezierControlPoints(d,l,ft[ct],ft[h],ht,u,this);bt=dt.controlPoint1;kt=dt.controlPoint2;var c=ej.EjSvgRender.utils._getPoint(d,u),rt=ej.EjSvgRender.utils._getPoint(l,u),v=ej.EjSvgRender.utils._getPoint(bt,u),y=ej.EjSvgRender.utils._getPoint(kt,u);if(at&&(st?w.append("M "+k.X+" "+c.Y+" L "+c.X+" "+c.Y+" "):w.append("M "+c.X+" "+k.Y+" L "+c.X+" "+c.Y+" "),at=!1),w.append("C "+v.X+" "+v.Y+" "+y.X+" "+y.Y+" "+rt.X+" "+rt.Y+" "),e=="splinerangearea"&&(nt[h]=st?"C "+y.low+" "+y.Y+" "+v.low+" "+v.Y+" "+c.low+" "+c.Y+" ":"C "+y.X+" "+y.low+" "+v.X+" "+v.low+" "+c.X+" "+c.low+" "),e.indexOf("stackingsplinearea")!=-1&&(nt[h]="C "+y.X+" "+y.Y+" "+v.X+" "+v.Y+" "+c.X+" "+c.Y+" "),(h==s.length-1||h=ti;tt--)if(s[tt-1].visible&&!ej.util.isNullOrUndefined(o.model._previousSeries))w.append(o.model._previousSeries[tt]),o.model._previousSeries[tt]="";else break;u._prevpointIndex=h+3}}else(e.indexOf("stackingsplinearea")!=-1||e.indexOf("splinerangearea")!=-1)&&h>0&&pt.displayMode=="gap"&&this.drawbackCurve(et,u,nt,h,l);d=l;ct=h}else d=null,(e.indexOf("stackingsplinearea")!=-1||e.indexOf("splinerangearea")!=-1)&&h>0&&pt.displayMode=="gap"&&this.drawbackCurve(et,u,nt,h,l);if(o.model.series[a].type.toLowerCase()=="splinerangearea")for(f=s.length-1;f>=0;f--)lt=s[f].low,ii={xValue:s[f].xValue,YValues:[lt]},ut=ej.EjSvgRender.utils._getPoint(ii,u),g[f].region.push({X:ut.X,Y:ut.Y}),f!=0&&g[f-1].region.push({X:ut.X,Y:ut.Y});p=w.toString();e.indexOf("stackingsplinearea")!=-1&&a>0&&(o.model._previousSeries=this._getReversePath(o,a,o.model._previousSeries));e=="splinerangearea"?(gt=this._getReversePath(o,a,nt),p=p+gt+"Z"):(p=ej.util.isNullOrUndefined(o.model._previousSeries)?p:p+o.model._previousSeries+"Z",o.model._previousSeries=nt);e=="splinerangearea"&&this.chartObj.model.chartRegions.push(g);this.drawAreaPath(u,ri,p,vt);this.chartObj.dragPoint?this.chartObj.svgRenderer.append(this.chartObj.gPreviewSeriesGroupEle,this.chartObj.gSeriesEle):this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle);this.chartObj.gSeriesGroupEle=this.gSeriesGroupEle},stackingSeries:!0,_getReversePath:function(n,t,i){var s=n.model.series[t].emptyPointSettings,o="",u=n.model.series[t].points,f,r,e;if(!ej.util.isNullOrUndefined(i)){for(f=0;f0;e--)o=o+i[e]}return o},drawbackCurve:function(n,t,i,r,u){var f=n[r-1],h=f.controlPoint1,c=f.controlPoint2,e=ej.EjSvgRender.utils._getPoint(t.points[r-1],t),l=ej.EjSvgRender.utils._getPoint(u,t),o=ej.EjSvgRender.utils._getPoint(h,t),s=ej.EjSvgRender.utils._getPoint(c,t);i[r]="C "+s.X+" "+s.Y+" "+o.X+" "+o.Y+" "+e.X+" "+e.Y+" "}});ej.seriesTypes.splinearea=ej.ejSplineAreaSeries;ej.seriesTypes.stackingsplinearea=ej.ejSplineAreaSeries;ej.seriesTypes.stackingsplinearea100=ej.ejSplineAreaSeries;ej.ejScatterSeries=t(ej.EjSeriesRender,{draw:function(t,i){var r,u,s;this.chartObj=t;r=i;i._animationType="scatter";var h=n.inArray(i,this.chartObj.model._visibleSeries),f=r.points.length>100||!r.enableSmartLabels?this.improveChartPerformance(r):this._isVisiblePoints(r),c=f.length,o,e;for(i._visiblePoints=f,u=0;u0||f.topLeft>0||f.bottomLeft>0||f.topRight>0||f.bottomRight>0?(ot=ej.EjSvgRender.utils.calculateroundedCorner(i),i.d=ot,this.chartObj.svgRenderer.drawPath(i,this.gSeriesGroupEle)):s.radius=w;this.chartObj.svgRenderer.drawCircle(i,this.gSeriesGroupEle);var yt=k.X,pt=k.Y,d=w,st,ht,ct,lt;ht=yt-d+(r.isTransposed?this.chartObj.model.m_AreaBounds.X:r.xAxis.x);ct=pt-d+(r.isTransposed?this.chartObj.model.m_AreaBounds.Y:r.yAxis.y);lt=2*d;st=2*d;at={X:ht,Y:ct,Width:st,Height:lt};ej.EjSvgRender.utils._addRegion(this.chartObj,at,r,null,o)}this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)}});ej.seriesTypes.bubble=ej.ejBubbleSeries;ej.ejhiloSeries=t(ej.EjSeriesRender,{draw:function(t,i,r){var p,f,e,l,a,s,h,k;this.chartObj=t;i._animationType="hilo";p=this.chartObj.model.requireInvertedAxes;f=i;f.points=ej.DataManager(f.points,ej.Query().sortBy("xValue")).executeLocal();var w=this._isVisiblePoints(f),o=this.getSideBySideInfo(f,r),u=null,c=n.inArray(f,this.chartObj.model._visibleSeries),b=ej.EjSvgRender.utils._getTransform(f.xAxis,f.yAxis,p),d={id:this.chartObj.svgObject.id+"_SeriesGroup_"+c,transform:"translate("+b.x+","+b.y+")"};for(this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(d),e=0;e0?l[p]:"#339933":u.bearFillColor:u.bullFillColor=a=ej.util.isNullOrUndefined(u.bullFillColor)?u.fill?u.fill:l&&l.length>0?l[p]:"#E51400":u.bullFillColor,w=this.chartObj.setStyle(this,u,p,g,a),b=this.chartObj.setHiloStyle(u,g,p,a),f.fill?a=jQuery.type(f.interior)=="array"?f.fill[0]:f.fill:f._hiloFill=a,h=this.chartObj.canvasX,c=this.chartObj.canvasY,vt){var pt={xValue:v.xValue+e.Median,YValues:v.YValues},it=ej.EjSvgRender.utils._getPoint(pt,u),wt={xValue:v.xValue+e.Start,YValues:v.YValues},rt=ej.EjSvgRender.utils._getPoint(wt,u);s="M "+(it.X+h)+" "+(it.Y+c)+" L "+(rt.X+h)+" "+(rt.Y+c)+" ";ht={point1:it,point2:rt};this._drawHiloPath(u,w,b,s,o,ht);s=""}if(yt){var bt={xValue:y.xValue+e.Median,YValues:y.YValues},ut=ej.EjSvgRender.utils._getPoint(bt,u),kt={xValue:y.xValue+e.End,YValues:y.YValues},ft=ej.EjSvgRender.utils._getPoint(kt,u);s="M "+(ut.X+h)+" "+(ut.Y+c)+" L "+(ft.X+h)+" "+(ft.Y+c)+" ";ct={point1:ut,point2:ft};this._drawHiloPath(u,w,b,s,o,ct);s=""}k=ej.EjSvgRender.utils._getPoint(nt,u);d=ej.EjSvgRender.utils._getPoint(tt,u);s="M "+(k.X+h)+" "+(k.Y+c)+" L "+(d.X+h)+" "+(d.Y+c)+" ";lt={point1:k,point2:d};this._drawHiloPath(u,w,b,s,o,lt)}this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},hiloTypes:!0});ej.seriesTypes.hiloopenclose=ej.ejhiloopencloseSeries;ej.ejCandleSeries=t(ej.EjSeriesRender,{draw:function(t,i,r){var ft,f,y,b,c,k,v,nt,lt,vt,ut,yt;this.chartObj=t;i._animationType="hilo";ft=this.chartObj.model.requireInvertedAxes;f=i;f.points=ej.DataManager(f.points,ej.Query().sortBy("xValue")).executeLocal();var et=this._isVisiblePoints(f),h=this.getSideBySideInfo(f,r),u=null,l=this.chartObj.model.palette,a=n.inArray(f,this.chartObj.model._visibleSeries),ot=ej.EjSvgRender.utils._getTransform(f.xAxis,f.yAxis,ft),pt={id:this.chartObj.svgObject.id+"_SeriesGroup_"+a,transform:"translate("+ot.x+","+ot.y+")"};for(this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(pt),b=1,c=0;c0?l[a]:"#339933":f.bearFillColor):(o={xValue:u.xValue,YValues:[u.YValues[3]]},s={xValue:u.xValue,YValues:[u.YValues[2]]},f.bullFillColor=y=ej.util.isNullOrUndefined(f.bullFillColor)?l&&l.length>0?l[a]:"#E51400":f.bullFillColor);v=this.chartObj.setStyle(this,f,a,k,y);nt=this.chartObj.setHiloStyle(f,k,a,y);u.style&&u.style.interior?y=jQuery.type(u.style.interior)=="array"?u.style.interior[0]:u.style.interior:u._hiloFill=nt;var tt=ej.EjSvgRender.utils._getPoint(d,f),it=ej.EjSvgRender.utils._getPoint({xValue:o.xValue+h.Median,YValues:[o.YValues[0]]},f),ht=ej.EjSvgRender.utils._getPoint({xValue:s.xValue+h.Median,YValues:[s.YValues[0]]},f),ct=ej.EjSvgRender.utils._getPoint(g,f),p=this.chartObj.canvasX,w=this.chartObj.canvasY;st="M "+(tt.X+p)+" "+(tt.Y+w)+" L "+(it.X+p)+" "+(it.Y+w)+" M "+(ht.X+p)+" "+(ht.Y+w)+" L "+(ct.X+p)+" "+(ct.Y+w)+" ";lt={point1:tt,point2:it};this._drawHiloPath(f,v,nt,st,c,lt);var wt={xValue:s.xValue+h.Start,YValues:s.YValues},rt=ej.EjSvgRender.utils._getPoint(wt,f),bt={xValue:o.xValue+h.End,YValues:o.YValues},at=ej.EjSvgRender.utils._getPoint(bt,f),e=ej.EjSvgRender.utils._correctRect(rt.X,rt.Y,at.X,at.Y);o.YValues[0]==s.YValues[0]&&(e.Y=rt.Y-b/2,e.Height=b);vt={id:this.chartObj.svgObject.id+"_Series"+a+"_Point"+c,x:e.X+this.chartObj.canvasX,y:e.Y+this.chartObj.canvasY,width:e.Width,height:e.Height,fill:v.interior,"stroke-width":v.borderWidth,"stroke-dasharray":v.dashArray,stroke:v.borderColor};this.chartObj.svgRenderer.drawRect(vt,this.gSeriesGroupEle);ut=ej.EjSvgRender.utils._getSvgXY(e.X,e.Y,f,this.chartObj);yt={X:ut.X,Y:ut.Y,Width:e.Width,Height:e.Height};ej.EjSvgRender.utils._addRegion(this.chartObj,yt,f,u,c)}this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},hiloTypes:!0});ej.seriesTypes.candle=ej.ejCandleSeries;ej.ejPieOfPieSeries=t(ej.EjSeriesRender,{draw:function(n,t){this.chartObj=n;var i=new ej.seriesTypes.pie;i.draw(n,t)},chartAreaType:"None"});ej.seriesTypes.pieofpie=ej.ejPieOfPieSeries;ej.ejPieSeries=t(ej.EjSeriesRender,{draw:function(t,i){var l,b,nt,tt,v,it,rt,ut,ft,h,f,c,ot,p,st,u,ht,ct,w;this.chartObj=t;var r=i,k=[],d=i.type.toLowerCase(),o=i.collectionIndex,lt=o==0?r.pieCoefficient:r.pieOfPieCoefficient,at=this.chartObj.model.enableCanvasRendering,g=this._calculateVisiblePoints(i,this.chartObj).visiblePoints,a=this.calculatingSliceAngle(r),u=n.inArray(r,this.chartObj.model._visibleSeries),vt=this.chartObj.model._visibleSeries.length,s=this.chartObj.model._visibleSeries[u];if(s._pieCoefficient=s.pieCoefficient,this.chartObj.model.circularRadius.length>1){for(l=u;ej.util.isNullOrUndefined(s.zOrder)?l=0;ej.util.isNullOrUndefined(s.zOrder)?l++:l--)if(!ej.util.isNullOrUndefined(this.chartObj.model.circularRadius[l])){this.chartObj.model.circularRadius[u]=this.chartObj.model.circularRadius[l]*s._pieCoefficient;break}}else d=="pieofpie"&&s.splitMode!=""?this.chartObj.model.circularRadius[o]=.25*lt*Math.min(a.width,a.height):this.chartObj.model.circularRadius[u]=.5*s._pieCoefficient*Math.min(a.width,a.height);if(b=Math.min(a.width,a.height),b<0)return b;for(nt=Math.abs(r.endAngle-r.startAngle),nt<270&&this.pieDoughnutCenter(r),tt={id:this.chartObj.svgObject.id+"_SeriesGroup_"+u},this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(tt),v=r.enableAnimation&&!r._animatedSeries?"hidden":"visible",it={id:this.chartObj.svgObject.id+"_TextGroup_"+u,visibility:v},this.chartObj.gSeriesTextEle||(this.chartObj.gSeriesTextEle=[]),this.chartObj.gSeriesTextEle[u]=o==1?this.chartObj.gSeriesTextEle[0]:this.chartObj.svgRenderer.createGroup(it),rt={id:this.chartObj.svgObject.id+"_symbolGroup_"+u,visibility:v},this.chartObj.gSymbolGroupEle||(this.chartObj.gSymbolGroupEle=[]),this.chartObj.gSymbolGroupEle[u]=this.chartObj.svgRenderer.createGroup(rt),ut={id:this.chartObj.svgObject.id+"_connectorGroup_"+u,visibility:v},this.chartObj.gConnectorEle||(this.chartObj.gConnectorEle=[]),this.chartObj.gConnectorEle[u]=this.chartObj.svgRenderer.createGroup(ut),ft={id:this.chartObj.svgObject.id+"_DataLabel_"+u,visibility:v},this.chartObj.gDataLabelEle||(this.chartObj.gDataLabelEle=[]),this.chartObj.gDataLabelEle[u]=o==1?this.chartObj.gDataLabelEle[0]:this.chartObj.svgRenderer.createGroup(ft),h=0;h0&&s.pieCollections[1].length==0&&(ht=this._drawEmptyPieOfPie(this.chartObj),this.chartObj.svgRenderer.drawPath(ht,this.gSeriesGroupEle));ct={Radius:this.chartObj.model.circularRadius[u],CenterX:this.chartObj.model.circleCenterX[u],CenterY:this.chartObj.model.circleCenterY[u]};w={Series:r,SeriesData:ct,Region:k,SeriesIndex:n.inArray(r,this.chartObj.model._visibleSeries)};this.chartObj.model.chartRegions.push(w);this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},chartAreaType:"None"});ej.seriesTypes.pie=ej.ejPieSeries;ej.ejDoughnutSeries=t(ej.EjSeriesRender,{draw:function(t,i){var h,p,d,l,g,nt,tt,it,c,e,o,s,et,a,ot,st,y;this.chartObj=t;var u=i,k=[],ht=this._calculateVisiblePoints(i).visiblePoints,v=this.calculatingSliceAngle(u),ct=this.chartObj.model.enableCanvasRendering,lt=ht.length,r=n.inArray(u,this.chartObj.model._visibleSeries),pt=this.chartObj.model._visibleSeries.length,pt=this.chartObj.model._visibleSeries.length,f=this.chartObj.model._visibleSeries[r];if(f._doughnutSize=f.doughnutSize,f._doughnutCoefficient=f.doughnutCoefficient,this.chartObj.model.circularRadius.length>1){for(h=r;ej.util.isNullOrUndefined(f.zOrder)?h=0;ej.util.isNullOrUndefined(f.zOrder)?h++:h--)if(!ej.util.isNullOrUndefined(this.chartObj.model.circularRadius[h])){this.chartObj.model.circularRadius[r]=this.chartObj.model.circularRadius[h]*f._doughnutSize;break}}else this.chartObj.model.circularRadius[r]=.5*f._doughnutSize*Math.min(v.width,v.height);if(p=Math.min(v.width,v.height),p<0)return p;d=Math.abs(u.endAngle-u.startAngle);d<270&&this.pieDoughnutCenter(u);this.chartObj.model.innerRadius[r]=f._doughnutCoefficient*this.chartObj.model.circularRadius[r];var wt=ej.util.isNullOrUndefined(this.chartObj.model.roundingPlaces)?2:this.chartObj.model.roundingPlaces,r=n.inArray(u,this.chartObj.model._visibleSeries),at={id:this.chartObj.svgObject.id+"_SeriesGroup_"+r};if(this.gSeriesGroupEle=this.chartObj.svgRenderer.createGroup(at),l=u.enableAnimation&&!u._animatedSeries?"hidden":"visible",g={id:this.chartObj.svgObject.id+"_TextGroup_"+r,visibility:l},this.chartObj.gSeriesTextEle||(this.chartObj.gSeriesTextEle=[]),this.chartObj.gSeriesTextEle[r]=this.chartObj.svgRenderer.createGroup(g),nt={id:this.chartObj.svgObject.id+"_symbolGroup_"+r,visibility:l},this.chartObj.gSymbolGroupEle||(this.chartObj.gSymbolGroupEle=[]),this.chartObj.gSymbolGroupEle[r]=this.chartObj.svgRenderer.createGroup(nt),tt={id:this.chartObj.svgObject.id+"_connectorGroup_"+r,visibility:l},this.chartObj.gConnectorEle||(this.chartObj.gConnectorEle=[]),this.chartObj.gConnectorEle[r]=this.chartObj.svgRenderer.createGroup(tt),it={id:this.chartObj.svgObject.id+"_DataLabel_"+r,visibility:l},this.chartObj.gDataLabelEle||(this.chartObj.gDataLabelEle=[]),this.chartObj.gDataLabelEle[r]=this.chartObj.svgRenderer.createGroup(it),u._doughnutSize>0&&f._doughnutCoefficient>=0&&u._doughnutSize<=1&&f._doughnutCoefficient<=1)for(c=0;c=0?n.gapRatio<=1?n.gapRatio:1:0,o=1/(i.sumofYValues*(1+r/(1-r))),e=n._visiblePoints.length;for(t=0;t=0?n.gapRatio<=1?n.gapRatio:1:0,s=l/(r-1),h=this.getSurfaceHeight(0,u.sumofYValues);for(t=0;t=0)return e=Math.sqrt(f),r=(-t-e)/(2*n),u=(-t+e)/(2*n),Math.max(r,u)}else if(t!=0)return r=-i/t,u=-i/t,Math.max(r,u);return!1},chartAreaType:"None"});ej.seriesTypes.pyramid=ej.ejPyramidSeries;ej.ejFunnelSeries=t(ej.EjSeriesRender,{draw:function(t,i){var st,gt,l,a,h,ni,ti,ii,ri,ht,rt,e,lt,c,f,y,ut;this.chartObj=t;var r=t.model,at=r.legend,v=at.position.toLowerCase(),g=r.LegendActualBounds,s,vt=this,u=i,p=this._calculateVisiblePoints(u).visiblePoints,w=p.length,yt=[],nt=u.marker,tt=at.border.width,ft=[],it=0,b=t.model.title.text==""?"":r.title,k=t.model.title.subTitle.text==""?"":r.title.subTitle,pt=r.border.width,wt=b.text!=""&&b.visible&&b.enableTrim?!0:!1,bt=k.text!=""&&k.visible&&k.enableTrim?!0:!1,et=r.title.text&&r.title.visible?ej.EjSvgRender.utils._measureText(r.title.text,n(this.svgObject).width()-r.margin.left-r.margin.right,r.title.font):0,ot=r.title.subTitle.text&&r.title.subTitle.visible?ej.EjSvgRender.utils._measureText(r.title.subTitle.text,n(this.svgObject).width()-r.margin.left-r.margin.right,r.title.subTitle.font):0,kt=t.model.title.text==""||!t.model.title.visible?0:wt&&b.textOverflow=="wrap"?et.height*t.model.titleWrapTextCollection.length:wt&&b.textOverflow=="wrapandtrim"?et.height*t.model.titleWrapTextCollection.length:et.height,dt=t.model.title.subTitle.text==""||!t.model.title.subTitle.visible?0:bt&&k.textOverflow=="wrap"?ot.height*t.model.subTitleWrapTextCollection.length:bt&&k.textOverflow=="wrapandtrim"?ot.height*t.model.subTitleWrapTextCollection.length:ot.height,d=r.margin.left+r.elementSpacing+r.elementSpacing+r.margin.right+pt*2+(v==="right"||v==="left"?g.Width+2*tt:0),ui=(r.title.text&&r.title.visible?r._titleLocation.Y+kt+dt:r.elementSpacing)+r.margin.top+pt*2+r.elementSpacing+r.elementSpacing+(v==="top"||v==="bottom"?g.Height+2*tt+r.elementSpacing:0);if(nt.visible&&nt.shape!="none"&&u.labelPosition=="outside"&&(d=d+(nt.margin.left+nt.margin.right)),r.chartRegions=[],r.sumofYValues=0,u.labelPosition.toLowerCase()==="outside"){for(e=0;e=0?u.gapRatio<=1?u.gapRatio:1:0,ei=1/(rt.sumofYValues*(1+ct/(1-ct))),oi=ct/w;for(e=w-1;e>=0;e--)(u._visiblePoints[e].visible||u._visiblePoints[e].gapMode)&&(lt=ei*u._visiblePoints[e].YValues[0],rt.funnelData[e]={CurrY:ht,Height:lt},ht+=lt+oi);for(h=0;hr-o||r==o?p:p+(c-p)*((r-o-a)/(r-o)),d=c/2-y/2,it=d+y,g>=r-o?(rt=d=ut=c/2-p/2,lt=it=at=c/2+p/2):a>r-o&&(ut=d=c/2-y/2,at=it=ut+y,ft=r-o),v={x:s+l+rt,y:g},u={x:s+l+lt,y:g},b={x:s+l+it,y:a},nt={x:s+l+d,y:a},f={x:s+l+it,y:a},k={x:s+l+d,y:a},ft&&(f={x:s+l+at,y:ft},k={x:s+l+ut,y:ft}),kt="M "+v.x+" "+v.y+" L "+u.x+" "+u.y+" L "+f.x+" "+f.y+" L "+b.x+" "+b.y+" L "+nt.x+" "+nt.y+" L "+k.x+" "+k.y+" z",dt=[{x:v.x,y:v.y},{x:u.x,y:u.y},{x:f.x,y:f.y},{x:b.x,y:b.y},{x:nt.x,y:nt.y},{x:k.x,y:k.y}],(tt&&tt.dataLabel&&tt.dataLabel.visible||(!tt||!tt.dataLabel)&&et.dataLabel.visible)&&(h,w,ni=(u.x+f.x)/2,ti=(u.y+f.y)/2,t.labelPosition.toLowerCase()==="outside"?(h=(u.x+f.x)/2,w=(u.y+f.y)/2,wt=(bt=="left"||bt=="right"?e.LegendActualBounds.Width:0)+ht+e.margin.left,ct=ej.util.isNullOrUndefined(et.dataLabel.connectorLine.height)?t._enableSmartLabels?n(this.chartObj.svgObject).width()-(wt+h+s+2*ht):n(this.chartObj.svgObject).width()-(h+e.textSize+ht):et.dataLabel.connectorLine.height,vt=this.getXCordinate(h,ct,0),yt=this.getYCordinate(w,ct,0),gt="M "+h+" "+w+" L "+vt+" "+yt,h=vt,w=yt):(h=(v.x+u.x)/2,w=(v.y+b.y)/2)),{Direction:kt,PositionX:h,PositionY:w,Connector:gt,Line1:v,Line2:u,Line3:f,Line4:b,Line5:nt,Line6:k,startX:ni,startY:ti,Polygon:dt}},chartAreaType:"None"});ej.seriesTypes.funnel=ej.ejFunnelSeries;ej.ejPolarSeries=t(ej.EjSeriesRender,{draw:function(n,t){var r,o,s,e,u;this.chartObj=n;var h=this,i=t,c=this._isVisiblePoints(i),f=this.setLineSeriesStyle(i);if(i.drawType.toLowerCase()=="column"||i.drawType.toLowerCase()=="rangecolumn"){r=i.xAxis.visibleRange;r.interval=1;o=i.xAxis._valueType=="category"?r.max:r.max-1;this.chartObj.model.sumofYValues=0;s=r.interval;e=r.min;do this.chartObj.model.sumofYValues+=r.interval,e+=r.interval;while(e<=o)}u=this._calculatePolarAxesSegment(i);i.drawType.toLowerCase()=="area"?this.drawAreaPath(i,f,u):i.drawType.toLowerCase()=="line"?this._drawLinePath(i,f,u):i.drawType.toLowerCase()=="spline"&&this._drawLinePath(i,f,u);this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},chartAreaType:"PolarAxes"});ej.seriesTypes.polar=ej.ejPolarSeries;ej.ejRadarSeries=t(ej.EjSeriesRender,{draw:function(n,t){var r,o,s,e,u;this.chartObj=n;var h=this,i=t,c=this._isVisiblePoints(i),f=this.setLineSeriesStyle(i);if(i.drawType.toLowerCase()=="column"||i.drawType.toLowerCase()=="rangecolumn"){r=i.xAxis.visibleRange;r.interval=1;o=i.xAxis._valueType=="category"?r.max:r.max-1;this.chartObj.model.sumofYValues=0;s=r.interval;e=r.min;do this.chartObj.model.sumofYValues+=r.interval,e+=r.interval;while(e<=o)}u=this._calculatePolarAxesSegment(i);i.drawType.toLowerCase()=="area"?this.drawAreaPath(i,f,u):i.drawType.toLowerCase()=="line"?this._drawLinePath(i,f,u):i.drawType.toLowerCase()=="spline"&&this._drawLinePath(i,f,u);this.chartObj.svgRenderer.append(this.gSeriesGroupEle,this.chartObj.gSeriesEle)},doAnimation:function(t,i){var r=i.chartObj,o=t.drawType.toLowerCase();t.regionAdded=!0;r.model._radius=r.model.Radius||r.model._radius;r.model.Radius=0;var e=i,u=n.inArray(t,r.model._visibleSeries),f=n(r.gSeriesEle).find("#"+e.gSeriesGroupEle.id)[0].childNodes[0];n(f).animate({Radius:r.model._radius},{duration:1200,queue:!1,step:function(i){if(ej.util.isNullOrUndefined(r.model))n(f).stop(!0,!0);else{r.model.Radius=i;var u=e._calculatePolarAxesSegment(t);t.drawType.toLowerCase()!="column"&&t.drawType.toLowerCase()!="rangecolumn"&&o!="scatter"&&r.svgRenderer._setAttr(n(f),{d:u});r.model.Radius=r.model._radius}},complete:function(){if(!ej.util.isNullOrUndefined(r.model)){t.regionAdded=!1;r.svgRenderer._setAttr(n(r.gSeriesEle).find("#"+r.svgObject.id+"_TextGroup_"+u),{visibility:"visible"});r.svgRenderer._setAttr(n(r.gSeriesEle).find("#"+r.svgObject.id+"_symbolGroup_"+u),{visibility:"visible"});r.svgRenderer._setAttr(n(r.gSeriesEle).find("#"+r.svgObject.id+"_DataLabel_"+u),{visibility:"visible"});r.model.AnimationComplete=!0;var i=n.extend({},ej.EjSvgRender.commonChartEventArgs);i.data={series:t};r._trigger("animationComplete",i)}}})},chartAreaType:"PolarAxes"});ej.seriesTypes.radar=ej.ejRadarSeries}(jQuery);ej.ejChart={},function($){Object.keys||(Object.keys=function(){"use strict";var t=Object.prototype.hasOwnProperty,i=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(u){if(typeof u=="function"||typeof u=="object"&&u!==null){var e=[],o,f;for(o in u)t.call(u,o)&&e.push(o);if(i)for(f=0;f0?$.each(t,function(t,i){var e=new RegExp("#"+n+"."+t+"#","gm"),r,u,f;if(count++,arabic.test(str)&&count==2){for(r=str.split(" "),u=0;u=0;)substr=str.substring(str.indexOf("ej."),str.indexOf(")")+1),str=str.replace(substr,eval(substr));return str};String.prototype.capitalizeFirstString=function(){return this.charAt(0).toUpperCase()+this.slice(1)};var Gradient=function(n){this._gradientStop=[];for(var t=0;t<\/div>").attr("id","legend_"+this._id).css("height","0px");this.scrollerContainer=$("
<\/div>").attr("id","legend_Scroller"+this._id).css("height","0px");this.templateContainer=$("
<\/div>").attr("id",this._id+"_container_svg_TrackToolTip").css("height","0px");this.chartContainer=$("
<\/div>").css("position","relative").attr("id","chartContainer_"+this._id);this.axisScroll=$("
<\/div>").attr("id","axisScrollbar_"+this._id).css("height","0px");this.svgRenderer.append(this.legendSvgContainer,this.scrollerContainer);$(this.scrollerContainer).appendTo(this.legendContainer);$(this.axisScroll).appendTo(this.chartContainer);$(this.legendContainer).appendTo(this.chartContainer);$(this.templateContainer).appendTo(this.chartContainer);$(this.chartContainer).appendTo(this.element)},setSvgSize:function(n){var t=n,e=$(t.element).height(),i=450,f=ej.isTouchDevice()?250:600,o=$(t.element).width(),s=$(t.chartContainer).height(),r,u;t.model.size.width?(r=t.model.size.width,f=typeof r=="string"&&r.indexOf("%")!=-1?o/100*parseInt(r):parseInt(r)):o>0&&(f=o);$(t.svgObject).width(f);t.model.size.height?(u=t.model.size.height,i=typeof u=="string"&&u.indexOf("%")!=-1?this.vmlRendering?i:e/100*parseInt(u):parseInt(u)):e>0?i=e:$(t.svgObject).css("display","block");$(t.svgObject).height(i);$("#"+t._id).css("overflow","hidden");t.svgObject.setAttribute("width",f);t.svgObject.setAttribute("height",i)},compareExtend:function(n,t,i){var f,e,r,u;if(typeof i=="object"&&i!==null)for(f=Object.keys(i),e=f.length,u=0;u=0||i.indexOf("lime")>=0||i.indexOf("saffron")>=0)&&i.indexOf("gradient")==-1&&i.indexOf("dark")==-1?n[i]=$.extend(!0,{},n.flatlight,n[i]):(i.indexOf("azuredark")>=0||i.indexOf("limedark")>=0||i.indexOf("saffrondark"))>=0&&i.indexOf("gradient")==-1?n[i]=$.extend(!0,{},n.flatdark,n[i]):(i.indexOf("azure")>=0||i.indexOf("lime")>=0||i.indexOf("saffron")>=0)&&i.indexOf("gradient")>=0&&i.indexOf("dark")==-1?n[i]=$.extend(!0,{},n.gradientlight,n[i]):(i.indexOf("azuredark")>=0||i.indexOf("limedark")>=0||i.indexOf("saffrondark")>=0)&&i.indexOf("gradient")>=0?n[i]=$.extend(!0,{},n.gradientdark,n[i]):i.indexOf("high")>=0?n[i]=$.extend(!0,{},n.highcontrast01,n[i]):i.indexOf("material")>=0||i.indexOf("office")>=0?n[i]=$.extend(!0,{},n.material,n[i]):n[i]||(i="flatlight");this.model=this.model._themeChanged?ej.copyObject({},this.model,n[i]):this.compareExtend({},this.model,n[i]);this.model.background=ej.util.isNullOrUndefined(this.model.background)?n[i].background:this.model.background},_drawBackInterior:function(){if(this.model.backInterior&&this.model.backInterior._gradientStop){var n={id:this.svgObject.id+"_backGradient",x1:"0%",y1:"0%",x2:"0%",y2:$(this.svgObject).height()+"%"};this.svgRenderer.drawGradient(n,this.model.backInterior._gradientStop)}},_drawBackImage:function(){var n={height:$(this.svgObject).height(),width:$(this.svgObject).width(),href:this.model.backGroundImageUrl,x:0,y:0,id:this.svgObject.id+"_backImage",visibility:"visible",preserveAspectRatio:"none"};this.svgRenderer.drawImage(n,this.svgObject)},_getDataType:function(n){var t=typeof n;return t==="number"||t==="string"?t:jQuery.type(n)=="date"?"date":n==null?null:!1},addedXYValues:function(n){var i,nt,t,s;n=n?n:!1;var e=this.model,f=e.series,k=f[0].type.toLowerCase(),p,a,u,l,i,h=ej.util.isNullOrUndefined,v=e.primaryXAxis.valueType,w,d=!1,o,r,y,g,b,t,c;if(c=e.AreaType=ej.seriesTypes[k].prototype.chartAreaType,c!="cartesianAxes"&&c!="None"&&(c=e.AreaType="polaraxes",e.isPolar=k=="polar"),c=e.AreaType=e.AreaType.toLowerCase(),!n){for(u=0;u")!=-1&&(t[s].x=t[s].x.replace(/(
)+/g,"
"));else for(t=f[u].points,f[u].points=null,f[u]=$.extend(!0,{},e.commonSeriesOptions,f[u]),f[u].points=t,r=f[u],v=="datetime"&&(d=!0),p=t.length,i=0;i")!=-1&&(t[i].x=t[i].x.replace(/(
)+/g,"
")),t[i].xValue=t[i].x,w||(o=t[i].x,h(o)||(r._xAxisValueType=this._getDataType(o),w=!0)),r._hiloTypes||r.drawType.toLowerCase()=="rangecolumn"?(h(t[i].high)||(t[i].YValues[0]=t[i].high,t[i].y=t[i].high),h(t[i].low)||(t[i].YValues[1]=t[i].low),h(t[i].open)||(t[i].YValues[2]=t[i].open),h(t[i].close)||(t[i].YValues[3]=t[i].close)):(t[i].YValues[0]=r.points[i].y,y=y&&!h(t[i].size),y&&(t[i].YValues[1]=t[i].size));if(r.type.toLowerCase()=="waterfall")this.calculateWaterfallSeriesPoints(r.points);else if(r._previousType&&r._previousType.toLowerCase()=="waterfall")for(a=r.points,l=0;l0||e.y>0&&!e.showIntermediateSum&&!e.showTotalSum)&&(s=t.positiveFill?t.positiveFill:u):s=c?c:u,a=s?s:this.model.seriesColors[i],v=n.chartObj.model.requireInvertedAxes?this.svgRenderer.createGradientElement(n.getSeriesName(t)+"_"+i+r,a,0,0,100,0,n.gSeriesGroupEle):this.svgRenderer.createGradientElement(n.getSeriesName(t)+"_"+i+r,a,0,0,0,100,n.gSeriesGroupEle)):(h=this.model.pointColors,s=e.fill?e.fill:jQuery.type(h[r])=="array"?h[r][0].color:h[r],d=this.svgRenderer.createGradientElement(n.getSeriesName(t)+r,s,0,0,0,$(n.svgObject).height()||parseFloat(this.model.size.height),n.chartObj.gSeriesEle)),y=o&&o.color?o.color:l.color,p=o&&!ej.util.isNullOrUndefined(o.width)?o.width:l.width,k=e.opacity?e.opacity:t.opacity,b=e.width?e.width:t.width,w=o&&o.dashArray?o.dashArray:l.dashArray,{interior:v?v:d,borderColor:y,borderWidth:p,width:b,opacity:k,dashArray:w}},colorNameToHex:function(n){var t=n,i={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c","indigo ":"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return Object.prototype.toString.call(t)=="[object Array]"?t:typeof i[t.toLowerCase()]!="undefined"?i[t.toLowerCase()]:t},_getLocalizedLabels:function(){return ej.getLocalizedConstants(this.sfType,this.model.locale)},_setCulture:function(n){this.culture=ej.preferredCulture(n)},draw:function(n){var e,tt,kt,ot,st,u,v,y,it,h,o,d,w,ti,r,l,p,oi,rt,et,ht,ct,lt,g,at,si,ut,yt,a,f,nt,s,c,li,pt,b,wt,ai,bt,t,i;for(this.removeMultiRect(),e={},e.axes={},this._drawBackInterior(),this.model.chartRegions=[],this.model.outsideDataRegionPoints=[],this.model.regionCount=null,this.model.circularRadius=[],this.model.circleCenterX=[],this.model.circleCenterY=[],this.model.innerRadius=[],this.model.bounds=[],this.accDataLabelRegion=[],this.model.rightsidebounds=[],this.model.leftsidebounds=[],this.model.excludeDataUpdate=n,this.model.yAxisLabelRegions=[],this.model.xAxisLabelRegions=[],this.model.axisMultiLevelLabelRegions=[],this.model.multiLevelLabelRegions=[],this.model.minhightwidth=!1,this.model._isPieOfPie=!1,n||(this.model._visibleSeries=[]),this.model.stackedValue={},this.model._locale=this.model.locale||"en-US",this._setCulture(this.model._locale),this._localizedLabels=this._getLocalizedLabels(),tt=this.model.series.length,this.model._sideBySideSeriesPlacement=ej.util.isNullOrUndefined(this.model.sideBySideSeriesPlacement)?this.model.enable3D?!1:!0:this.model.sideBySideSeriesPlacement,t=0;t0&&this.addedXYValues(n),this.model.AreaType=this.model.AreaType||"cartesianaxes",this._isEjScroller(),ot=$.extend({},ej.EjSvgRender.commonChartEventArgs),ot.data={},this._trigger("preRender",ot),this.gLegendEle=this.svgRenderer.createGroup({id:this.svgObject.id+"_Legend"}),this.gTitleEle=this.svgRenderer.createGroup({id:this.svgObject.id+"_ChartTitle",cursor:"default"}),this.gSubTitleEle=this.svgRenderer.createGroup({id:this.svgObject.id+"_ChartsubTitle",cursor:"default"}),this._createAxisLabelAndRange(),t=0;t0)u._hiloTypes=!0,this._processJsonData(u.dataSource,u),u._points=u.points;else if(u.points.length>0)for(t=0;t0&&(p=u.type.toLowerCase(),y=new ej.indicatorTypes[p],y.calculateSegment(u,this));for(l=0;l0||this.model._hasSeriesPoints;r.xAxisName||(r._xAxisName=k.model._axes[0].name);r.yAxisName||(r._yAxisName=k.model._axes[1].name);r._xAxisName=r._xAxisName?r._xAxisName:r.xAxisName?r.xAxisName:k.model._axes[0].name;r._yAxisName=r._yAxisName?r._yAxisName:r.yAxisName?r.yAxisName:k.model._axes[1].name;var ii=r._xAxisName.toLowerCase(),ri=r._yAxisName.toLowerCase(),ui=i.name.toLowerCase();if((ii||ri)&&(ii==ui||ri==ui)){if((w=="horizontal"||r.type.toLowerCase().indexOf("bar")!=-1&&w=="vertical")&&i.valueType&&i.valueType.toLowerCase()=="datetime")for(l=0;l0?!0:!1,t=0;t-1||r.push(n[t]),i.push(n[t].seriesIndex)):u=="cluster"?(i.indexOf(n[t].pointIndex)>-1||r.push(n[t]),i.push(n[t].pointIndex)):(n[t]in i||r.push(n[t]),i.push(n[t]));return r},_setZoomProperties:function(){for(var n,t,i,r,u=0;u<\/div>").attr("id","annotation_group_"+lt);pt.css({position:"absolute",left:"0px",top:"0px"});ii=n.content;ri=$("#"+ii);ri.get(0).tagName=="SCRIPT"&&(ri=$($("#"+ii)[0].innerHTML));ai=ri.clone();bi="annotation_"+lt+"_"+ii+"_"+t;$(ai).attr("id",bi);o=$(ai);o.css({position:"absolute","z-index":2e3});var ot=n.region.toLowerCase(),kt=n.coordinateUnit.toLowerCase(),s=typeof n.x=="string"||typeof n.x=="object"?Date.parse(n.x):n.x,it=n.y,ui=n.horizontalAlignment.toLowerCase(),fi=n.verticalAlignment.toLowerCase();if(kt=="pixels")ot=="series"?ft+a+pi>s+a&&et+y+nr>it+y&&(i=s+a,r=it+y):ot=="chart"&&$(this.svgObject).width()>s&&$(this.svgObject).height()>it&&(i=s,r=it),o.css({left:i,top:r}),d=!0;else if(kt=="points")if(st={x:s,y:it},this.model.AreaType=="polaraxes")l=this.model._axes[0],nt=this.model._axes[1],s>=l.visibleRange.min&&s<=l.visibleRange.max&&it>=nt.visibleRange.min&&it<=nt.visibleRange.max&&(tt=this.TransformToVisibleAnnotation(l,nt,s,it,this),o.css({left:tt.X,top:tt.Y}),d=!0);else if(w=="pyramid"||w=="funnel")for(g=0;g=s&&(this.model.requireInvertedAxes?(st.x=st.y+(st.y=st.x,0),tt=this._getAnnotationPoint(st,nt,l),o.css({left:tt.X+a,top:tt.Y+l.y})):(tt=this._getAnnotationPoint(st,l,nt),o.css({left:tt.X+a,top:tt.Y+nt.y})),d=!0)}else{if(o.css("display","block").appendTo($(pt)),$(pt).appendTo("#chartContainer_"+lt),u=o.outerWidth(),f=o.outerHeight(),ot=="chart"){switch(ui){case"middle":i=$(this.svgObject).width()/2-u/2;break;case"left":i=0;break;case"right":i=$(this.svgObject).width()-u}switch(fi){case"middle":r=$(this.svgObject).height()/2-f/2;break;case"top":r=0;break;case"bottom":r=$(this.svgObject).height()-f}}else if(w=="pie"||w=="doughnut"||w=="pieofpie"){i=vt;r=yt;switch(ui){case"middle":i=vt-u/2;break;case"left":i=vt-at;break;case"right":i=vt+at-u}switch(fi){case"middle":r=yt-f/2;break;case"top":r=yt-at;break;case"bottom":r=yt+at}}else{switch(ui){case"middle":i=a+ft/2-u/2;break;case"left":i=a;break;case"right":i=a+ft-u}switch(fi){case"middle":r=y+et/2-f/2;break;case"top":r=y;break;case"bottom":r=y+et-f}}(w=="pyramid"||w=="funnel")&&(i-=pi);o.css({left:i,top:r})}if(i=parseFloat(o.css("left")),r=parseFloat(o.css("top")),kt!="none"&&d){o.css("display","block").appendTo($(pt));$(pt).appendTo("#chartContainer_"+lt);u=o.outerWidth();f=o.outerHeight();switch(ui){case"middle":i-=u/2;break;case"left":i-=u}switch(fi){case"middle":r-=f/2;break;case"top":r-=f}}dt=n.margin;i=i+dt.left-dt.right;r=r+dt.top-dt.bottom;rt=$.extend({},ej.EjSvgRender.commonChartEventArgs);rt.data={content:o.html(),location:{x:i,y:r},opacity:n.opacity,angle:n.angle};this._trigger("annotationRendering",rt);o.html(rt.data.content);o.css({left:rt.data.location.x,top:rt.data.location.y,opacity:rt.data.opacity});b=rt.data.angle;b&&o.css({"-ms-transform":"rotate("+b+"deg)","-webkit-transform":"rotate("+b+"deg)","-moz-transform":"rotate("+b+"deg)","-o-transform":"rotate("+b+"deg)","-transform":"rotate("+b+"deg)"});var wt=o.attr("id"),k=e=v=h=0,hi=$("#"+this._id).width(),ci=$("#"+this._id).height();d&&b==0&&(ot=="series"||kt=="points")?(ft+a0?Math.log(i,n.logBase):i;r=n._valueType=="logarithmic"&&r>0?Math.log(r,t.logBase):r;var f=u.model.Radius*ej.EjSvgRender.utils._valueToCoefficient(t,r,this),e=ej.EjSvgRender.utils._valueToVector(n,i);return{X:u.model.centerX+f*e.X,Y:u.model.centerY+f*e.Y}},_getAnnotationPoint:function(n,t,i){var o=this.model.requireInvertedAxes,r=n.x,u=n.y,f=t._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(r==0?1:r,t.logBase):r,e=i._valueType=="logarithmic"?ej.EjSvgRender.utils._logBase(u==0?1:u,t.logBase):u;return f=ej.EjSvgRender.utils._getPointXY(f,t.visibleRange,t.isInversed)*t.width,e=(1-ej.EjSvgRender.utils._getPointXY(e,i.visibleRange,i.isInversed))*i.height,n.location={X:f,Y:e},n.location},indicatorRender:function(){var e,i,n,r,o,u,t,s,f,h;for($(this.svgObject).find("#"+this.svgObject.id+"_IndicatorCollection").length>0&&$(this.svgObject).find("#"+this.svgObject.id+"_IndicatorCollection").remove(),e={id:this.svgObject.id+"_IndicatorCollection","clip-path":"url(#"+this.svgObject.id+"_ChartAreaClipRect)"},this.gIndicatorEle=this.svgRenderer.createGroup(e),i=0;i0;i++){for(n=this.model.indicators[i],o=n.animationDuration,u=0;u-1&&n.animationType.toLowerCase()=="smooth")u.animateRect(w,n,f,i,d);else for(t=0;t-1?u.animateStackingRect(o[t],n,f,i,d):u.animateRect(o[t],n,f,i,d);ft=b=it=e/4;break;case"path":w=$(i.gSeriesEle).find("#"+a+"_ClipRect").children();u._doLineAnimation(i,w,e);ft=e/nt;b=e/tt;it=e/pt;break;case"scatter":for(t=0;t0&&n.AnimationComplete&&!this.vmlRendering&&!this.model.enableCanvasRendering){if(r.svgRenderer._setAttr($(r.gSeriesEle).find("#"+r.gSeriesTextEle[i].id),{visibility:"visible"}),r.gSymbolGroupEle&&r.svgRenderer._setAttr($(r.gSeriesEle).find("#"+r.gSymbolGroupEle[i].id),{visibility:"visible"}),n.marker.dataLabel.template)for(f=$(r.element[0].childNodes[0].childNodes),u=0;u0&&this.svgRenderer.append(this.gDataLabelEle[n],this.gSeriesEle),this.gSeriesTextEle[n].childNodes.length>0&&this.svgRenderer.append(this.gSeriesTextEle[n],this.gSeriesEle)));this.vmlRendering||t.visibility!="visible"||this.model.enableCanvasRendering||this.model.enable3D||(this.svgRenderer.append(this.gSeriesEle,this.svgObject),this.svgRenderer.append(this.svgObject,this.element))},_accSeriesDraw:function(n,t,i){var e=this,r=ej.DataManager(this.model._visibleSeries,ej.Query().sortBy("_zOrder")).executeLocal(),o=$.inArray(r[n],this.model._visibleSeries),u,f,s;this.model._visibleSeries[o]=r[n]=$.extend(!0,t,r[n]);u=$.extend({},ej.EjSvgRender.commonChartEventArgs);u.data={series:t};this._trigger("seriesRendering",u);f=new ej.seriesTypes[i.toLowerCase()];s=f.draw(e,t);s||(this.model.minhightwidth=!0,e._animationElements(t,f,o))},_splitSeries:function(n){var t=[],e,i,h,r,w;t[0]=$.extend(!0,[],n._visiblePoints);t[1]=[];for(var f=n,l=parseInt(f.splitValue),s=f.splitMode.toLowerCase(),a=t[0].length,u=0,o=0,v=[],r=0,y=0,p,c;r!=a;)y+=t[0][r].y,r++;if(s=="position"){for(r=a-1;r>=0&&o!=l;r--)u=u+t[0][r].y,t[1][o]=t[0][r],o++,t[0].splice(r,1);t[1].reverse()}else if(s=="value"||s=="percentage")for(i=0;i0&&(v[0]=u,c=f._xAxisValueType,t[0].unshift({_visibility:"visible",visible:!0,text:"Others",x:c=="string"?"Others":u,xValue:c=="string"?f.points.length:u,y:u,YValues:v,fill:this.model.colors[(f.points.length+1)%this.model.colors.length],isFill:!1,actualIndex:f.points.length}));this.isSplitted=!0;f.pieCollections=t},_calculateGapWidth:function(n){var o=0,s=0,r,u,h,c=.1*Math.min($(this.svgObject).width(),$(this.svgObject).width()),t,i,f,e;for(ej.EjSeriesRender.prototype._calculateVisiblePoints(n).visiblePoints,this._splitSeries(n),this.chartObj=this,t=0;t<2;t++)r=t==0?n.pieCoefficient:n.pieOfPieCoefficient,n._visiblePoints=n.pieCollections[t],n.collectionIndex=t,h=n.gapWidth,i=ej.EjSeriesRender.prototype.calculatingSliceAngle(n,this.chartObj),f=i.width0?e:0,n.pieCollections[0].length>0&&n.pieCollections[1].length>0&&n.connectorLine.width>0&&this.drawPieofPieConnectors(i,n),n},seriesRender:function(n,t){var w,vt,st,u,f;if(this.model.allPoints=[],this.model.markerRegion=[],this.model.startX=[],this.model.startY=[],this.model.centerCount=0,this.gTrendlinesGroupEle=null,this.model._seriesIndex=null,this.model._previousSeries=null,!n)for(n={_crossAxisOverlap:!1,axes:{}},u=0;u0&&$(this.svgObject).find("#"+this.svgObject.id+"_SeriesCollection").remove();var k=this,c=this.svgObject,gi={id:c.id+"_SeriesCollection","clip-path":"url(#"+c.id+"_ChartAreaClipRect)"},rt=this.model.enable3D,p=this.model.AreaType,d=this.model.enableCanvasRendering,nr=this.model._axes.length,h=ej.DataManager(this.model._visibleSeries,ej.Query().sortBy("_zOrder")).executeLocal(),g=h.length,u,y,v,ht,ft,l,ut,e,bt,r,i,ct,nt,si=d,o=this.svgRenderer,kt=this.model.m_AreaBounds,dt,gt,hi,et=kt.X,f,a,ci,yt,tt,b,ot,lt,li,ni,ai,vi,yi,it,pi,s,ti,wi,at,ii,pt,ri,bi,ki,ui,wt,vt,di,fi,ei,oi,tr=this.zoomed;for(this.gSeriesEle=o.createGroup(gi),u=0;u0)if(r=h[0],ui=r.type.toLowerCase(),di=r.visibility.toLowerCase(),ui!="pieofpie"||di!="visible"||rt)for(vt=g;vt>0&&p=="none";vt--)ft=vt-1,l=h[vt-1],ut=l.visibility.toLowerCase(),e=l.type.toLowerCase(),ut!=="visible"||rt||e!="pie"&&e!="doughnut"?p!="none"||ut!=="visible"||d||ej.Ej3DChart.prototype.renderSeries(this,l,t):this._accSeriesDraw(ft,l,e);else{for(this.model._isPieOfPie=!0,r=this._calculateGapWidth(r),w=0;w<2;w++)r.collectionIndex=w,r._visiblePoints=r.pieCollections[w],this._accSeriesDraw(0,r,ui);r._visiblePoints=$.merge(r.pieCollections[0],r.pieCollections[1]);this.model.pieGapWidth=null;r.collectionIndex=0}for(st=0;stkt.Width||gt+i.height/2>kt.Height||gt-i.height/2<0||tr&&i.xValue<=fi.min||i.xValue>=fi.max||oi<=ei.min||oi>=ei.max)&&(i.hide=r.marker.dataLabel.showEdgeLabels&&!i.hide?!1:!0);for(u=0;u0:!0,r.visibility=="visible"&&wt)for(yt=r._visiblePoints.length,a=0;a0:!0,r.visibility=="visible"&&wt&&!this.model.enable3D)for(yt=r._visiblePoints.length,a=0;a=0;tt--)r=this.model._visibleSeries[tt],e=r.type.toLowerCase(),(e=="pie"||e=="doughnut")&&this.model.minhightwidth&&this._appendConnectorElements(tt);if(b=this.model._visibleSeries.length,b>0&&e=="pieofpie")this._appendDataLabelElement(0);else for(tt=g-1;tt>=0;tt--)r=this.model._visibleSeries[tt],e=r.type.toLowerCase(),(e=="pie"||e=="doughnut")&&this.model.minhightwidth&&this._appendDataLabelElement(tt)}for(b=this.model._visibleSeries.length,ot=0;ot1&&r.enableAnimation&&!this.vmlRendering&&(!r._animatedTrendline||it._previousType!=it.type)&&(it._previousType=it.type,ai=$(this.svgObject).find("#"+this.svgObject.id+"_TrendGroup_"+u+"_"+y+"_ClipRect").children(),ej.EjSeriesRender.prototype._doLineAnimation(this,ai,wi),r._animatedTrendline=ti-1==u?!0:!1));for(b=this.model._visibleSeries.length,pt=c.id,u=0;u0&&ii.length>0&&ii.insertAfter(at),at.length>0&&ri.length>0&&ri.insertAfter(at);this.model.AnimationComplete=!0;bt=$.extend({},ej.EjSvgRender.commonChartEventArgs);bt.data={series:s};this._trigger("animationComplete",bt);d&&(o.append(c,this.element),this.panning&&$("#"+this._id+"_canvas").css({cursor:"pointer"}));rt&&!d&&(o.append(this.chart3D,c),bi={Width:$(c).width(),Height:$(c).height()},this.graphics.prepareView(this.model.perspectiveAngle,this.model.depth,this.model.rotation,this.model.tilt,bi,this),this.graphics.view(c,this),o.append(c,this.element));o.vmlNamespace&&o.append(this.gSeriesEle,c);p=="polaraxes"&&o.append(this.gPolarAxisEle,c);$(c).find("#"+c.id+"_StriplineOver").length>0&&(ki=$(c).find("#"+c.id+"_StriplineOver").detach(),ki.appendTo(c));this._renderScrollbar();this.legendRender.drawLegend(n);k.model.initSeriesRender=!0},_calculateZoomValue:function(n,t,i,r){var l=this.model,o,s,h,u,f,e=i.scrollbarSettings.range,c=i._valueType.toLowerCase();c=="datetime"?(u=Date.parse(ej.util.isNullOrUndefined(e.min)?n:new Date(e.min)),f=Date.parse(ej.util.isNullOrUndefined(e.max)?t:new Date(e.max))):(u=parseFloat(ej.util.isNullOrUndefined(e.min)?n:e.min),f=parseFloat(ej.util.isNullOrUndefined(e.max)?t:e.max));u=Math.min(u,n);f=Math.max(f,t);o=f-u;r.isRTL?(s=(f-t)/o,h=(t-n)/o):(s=(n-u)/o,h=(t-n)/o);r.scrollRange={min:u,max:f,delta:f-u};r._previousStart=n;r._previousEnd=t;r.zoomPosition=s;r.zoomFactor=h},_renderScrollbar:function(){var r=this.model,k=r.scrollerSize,ut=$("#"+this._id).offset(),nt=$(this.svgObject).offset().left-ut.left,d,e,i,a,o,v,s,h,y,tt=r._axes,ft=tt.length,g,et=r.zooming.enableScrollbar,f,ot=r.AreaType,u,c,p,it,t,l,w,rt,n,b;for(r.scrollObj=r.scrollObj?r.scrollObj:[],n=0;n0)&&et)?(e=i.x+(l=="vertical"?-k+(y?k:0):0)+(nt<=0?0:nt),d=i.y+(l=="horizontal"?i.height+(y?-k:0):0),a=d-(l=="horizontal"?0:i.plotOffset),o=i.plotOffset+(l=="horizontal"?i.width:i.height),t=r.scrollObj,v=f.min!=null||f.max!=null?t[n]?t[n].actualRange.min!=f.min||t[n].actualRange.max!=f.max:!1:t[n]?t[n].actualRange!=u.pointsLength:!1,this.scrollDraw=t[n]?t[n].x!=e||t[n].y!=d||t[n].width!=o:this.scrollDraw,b={orientation:i.orientation,index:n,width:o,x:e,y:a,opposed:y,isRTL:g,parent:this.axisScroll,enableResize:u.canResize},r.isLazyZooming?(p==0||this.scrollDraw||v)&&($("#scrollbar_"+this.axisScroll[0].id+n).remove(),f.min!=null||f.max!=null?(it=t[n]&&t[n].scrollRange?t[n].scrollRange:i.visibleRange,!this.scrollDraw||v?(t[n]={isVirtual:!0,valueType:w,scrollRange:it},t[n].actualRange=$.extend(t[n].actualRange,u.range),$.extend(t[n],b),w=="datetime"?(t[n].startDateTime=new Date(i.visibleRange.min),t[n].endDateTime=new Date(i.visibleRange.max)):(t[n].startValue=i.visibleRange.min,t[n].endValue=i.visibleRange.max),this._calculateZoomValue(i.visibleRange.min,i.visibleRange.max,i,this.model.scrollObj[n])):(t[n].width=o,t[n].x=e,t[n].y=a)):c>=i.maxPointLength&&(s=i.maxPointLength/c,h=g?1-i.zoomPosition:i.zoomPosition,!this.scrollDraw||v?(t[n]={isVirtual:!0,zoomPosition:h,zoomFactor:s,scrollRange:{min:0,max:c-1,delta:c-1},valueType:"double"},t[n].actualRange=u.pointsLength,$.extend(t[n],b),t[n].startValue=0,t[n].endValue=i.maxPointLength):(t[n].width=o,t[n].x=e,t[n].y=a)),this.model.scrollObj[n]&&(this.scrollbarContainer=new ej.EjSvgScrollbarRender(this.axisScroll,this.model.scrollObj[n]),this.scrollbarContainer._initializeScrollbarVariables(this.model.scrollObj[n]),this.scrollbarContainer._renderScrollbar.call(this,this.model.scrollObj[n]))):u.visible&&(t=r.scrollObj,(p==0||this.scrollDraw)&&($("#scrollbar_"+this.axisScroll[0].id+n).remove(),t[n]={zoomPosition:h,zoomFactor:s,valueType:w,scrollRange:i.actualRange,isZooming:!0},$.extend(t[n],b),t[n].valueType=="datetime"?(t[n].startDateTime=new Date(t[n].scrollRange.min),t[n].endDateTime=new Date(t[n].scrollRange.max)):(t[n].startValue=t[n].scrollRange.min,t[n].endValue=t[n].scrollRange.max),this.scrollbarContainer=new ej.EjSvgScrollbarRender(this.axisScroll,this.model.scrollObj[n]),this.scrollbarContainer._initializeScrollbarVariables(this.model.scrollObj[n]),this.scrollbarContainer._renderScrollbar.call(this,this.model.scrollObj[n])))):p>0&&$("#scrollbar_"+this.axisScroll[0].id+n).remove();this.scrollDraw=!1},_renderTrendline:function(n,t){var f=$.inArray(t,n.model.series),g=n.model.requireInvertedAxes?t.yAxis.x:t.xAxis.x,nt=n.model.requireInvertedAxes?t.xAxis.y:t.yAxis.y,tt="translate("+g+","+nt+")",it={id:n.svgObject.id+"_TrendlinesGroup_"+f,"clip-path":"url(#"+n.svgObject.id+"_TrendlinesGroup_"+f+"_ClipRect)"},p=t.trendlines,e,c,l,w,a,i,u,o,s,h,r="",rt=p.length,b,v,y,k,d;for(n.gTrendlinesGroupEle||(n.gTrendlinesGroupEle=[]),n.gTrendlinesGroupEle[f]=n.svgRenderer.createGroup(it),u=0;u=0;e--)h=l[e],r+=h>0?"+"+h:"-"+Math.abs(h),e!=0&&(r+="x^"+e+" ")}i.equation=r;y=$.extend({},ej.EjSvgRender.commonChartEventArgs);k=i.points[0];d=i.points[i.points.length-1];y.data={series:t,trendline:i,forwardForecastPoints:d,backwardForecastPoints:k};this._trigger("trendlineRendering",y);n.model.enableCanvasRendering?(this.svgRenderer.ctx.save(),this.svgRenderer.ctx.beginPath(),this.svgRenderer.ctx.rect(n.model.m_AreaBounds.X,t.yAxis.y,t.xAxis.width,t.yAxis.height),this.svgRenderer.ctx.clip(),this.svgRenderer.ctx.beginPath(),a.draw(i,t,n),this.svgRenderer.ctx.restore()):(a.draw(i,t,n),c=t.gTrendGroupEle,c&&ej.EjSvgRender.utils._drawAxesBoundsClipPath(c,t,this))}},_renderStripline:function(n){var u,i,r,t;for($.extend(ej.EjStripline.prototype,this),this.chartstripline=new ej.EjStripline(this),u=this.chartstripline,this.model._stripeline=!1,i=0;i0&&(u=this.gConnectorEle[r],ej.EjSvgRender.utils._drawAxesBoundsClipPath(u,n,this))):(u=this.gSymbolGroupEle[r],ej.EjSvgRender.utils._drawAxesBoundsClipPath(u,n,this),this.svgRenderer.append(u,this.gSeriesEle),(n.tooltip.visible||f=="scatter")&&(this.vmlRendering?(this.cloneSeriesEle=$(this.gSeriesEle).clone(),this.cloneobj=$(this.element).clone(),this.svgclone=$(this.svgObject).clone(),$(document.body).append(this.cloneobj),this.svgRenderer.append(this.cloneSeriesEle,this.svgclone),this.svgRenderer.append(this.svgclone,this.cloneobj)):(this.svgRenderer.append(this.gSeriesEle,this.svgObject),this.svgRenderer.append(this.svgObject,this.element)),this.vmlRendering&&($(this.cloneobj).remove(),$(this.svgclone).remove())))}l=n._dataLabels?n.marker.dataLabel.visible||n._dataLabels>0:!0;(n.marker.dataLabel.visible||l)&&this.drawDisplayText(o,n,t)},renderErrorBar:function(n,t){var s=this,wi=s.model,o=t,v,u,bi,fr,y,er,or,nu,vt=o._visiblePoints,ki=vt.length,pt=s.canvasX,wt=s.canvasY,dt=$.inArray(o,wi._visibleSeries),tu=null,ft,sr=ej.EjSvgRender.utils._getTransform(o.xAxis,o.yAxis,wi.requireInvertedAxes),bt,kt,d=wi.requireInvertedAxes,hr,cr,lr,ar,vr=s.svgObject.id,hi=s.model.m_AreaBounds,tu="translate("+sr.x+","+sr.y+")",ci,yr,p,pr,li,et,h,c,di,wr,a,i,r,f,e,yt,br,kr,ai,vi,ot,st,gt,ni,w,b,gi,nr,dr,gr,ti,ii,ri,ui,fi,ei,oi,si,rt,lt,k,ut,g,nt,tr,ir,l,tt,it,at,yi,pi,ht,ct,rr,ur;for(yr={id:vr+"_ErrorBarGroup_"+dt,transform:tu,"clip-path":"url(#"+vr+"_ChartAreaClipRect)"},ej.util.isNullOrUndefined(s.gErrorBarGroupEle)&&(s.gErrorBarGroupEle=[]),ci=s.gErrorBarGroupEle[dt]=s.svgRenderer.createGroup(yr),yi=$.extend({},ej.EjSvgRender.commonChartEventArgs),yi.data={errorBar:n},this._trigger("errorBarRendering",yi),p=yi.data.errorBar,v=p.type,u=p.mode,bi=p.direction,fr=p.fill,y=p.cap,er=p.cap.fill,or=p.cap.width,nu=p.cap.length,bt=p.verticalErrorValue,kt=p.horizontalErrorValue,hr=p.verticalPositiveErrorValue,cr=p.verticalNegativeErrorValue,lr=p.horizontalPositiveErrorValue,ar=p.horizontalNegativeErrorValue,ft=0;ft-1?et.symbolLocation:et.location;ej.util.isNullOrUndefined(a)&&(a=ej.EjSvgRender.utils._getPoint(et,o));ot=a.X;st=a.Y;switch(v){case"fixedValue":g=et;(u=="vertical"||u=="both")&&(g.YValues[0]=h+bt,i=ej.EjSvgRender.utils._getPoint(g,o),g.YValues[0]=h-bt,r=ej.EjSvgRender.utils._getPoint(g,o),d?i.Y=r.Y=a.Y:i.X=r.X=a.X);(u=="horizontal"||u=="both")&&(g.YValues[0]=h,g.xValue=c,g.xValue=c+kt,f=ej.EjSvgRender.utils._getPoint(g,o),g.xValue=c-kt,e=ej.EjSvgRender.utils._getPoint(g,o));g.YValues[0]=h;g.xValue=c;break;case"percentage":nt=et;tr=bt/100*h;ir=kt/100*c;(u=="vertical"||u=="both")&&(nt.YValues[0]=h+tr,i=ej.EjSvgRender.utils._getPoint(nt,o),nt.YValues[0]=h-tr,r=ej.EjSvgRender.utils._getPoint(nt,o),d?i.Y=r.Y=a.Y:i.X=r.X=a.X);(u=="horizontal"||u=="both")&&(nt.YValues[0]=h,nt.xValue=c,nt.xValue=c+ir,f=ej.EjSvgRender.utils._getPoint(nt,o),nt.xValue=c-ir,e=ej.EjSvgRender.utils._getPoint(nt,o));nt.YValues[0]=h;nt.xValue=c;break;case"standardDeviation":l=et;yt=s.meanCalculation(u,vt);br=yt.verMean;kr=yt.horMean;ai=yt.verStandSquareRoot;vi=yt.horStandSquareRoot;(u=="vertical"||u=="both")&&(gt=bt*ai,l.YValues[0]=br,w=ej.EjSvgRender.utils._getPoint(l,o),h=l.YValues[0],l.YValues[0]=h+gt,i=ej.EjSvgRender.utils._getPoint(l,o),l.YValues[0]=h-gt,r=ej.EjSvgRender.utils._getPoint(l,o),d?w.Y=i.Y=r.Y=a.Y:w.X=i.X=r.X=a.X,w.X=w.X+pt,w.Y=w.Y+wt);(u=="horizontal"||u=="both")&&(ni=kt*vi,l.xValue=kr,b=ej.EjSvgRender.utils._getPoint(l,o),d?b.X=a.X:b.Y=a.Y,l.YValues[0]=di,c=l.xValue,l.xValue=c+ni,f=ej.EjSvgRender.utils._getPoint(l,o),l.xValue=c-ni,e=ej.EjSvgRender.utils._getPoint(l,o),b.X=b.X+pt,b.Y=b.Y+wt);l.YValues[0]=di;l.xValue=wr;break;case"standardError":tt=et;yt=s.meanCalculation(u,vt);ai=yt.verStandSquareRoot;vi=yt.horStandSquareRoot;(u=="vertical"||u=="both")&&(gt=bt*ai,gi=gt/Math.sqrt(ki),tt.YValues[0]=h+gi,i=ej.EjSvgRender.utils._getPoint(tt,o),tt.YValues[0]=h-gi,r=ej.EjSvgRender.utils._getPoint(tt,o),d?i.Y=r.Y=a.Y:i.X=r.X=a.X);(u=="horizontal"||u=="both")&&(ni=kt*vi,nr=ni/Math.sqrt(ki),tt.YValues[0]=h,tt.xValue=c,tt.xValue=c+nr,f=ej.EjSvgRender.utils._getPoint(tt,o),tt.xValue=c-nr,e=ej.EjSvgRender.utils._getPoint(tt,o));tt.YValues[0]=h;tt.xValue=c;ft=li;break;case"custom":it=et;(u=="vertical"||u=="both")&&(it.YValues[0]=h+hr,i=ej.EjSvgRender.utils._getPoint(it,o),it.YValues[0]=h-cr,r=ej.EjSvgRender.utils._getPoint(it,o),d?i.Y=r.Y=a.Y:i.X=r.X=a.X);(u=="horizontal"||u=="both")&&(it.YValues[0]=h,it.xValue=c,it.xValue=c+lr,f=ej.EjSvgRender.utils._getPoint(it,o),it.xValue=c-ar,e=ej.EjSvgRender.utils._getPoint(it,o));it.YValues[0]=h;it.xValue=c}y.visible==!0&&((u=="vertical"||u=="both")&&(dr={verHighvalue:i,verLowvalue:r}),(u=="horizontal"||u=="both")&&(gr={horHighvalue:f,horLowvalue:e}),at=s.renderCap(y,u,dr,gr,d),ti=at.verHighCapX1,ii=at.verHighCapX2,ri=at.verLowCapX1,ui=at.verLowCapX2,fi=at.horHighCapY1,ei=at.horHighCapY2,oi=at.horLowCapY1,si=at.horLowCapY2);ot=ot+pt;st=st+wt;(u=="vertical"||u=="both")&&(i.X=i.X+pt,i.Y=i.Y+wt,r.X=r.X+pt,r.Y=r.Y+wt);(u=="horizontal"||u=="both")&&(f.X=f.X+pt,f.Y=f.Y+wt,e.X=e.X+pt,e.Y=e.Y+wt);bi=="both"?((u=="vertical"||u=="both")&&(v!="standardDeviation"?rt="M "+ot+" "+st+" L "+i.X+" "+i.Y+" M "+ot+" "+st+" L "+r.X+" "+r.Y+" ":v=="standardDeviation"&&(rt="M "+w.X+" "+w.Y+" L "+i.X+" "+i.Y+" M "+w.X+" "+w.Y+" L "+r.X+" "+r.Y+" "),lt=d?y.visible?"M "+i.X+" "+i.Y+" L "+i.X+" "+ti+" M "+i.X+" "+i.Y+" L "+i.X+" "+ii+" M "+r.X+" "+r.Y+" L "+r.X+" "+ri+" M "+r.X+" "+r.Y+" L "+r.X+" "+ui+" ":"":y.visible?"M "+i.X+" "+i.Y+" L "+ti+" "+i.Y+" M "+i.X+" "+i.Y+" L "+ii+" "+i.Y+" M "+r.X+" "+r.Y+" L "+ri+" "+r.Y+" M "+r.X+" "+r.Y+" L "+ui+" "+r.Y+" ":"",ht=rt,ct=lt),(u=="horizontal"||u=="both")&&(v!="standardDeviation"?k="M "+ot+" "+st+" L "+f.X+" "+f.Y+" M "+ot+" "+st+" L "+e.X+" "+e.Y+" ":v=="standardDeviation"&&(k="M "+b.X+" "+b.Y+" L "+f.X+" "+f.Y+" M "+b.X+" "+b.Y+" L "+e.X+" "+e.Y+" "),ut=d?y.visible?"M "+f.X+" "+f.Y+" L "+fi+" "+f.Y+" M "+f.X+" "+f.Y+" L "+ei+" "+f.Y+" M "+e.X+" "+e.Y+" L "+oi+" "+e.Y+" M "+e.X+" "+e.Y+" L "+si+" "+e.Y+" ":"":y.visible?"M "+f.X+" "+f.Y+" L "+f.X+" "+fi+" M "+f.X+" "+f.Y+" L "+f.X+" "+ei+" M "+e.X+" "+e.Y+" L "+e.X+" "+oi+" M "+e.X+" "+e.Y+" L "+e.X+" "+si+" ":"",ht=k,ct=ut),u=="both"&&(k+=rt,ut+=lt,ht=k,ct=ut)):bi=="plus"?((u=="vertical"||u=="both")&&(v!="standardDeviation"?rt="M "+ot+" "+st+" L "+i.X+" "+i.Y+" ":v=="standardDeviation"&&(rt="M "+w.X+" "+w.Y+" L "+i.X+" "+i.Y+" "),lt=d?y.visible?"M "+i.X+" "+i.Y+" L "+i.X+" "+ti+" M "+i.X+" "+i.Y+" L "+i.X+" "+ii+" ":"":y.visible?"M "+i.X+" "+i.Y+" L "+ti+" "+i.Y+" M "+i.X+" "+i.Y+" L "+ii+" "+i.Y+" ":"",ht=rt,ct=lt),(u=="horizontal"||u=="both")&&(v!="standardDeviation"?k="M "+ot+" "+st+" L "+f.X+" "+f.Y+" ":v=="standardDeviation"&&(k="M "+b.X+" "+b.Y+" L "+f.X+" "+f.Y+" "),ut=d?y.visible?"M "+f.X+" "+f.Y+" L "+fi+" "+f.Y+" M "+f.X+" "+f.Y+" L "+ei+" "+f.Y+" ":"":y.visible?"M "+f.X+" "+f.Y+" L "+f.X+" "+fi+" M "+f.X+" "+f.Y+" L "+f.X+" "+ei+" ":"",ht=k,ct=ut),u=="both"&&(k+=rt,ut+=lt,ht=k,ct=ut)):((u=="vertical"||u=="both")&&(v!="standardDeviation"?rt="M "+ot+" "+st+" L "+r.X+" "+r.Y+" ":v=="standardDeviation"&&(rt="M "+w.X+" "+w.Y+" L "+r.X+" "+r.Y+" "),lt=d?y.visible?"M "+r.X+" "+r.Y+" L "+r.X+" "+ri+" M "+r.X+" "+r.Y+" L "+r.X+" "+ui+" ":"":y.visible?"M "+r.X+" "+r.Y+" L "+ri+" "+r.Y+" M "+r.X+" "+r.Y+" L "+ui+" "+r.Y+" ":"",ht=rt,ct=lt),(u=="horizontal"||u=="both")&&(v!="standardDeviation"?k="M "+ot+" "+st+" L "+e.X+" "+e.Y+" ":v=="standardDeviation"&&(k="M "+b.X+" "+b.Y+" L "+e.X+" "+e.Y+" "),ut=d?y.visible?"M "+e.X+" "+e.Y+" L "+oi+" "+e.Y+" M "+e.X+" "+e.Y+" L "+si+" "+e.Y+" ":"":y.visible?"M "+e.X+" "+e.Y+" L "+e.X+" "+oi+" M "+e.X+" "+e.Y+" L "+e.X+" "+si+" ":"",ht=k,ct=ut),u=="both"&&(k+=rt,ut+=lt,ht=k,ct=ut));rr={id:s.svgObject.id+"_ErrorBar_"+dt+"_Point"+li,d:ht,stroke:fr,"stroke-width":n.width,opacity:n.opacity};ur={id:s.svgObject.id+"_ErrorBarCap_"+dt+"_Point"+li,d:ct,stroke:er,"stroke-width":or};s.model.enableCanvasRendering?(this.svgRenderer.ctx.rect(hi.X,hi.Y,hi.Width,hi.Height),this.svgRenderer.ctx.clip(),s.svgRenderer.drawPath(rr,null),s.svgRenderer.drawPath(ur,null)):(s.svgRenderer.drawPath(rr,pi),s.svgRenderer.drawPath(ur,pi),s.svgRenderer.append(pi,ci))}s.svgRenderer.append(ci,s.gSeriesEle);ej.EjSvgRender.utils._drawAxesBoundsClipPath(ci,o,s)},meanCalculation:function(n,t){for(var r=0,u=0,e,v,y,o,s,a,h,c,l,p,w,b,k,d,g,nt,tt,it,rt,f=t.length,i=0;i0){y=!0;break}if((r.zoomed||t.xAxis._isScroll||y)&&(c=="column"||c=="stackingcolumn"||c=="stackingcolumn100"))for(b=0;b-f/2&&(c=s-f/2,i.textOptions.x=i.xPos=s+Math.abs(c)+10,i.newConnectorFlag=!0),s+f/2>u.Width&&s+f/2u.Height&&h+o/2-o/2&&(c=h-o/2,i.yPos=i.yPos+Math.abs(c)+10,i.textOptions.y=i.yPos+5,i.newConnectorFlag=!0);for(r=0;rv+u.Width||l+fu.Y+u.Height||this.zoomed&&(lv+u.Width||a>p+u.Height))&&k.remove()));this.storeDataLabelPositions(i)}},storeDataLabelPositions:function(n){var i=n.position,t=this.posObj;switch(i){case"top":t.top[this.processCount-1]=n;this.processCount=1;break;case"rightTop":t.rightTop[this.processCount-1]=n;this.processCount=1;break;case"right":t.right[this.processCount-1]=n;this.processCount=1;break;case"rightBottom":t.rightBottom[this.processCount-1]=n;this.processCount=1;break;case"bottom":t.bottom[this.processCount-1]=n;this.processCount=1;break;case"left":t.left[this.processCount-1]=n;this.processCount=1;break;case"leftBottom":t.leftBottom[this.processCount-1]=n;this.processCount=1;break;case"leftTop":t.leftTop[this.processCount-1]=n}},cartesianColumnSmartLabels:function(n,t){var tt=t.length,r,f,b,o,s,l,y,i,it,e,p,w,h,c,u,g,nt;for(this.connectorFlag=!1,this.processCount=1,this.model.outsideLabels=[],i=0;il+u.Width||f+s>u.Y+u.Height||rl+u.Width||f>y+u.Height||b>u.Width+u.X)&&(o=e.outerWidth(),rw.Height){u.hide=!0;break}}else u.textOptions.x=l=="top"||l=="middle"?u.xPos=o.xPos-o.width/2-u.width/2-s:u.xPos=o.xPos+o.width/2+u.width/2+s;for(this.compareColumnDataLabels(n,t,i,r,this.processCount),b=this.checkOutsideLabels(this.model,u,w),f=0;f-1){for(p=this.model.chartRegions,f=0;f5)break;else h.length>=1&&(k=jQuery.type(this.model.seriesColors[h[0].SeriesIndex])=="array"?this.model.seriesColors[h[0].SeriesIndex][0].color:this.model.seriesColors[h[0].SeriesIndex],u.textOptions.fill=nt._applySaturation(this,k))}}},_positionOutsideLabels:function(n,t,i,r){var e=t[i],f=5,u;if(i==0)if(u=this.isCollide(e,n),r&&(r=="column"||r=="stackingcolumn"||r=="rangecolumn"||r=="waterfall")){if(this.model.outsideLabels.length>0&&n.x==this.model.outsideLabels[this.model.outsideLabels.length-1].x)n.textOptions.y=n.yPos=this.model.outsideLabels[this.model.outsideLabels.length-1].yPos-u.height;else for(i=0;i1&&i0?this.model.outsideLabels[this.model.outsideLabels.length-1].xPos:t[0].xPos+e.width/2+n.width/2+f;u=this.isCollide(e,n);u.state&&(r=="column"||r=="stackingcolumn"||r=="rangecolumn"||r=="waterfall"?(n.textOptions.y=n.yPos=n.yPos-u.height-f,n.textOptions.y=n.textOptions.y+f+n.margin.top/2-n.margin.bottom/2):n.textOptions.x=n.xPos=n.xPos+e.width/2+n.width/2+f)},compareDataLabels:function(n,t,i,r){var a=this.model.allPoints.length,h=this.model.m_AreaBounds,o,c,f,e,u,l,v,y,s=this.posObj;for(this.breakLoop=!1,c=0;c1&&this.resetValues(u),l.marker?(this.prevLabel=l.markerRegion,this.processCount=1):ej.util.isNullOrUndefined(this.prevLabel)?(this.prevLabel=e,this.processCount=1):(v=this.isCollide(this.prevLabel,u),v.state||(this.prevLabel=e,this.processCount=1)),this.resetValues(u),r>1&&s.right[this.processCount-2]?(e=s.right[this.processCount-2],u.textOptions.x=u.xPos=e.xPos+(e.width/2+u.width/2+f)):u.textOptions.x=u.xPos=this.prevLabel.xPos+(this.prevLabel.width/2+u.width/2+f),i+=1,u.position="right",this.breakLoop)break;else if(o=this.checkOutsideLabels(this.model,u,h),!o){this.compareDataLabels(n,t,i,this.processCount);break}case 1:if(this.resetValues(u),u.textOptions.x=u.xPos=this.prevLabel.xPos+this.prevLabel.width/2+u.width/2+f,r>1&&s.rightBottom[this.processCount-2]?(e=s.rightBottom[this.processCount-2],u.textOptions.y=u.yPos=e.yPos+this.canvasY+e.height+f):u.textOptions.y=u.yPos=u.location.Y+this.canvasY+u.height+f/2,u.textOptions.y=u.textOptions.y+f/2+u.margin.top/2-u.margin.bottom/2,u.position="rightBottom",i+=1,this.breakLoop)break;else if(o=this.checkOutsideLabels(this.model,u,h),!o){this.compareDataLabels(n,t,i,this.processCount);break}case 2:if(this.resetValues(u),u.textOptions.y=u.yPos=u.location.Y+this.canvasY+u.height+f/2,r>1&&s.bottom[this.processCount-2]?(e=s.bottom[this.processCount-2],u.textOptions.y=u.yPos=e.yPos+u.height+f):u.textOptions.y=u.yPos=u.location.Y+this.canvasY+u.height+f/2,u.textOptions.y=u.textOptions.y+f/2+u.margin.top/2-u.margin.bottom/2,u.position="bottom",i+=1,this.breakLoop)break;else if(o=this.checkOutsideLabels(this.model,u,h),!o){this.compareDataLabels(n,t,i,this.processCount);break}case 3:if(this.resetValues(u),u.textOptions.x=u.xPos=this.prevLabel.xPos-this.prevLabel.width/2-u.width/2-f,r>1&&s.leftBottom[this.processCount-2]?(e=s.leftBottom[this.processCount-2],u.textOptions.y=u.yPos=e.yPos+this.canvasY+e.height+f):u.textOptions.y=u.yPos=u.location.Y+this.canvasY+u.height+f/2,u.textOptions.y=u.textOptions.y+f/2+u.margin.top/2-u.margin.bottom/2,u.position="leftBottom",i+=1,this.breakLoop)break;else if(o=this.checkOutsideLabels(this.model,u,h),!o){this.compareDataLabels(n,t,i,this.processCount);break}case 4:if(this.resetValues(u),r>1&&s.left[this.processCount-2]?(e=s.left[this.processCount-2],u.textOptions.x=u.xPos=e.xPos-e.width/2-u.width/2-f):u.textOptions.x=u.xPos=this.prevLabel.xPos-this.prevLabel.width/2-u.width/2-f,u.position="left",i+=1,this.breakLoop)break;else if(o=this.checkOutsideLabels(this.model,u,h),!o){this.compareDataLabels(n,t,i,this.processCount);break}case 5:if(this.resetValues(u),u.textOptions.x=u.xPos=this.prevLabel.xPos-this.prevLabel.width/2-u.width/2-f,r>1&&s.leftTop[this.processCount-2]?(e=s.leftTop[this.processCount-2],u.textOptions.y=u.yPos=e.yPos-(u.height+f)):u.textOptions.y=u.yPos=this.prevLabel.yPos-u.height-f,u.textOptions.y=u.textOptions.y+f/2+u.margin.top/2-u.margin.bottom/2,u.position="leftTop",i+=1,this.breakLoop)break;else if(o=this.checkOutsideLabels(this.model,u,h),!o){this.compareDataLabels(n,t,i,this.processCount);break}case 6:if(this.resetValues(u),r>1&&s.top[r-2]?(e=s.top[r-2],u.textOptions.y=u.yPos=e.yPos-(u.height+f)):u.textOptions.y=u.yPos=this.prevLabel.yPos-this.processCount*(u.height+f),u.textOptions.y=u.textOptions.y+f/2+u.margin.top/2-u.margin.bottom/2,i+=1,u.position="top",this.breakLoop)break;else if(o=this.checkOutsideLabels(this.model,u,h),!o){this.compareDataLabels(n,t,i,this.processCount);break}case 7:if(this.resetValues(u),u.textOptions.x=u.xPos=this.prevLabel.xPos+this.prevLabel.width/2+u.width/2+f,r>1&&s.rightTop[this.processCount-2]?(e=s.rightTop[this.processCount-2],u.textOptions.y=u.yPos=e.yPos-u.height-f):u.textOptions.y=u.yPos=this.prevLabel.yPos-u.height-f,u.textOptions.y=u.textOptions.y+f/2+u.margin.top/2-u.margin.bottom/2,u.position="rightTop",i+=1,this.breakLoop)break;else if(o=this.checkOutsideLabels(this.model,u,h),!o){this.compareDataLabels(n,t,i,this.processCount);break}case 8:if(i=0,this.processCount+=1,n==this.processCount)i=9;else if(o=this.checkOutsideLabels(this.model,u,h),!o){this.compareDataLabels(n,t,i,this.processCount);break}case 9:(n==this.processCount||this.processCount>a)&&(this.processCount-=1,i=i<0||i==8?0:i-1,this.breakLoop=!0)}}},checkOutsideLabels:function(n,t,i){var f=n.enableCanvasRendering,e=t.dataLabeltemplate,o,s,r,u;if(n.series[t.seriesIndex].marker.dataLabel.showEdgeLabels&&(r=f?t.xPos-this.canvasX:t.xPos,u=f?t.yPos-this.canvasY:t.yPos,o=e?i.Height+i.Y:i.Height,s=e?i.Width+i.X:i.width,r-t.width/2<0||r+t.width/2>s||u+t.height/2>o||u-t.height/2<0))return!0},drawPieofPieConnectors:function(n,t){var d=t.enableAnimation&&!t._animatedSeries?"hidden":"visible",i,s,r,k;this.model.enableCanvasRendering||(this.gConnectorLinesGroup?this.gConnectorLinesGroup.childNodes.length>0:this.gConnectorLinesGroup=this.svgRenderer.createGroup({id:this.svgObject.id+"_connectorLineGroup",visibility:d}),$(this.gConnectorLinesGroup.childNodes).remove());var f=[],e=[],h=[],u=[],c=-.5*Math.PI,v,o;for(i=0;i<2;i++){if(o=t.pieCollections[i],v=i==0?t.pieCoefficient:t.pieOfPieCoefficient,f[i]=.25*v*Math.min(n.width,n.height),e[i]=this.model.circleCenterX[i],e[i]=i==0?e[i]+this.model.pieGapWidth/2:e[i]-this.model.pieGapWidth/2,h[i]=this.model.circleCenterY[i],o[0].start>0&&o[0].endi.textOptions.y?r=i.textOptions.y:(c=!0,r=i.textOptions.y-i.height/2),i.dataLabeltemplate?(r=i.yPos-this.model.m_AreaBounds.Y+i.height,i.textOptions.x=i.textOptions.x-this.model.m_AreaBounds.X+i.width/4+this.canvasX):(o>h.Width||o+i.width<0||s-i.height>h.Height||s+i.height<0)&&!l.showEdgeLabels&&(e=!1),e){var a="M "+(u.X+this.canvasX)+" "+(u.Y+this.canvasY)+" L "+i.textOptions.x+" "+r,f=this.model.series[n].marker.dataLabel.connectorLine,v=ej.util.isNullOrUndefined(f.color)?this.model.series[n].fill:f.color,y={id:this.svgObject.id+"_dataLabelConnectorLine_series"+n+"_"+t,stroke:v,"stroke-width":f.width,d:a};this.model.series[n].connectorLines=!0;this.svgRenderer.drawPath(y,this.gConnectorEle[n])}},resetValues:function(n){n.textOptions.y=n.dataLabel.textY;n.yPos=n.dataLabel.y;n.textOptions.x=n.dataLabel.textX;n.xPos=n.dataLabel.x},isCollide:function(n,t,i,r,u,f){var ut=0,ft=0,o=!1,p=!1,s,w,e,b,k,d,g,et,rt,y;if(r)s=n.Region.Bounds,w=u.model.m_AreaBounds,e={X:s.X-w.X,Y:s.Y-w.Y,Width:s.Width,Height:s.Height},t.symbolName!="None"?(b=t.xPos,k=t.xPos+t.width,d=t.yPos-t.height/2,g=t.yPos+t.height/2):(b=t.textOptions.x-t.width/2,k=t.textOptions.x+t.width/2,d=t.textOptions.y-(t.textOptions.angle==90||t.textOptions.angle==-90?t.height/2:t.height),g=t.textOptions.y+(t.textOptions.angle==90||t.textOptions.angle==-90?t.height/2:0)),o=e.Xb&&e.Yd;else{et=(n.seriesIndex?this.model.series[n.seriesIndex].marker.dataLabel.border.width:0)+(t.seriesIndex?this.model.series[t.seriesIndex].marker.dataLabel.border.width:0);var nt=this.model.series,h=nt[n.seriesIndex],ot=nt[t.seriesIndex],tt=n.xPos,it=n.yPos,st=t.xPos,ht=t.yPos;n.xPos+=h.xAxis.x;n.yPos+=h.yAxis.y;t.xPos+=ot.xAxis.x;t.yPos+=ot.yAxis.y;var l=n.height,c=n.width,a=t.height,v=t.width;if(f&&(rt=f>360?f-360:f<-360?f+360:f,(rt==90||rt==-90)&&(l=n.width,c=n.height,a=t.width,v=t.height)),n!=t&&(o=!(n.yPos+lt.yPos+a||n.xPos+c/2+et<=t.xPos-v/2||n.xPos-c/2>=t.xPos+v/2),o&&(ft=n.yPos+l-t.yPos,ut=n.xPos+c-t.xPos),n.xPos=tt,n.yPos=it),!o)for(y=0;yt.yPos+a||n.xPos+ct.xPos+v),p)break;n.xPos=tt;n.yPos=it;t.xPos=st;t.yPos=ht}return{state:o,marker:p,markerRegion:n,width:ut,height:ft}},drawAccDisplayText:function(n,t,i){var e=this,c=t._visiblePoints.length,f,o,s,u,r,h;if(e.firstStartAngle=[],f=t.type.toLowerCase(),f!="pyramid"&&f!="funnel"&&f!="pieofpie"&&(t.leftsidePoints.length>0||t.rightsidePoints.length>0)){for(o=t.rightsidePoints.length,s=t.leftsidePoints.length,r=0;r=0;u--)t.leftsidePoints[u].index=u,n.drawDataLabelAcc(e,t,t.leftsidePoints[u].pointIndex,t.leftsidePoints[u],i)}else for(r=0;r=0;i!="pie"||i!="doughnut"?u++:u--)if(t.model.series[u].dataSource&&t.model.series[u].visibility=="hidden"){f=!1;break}f&&t.draw()});r.fail(function(){var r,i;for(n.visibility="visible",$(t.svgObject).empty(),$(t.legendSvgContainer).empty(),r=!0,i=0;i0||l.length>0||y.length>0)&&this._processBubbleSize(n,t,o,c,l,y,a,f),t._hiloTypes&&this._processHiLoValues(n,t,o,e,f),0},_processBoxandWhiskerData:function(n,t,i,r,u){for(var e=0,s=n.length,f,o,h=n[0][i].indexOf&&n[0][i].indexOf("/Date(")!=-1;e0&&(h.fill=n[s][r]),u.length>0&&(h.text=n[s][u]),f.length>0&&s==f[s]&&(h.visibility="hidden")},_processHiLoValues:function(n,t,i,r,u){for(var f,e,o=0;o0?parseFloat(n):n},bindTo:function(n){var r=this.model,o=r.series,h,s,u,c,f,e,i,t;for($("#"+this.svgObject.id+"_CrosshairVertical").remove(),$("#"+this.svgObject.id+"_CrosshairHorizontal").remove(),$.finish?($(".ejTooltip"+this._id).finish(),$(".tooltipDiv"+this._id).finish()):($(".ejTooltip"+this._id).stop(!0,!0),$(".tooltipDiv"+this._id).stop(!0,!0)),$(document).find('[id*="_TrackToolTip"]').remove(),$("#template_group_"+this._id).remove(),this.isChartElemId&&this.createElementsId(),r.primaryXAxis._valueType=null,r.primaryXAxis.position=null,r.primaryYAxis._valueType=null,r.primaryYAxis.position=null,r.requireInvertedAxes=!1,r._hiddenPointIndex=[],h=o.length,s=r.axes.length,i=0;i0&&((typeof t.dataSource=="string"||t.dataSource.toLowerCase)&&(t.dataSource=JSON.parse(t.dataSource.replace(/'''/g,'"'))),this._processJsonData(t.dataSource,t)));$(this.svgObject).width()>0&&this.draw(n)}},_createChartId:function(){var i=!1,n=0,t=$(this.element)[0].className.split(" ")[0];do $("#"+t+"_"+n).length||($(this).attr("_id",t+"_"+n),$(this.element).attr("id",t+"_"+n),i=!0),n++;while(!i);this.isChartElemId=!0},createElementsId:function(){this.legendContainer.attr("id","legend_"+this._id);this.scrollerContainer.attr("id","legend_Scroller"+this._id);this.chartContainer.attr("id","chartContainer_"+this._id);this.axisScroll.attr("id","axisScrollbar_"+this._id);$(this.svgObject).attr("id",this._id+(this.model.enableCanvasRendering?"_canvas":"_svg"))},calculateHeight:function(n){var i=$(n.svgObject),r=n.model.size.height,u=$(n.element).height(),t=u/100*parseInt(r);return i.height(t),t},calculateWidth:function(n){var i=$(n.svgObject),r=n.model.size.width,u=$(n.element).width(),t=u/100*parseInt(r);return i.width(t),t},selectedStyle:function(n){for(var r=$("#"+n._id).find('[class*="Selection"]'),i=[],t=0;t0&&(i.pattern=$("[id $= Def ]")),i},chartResize:function(){var n=this,i=$(n.svgObject),t=this.selectedStyle(n),r,u,f;this.removeMultiRect();this._chartResize=!0;this.model.enableCanvasRendering&&($("[id*="+this._id+"_Selection_]").remove(),$("#canvas_trackSymbol").remove(),r=n.svgObject.getContext("2d"),r.clearRect(0,0,this.svgRenderer.svgObj.width,this.svgRenderer.svgObj.height),typeof n.model.size.width=="string"&&n.model.size.width.indexOf("%")!=-1?(u=n.calculateWidth(n),this.svgRenderer.svgObj.width=u):this.svgRenderer.svgObj.width=$("#"+this._id).width(),typeof n.model.size.height=="string"&&n.model.size.height.indexOf("%")!=-1?(f=n.calculateHeight(n),this.svgRenderer.svgObj.height=f):this.svgRenderer.svgObj.height=ej.util.isNullOrUndefined(this.model.size.height)?"450":parseInt($(n.element).height()));this.resizeTO&&clearTimeout(this.resizeTO);this.resizeTO=setTimeout(function(){var u,r;if(!ej.util.isNullOrUndefined(n.model)&&(typeof n.model.size.width=="string"&&n.model.size.width.indexOf("%")!=-1?n.calculateWidth(n):i.width($(n.element).width()),typeof n.model.size.height=="string"&&n.model.size.height.indexOf("%")!=-1?n.calculateHeight(n):i.height(n.model.size.height),$(n.svgObject).width()>0)){for($(n.svgObject).empty(),$(n.legendSvgContainer).empty(),$("#template_group_"+n._id).remove(),$("#annotation_group_"+n._id).remove(),n.disableAnimation(),u=0;u0?n.originalEvent.touches[0]:n.originalEvent,i=p.pageX,r=p.pageY,e=this.previousPanTouch,o,l,a,v=0,b=y.length,s=this.getScaleValues(this),h=u.X*s.x,c=u.Y*s.y,k=u.Width*s.x,d=u.Height*s.y,g=document.getElementById(this.element[0].id),w=this._getElemCoords(g);if(h=h+w.left,c=c+w.top,i>h&&ic&&r0&&(r[i].scaleX=n[0].pageX!=n[1].pageX&&(t[0].pageX-t[1].pageX)/(n[0].pageX-n[1].pageX),r[i].scaleY=n[0].pageY!=n[1].pageY&&(t[0].pageY-t[1].pageY)/(n[0].pageY-n[1].pageY),r[i].center={x:(n[0].pageX+t[0].pageX)/2,y:(n[1].pageY+t[1].pageY)/2});return r},_ensureValueInMinMax:function(n,t,i){return ni?i:n},_calculatePinchZoomFactor:function(n,t,i){var p=this.model,s=p._axes,u=!0,h,c,w,b,l,r,a,k,f=$.extend(!0,{},p.m_AreaBounds),v,y=1e4,e=0,d=s.length;t=t=="x"?"horizontal":t=="y"?"vertical":null;var o=this.getScaleValues(this),tt=f.X*o.x,it=f.Y*o.y,g=f.Width*o.x,nt=f.Height*o.y;if(this.previousScale!=null){for(;ec&&ol&&si.X&&ei.Y&&o1?this._calculatePinchZoomFactor(this._calculateTouchDistance(this.eventParams.touches,u),t.zooming.type,n.target):this.doPan||this.panning?this._calculatePinchZoomPosition(n):this.chartMouseMove(n)):this.chartMouseMove(n):this.chartMouseMove(n)},_pointerPinchMove:function(n){var f,c=0,i=n.originalEvent,l=$(this.element).offset(),e=i.pageX-l.left,o=i.pageY-l.top,u=this.model,a=this.eventParams||this._initEventParams(u,i),t=a.touches,s=this.previousPointerMove,p=t.length,r=a.movements,h=this.getScaleValues(this);if(s!=null&&s.pageX==i.pagex&&s.pageY==i.pageY&&s.pointerId==n.pointerId)return!1;if(!u.enable3D&&u.AreaType=="cartesianaxes"&&i.pointerType!="mouse"&&i.pointerType!=4&&u.zooming.enable&&u.zooming.enablePinching){f=$.extend(!0,{},u.m_AreaBounds);var v=f.X*h.x,y=f.Y*h.y,w=f.Width*h.x,b=f.Height*h.y;if(e>v&&ey&&o1){for(;c0&&this._removeTouchPointer(t,n),r.length>0&&this._removeTouchPointer(r,n),this.chartMouseMove(n);this.previousPointerMove={pageX:e,pageY:o,pointerId:i.pointerId}}else this.chartMouseMove(n)},_pointerPinchEnd:function(n){var i=this.model,t=n.originalEvent,r=this.eventParams||(this.eventParams=this._initEventParams(i,t)),u=t.type.indexOf("leave")!=-1||t.type.indexOf("out")!=-1||t.type.indexOf("Out")!=-1;!i.enable3D&&i.AreaType=="cartesianaxes"&&t.pointerType!="mouse"&&t.pointerType!=4&&i.zooming.enable&&i.zooming.enablePinching&&(t.touches||t.pointerId)?(this.continuePinching!=null&&this.svgObject.removeChild(this.svgObject.firstChild),this.continuePinching=this.previousPanTouch=this.previousScale=null,t.touches?(this.eventParams=null,this.chartMouseUp(n),u&&this.chartMouseLeave(n)):(this._removeTouchPointer(r.touches,{pointerId:t.pointerId}),r.movements.length>0&&this._removeTouchPointer(r.movements,{pointerId:t.pointerId}),r.touches.length==0&&(this.chartMouseUp(n),u&&this.chartMouseLeave(n),this.eventParams=null))):(this.chartMouseUp(n),u&&this.chartMouseLeave(n))},_appendStyle:function(n){var i="#"+n+".e-canvas * {touch-action:none; -ms-touch-action:none}",r=document.head||document.body,t=document.createElement("style");t.type="text/css";t.appendChild(document.createTextNode(i));r.appendChild(t)},bindEvents:function(){var f=jQuery.uaMatch(navigator.userAgent),i=ej.EjSvgRender.utils.browserInfo(),t=i.isMSPointerEnabled,n=i.pointerEnabled,e=t?n?"pointerdown":"MSPointerDown":"touchstart mousedown",o=t?n?"pointerup":"MSPointerUp":"touchend mouseup",s=t?n?"pointermove":"MSPointerMove":"touchmove mousemove",h=t?n?"pointerleave":"MSPointerOut":"touchleave mouseleave",r,u;this.model.browserInfo=i;window.navigator.maxTouchPoints>1&&window.PointerEvent||window.PointerEventsPolyfill?(this._on(this.element,"pointerup pointerleave",this._pointerPinchEnd),this._on(this.element,"pointerdown",this._pointerPinchStart),this._on(this.element,"pointermove",this._pointerPinchMove),this._appendStyle(this.element[0].id)):window.TouchEvent?(this._on(this.element,"touchstart",this._pointerPinchStart),this._on(this.element,"touchmove",this._pinchGestureMove),this._on(this.element,"touchend",this._pointerPinchEnd),this._on($(this.element),"mousedown",this.chartMouseDown),this._on($(this.element),"mousemove",this.chartMouseMove),this._on(this.element,"mouseleave",this.chartMouseLeave),this._on($(document),"mouseup",this.chartMouseUp),this._appendStyle(this.element[0].id)):window.navigator.msMaxTouchPoints&&window.navigator.msPointerEnabled?(this._on(this.element,"MSPointerUp",this._pointerPinchEnd),this._on(this.element,"mouseleave",this.chartMouseLeave),this._on(this.element,"MSPointerDown",this._pointerPinchStart),this._on(this.element,"MSPointerMove",this._pointerPinchMove),this._appendStyle(this.element[0].id)):(this._on(this.element,s,this.chartMouseMove),this._on(this.element,h,this.chartMouseLeave),this._on($(document),o,this.chartMouseUp),this._on($(this.element),e,this.chartMouseDown));this._isSafari=!!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);(this.isDevice()&&this._isSafari)!=!0&&this._on($(this.element),"click",this.chartMouseClick);this._on($(this.element),"contextmenu",this.chartRightClick);this._on($(this.element),"dblclick",this.chartMouseDoubleClick);(this.model.canResize||this.model.isResponsive)&&this.bindResizeEvents();r=this.model.zooming.enable||this.model.commonSeriesOptions.dragSettings.enable?"none":"pan-y";$(this.element).css({"ms-touch-action":r,"touch-action":r,"content-zooming":"none"});$(this.element).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"});u=f.browser.toLowerCase()=="mozilla"?n?"mousewheel":"DOMMouseScroll":"mousewheel";this._on(this.element,u,this.chartMouseWheel);this._isEventsBinded=!0},calZoomFactors:function(n,t,i,r){var u,f;return n==1?(u=1,f=0):(u=ej.EjSvgRender.utils._minMax(1/n,0,1),f=r+(i-u)*t),{zoomMFactor:u,zoomMPosition:f}},doMouseWheelZoom:function(n,t,i){if(n>=1){var r=this.calZoomFactors(n,t,i.zoomFactor,i.zoomPosition);if(i.zoomPosition!=r.zoomMPosition||i.zoomFactor!=r.zoomMFactor)return this.zoomed=!0,i.zoomPosition=r.zoomMPosition,i.zoomFactor=r.zoomMPosition+r.zoomMFactor>1?1-r.zoomMPosition:r.zoomMFactor,!0}return!1},enableAnimation:function(){for(var t,n=0;n=0;i--){f=u[i];r=t-i;switch(f){case"reset":this.resetZoomButton(r);break;case"pan":this.panButton(r);break;case"zoom":case"zoomIn":case"zoomOut":this.zoomButton(r,f);break;default:t=t-1}}},chartMouseWheel:function(n){var i,o,u,t,h,c,e;if($("#"+this.svgObject.id+"_TrackToolTip").hide(),$(document).find('[id*="TrackGroupToolTipTemplate"]').remove(),$(document).find('[id*="_TrackToolTipTemplate_"]').remove(),$(this.svgObject).find('[id*="_trackSymbol_"]').remove(),this.model.zooming.enableMouseWheel&&this.model.AreaType=="cartesianaxes"&&!this.model.enable3D&&!this.vmlRendering&&ej.util.isNullOrUndefined(this.model.isLazyZooming)){i=this;this.zoomed=!1;var f=!1,r="#"+i.svgObject.id,e=jQuery.uaMatch(navigator.userAgent),l=!!navigator.userAgent.match(/Trident\/7\./),s=n.originalEvent.wheelDelta,a=e.browser.toLowerCase()=="mozilla"?l?s/120>0?1:-1:-n.originalEvent.detail/3>0?1:-1:s/120>0?1:-1;for(u=0;u=r&&this.mousemoveX<=r+o&&this.mousemoveY<=u+e&&this.mousemoveY>=u)return{location:{x:this.mousemoveX,y:this.mousemoveY},axis:this.model._axes[t.axisIndex],multiLevelLabel:t.multiLevelLabel}},getAxisLabelData:function(n){var c=this.calMousePosition(n),e=n.target.id,r,u,f,s,h,o,l,a=this.model._axes.length,t,i;if(this.mousemoveX=c.X,this.mousemoveY=c.Y,this.model.AreaType=="cartesianaxes"||this.model.AreaType=="polaraxes")if(this.model.enable3D){if(e.indexOf("horizontal")>=0||e.indexOf("vertical")>=0)for(t=0;t=0?this.model._axes[t].opposedPosition?u:u+s:u,this.mousemoveX>=u&&this.mousemoveX<=u+s&&(this.vmlRendering?this.mousemoveY<=f+h&&this.mousemoveY>=f:this.mousemoveY>=f-h&&this.mousemoveY<=f)))return{location:{x:this.mousemoveX,y:this.mousemoveY},index:i,axis:this.model._axes[t],text:r.labelText}},getLegendData:function(n){var t=this.calMousePosition(n),o=this.model.legend.isReversed;t.X=o&&($("#legend_"+this._id).find('[class*="e-vscrollbar"]').length||$("#legend_"+this._id)[0].style.overflowY=="scroll")?t.X-18:t.X;t.X-=parseFloat($(this.element).css("padding-left"));t.Y-=parseFloat($(this.element).css("padding-top"));var f=this.model.legend._ejScroller,r=0,i=0;r=f?$("#legend_"+this._id).ejScroller("instance").model.scrollTop:$("#legend_"+this._id).scrollTop();i=f?$("#legend_"+this._id).ejScroller("instance").model.scrollLeft:$("#legend_"+this._id).scrollLeft();o&&f&&(i=i==0?$("#legend_"+this._id).ejScroller("instance")._rtlScrollLeftValue:$("#legend_"+this._id).ejScroller("instance").model.scrollLeft==$("#legend_"+this._id).ejScroller("instance")._rtlScrollLeftValue?0:$("#legend_"+this._id).ejScroller("instance")._rtlScrollLeftValue-$("#legend_"+this._id).ejScroller("instance").model.scrollLeft);this.scrolltop=r?r:0;this.scrollleft=i?i:0;this.mousemoveX=t.X+i;this.mousemoveY=t.Y+r;var s=n.target.id,h=this.mousemoveX,c=this.mousemoveY,e=this._id,u;return(!ej.util.isNullOrUndefined(s)&&this.svgRenderer._getAttrVal($(n.target).parents(":eq(1)"),"id")==this.svgObject.id+"_Legend"||this.model.enableCanvasRendering&&s=="legend_"+e+"_canvas"||this.vmlRendering)&&($.each(this.model.legendRegion,function(n,t){h>=t.Bounds.LegendBound.X+t.Bounds.ItemBound.X&&h<=t.Bounds.LegendBound.X+t.Bounds.ItemBound.X+t.Bounds.ItemBound._Width&&(c>=t.Bounds.LegendBound.Y+t.Bounds.ItemBound.Y-t.Bounds.ItemBound.Height/4&&c<=t.Bounds.LegendBound.Y+t.Bounds.ItemBound.Y+t.Bounds.ItemBound.Height?(u=t,$("#legend_"+e+"_canvas").css("cursor","pointer")):$("#legend_"+e+"_canvas").css("cursor","default"))}),!ej.util.isNullOrUndefined(u))?{legendItem:u,series:this.model._visibleSeries[u.LegendItem.SeriesIndex]}:!1},get3DSeriesPoint:function(n){var r=this.mousemoveX,u=this.mousemoveY,s=this.model.AreaType=="polaraxes"?0:this.model.m_AreaBounds.X,h=this.model.AreaType=="polaraxes"?0:this.model.m_AreaBounds.Y,l=this.model.AreaType=="polaraxes"?$(this.svgObject).width():this.model.m_AreaBounds.Width,a=this.model.AreaType=="polaraxes"?$(this.svgObject).height():this.model.m_AreaBounds.Height,t,f,c,e,i,o;if(r>s&&rh&&u1))return t=$(n.target)[0].id.match(/(\d+)/g),f=parseInt(t[t.length-1]),c=parseInt(t[t.length-2]),i={},i.Region={},i.Region.PointIndex=f,i.SeriesIndex=c,o={},o.pointIndex=f,{region:i,pointData:o,location:{x:r,y:u}}},GetSeriesPoint:function(n){for(var a,p,r,y,d,i,ft,et,u=this.mousemoveX,f=this.mousemoveY,o,it,t=this,b=t.model.indicators,k=t.model._visibleSeries,e=0;ert&&uut&&f=lt&&ut<=at&&(i=w.PointIndex,a=Math.sqrt(Math.pow(Math.abs(st),2)+Math.pow(Math.abs(ht),2)),a<=w.Radius&&a>kt&&(ft={Region:{PointIndex:i},SeriesIndex:e.SeriesIndex,type:e.type},o=ft))}else if(tt.type.toLowerCase()=="radar"&&(w=e.Region.Bounds,w.Line1)){y=w.Line1;c=w.Line2;l=w.Line3;v=w.Line4;var p=[{x:y.x,y:y.y},{x:c.x,y:c.y},{x:l.x,y:l.y},],b={x:u,y:f},et=!1;if(tt.drawType.toLowerCase()=="column")for(var rt=!1,s=-1,pt=p.length,h=pt-1;++s=e.Region.Bounds.X&&u<=e.Region.Bounds.X+e.Region.Bounds.Width&&f>e.Region.Bounds.Y&&f0&&(y[0].Series.type.toLowerCase()=="pyramid"||y[0].Series.type.toLowerCase()=="funnel")){if(d=$(n.target)[0].nodeName,(d=="path"||d=="shape")&&$($(n.target).parent())[0].id==t.svgObject.id+"_SeriesGroup_"+y[0].SeriesIndex)return r=t.model.chartRegions[0],p=$(n.target)[0].id.match(/(\d+)/g),p=parseInt(p[p.length-1]),r.Region.PointIndex=p,i={},i.pointIndex=p,o={region:r,pointData:i,location:{x:u,y:f}};r=y[0];var s=this.pyrX,h=this.pyrY,i={},g,w,c,l,v,nt,tt;for(e=0;e=0&&l.endAngle<=0&&(e=e<=0?2*Math.PI+e:e,s=s<0?2*Math.PI+s:s),h<=e&&h>=s){i.push(c[v]);break}}else for(p=b?2*Math.PI*(t.model.itemCurrentXPos<0?1+t.model.itemCurrentXPos:t.model.itemCurrentXPos):0,h=(Math.atan2(d,k)-g-p)%(2*Math.PI),h<0&&(h=t.model._isPieOfPie?h:2*Math.PI+h),i=[],v=0;v-1||l.endAngle==null)&&(e=e<0?2*Math.PI+e:e,s=s<=0?2*Math.PI+s:s),h+2*Math.PI=e&&h<=s){i.push(c[v]);break}i.length>0&&(it=l.explodeAll||l.explodeIndex==i[0].PointIndex,it?(rt=u-i[0].StartX,ut=f-i[0].StartY,i.length>0&&(a=Math.sqrt(Math.pow(Math.abs(rt),2)+Math.pow(Math.abs(ut),2)),a<=w.Radius&&a>nt&&(c.PointIndex=i[0].PointIndex,c.Index=i[0].Index,c.SeriesIndex=i[0].SeriesIndex,o={region:r,pointData:i,location:{x:u,y:f}}))):(a=Math.sqrt(Math.pow(Math.abs(k),2)+Math.pow(Math.abs(d),2)),a<=w.Radius&&a>nt&&(c.PointIndex=i[0].PointIndex,c.Index=i[0].Index,c.SeriesIndex=i[0].SeriesIndex,o={region:r,pointData:i,location:{x:u,y:f}})))}),o},isPointInPolygon:function(n,t){for(var u=!1,i=-1,f=n.length,r=f-1;++i0)return{x:n.pageX,y:n.pageY};if(n.originalEvent&&!ej.util.isNullOrUndefined(n.originalEvent.pageX)&&n.originalEvent.pageX>0)return{x:n.originalEvent.pageX,y:n.originalEvent.pageY};if(n.originalEvent&&n.originalEvent.changedTouches!=undefined){if(!ej.util.isNullOrUndefined(n.originalEvent.changedTouches[0].pageX)&&n.originalEvent.changedTouches[0].pageX>0)return{x:n.originalEvent.changedTouches[0].pageX,y:n.originalEvent.changedTouches[0].pageY}}else return{x:0,y:0}},calMousePosition:function(n){var u=jQuery.uaMatch(navigator.userAgent),t=this.mousePosition(n),i,r,f;return n.pageX=t.x,n.pageY=t.y,f=u.browser.toLowerCase(),i=n.pageX-$(this.svgObject).offset().left,r=n.pageY-$(this.svgObject).offset().top,{X:i,Y:r}},calTouchPosition:function(n){var u=jQuery.uaMatch(navigator.userAgent),i,r,t;return u.browser.toLowerCase()=="mozilla"||u.browser.toLowerCase()=="webkit"?(t=n.originalEvent.touches[0],i=t.pageX-$(this.svgObject).parent().offset().left,r=t.pageY-$(this.svgObject).parent().offset().top,this.leftPadding=$(this.svgObject).offset().left,this.grabPadding=0):u.browser.toLowerCase()=="msie"?(i=n.originalEvent.pageX-$(this.svgObject).offset().left,r=n.originalEvent.pageY-$(this.svgObject).offset().top,this.leftPadding=$(this.svgObject).offset().left):(t=n.originalEvent.touches[0],i=t.pageX-$(this.svgObject).offset().left,r=t.pageY-$(this.svgObject).offset().top,this.leftPadding=$(this.svgObject).offset().left),{X:i,Y:r}},cancelEvent:function(n){n.stopPropagation();var t=jQuery.uaMatch(navigator.userAgent);return t.browser=="chrome"&&(this.model.zooming.enable||this.model.crosshair.visible)&&n.preventDefault(),this.model.enable3D&&(n.preventDefault(),n.stopPropagation()),n.returnValue=!1,n.cancelBubble=!0,!1},resetZoom:function(){var n=this,t="#"+this.svgObject.id;$(".tooltipDiv"+this._id).remove();$(".zoom"+this._id).remove();n.zoomed&&($.each(this.model._axes,function(n,t){t.zoomed=!1;t.zoomFactor=1;t.zoomPosition=0}),n.model.primaryXAxis.zoomFactor=1,n.model.primaryYAxis.zoomFactor=1,n.model.primaryXAxis.zoomPosition=0,n.model.primaryYAxis.zoomPosition=0,$("#"+n._id+"_canvas").css({cursor:"default"}),$(t+"_ResetZoom").remove(),$(t+"_PanBtn").remove(),$(t+"_ZoomBtn").remove(),$(t+"_ZoomInBtn").remove(),$(t+"_ZoomOutBtn").remove(),n.zoomed=!1,n.zooming=!1,n.panning=!1,n.model._chartAreaZoom=!1,n.resetZooming=!0,n.enableTrackBall(),n.redraw(!0),n.enableAnimation(),n.svgRenderer._setAttr($(n.svgObject).find(t+"_XAxis,"+t+"_ChartArea,"+t+"_YAxis,"+t+"_SeriesCollection"),{cursor:"default"}))},startZoomInOut:function(n){var c=n.target.id.indexOf("ZoomIn")>-1?"zoomIn":"zoomOut",e,o;this.drag=!1;this.zoomed=!0;var i=this.model.zooming.type.toLowerCase(),r=c=="zoomIn"?.2:-.2,s=!0,t,u,f,h;for(e=0;e=1&&(t.zoomFactor=1,t.zoomPosition=0),s=s&&t.zoomFactor==1,this.resetZooming=t.zoomFactor==1&&t.zoomPosition==0;h=this._getZoomedData(this);o=$.extend({},ej.EjSvgRender.commonChartEventArgs);o.data={};o.data.series=h;this._trigger("zoomed",o);this._updateScroll();this.redraw(!0);s?(this._removeZoomkit(),this.resetZooming=!0,this.zoomed=this.panning=!1,this.model._chartAreaZoom=!1):this._enableZoomingButtons()},startZoom:function(){var n=this,t="#"+this.svgObject.id,i;$(".tooltipDiv"+this._id).remove();i=this.model.theme.toLowerCase().indexOf("dark")>=0?"#000000":" #FFFFFF";n.svgRenderer._setAttr($(t+"_ZoomBtn"),{selected:"true"});n.svgRenderer._setAttr($(t+"_ZoomPath"),{fill:"#14B9FF"});n.svgRenderer._setAttr($(t+"_ZoomIcon"),{fill:"#FFFFFF"});n.svgRenderer._setAttr($(t+"_PanPath"),{fill:"#B7B7B7"});n.svgRenderer._setAttr($(t+"_panIcon"),{fill:i});$(t+"_ZoomBtn").css({"border-color":"#14B9FF","background-color":"#14B9FF"});$(t+"_PanBtn").css({"border-color":"#B7B7B7","background-color":"#B7B7B7"});$("#"+n._id+"_canvas").css({cursor:"default"});this._cursorToDefault();n.panning=!1;n.enableTrackBall()},startPan:function(){var n=this,t="#"+this.svgObject.id,i;$(".tooltipDiv"+this._id).remove();i=this.model.theme.toLowerCase().indexOf("dark")>=0?"#000000":" #FFFFFF";n.svgRenderer._setAttr($(t+"_ZoomBtn"),{selected:"false"});n.svgRenderer._setAttr($(t+"_PanBtn"),{selected:"true"});n.svgRenderer._setAttr($(t+"_ZoomPath"),{fill:"#B7B7B7"});n.svgRenderer._setAttr($(t+"_ZoomIcon"),{fill:i});n.svgRenderer._setAttr($(t+"_PanPath"),{fill:"#14B9FF"});n.svgRenderer._setAttr($(t+"_panIcon"),{fill:"#FFFFFF"});$(t+"_ZoomBtn").css({"border-color":"#B7B7B7","background-color":"#B7B7B7"});$(t+"_PanBtn").css({"border-color":"#14B9FF","background-color":"#14B9FF"});$("#"+n._id+"_canvas").css({cursor:"pointer"});this._cursorToPointer();n.panning=!0;n.disableTrackBall()},zoomButton:function(n,t){var i=t=="zoom"?"_Zoom":t=="zoomIn"?"_ZoomIn":"_ZoomOut";var u=n*5+5,r={left:0,top:0},f=this.model.m_AreaBounds.X+(this.model.m_AreaBounds.Width-n*32-u),e=this.model.m_AreaBounds.Y+this.model.m_AreaBounds.Height+(this.model.elementSpacing-this.model.m_AreaBounds.Height),o=this.model.theme.toLowerCase().indexOf("dark")>=0?"#000000":" #FFFFFF",s={id:this.svgObject.id+i+"Path",d:"M32,27c0,2.75-2.25,5-5,5H5c-2.75,0-5-2.25-5-5V5c0-2.75,2.25-5,5-5h22c2.75,0,5,2.25,5,5V27z",fill:this.panning||t=="zoomIn"||t=="zoomOut"?"#b7b7b7":"#14B9FF",zoomId:this._id+i+"Btn",width:26,height:26,left:f+r.left,top:e+r.top,iconColor:o};ej.EjCanvasRender.prototype.zoomButton(s,t,this);t=="zoom"?this._on($("#"+this.svgObject.id+i+"Btn"),"touchstart click",this.startZoom):this._on($("#"+this.svgObject.id+i+"Btn"),"touchstart click",this.startZoomInOut)},panButton:function(n){var i=n*5+5,t={left:0,top:0},r=this.model.m_AreaBounds.X+(this.model.m_AreaBounds.Width-n*32-i),u=this.model.m_AreaBounds.Y+this.model.m_AreaBounds.Height+(this.model.elementSpacing-this.model.m_AreaBounds.Height),f=this.model.theme.toLowerCase().indexOf("dark")>=0?"#000000":" #FFFFFF",e={id:this.svgObject.id+"_PanPath",d:"M 32 27 c 0 2.75 -2.25 5 -5 5 H 5 c -2.75 0 -5 -2.25 -5 -5 V 5 c 0 -2.75 2.25 -5 5 -5 h 22 c 2.75 0 5 2.25 5 5 V 27 Z",fill:this.panning?"#14B9FF":"#b7b7b7",panId:this._id+"_PanBtn",width:26,height:26,left:r+t.left,top:u+t.top,iconColor:f};ej.EjCanvasRender.prototype.panButton(e,this);this._on($("#"+this.svgObject.id+"_PanBtn"),"touchstart click",this.startPan)},resetZoomButton:function(n){var r=n*5+5,t={left:0,top:0},u=this.model.m_AreaBounds.X+(this.model.m_AreaBounds.Width-(n*32+r)),f=this.model.m_AreaBounds.Y+this.model.m_AreaBounds.Height+(this.model.elementSpacing-this.model.m_AreaBounds.Height),e=this.model.theme.toLowerCase().indexOf("dark")>=0?"#000000":" #FFFFFF",o={id:this.svgObject.id+"_ResetZoomPath",d:"M 32 27 c 0 2.75 -2.25 5 -5 5 H 5 c -2.75 0 -5 -2.25 -5 -5 V 5 c 0 -2.75 2.25 -5 5 -5 h 22 c 2.75 0 5 2.25 5 5 V 27 Z",fill:"#b7b7b7",resetZoomId:this._id+"_ResetZoom",width:26,height:26,left:u+t.left,top:f+t.top,iconColor:e},i;ej.EjCanvasRender.prototype.resetZoom(o,this);i=(window.TouchEvent?"touchstart":window.PointerEvent?"pointerdown":window.MSPointerEvent?"MSPointerDown":"click")+" click";this._on($("#"+this.svgObject.id+"_ResetZoom"),i,this.resetZoom)},doZoom:function(n,t,i){var u=this,l,y,p,s,c;if(this.model._chartAreaZoom=!0,this.scrollDraw=!0,$(".tooltipDiv"+this._id).remove(),u.model.enableCanvasRendering)var a=$("#"+this.svgObject.id+"_ZoomArea")[0].getClientRects()[0],v=$("#"+this.svgObject.id)[0].getClientRects()[0],y=a.left-v.left-$(document).scrollLeft(),p=a.top-v.top-$(document).scrollTop();else y=parseFloat(u.svgRenderer._getAttrVal($(n),"x")),p=parseFloat(u.svgRenderer._getAttrVal($(n),"y"));$("#"+this.svgObject.id+"_ZoomArea").remove();this.drag=!1;this.zoomed=!0;var e=this.getScaleValues(u),o=$.extend(!0,{},u.model.m_AreaBounds),k=o.X*e.x,d=o.Y*e.y,w=o.Width*e.x,b=o.Height*e.y;for(s=0;s=i[t].xValue&&h.min<=i[t].y&&h.max>=i[t].y&&(u[r]._hiloTypes?e=="rangearea"||e=="rangecolumn"||e=="waterfall"||e=="hilo"?f.push({XValue:i[t].x,High:i[t].high,Low:i[t].low}):f.push({XValue:i[t].x,High:i[t].high,Low:i[t].low,Open:i[t].open,Close:i[t].close}):f.push({XValue:i[t].x,YValue:i[t].y}));f.length!=0&&c.push({selectedData:f});f=[]}return c},_cursorToDefault:function(){var n="#"+this.svgObject.id;this.svgRenderer._setAttr($(this.svgObject).find(n+"_XAxis,"+n+"_ChartArea,"+n+"_YAxis,"+n+"_SeriesCollection,"+n+"_StriplineBehind,"+n+"_StriplineOver"),{cursor:"default"})},_cursorToPointer:function(){var n="#"+this.svgObject.id;this.svgRenderer._setAttr($(this.svgObject).find(n+"_XAxis,"+n+"_ChartArea,"+n+"_YAxis,"+n+"_SeriesCollection,"+n+"_StriplineBehind,"+n+"_StriplineOver"),{cursor:"pointer"})},removeMultiRect:function(){$(this.parentgEle).empty();this.model.selectedDataCollection=[]},multiSelectDataCalculation:function(){for(var lt,at,n,ut,tt,gt=this,r=[],it=this.selectedRectIndex,vt=this.oldRectX[it],yt=this.oldRectY[it],pt=this.oldRectWidth[it],ot=this.oldRectHeight[it],d=1,ft=0,st=this.model.series,wt=st.length,rt=this.multiAxis,bt=rt.length,kt=this.multiSelectType,c,w,g,y,p,e,o,t,f,b,a,v,u,ht,ct,ni=this.model.AreaType.toLowerCase(),s,l,dt,h,et,nt,i,k=0;k0)&&(b=c.valueType=="logarithmic"?c.visibleRange:c.actualRange,this.selectFactor=this.selectFactor>1?1:this.selectFactor<0?0:this.selectFactor,this.selectPosition=this.selectPosition<0?0:this.selectPosition>1?1:this.selectPosition,c.isInversed?(a=c.actualRange.max-this.selectPosition*c.actualRange.delta,v=a-this.selectFactor*c.actualRange.delta,dt=!0):(a=c.actualRange.min+this.selectPosition*c.actualRange.delta,v=a+this.selectFactor*c.actualRange.delta),ab.max&&(a=a-(v-b.max),v=b.max),c.valueType=="logarithmic"&&(a=Math.pow(10,a),v=Math.pow(10,v)),c.visibleRange.min=Math.min(a,v),c.visibleRange.max=Math.max(a,v));if(t=i._visiblePoints,f=i.type.toLowerCase(),et=i.isTransposed,y=i.xAxis.visibleRange.min,p=i.xAxis.visibleRange.max,e=i.yAxis.visibleRange.min,o=i.yAxis.visibleRange.max,ej.util.isNullOrUndefined(r)&&(r=[]),i.selectionSettings.enable)switch(kt){case"x":for(n=0;n=0?f.indexOf("stacking")>=0?(h=i.stackedValue.EndValues[n],!u&&o>=h&&e<=h&&r.push(t[n])):f=="waterfall"&&!u&&o>=t[n].YValues[0]&&e<=t[n].YValues[0]?r.push(t[n]):!u&&o>=l&&e<=l&&r.push(t[n]):!u&&p>=s&&y<=s&&r.push(t[n]):et&&f.indexOf("bar")>=0?!u&&y<=s&&p>=s&&r.push(t[n]):f.indexOf("bar")>=0||i.isTransposed&&!(f.indexOf("bar")>=0)?f.indexOf("stacking")>=0?(h=i.stackedValue.EndValues[n],!u&&e<=h&&o>=h&&r.push(t[n])):f=="waterfall"&&!u&&e<=t[n].YValues[0]&&o>=t[n].YValues[0]?r.push(t[n]):!u&&e<=l&&o>=l&&r.push(t[n]):!u&&Math.round(y)<=s&&p>=s&&r.push(t[n]);break;case"y":for(n=0;n=0?!u&&p>=s&&y<=s&&r.push(t[n]):f.indexOf("stacking")>=0?(h=i.stackedValue.EndValues[n],!u&&e<=h&&o>=h&&r.push(t[n])):f=="waterfall"&&!u&&o>=t[n].YValues[0]&&e<=t[n].YValues[0]?r.push(t[n]):!u&&o>=l&&e<=l&&r.push(t[n]):et&&f.indexOf("bar")>=0?f.indexOf("stacking")>=0?(h=i.stackedValue.EndValues[n],!u&&e<=h&&o>=h&&r.push(t[n])):f=="waterfall"&&!u&&e<=t[n].YValues[0]&&o>=t[n].YValues[0]?r.push(t[n]):!u&&e<=l&&o>=l&&r.push(t[n]):f.indexOf("bar")>=0||i.isTransposed&&!(f.indexOf("bar")>=0)?!u&&y<=s&&p>=s&&r.push(t[n]):f.indexOf("stacking")>=0?(h=i.stackedValue.EndValues[n],!u&&e<=h&&o>=h&&r.push(t[n])):f=="waterfall"&&!u&&e<=t[n].YValues[0]&&o>=t[n].YValues[0]?r.push(t[n]):!u&&e<=l&&o>=l&&r.push(t[n]);break;case"xy":for(n=0;n=0?(h=i.stackedValue.EndValues[n],!u&&p>=s&&y<=s&&e<=h&&o>=h&&r.push(t[n])):f=="waterfall"&&!u&&p>=s&&y<=s&&e<=t[n].YValues[0]&&o>=t[n].YValues[0]?r.push(t[n]):!u&&p>=s&&Math.round(y)<=s&&e<=l&&o>=l&&r.push(t[n])}}i.xAxis.visibleRange=ht;i.yAxis.visibleRange=ct}ut=this.currentIndex;(ej.util.isNullOrUndefined(this.model.selectedDataCollection)||$("#"+this.svgObject.id+"_rectSelectionGroup").length==0)&&(this.model.selectedDataCollection=[]);this.removeRect?this.model.selectedDataCollection.splice(ut,1):this.rectPan||this.resize?(this.model.selectedDataCollection[ut]=0,this.model.selectedDataCollection[ut]=r):this.model.selectedDataCollection[this.model.selectedDataCollection.length]=r;tt=$.extend({},ej.EjSvgRender.commonChartEventArgs);tt.data={};tt.data.selectedData=r;tt.data.selectedDataCollection=this.model.selectedDataCollection;this._trigger("rangeSelected",tt)},multiSelectMouseUp:function(n){var a,v,y,p,w,b,k,d,s,g;if(this._isMultiSelect&&this.multiSelectMode=="range"){var h,c,l,i=this.svgObject.id,t=this.selectedRectIndex,e="#"+i+"_selectRect",r=parseInt($(e+t).attr("width")),o=parseInt($(e+t).attr("height")),u=parseInt($(e+t).attr("x")),f=parseInt($(e+t).attr("y"));if((this.multiSelectDraw||!this.removeRect||!this.resize||!this.rectPan)&&r>0&&o>0){for(a={id:i+"_resize_rightRect"+t,x:u+r-5,y:f+10,width:10,height:o-20>0?o-20:0,fill:"transparent",stroke:"transparent","stroke-width":2,cursor:"e-resize"},this.svgRenderer.drawRect(a,this.gEle),v={id:i+"_resize_bottomRect"+t,x:u,y:f+o-5,width:r-10>0?r-10:0,height:10,fill:"transparent",stroke:"transparent","stroke-width":2,cursor:"s-resize"},this.svgRenderer.drawRect(v,this.gEle),y={id:i+"_resize_leftRect"+t,x:u-5,y:f,width:10,height:o,fill:"transparent",stroke:"transparent","stroke-width":2,cursor:"w-resize"},this.svgRenderer.drawRect(y,this.gEle),p={id:i+"_resize_topRect"+t,x:u,y:f-5,width:r-10>0?r-10:0,height:10,fill:"transparent",stroke:"transparent","stroke-width":2,cursor:"n-resize"},this.svgRenderer.drawRect(p,this.gEle),w={id:i+"_resize_bottomRightCornerCircle"+t,cx:u+r,cy:f+o,r:10,fill:"transparent",stroke:"transparent","stroke-width":2,cursor:"se-resize"},this.svgRenderer.drawCircle(w,this.gEle),b={id:i+"_closeTopRightCornerCircle"+t,cx:u+r,cy:f,r:10,fill:"white",stroke:"#2988d6","stroke-width":2,cursor:"pointer"},this.svgRenderer.drawCircle(b,this.gEle),k={id:i+"_closePath"+t,x1:u+r-4,y1:f-4,x2:u+r+4,y2:f+4,stroke:"#2988d6","stroke-width":2,cursor:"pointer"},this.svgRenderer.drawLine(k,this.gEle),d={id:i+"_closePathOpposite"+t,x1:u+r+4,y1:f-4,x2:u+r-4,y2:f+4,stroke:"#2988d6","stroke-width":2,cursor:"pointer"},this.svgRenderer.drawLine(d,this.gEle),h=[16,10,4,10,4,4],c=[4,4,4,10,10,16],l=["a","b","c","d","e","f"],s=0;s<6;s++)g={id:i+"_gripCircle_"+l[s]+t,cx:u+r-h[s],cy:f+o-c[s],r:.4,stroke:"#5B5B5B","stroke-width":2},this.svgRenderer.drawCircle(g,this.gripCollection);this.gripCollection!=null&&$(this.gripCollection).appendTo(this.gEle);$("#"+i+"_gripCollection"+t).css({visibility:"hidden"})}ej.util.isNullOrUndefined(this.oldRectX)&&(this.oldRectX=[],this.oldRectY=[],this.oldRectWidth=[],this.oldRectHeight=[],this.oldReRightRectX=[],this.oldReTopRectY=[],this.oldReBottomRectY=[]);this.oldRectX[t]=parseInt($(e+t).attr("x"));this.oldRectY[t]=parseInt($(e+t).attr("y"));this.oldRectWidth[t]=parseInt($(e+t).attr("width"));this.oldRectHeight[t]=parseInt($(e+t).attr("height"));this.oldReRightRectX[t]=parseInt($("#"+i+"_resize_rightRect"+t).attr("x"));this.oldReTopRectY[t]=parseInt($("#"+i+"_resize_topRect"+t).attr("y"));this.oldReBottomRectY[t]=parseInt($("#"+i+"_resize_bottomRect"+t).attr("y"));this.oldMultiSelectType=this.multiSelectType;(this.resize||this.rectPan)&&(this.resize&&$("#"+this.svgObject.id+"_gripCollection"+t).attr({transform:""}),$("#"+i+"_closeTopRightCornerCircle"+t).css({display:"inline"}),$("#"+i+"_closePath"+t).css({display:"inline"}),$("#"+i+"_closePathOpposite"+t).css({display:"inline"}),$("#"+i+"_resize_rightRect"+t).css({cursor:"e-resize"}),$("#"+i+"_resize_leftRect"+t).css({cursor:"w-resize"}),$("#"+i+"_resize_bottomRect"+t).css({cursor:"s-resize"}),$("#"+i+"_resize_topRect"+t).css({cursor:"n-resize"}));this.drag=!1;this.removeRect&&($("#"+i+"_selectedRectGroup"+t).remove(),this.parentgEle.childNodes.length<=0&&$(this.parentgEle).remove());(this.multiSelectDraw||this.removeRect||this.resize||this.rectPan)&&r>0&&o>0&&(this.multiSelectDraw=!1,this.multiSelectDataCalculation(n));this.resize&&(this.resize=!1);this.rectPan&&(this.rectPan=!1);this.removeRect=!1;this.enableTrackBall()}},chartMouseUp:function(n){var h,t,c,r,u,p,l,b,k,i,e,o,a,v,y,s,f;if(this.isTouch(n)&&(this.model.touchCross=!1,this.chartMouseUpTouch(n)),!this.currentPageX&&this.panning&&(h=this.calMousePosition(n),this.currentPageX=h.X,this.currentPageY=h.Y),i=this,t=this.model,this.mousedownPointX=this.mousedownPointY=null,$("[id*=_PreviewSeries]").remove(),$("[id*=_Marker]").remove(),i.dragPoint){c=this.dragIndex.seriesIndex;r=t._visibleSeries[c];this.model.enableCanvasRendering||this.gPreviewSeriesGroupEle&&($(this.svgObject).find("#"+this.svgObject.id+"_PreviewSeriesGroup_"+c).remove(),this.gPreviewSeriesGroupEle.childNodes.length>0&&this.gPreviewSeriesGroupEle.removeChild(this.gPreviewSeriesGroupEle.childNodes[0]));this.dragPoint=r.dragPoint=!1;var w=this._getDraggedPoint(r,this.mousemoveX,this.mousemoveY),it=w.X,rt=w.Y;p=r.data.seriesIndex;l=r.data.pointIndex;b={X:this.commonDragEventArgs.data.oldValue.X,Y:this.commonDragEventArgs.data.oldValue.Y};k={X:it,Y:rt};u=$.extend({},this.commonDragEventArgs);u.data={series:r,seriesIndex:p,pointIndex:l,oldValue:b,newValue:k};this._trigger("dragEnd",u);i.commonDragEventArgs=u;i._changeDraggingPoints(r,l,u.data.newValue.X,u.data.newValue.Y);r.region=null;this.redraw()}if(this.multiSelectAreaType!="cartesianaxes"||t.zooming.enable||t.enableCanvasRendering||this.multiSelectMouseUp(n),i=this,t.zooming.enable&&t.AreaType=="cartesianaxes"){if(e=$("#"+this.svgObject.id+"_ZoomArea"),e[0])if(t.enableCanvasRendering)var d=e[0].getClientRects()[0],g=d.width,nt=d.height;else var tt=$(e),g=parseFloat(this.svgRenderer._getAttrVal(tt,"width")),nt=parseFloat(this.svgRenderer._getAttrVal(tt,"height"));g>0&&nt>0?i.doZoom(e,g,nt):this.drag=!1;i.panning||this.enableTrackBall()}o=this.svgObject.id;a=ej.util.isNullOrUndefined(n.target.parentNode)?"":n.target.parentNode.id;(a==o+"_ResetZoom"||a==o+"_ZoomBtn"||n.target.id==o+"_ResetZoom"||n.target.id==o+"_ZoomBtn")&&(this.panning=!1,this.model._chartAreaZoom=!1);(ej.isTouchDevice()||t.zooming.enableDeferredZoom)&&this.panning&&this.doPan&&t.AreaType=="cartesianaxes"&&(v={x:this.oPreviousCoords.x-this.currentPageX,y:this.oPreviousCoords.y-this.currentPageY},this.oPreviousCoords={x:this.currentPageX,y:this.currentPageY},$.each(t._axes,function(n,t){var r=Math.max(1/ej.EjSvgRender.utils._minMax(t.zoomFactor,0,1),1);i.translate(t,v.x,v.y,r)}),this.model.legendCollapsed=!1,s=y=$.extend({},ej.EjSvgRender.commonChartEventArgs),f=this,y.data={model:this.model},this._trigger("panStart",y),window.setTimeout(function(){f.redraw(!0,!0,n.target);f._cursorToPointer();f._enableZoomingButtons();s=$.extend({},ej.EjSvgRender.commonChartEventArgs);s.data={model:f.model};f._trigger("panEnd",s)},10));this.doPan&&(this.doPan=!1);this.rotateActivate=!1},multiSelectMouseDown:function(evt){var i,k;this.multiSelectAreaType=this.model.AreaType.toLowerCase();var model=this.model,chartX=model.m_AreaBounds.X,chartWidth=model.m_AreaBounds.Width,chartY=model.m_AreaBounds.Y,chartHeight=model.m_AreaBounds.Height,mouseDownCords=this.calMousePosition(evt);if(this.multiSelectAreaType=="cartesianaxes"&&!model.zooming.enable&&!model.enableCanvasRendering&&mouseDownCords.X>=chartX&&mouseDownCords.X=chartY){var seriesCollection=this.model.series,seriesCollectionLength=seriesCollection.length,id,mouseDownCords,matchStr,containerSvg=this.svgObject.id,selectMode=seriesCollection.some(function(n){return n.selectionSettings.mode.toLowerCase()=="range"});for(this._isMultiSelect=seriesCollection.some(function(n){return n.selectionSettings.enable==!0&&n.selectionSettings.mode.toLowerCase()=="range"}),selectMode&&(this.multiSelectMode="range"),i=0;i=0&&(id=evt.target.id.split("resize")[1].match(/\d+/)[0],this.selectedRectIndex=eval(id));evt.target.id.indexOf("close")>=0&&(id=evt.target.id.split("close")[1].match(/\d+/)[0],this.selectedRectIndex=eval(id));evt.target.id.indexOf(this.svgObject.id+"_selectRect")>=0&&(matchStr=this.svgObject.id+"_selectRect",this.selectedRectIndex=parseInt(evt.target.id.substr(matchStr.length)));this.currentIndex=$(evt.target.parentNode).index();var axes=this.model._axes,axesLength=axes.length,axis,mouseMoveCords=this.calMousePosition(evt),mouseMoveX=mouseMoveCords.X,mouseMoveY=mouseMoveCords.Y;for(this.multiAxis=[],k=0;kaxis.Location.X1&&mouseMoveXaxis.Location.Y2&&this.multiAxis.push(axis)}}},_grab:function(n,t,i,r,u){var f=$.extend({},ej.EjSvgRender.commonChartEventArgs);f.data={seriesIndex:i,pointIndex:r,currentPoint:u};t._trigger("dragStart",f);n.data=f.data;this.commonDragEventArgs=f;this.mousedownPointX=this.mousedownPointY=null},_enableDragging:function(n,t,i){var e=this,u,o,r=n.type.toLowerCase(),l=e.model.AreaType,a=n.visibility.toLowerCase(),h,c,s,f;if(this.mousedownPointX&&this.mousedownPointY&&l=="cartesianaxes"&&!this.model.enable3D&&a=="visible"&&(r=="line"||r=="spline"||r=="area"||r=="stepline"||r=="steparea"||r=="splinearea"||r=="column"||r=="bar"||r=="bubble"||r=="scatter")&&(h=[],c=[],u=this.getClosesPointXY(c,h,n,this.mousedownPointX,this.mousedownPointY,i),this.mousemoveX=this.mousedownPointX,this.mousemoveY=this.mousedownPointY,o=this.GetSeriesPoint(i),ej.util.isNullOrUndefined(u.point)||(this.dragPoint=n.dragPoint=!0,u.seriesIndex=t,n.pointData=u,s={xValue:u.point.xValue,yValue:u.point.YValues},e._grab(n,e,t,u.index,s),this.dragIndex={pointIndex:u.index,seriesIndex:t}),!ej.util.isNullOrUndefined(o)&&(f=o.region,t==f.SeriesIndex))){n.region=o.region;this.dragPoint=n.dragPoint=!0;var v=n._visiblePoints[f.Region.PointIndex].xValue,y=n._visiblePoints[f.Region.PointIndex].YValues,s={xValue:v,yValue:y};e._grab(n,e,f.SeriesIndex,f.Region.PointIndex,s);this.dragIndex={pointIndex:f.Region.PointIndex,seriesIndex:f.SeriesIndex}}},chartMouseDown:function(e){var model=this.model,matchStr=this._id+"_scrollbar_",parentNodeId=e.target.parentNode&&e.target.parentNode.id?e.target.parentNode.id:"",selectionIndex=parentNodeId.indexOf(matchStr)>-1?parseInt(parentNodeId.substr(matchStr.length)):NaN,isZoom=this.isZoomButtonHovered(e.target),axes=model._axes,chart=this,id,mouseDownCords=this.calMousePosition(e),browserInfo=this.model.browserInfo,timer,mousePanCords;if(this.mousedownPointX=mouseDownCords.X,this.mousedownPointY=mouseDownCords.Y,"which"in e?this.chartRightClick=e.which==3:"button"in e&&(this.chartRightClick=e.button==2),isNaN(selectionIndex)||ej.util.isNullOrUndefined(selectionIndex)||(axes[selectionIndex].previousRange=$.extend(!0,{},model._axes[selectionIndex].visibleRange)),this.mousemoveX=this.mouseDownX=mouseDownCords.X,this.mousemoveY=this.mouseDownY=mouseDownCords.Y,this.isTouch(e)&&(this.model.event=e,this.model.touchCross=!0,$.finish?$(this.model.trackerElement).finish():$(this.model.trackerElement).stop(!0,!0),this.model.tapNum=this.model.tapNum||0,isZoom||this.doubleTap(e),chart.model.crosshair.visible&&!isZoom&&(timer=setTimeout(function(){var n=$("#"+chart.svgObject.id).find("#"+chart.svgObject.id+"_ZoomArea"),t=chart.model.elementSpacing/2,i=chart.getEvent(chart.model.event),r=i.pageX,u=i.pageY;chart.model.touchCross&&!chart.panning&&Math.abs(r-chart.model.cachedX)=0&&(id=e.target.id.split("resize")[1].match(/\d+/)[0],this.selectedRectIndex=eval(id),this.multiSelectMouseDownId=e.target.id,this.resize=!0);e.target.id.indexOf("close")>=0&&(id=e.target.id.split("close")[1].match(/\d+/)[0],this.selectedRectIndex=eval(id),this.removeRect=!0);e.target.id.indexOf(this.svgObject.id+"_selectRect")>=0&&(matchStr=this.svgObject.id+"_selectRect",this.selectedRectIndex=parseInt(e.target.id.substr(matchStr.length)));e.target.id==this.svgObject.id+"_selectRect"+this.selectedRectIndex&&(this.rectPan=!0,this.PreviousCoords={X:e.pageX,Y:e.pageY});this.isTouch(e)||this.multiSelectMouseDown(e);var trans=this.getScaleValues(this),areaBounds=$.extend(!0,{},this.model.m_AreaBounds),m_AreaBoundsX=areaBounds.X*trans.x,m_AreaBoundsY=areaBounds.Y*trans.y,m_AreaBoundsWidth=areaBounds.Width*trans.x,m_AreaBoundsHeight=areaBounds.Height*trans.y,parent=this.svgRenderer._getAttrVal($(e.target).parent(),"id"),isZoomToolkit=parent!=this.svgObject.id+"_ZoomBtn"&&parent!=this.svgObject.id+"_ZoomInBtn"&&parent!=this.svgObject.id+"_ZoomOutBtn"&&parent!=this.svgObject.id+"_ResetZoom"&&parent!=this.svgObject.id+"_PanBtn";isZoomToolkit&&this.model.zooming.enable&&!this.model.isLazyZooming&&!this.panning&&this.model.AreaType=="cartesianaxes"?this.mouseDownX>=m_AreaBoundsX&&this.mouseDownX=m_AreaBoundsY&&!this.isTouch(e)&&((isNaN(selectionIndex)||ej.util.isNullOrUndefined(selectionIndex))&&(this.drag=!0),this.disableTrackBall()):(isZoomToolkit&&this.panning||$(e.target)[0].className=="e-hhandle e-box")&&(mousePanCords=this.calMousePosition(e),this.mousePanX=mousePanCords.X,this.mousePanY=mousePanCords.Y,this.mousePanX>=m_AreaBoundsX&&this.mousePanX=m_AreaBoundsY&&(this.doPan=!0));(this.rotateActivate||this.doPan)&&(this.oPreviousCoords={x:e.pageX,y:e.pageY})}},chartMouseLeave:function(n){this.cancelEvent(n);this.isTouch(n)||($("[id*=_TrackSymbol]").remove(),this._removeHighlight(),this._removeTrackBall(),$("#"+this.svgObject.id+"_TrackToolTip").hide(),$("#"+this._id+"_tooltip").remove(),$(".tooltipDiv"+this._id).hasClass(this.svgObject.id)&&$(".tooltipDiv"+this._id).remove());var t=$.extend({},ej.EjSvgRender.commonChartEventArgs);t.data={location:{x:this.mousemoveX,y:this.mousemoveY},size:{height:this.model.svgHeight,width:this.model.svgWidth},id:n.target.id,pageX:n.pageX,pageY:n.pageY};this._trigger("chartMouseLeave",t)},_doClick:function(n){var gt,vt,h,e,o,d,tt,pt,it,c,y,f,t,wt,i,p,w,ft,u,et,nt,ot,st,bt,r;this.drag=!1;this.model.crosshairMoved||this._removeHighlight();this.model.selectedDataPointIndexes||(this.model.selectedDataPointIndexes=[]);this.model.clusterPoints=[];this.model._isStateChaged=!1;var i,u,kt,a,s,ht=this.getEvent(n),ct=ht.pageX,lt=ht.pageY,b=10,ui=n.target.id,fi=this.svgObject.id,k=this.model._visibleSeries,at=this.isZoomButtonHovered(n.target),v=n.target.id,dt;if(kt=k.length,s=this.GetSeriesPoint(n),s?(i=s.region.SeriesIndex,u=s.region.Region.PointIndex):this.model.selectionEnable&&(this.model.enable3D||n.target.id.indexOf("LegendItem")!=-1||this.model.AreaType=="none"||(h=n.target.id,e=h.match(/(\d+)/g),!e||h.indexOf("symbol")==-1&&h.indexOf("Series")==-1||h.indexOf("Text")!=-1?e&&(h.indexOf("Text")!=-1||h.indexOf("dataLabel")!=-1)&&(i=parseInt(e[0].charAt(1)),u=isNaN(parseInt(e[0].charAt(0)))?parseInt(e[0].charAt(1)):parseInt(e[0].charAt(0))):(i=parseInt(e[0]),u=isNaN(parseInt(e[1]))?0:parseInt(e[1])))),!at||this.model.enableCanvasRendering){for(f=0;f1?(i=t.legendItem.LegendItem.SeriesIndex,p=t.legendItem.LegendItem.TrendLineIndex,ej.util.isNullOrUndefined(p)?(t.series.visibility=t.series.visibility.toLowerCase()==="visible"?"hidden":"visible",this.model.series[i].visibility=t.series.visibility,this._notifyArrayChange&&this._notifyArrayChange("series["+i+"]visibility",t.series.visibility)):(w=t.series.trendlines[p].visibility.toLowerCase(),w=w==="visible"?"hidden":"visible",this.model.series[i].trendlines[p].visibility=w,this._notifyArrayChange&&this._notifyArrayChange("series["+i+"].trendlines["+p+"].visibility",w))):(this.model._isPieOfPie?(ft=this._getPieOfPiePoint(t.legendItem.LegendItem.ActualIndex,t.series,t)._visibility,u=t.legendItem.LegendItem.ActualIndex):(ft=t.series.visiblePoints[t.legendItem.LegendItem.PointIndex]._visibility,u=t.series.visiblePoints[t.legendItem.LegendItem.PointIndex].actualIndex),t.series.points[u]._visibility=ft==="visible"?"hidden":"visible"),this.model.enableCanvasRendering&&(et=document.getElementById(this._id).getClientRects()[0],this.svgRenderer.ctx.clearRect(0,0,et.width,et.height),$("#"+this._id).find('[id*="canvas_symbol"]').remove()),$(this.svgObject).empty(),$(this.legendSvgContainer).empty(),nt=0;nt=0){var ii=v.lastIndexOf("_"),ri=v.substr(ii+1,v.length),l=parseInt(ri),r=$.extend({},ej.EjSvgRender.commonChartEventArgs);r.data={location:{x:this.mousemoveX,y:this.mousemoveY},contentData:this.model.annotations[l],pageX:n.pageX,pageY:n.pageY};this._trigger("annotationClick",r)}bt=ej.isNullOrUndefined(i)?!1:this.model._visibleSeries[i].selectionSettings.enable;!ej.isNullOrUndefined(i)&&!t&&bt&&(!this.isTouch(n)||!this.model.crosshairMoved&&Math.abs(ct-this.model.cachedX)=0||c.indexOf(this.svgObject.id+"_symbolGroup")>=0?!0:!1,c.indexOf(this.svgObject.id+"_TrackSymbol_")>=0&&(ft=!0,ut=!0)))),this.model.enableCanvasRendering?l=this.findCanvasSelection(i,r,e):(it=$("#"+v).attr("class")?$("#"+v).attr("class"):"",l=it.indexOf("Selection")!=-1?!0:!1,this.model.enable3D&&(it=$("[id*=_Region_Series_"+i+"_Point_"+r+"]").attr("class")?$("[id*=_Region_Series_"+i+"_Point_"+r+"]").attr("class"):"",l=it.indexOf("Selection")!=-1?!0:!1)),(l||!p||p)&&(this.removeSelection(i,r,y,e,p,t,l),u=this.model.selectedDataPointIndexes,o=u.length,o>0&&!this.model._isStateChaged))if(p){if(l)for(f=0;f0)if(p)u.push({legendData:t,seriesIndex:i,pointIndex:r});else{for(f=0;f=o.x||u.X==0)&&(u.Y+o.y>=o.y||u.Y==0)?this.model.crosshair.visible||h=="bubble"||h=="scatter"?(n.trackerRemoved||(s=this.svgObject.id+"_TrackSymbol_"+t,s=h=="boxandwhisker"?s+c:s,$("#"+this._id).find("[id*="+s+"]").remove(),s="canvas_trackSymbol_"+t,s=h=="boxandwhisker"?s+c:s,$("#"+this._id).find("[id*="+s+"]").remove()),l={"clip-path":"url(#"+this.svgObject.id+"_ClipRectTrack_"+t+")","class":"Tracker",id:this.svgObject.id+"_TrackSymbol_"+t+"_"+c,transform:"translate("+o.x+","+o.y+")"},this.gTrackerEle=this.svgRenderer.createGroup(l)):this.gTrackerEle=null:($("#"+this.svgObject.id+"_TrackSymbol_"+t+"_"+c).remove(),l={id:this.svgObject.id+"_TrackSymbol_"+t+"_"+c},this.gTrackerEle=this.svgRenderer.createGroup(l),this.model.enableCanvasRendering||(this.model.AreaType=="polaraxes"?this.gTrackerEle.setAttribute("clip-path","url(#"+this.svgObject.id+"_SeriesGroup_"+t+"_ClipRect)"):(this.gTrackerEle.setAttribute("clip-path","url(#"+this.svgObject.id+"_ClipRectTrack_"+t+")"),this.gTrackerEle.setAttribute("transform","translate("+o.x+","+o.y+")")))),$("#"+this.svgObject.id+"_CrosshairGroup").length==0&&(w={id:this.svgObject.id+"_CrosshairGroup",visibility:"visible"},this.gTrackball=this.svgRenderer.createGroup(w),this.svgRenderer.append(this.gTrackball,this.svgObject)),this.model.crosshair.marker.visible&&!n.isIndicator&&n._visiblePoints[i].visible&&(y.drawSymbol(t,n,i,u.X,u.Y,this,r,e),u.low&&y.drawSymbol(t,n,i,this.model.requireInvertedAxes?u.low:u.X,this.model.requireInvertedAxes?u.Y:u.low,this,r)),this.gTrackerEle&&$("#"+this.gTrackerEle.id).length<1&&this.svgRenderer.append(this.gTrackerEle,this.gTrackball));$(this.svgObject).find("#"+this.svgObject.id+"_ClipRectTrack_"+t).length!=0||this.vmlRendering||this.svgRenderer.drawClipPath(p,$("#"+this.svgObject.id+"_CrosshairGroup"))},getClosesPointXY:function(n,t,i,r,u,f){var b,s=ej.EjSvgRender.utils._getTransform(i.xAxis,i.yAxis,this.model.requireInvertedAxes),k,d,o,a,nt,p,v,y=10,g=this.isTouch(f),tt=i._visiblePoints?i._visiblePoints.length:0,w,e=i.marker?$.extend(!0,{},i.marker.size):{height:6,width:6},h,c,l;if(e.height=g&&e.heightl.X+s.x-e.width&&rl.Y+s.y-e.height&&ua.X+s.x-e.width/2&&ra.Y+s.y-e.height/2&&u=f-.5&&t<=u+.5){for(r=0;ru?(i=n[n.length-1],this._closest=ej.util.isNullOrUndefined(this._closest)?i:i>this._closest?i:this._closest,this._afterMax=!0):(i=n[0],this._closest=ej.util.isNullOrUndefined(this._closest)?i:ithis.mousemoveX-i.xAxis.x&&r.boxPlotLocation[e].X-i.outlierSettings.size.width/2this.mousemoveY-i.yAxis.y&&r.boxPlotLocation[e].Y-i.outlierSettings.size.height/2<\/div>").attr("class","tooltipDiv"+this._id).css({position:"absolute","z-index":"13000",display:"block"}),$(document.body).append(u),$(".tooltipDiv"+this._id).addClass(this.svgObject.id)):($(".tooltipDiv"+this._id).css("display","block"),this.tooltipFirst=!1);i.tooltip.template!=null?(d=$("#"+i.tooltip.template).clone(),$(".tooltipDiv"+this._id)[0].innerHTML="",$(d).css("display","block").appendTo(u),i.count=1,r.count=1,y=this.getSeriesColor(r,n.SeriesIndex,i),y?$(u).css("background-color",jQuery.type(y)=="array"?y[0].color:y):$(u).css("background-color",this.model.pointColors[n.Region.PointIndex]),rt={series:i,point:r},ej.util.isNullOrUndefined(l.data.currentText)?$(u).html($(u).html().parseTemplate(rt)):$(u).html($(d).html(l.data.currentText))):$(u).html(l.data.ToolTip);var h=this.model.m_AreaBounds,f=t.pageX+s,c=t.pageY+s,w=$(u).width(),ut=$(u).height(),g=document.getElementById(this.svgObject.id).getClientRects()[0];(f===undefined||f===null)&&(f=t.pageX+s);(c===undefined||c===null)&&(c=t.pageY+s);a=f;nt=c;f-$(this.svgObject).offset().left+w>h.X+h.Width&&(b=f-(w+2*s),a=b+$(document).scrollLeft());c-$(this.svgObject).offset().top+ut>h.Y+h.Height&&(b=c+ut-(h.Y+h.Height+g.top),nt=c-b+$(document).scrollTop());a<0&&(ft=$("#"+this._id)[0].getBoundingClientRect(),t.pageX1&&(w=="series"||r))for(u=0,p=n.model.chartRegions.length;u0||s.topLeft>0||s.bottomLeft>0||s.topRight>0||s.bottomRight>0?(c=ej.EjSvgRender.utils._calculateroundedCorner(s,o),o.d=c,ej.EjCanvasRender.prototype.drawPath(o,h)):this.drawRect(o,h)))},canvasSelection:function(n,t,i,r,u,f,e,o){var ft,yt,st,dt,gt,et,h,ni,ti,ii,ht,ri,tt,nt,pt,ot,ui,ct,fi;i.seriesIndex=u;i.pointIndex=f;var it=this.model._visibleSeries,c=o.color,a=o.opacity,v=o.border.color,y=o.border.width,k=o.pattern.toLowerCase(),wt=n.model.legend.visible,d=o.mode,s=i.type.toLowerCase(),rt=document.getElementById(n._id+"_canvas").getBoundingClientRect(),l=[],ut=[],lt=this.model._visibleSeries.length,w=n.model.chartRegions,at=this.model.clusterPoints,oi={seriesIndex:u,series:i},ei=n.model.AreaType=="none"&<==1?f:u,g=this.highlightFill(o,n,u,f,r,e),vt,bt,kt,b,p;if(vt=w.length,n.model.AreaType!="none"||n.model.AreaType=="none"&<>1)for(h=0;h0){if(this.model._isPieOfPie){if(r)for(ft=0;ft1))if(ut=i._visiblePoints,p=this.createCanvasElement(n._id+"_Selection_series"+ei+"_canvas",n.svgWidth,n.svgHeight,rt),c=k=="none"||k==""?g:this.canvasPattern(p,n,t,g,o),this.createRect(n,p),s.indexOf("column")!=-1||s.indexOf("waterfall")!=-1||s.indexOf("bar")!=-1)for(h=0;h0?(l.push(ht[0]),ut.push(it[ht[0].SeriesIndex]._visiblePoints[f])):ut.push(it[tt]._visiblePoints[f]);for(this.selectedPoint=f,nt=[],pt=[],p=this.createCanvasElement(n._id+"_Selection_Cluster_point_"+f+"_canvas",n.svgWidth,n.svgHeight,rt),this.createRect(n,p),h=0,kt=it.length;h1?n.model.pointColors[c]:n.model.pointColors[i],l={opacity:r,stroke:u,lineWidth:f,color:e,x:o[c].StartX,y:o[c].StartY,radius:n.model._isPieOfPie?n.model.circularRadius[o[c].PieSeriesIndex]:n.model.circularRadius[o[c].SeriesIndex],innerRadius:n.model.innerRadius[o[c].SeriesIndex],startAngle:o[c].StartAngle,endAngle:o[c].EndAngle,type:s},this.highlightSegment(h,l)},canvasHighlightMarker:function(n,t,i,r,u,f,e){var s=r,y=s.pattern.toLowerCase(),p=t.type.toLowerCase(),o={},w=s.color!=""?s.color:n.model.seriesColors[t.seriesIndex],b,h,a,c,v,l;for(b=y=="none"||y==""?w:this.canvasPattern(u,n,f,w,s),o.Style={},o.Style.BorderColor=s.border.color,o.Style.Opacity=s.opacity,o.Style.BorderWidth=s.border.width,l=0;l1?n.model.legendRegion[t.seriesIndex]:n.model.legendRegion[t.pointIndex];var c={startX:e.Bounds.LegendBound.X+e.Location.startX,startY:e.Bounds.LegendBound.Y+e.Location.startY},v={svgRenderer:n.svgRenderer,svgObject:n.svgObject},l={SeriesIndex:o,Style:{Color:f,Opacity:i.opacity,Visibility:!0,BorderWidth:0,BorderColor:f},context:!0,ShapeSize:e.Style.ShapeSize};e.SymbolShape.toLowerCase()=="seriestype"?(n.legendItem=e.LegendItem,ej.EjSvgRender.chartSymbol["_draw"+e.SymbolShape](c,l,n)):ej.EjSvgRender.chartSymbol["_draw"+e.SymbolShape](c,l,v,h)}},createCanvasElement:function(n,t,i,r){var e,o,u=document.createElement("canvas"),s=jQuery(this.element).attr("id"),f;return u.setAttribute("id",n),u.height=i,u.width=t,u.style["touch-action"]&&(u.style["touch-action"]="none"),u.style["-ms-touch-action"]&&(u.style["-ms-touch-action"]="none"),this.svgRenderer.append(u,this.element),f=document.getElementById(n),f.style.left=r.left+$(document).scrollLeft()+"px",f.style.top=r.top+$(document).scrollTop()+"px",f.style.position="absolute",e=$("#"+this._id+"_canvas").offset(),o=$(f).offset(),e.left=0&&t.push(n)}),t},selection:function(n,t,i,r,u,f,e,o,s,h){var y=this.model.clusterPoints,vt=y?y.length:0,ht=this.model._visibleSeries,nt=ht.length,l=this.model.AreaType=="none"&&nt==1?e:f,a=i.selectionSettings,yt=this.model._visibleSeries[f].selectionSettings.type.toLowerCase()=="multiple"?!0:!1,c="series"+f,rt=!1,pt=$("#"+s).attr("name"),ut=a.pattern.toLowerCase(),b=a.mode,ct,ot,k,it,v,g,ft,tt,et,lt,at,w,p,st,d;if(o&&(ct=o.indexOf(this.svgObject.id+"_SeriesGroup_")>=0||o.indexOf(this.svgObject.id+"_Chart3D")>=0?!0:!1),(this.model.AreaType!="none"||this.model.AreaType=="none"&&b=="series"&&nt>1)&&$("style").each(function(){$(this).html().indexOf("."+n._id+"SelectionStyle"+c)>-1&&(rt=!0)}),!n.vmlRendering&&this.model.enable3D)(b=="series"||u)&&(this.model.AreaType!="none"||this.model.AreaType=="none"&&nt!=1)?(this.highlightSeries(n,f,e,"Selection",c,a,t,u,h),$("#"+this.svgObject.id+"_LegendItemShape"+l).attr("class","Selection"+c+"Style"+c+"1")):b=="cluster"&&n.model.AreaType!="none"?this.highlightCluster(n,f,e,"Selection",c,a,t,h):this.model.AreaType=="none"?(this.highlightPoint(n,f,e,"Selection",c+l,a,t,h),$("#"+this.svgObject.id+"_LegendItemShape"+l).attr("class","Selection"+c+l+"Style"+c+l+"1")):(this.highlightPoint(n,f,e,"Selection",c,a,t,h),$("#"+this.svgObject.id+"_LegendItemShape"+l).attr("class","Selection"+c+"Style"+c+"1"));else{if(b!="cluster"||u||n.model.AreaType=="none"){v={};v.name="2D";v.index=this.model.AreaType=="none"?l:f;v.api="Selection";v.color=a.color!=""?a.color:u?this.model.AreaType=="none"?this.model.pointColors[l]:this.model.seriesColors[l]:$("#"+s).attr("fill")!="none"?$("#"+s).attr("fill"):$("#"+s).attr("stroke");Object.prototype.toString.call(v.color)==="[object Array]"&&(v.color=v.color[1].color);var tt=ut=="none"||n.vmlRendering||ut==""?a.color:this.pattern(n,t,v,a),g=a.opacity,ft=a.border.color,et=a.border.width;rt||(this.model.AreaType=="none"&&((b=="series"||u)&&nt==1||b!="series"&&!u)?($("style").each(function(){$(this).html().indexOf(".SelectionStyle"+c+"Point"+l)>-1&&(rt=!0)}),rt||(this.createStyle(n,n._id+"Selection",c+"Point"+l,g,tt,ft,et),this.createStyle(n,n._id+"SelectionLegend",c+"Point"+l,g,tt,"transparent",0))):(this.model.AreaType=="none"&&nt>1||this.model.AreaType!="none")&&(this.createStyle(n,n._id+"Selection",c,g,tt,ft,et),this.createStyle(n,n._id+"SelectionLegend",c,g,tt,"transparent",0)))}if((b=="series"||u)&&(n.model.AreaType=="none"&&nt>1||n.model.AreaType!="none")){if(!ct)for(ot=$("#"+o).childNodes?$("#"+o).childNodes:[],k=0;k=0)&&($("[id$="+s+"]").attr("class",n._id+"SelectionStyle"+c),$("#"+this.svgObject.id+"_LegendItemShape"+l).attr("class",n._id+"SelectionLegendStyle"+c))}else{for(it=this.svgObject.id+"_Series",y=n.model.clusterPoints,l=s.match(/(\d+)/g),e=parseInt(l[l.length-1]),s.indexOf("SeriesText")>=0&&(lt=this.GetSeriesPoint(t),e=lt.region.Region.PointIndex),p=0;p-1&&(at=!0)});at||(this.createStyle(n,n._id+"Selection",c,g,tt,ft,et),this.createStyle(n,n._id+"SelectionLegend",c,g,tt,"transparent",0));st=$("#"+it+y[p].seriesIndex+"_Point"+y[p].pointIndex).attr("name")?n._id+"SelectionPathStyle"+c:n._id+"SelectionStyle"+c;$("#"+it+y[p].seriesIndex+"_Point"+y[p].pointIndex).attr("class",st);$("#"+it+y[p].seriesIndex+"_Point"+y[p].pointIndex+"_symbol").attr("class",st);n.model._visibleSeries[w].visibility!="hidden"&&$("#"+this.svgObject.id+"_LegendItemShape"+w).not("[class*='Highlight']").attr("class",n._id+"SelectionLegendStyle"+c);d=$("#"+s).attr("name");d!=undefined&&(d=="candle"||d.indexOf("hilo")>=0)&&$("[id$="+it+y[p].seriesIndex+"_Point"+y[p].pointIndex+"]").attr("class","HighlightStyle"+c)}r&&($("#"+this.svgObject.id+"_Series"+w+"_Point"+e).attr("class",n._id+"SelectionStyle"+c),$("#"+this.svgObject.id+"_Series"+w+"_Point"+e+"_symbol").attr("class",n._id+"SelectionStyle"+c),$("#"+o).remove())}}},removeSelection:function(n,t,i,r,u,f,e){var a=i.length,h=this.model.clusterPoints,l,v=h?h.length:0,c,s,o;if((r=="series"||f)&&(this.model.AreaType!="none"||this.model.AreaType=="none"&&a>1))for(s=0;s1?$("#"+this.svgObject.id+"_LegendItemShape"+n).attr("class",""):$("#"+this.svgObject.id+"_LegendItemShape"+t).attr("class",""),this.model._visibleSeries.length>1?$("#"+this._id+"_Selection_Legend"+n+"_canvas").remove():$("#"+this._id+"_Selection_Legend"+t+"_canvas").remove()):($("[id*="+this._id+"_Selection_series]").remove(),$("[id*="+this._id+"_Selection_Legend]").remove(),$("[id*=_Region_Series_"+n+"_Point_]").attr("class",""),$("[id*="+this.svgObject.id+"_Series"+n+"_Point]").attr("class",""),this.model._visibleSeries.length>1?$("[id*="+this.svgObject.id+"_LegendItemShape"+n+"]").attr("class",""):$("[id*="+this.svgObject.id+"_LegendItemShape]").attr("class","")))},createStyle:function(n,t,i,r,u,f,e,o){var s,h,c,l;n.vmlRendering?(s=document.createElement("style"),s.id=t+"Segment",r=r*100,h="."+t+"Style"+i+" {filter: alpha(opacity="+r+");}."+t+"PathStyle"+i+" {filter: alpha(opacity="+r+");}",s.setAttribute("type","text/css"),s.styleSheet?s.styleSheet.cssText=h:(c=document.createTextNode(h),s.appendChild(c)),l=document.getElementsByTagName("head")[0],l.appendChild(s)):($("