Files
.Data
.vscode
Archive
Server
.vscode
ApiControllers
Controllers
Data
Models
Properties
Repositories
Services
Views
wwwroot
igniteui
css
js
extensions
i18n
modules
encoding
i18n
infragistics.barcode_core.js
infragistics.barcode_qrcodebarcode.js
infragistics.bulletgraph.js
infragistics.categorychart.js
infragistics.datachart_annotation.js
infragistics.datachart_category.js
infragistics.datachart_categorycore.js
infragistics.datachart_core.js
infragistics.datachart_domainChart.js
infragistics.datachart_extendedaxes.js
infragistics.datachart_extendedfinancial.js
infragistics.datachart_financial.js
infragistics.datachart_interactivity.js
infragistics.datachart_polar.js
infragistics.datachart_radial.js
infragistics.datachart_rangecategory.js
infragistics.datachart_scatter.js
infragistics.datachart_shape.js
infragistics.datachart_stacked.js
infragistics.datachart_verticalcategory.js
infragistics.datachart_visualdata.js
infragistics.datasource.js
infragistics.documents.core_core.js
infragistics.documents.core_openxml.js
infragistics.doughnutchart.js
infragistics.dv_core.js
infragistics.dv_dataseriesadapter.js
infragistics.dv_datasource.js
infragistics.dv_description.js
infragistics.dv_geo.js
infragistics.dv_geometry.js
infragistics.dv_interactivity.js
infragistics.dv_jquerydom.js
infragistics.dv_opd.js
infragistics.dv_visualdata.js
infragistics.dvcommonwidget.js
infragistics.excel_core.js
infragistics.excel_functions.js
infragistics.excel_serialization_biff8.js
infragistics.excel_serialization_openxml.js
infragistics.ext_collections.js
infragistics.ext_collectionsextended.js
infragistics.ext_core.js
infragistics.ext_io.js
infragistics.ext_text.js
infragistics.ext_threading.js
infragistics.ext_ui.js
infragistics.ext_web.js
infragistics.ext_xml.js
infragistics.financialchart.js
infragistics.funnelchart.js
infragistics.geographicmap_core.js
infragistics.gridexcelexporter.js
infragistics.legend.js
infragistics.lineargauge.js
infragistics.olap.js
infragistics.olapdatasource.doc.js
infragistics.olapflatdatasource.js
infragistics.olapxmladatasource.js
infragistics.piechart.js
infragistics.radialgauge.js
infragistics.radialmenu.js
infragistics.scheduler.core.js
infragistics.shapechart.js
infragistics.sparkline.js
infragistics.spreadsheet.js
infragistics.templating.js
infragistics.ui.barcode.js
infragistics.ui.basechart.js
infragistics.ui.bulletgraph.js
infragistics.ui.categorychart.js
infragistics.ui.chart.js
infragistics.ui.chart.template.js
infragistics.ui.chartlegend.js
infragistics.ui.colorpicker.js
infragistics.ui.colorpickersplitbutton.js
infragistics.ui.combo.js
infragistics.ui.dialog.js
infragistics.ui.doughnutchart.js
infragistics.ui.editors.js
infragistics.ui.financialchart.js
infragistics.ui.funnelchart.js
infragistics.ui.grid.appendrowsondemand.js
infragistics.ui.grid.cellmerging.js
infragistics.ui.grid.columnfixing.js
infragistics.ui.grid.columnmoving.js
infragistics.ui.grid.featurechooser.js
infragistics.ui.grid.filtering.js
infragistics.ui.grid.framework.js
infragistics.ui.grid.groupby.js
infragistics.ui.grid.hiding.js
infragistics.ui.grid.hierarchical.js
infragistics.ui.grid.multicolumnheaders.js
infragistics.ui.grid.paging.js
infragistics.ui.grid.resizing.js
infragistics.ui.grid.responsive.js
infragistics.ui.grid.rowselectors.js
infragistics.ui.grid.selection.js
infragistics.ui.grid.shared.js
infragistics.ui.grid.sorting.js
infragistics.ui.grid.summaries.js
infragistics.ui.grid.tooltips.js
infragistics.ui.grid.updating.js
infragistics.ui.htmleditor.js
infragistics.ui.layoutmanager.js
infragistics.ui.lineargauge.js
infragistics.ui.map.js
infragistics.ui.map.template.js
infragistics.ui.notifier.js
infragistics.ui.pivot.shared.js
infragistics.ui.pivotdataselector.js
infragistics.ui.pivotgrid.js
infragistics.ui.pivotview.js
infragistics.ui.popover.js
infragistics.ui.qrcodebarcode.js
infragistics.ui.radialgauge.js
infragistics.ui.radialmenu.js
infragistics.ui.rating.js
infragistics.ui.scheduler.core.js
infragistics.ui.scheduler.js
infragistics.ui.scroll.js
infragistics.ui.shapechart.js
infragistics.ui.shared.js
infragistics.ui.sparkline.js
infragistics.ui.splitbutton.js
infragistics.ui.splitter.js
infragistics.ui.spreadsheet.js
infragistics.ui.tilemanager.js
infragistics.ui.toolbar.js
infragistics.ui.toolbarbutton.js
infragistics.ui.tree.js
infragistics.ui.treegrid.columnfixing.js
infragistics.ui.treegrid.columnmoving.js
infragistics.ui.treegrid.filtering.js
infragistics.ui.treegrid.hiding.js
infragistics.ui.treegrid.js
infragistics.ui.treegrid.multicolumnheaders.js
infragistics.ui.treegrid.paging.js
infragistics.ui.treegrid.resizing.js
infragistics.ui.treegrid.rowselectors.js
infragistics.ui.treegrid.selection.js
infragistics.ui.treegrid.sorting.js
infragistics.ui.treegrid.tooltips.js
infragistics.ui.treegrid.updating.js
infragistics.ui.upload.js
infragistics.ui.validator.js
infragistics.ui.videoplayer.js
infragistics.ui.widget.js
infragistics.ui.zoombar.js
infragistics.ui.zoomslider.js
infragistics.undo.js
infragistics.util.jquery.js
infragistics.util.js
infragistics.xml.js
infragistics.zoomslider_core.js
infragistics.core.js
infragistics.dv.js
infragistics.excel-bundled.js
infragistics.loader.js
infragistics.lob.js
infragistics.scheduler-bundled.js
infragistics.spreadsheet-bundled.js
images
js
package
styles
wafer-counter.html
ApiLoggingMiddleware.cs
OI.Metrology.Server.csproj
Program.cs
compilerconfig.json
compilerconfig.json.defaults
Shared
Tests
View
Wafer-Counter
.editorconfig
.gitignore
OI-Metrology.sln
README.md
azure-pipelines-server-development.yml
azure-pipelines-server.yml
package.json
oi-metrology/Server/wwwroot/igniteui/js/modules/infragistics.ui.chartlegend.js
2023-02-16 15:17:31 -07:00

24 lines
6.1 KiB
JavaScript

/*!@license
* Infragistics.Web.ClientUI Chart 19.1.20191.172
*
* Copyright (c) 2011-2019 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends on:
* jquery.js
* jquery-ui.js
* infragistics.util.js
* infragistics.util.jquery.js
* infragistics.ext_core.js
* infragistics.ext_collections.js
* infragistics.ext_ui.js
* infragistics.dv_core.js
* infragistics.dv_geometry.js
* infragistics.dv_jquerydom.js
* infragistics.legend.js
* infragistics.datachart_core.js
* infragistics.dvcommonwidget.js
* infragistics.ui.widget.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery","jquery-ui","./infragistics.util","./infragistics.util.jquery","./infragistics.ui.widget","./infragistics.legend","./infragistics.dv_jquerydom","./infragistics.dvcommonwidget"],factory)}else{factory(jQuery)}})(function($){$.widget("ui.igChartLegend",$.ui.igWidget,{options:{type:"legend",width:null,height:null,theme:"c"},css:{legend:"ui-corner-all ui-widget-content ui-chart-legend",legendItemsList:"ui-chart-legend-items-list",legendItem:"ui-chart-legend-item",legendItemBadge:"ui-chart-legend-item-badge",legendItemText:"ui-chart-legend-item-text"},events:{legendItemMouseLeftButtonDown:null,legendItemMouseLeftButtonUp:null,legendItemMouseEnter:null,legendItemMouseLeave:null},_create:function(){var legend,o=this.options,elem=this.element;if(o.type==="item"){legend=new $.ig.ItemLegend}else if(o.type==="scale"){legend=new $.ig.ScaleLegend;if(!o.width){o.width="100px"}if(!o.height){o.height="150px"}}else{legend=new $.ig.Legend;if(o.orientation=="horizontal")legend.orientation(0)}if(o.owner){this._owner=o.owner;o.owner=this._owner.options}this.legend=legend;legend.name(this.id());legend.legendItemsListStyle(this.css.legendItemsList);legend.legendItemStyle(this.css.legendItem);legend.legendItemBadgeStyle(this.css.legendItemBadge);legend.legendItemTextStyle(this.css.legendItemText);if(o.width){this._oldWidth=elem[0].style.width;elem.css("width",o.width)}if(o.height){this._oldHeight=elem[0].style.width;elem.css("height",o.height)}this._cssLegend=this.css.legend.replace("{0}",o.theme);elem.addClass(this._cssLegend);this._bindLegendEvents(legend);var elemWrapper=new $.ig.JQueryDomWrapper(elem[0],elem);var renderer=new $.ig.JQueryDomRenderer(elemWrapper,$.proxy(this._getLocaleValue,this));this._renderer=renderer;legend.provideContainer(renderer)},_bindLegendEvents:function(legend){legend.legendItemMouseLeftButtonDown=$.ig.Delegate.prototype.combine(legend.legendItemMouseLeftButtonDown,$.proxy(this._fireLegendItemMouseLeftButtonDown,this));legend.legendItemMouseLeftButtonUp=$.ig.Delegate.prototype.combine(legend.legendItemMouseLeftButtonUp,$.proxy(this._fireLegendItemMouseLeftButtonUp,this));legend.legendItemMouseEnter=$.ig.Delegate.prototype.combine(legend.legendItemMouseEnter,$.proxy(this._fireLegendItemMouseEnter,this));legend.legendItemMouseLeave=$.ig.Delegate.prototype.combine(legend.legendItemMouseLeave,$.proxy(this._fireLegendItemMouseLeave,this))},_getLegendEvt:function(evtArgs){var e,brush,series=evtArgs.series?evtArgs.series():null,owner=this._owner;if(!owner){return null}e={legend:this.options,series:series!==null&&owner.dvWidget?owner.dvWidget._getSeriesOpt(evtArgs):owner.options,chart:owner,item:evtArgs._item};e[owner.dvWidget?owner.dvWidget._getWidgetName():owner.widgetName]=owner.options;brush=evtArgs.legendItem&&evtArgs.legendItem()!==null&&evtArgs.legendItem().content?evtArgs.legendItem().content():null;brush=brush&&brush.actualItemBrush?brush.actualItemBrush():null;if(brush===null){var intSeries=null;if(evtArgs.series&&evtArgs.series()!==null){intSeries=evtArgs.series()}if(intSeries!==null&&intSeries.hostedSeries&&intSeries.hostedSeries()!==null){intSeries=intSeries.hostedSeries()}if(intSeries!==null&&intSeries.actualMarkerBrush&&intSeries.actualMarkerBrush()!==null){brush=intSeries.actualMarkerBrush()}}e.actualItemBrush=brush?this._getValueFromBrush(brush):null;brush=series&&series.actualBrush?series.actualBrush():null;e.actualSeriesBrush=brush?this._getValueFromBrush(brush):null;return e},_getValueFromBrush:function(brush){var ret={},currStop,newStop;if(brush._isGradient){ret.type="linearGradient";if(brush._useCustomDirection){ret.startPoint={};ret.startPoint.x=brush._startX;ret.startPoint.y=brush._startY;ret.endPoint={};ret.endPoint.x=brush._endX;ret.endPoint.y=brush._endY}if(brush._gradientStops){ret.colorStops=[];for(var i=0;i<brush._gradientStops.length;i++){currStop=brush._gradientStops[i];newStop={};newStop.offset=currStop._offset;newStop.color=currStop.__fill;ret.colorStops.push(newStop)}}return ret}else{return brush.fill()}},_fireLegendItemMouseLeftButtonDown:function(sender,evtArgs){this._trigger("legendItemMouseLeftButtonDown",null,this._getLegendEvt(evtArgs))},_fireLegendItemMouseLeftButtonUp:function(sender,evtArgs){this._trigger("legendItemMouseLeftButtonUp",null,this._getLegendEvt(evtArgs))},_fireLegendItemMouseEnter:function(sender,evtArgs){this._trigger("legendItemMouseEnter",null,this._getLegendEvt(evtArgs))},_fireLegendItemMouseLeave:function(sender,evtArgs){this._trigger("legendItemMouseLeave",null,this._getLegendEvt(evtArgs))},_getLegend:function(){return this.legend},_setOption:function(key,value){switch(key){case"width":this.element.css("width",value);break;case"height":this.element.css("height",value);break}this._super(key,value)},exportVisualData:function(){if(this.legend===null){return null}return this.legend.exportVisualData()},destroy:function(){var elements,elem=this.element;this._superApply(arguments);if(this.legend){this.legend.provideContainer(null);this.legend=null}if(elem){elem.removeClass(this._cssLegend);if(this.options.width){elem[0].style.width=this._oldWidth||""}if(this.options.height){elem[0].style.height=this._oldHeight||""}if(elem.children("table").length>0){elements=elem.children("table").children("tr");$.each(elements,function(key,tr){$(tr).unbind("mouseleave").unbind("mouseup").unbind("mousedown").unbind("mousemove")})}elem.empty()}if(this._renderer!=null){this._renderer.destroy();this._renderer=null}return this},widget:function(){return this.element},id:function(){return this.element[0].id}});$.extend($.ui.igChartLegend,{version:"19.1.20191.172"});return $.ui.igChartLegend});