@univerjs-pro/sheets-chart-ui 0.12.2 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/sheets-chart-clipboard.controller.d.ts +20 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x458ea3=_0xb05f;(function(_0x1b82e0,_0x120f7c){const _0x4fc919=_0xb05f,_0x31e6dc=_0x1b82e0();while(!![]){try{const _0x38638a=parseInt(_0x4fc919(0xda))/0x1*(-parseInt(_0x4fc919(0xee))/0x2)+parseInt(_0x4fc919(0x7f))/0x3*(-parseInt(_0x4fc919(0xc3))/0x4)+-parseInt(_0x4fc919(0x106))/0x5*(parseInt(_0x4fc919(0xf9))/0x6)+parseInt(_0x4fc919(0xb1))/0x7+-parseInt(_0x4fc919(0xf3))/0x8*(-parseInt(_0x4fc919(0xac))/0x9)+parseInt(_0x4fc919(0xb2))/0xa*(-parseInt(_0x4fc919(0xfb))/0xb)+parseInt(_0x4fc919(0xbc))/0xc*(parseInt(_0x4fc919(0xf1))/0xd);if(_0x38638a===_0x120f7c)break;else _0x31e6dc['push'](_0x31e6dc['shift']());}catch(_0x1545e6){_0x31e6dc['push'](_0x31e6dc['shift']());}}}(_0x47e3,0x54b33));function _0xb05f(_0x3ffcf8,_0x30b290){const _0x47e37b=_0x47e3();return _0xb05f=function(_0xb05f90,_0x44e22a){_0xb05f90=_0xb05f90-0x72;let _0x4c1ec7=_0x47e37b[_0xb05f90];return _0x4c1ec7;},_0xb05f(_0x3ffcf8,_0x30b290);}function _0x47e3(){const _0x10b815=['253SoBMxK','主網格線','請先添加系列開始數據可視化','主標題','顯示數據標籤','最小值','顯示小計','趨勢線','百分比','排列圖','視覺映射範圍','15HfvXDp','組合圖','顯示標籤','{0}\x20透明度','添加趨勢線','面積圖','顯示公式','折線圖','空心三角形','圖表邊框顏色','小數位數','空心圓角矩形','副標題','長條圖系列','常規格式不包含任何特定的數字格式。','正值樣式','5946SzykSh','旋轉標籤','百分比堆疊','刪除圖表','千分位符格式用於一般數字的表示,貨幣和會計格式則提供貨幣值計算的專用格式。','力導向','標題位置','使用\x20{0}\x20作為類別標籤','詞雲形狀','更多設置','圓環孔','小計圖例文本','環形圖','雷達圖','趨勢線顏色','氣泡大小','指示標籤','負值樣式','日期軸僅在數據全部為日期格式時可用','Y軸標題','{0}\x20格式','堆疊方式','隱藏圖表面板','數據範圍','{0}\x20粗細','千分位符','開啟選中淡入特效','使用日期軸','空心針形','日期格式將日期和時間系列數值顯示為日期值。','佈局類型','重複詞雲標籤','(空)','水平軸','類別\x20{0}','第\x20{0}\x20項','漸變填充','数值后缀','貨幣格式用於表示一般貨幣數值,會計格式可以對一列數值進行小數點對齊。','添加系列','節點距離','圖例選擇模式','右對齊','自定義圖表','空心正方形','6118407SsAPED','使用值作為節點大小','空心圓形','{0}\x20顏色','條形圖','3290168XarWHG','77970pcfobR','百分比堆疊面積圖','累積占比系列','熱力圖','顯示空單元格為','圖表和軸標題','堆疊面積圖','趨勢線粗細','數據點','氣泡標籤','762756mNzFMj','垂直軸','所有系列','趨勢線名稱','插入圖表','字段設置','圖表數據源必須包含多於1行和1列。','892cxjivP','柱狀圖','負數類型','設置圖表','指示線類型','圖表樣式','氣泡圖至少需要2列,X軸、Y軸。','移動平均','X軸標題','中位數','桑基圖','顯示標籤線','多邊形','負值圖例文本','玫瑰圖','標籤位置','編輯圖表','指示線顏色','顯示R平方','堆疊條形圖','扇形間距','切換行或列','標籤文本','1kYDVEP','網格線和刻度線','移動平均周期','正方形','標題對齊','添加數據點','空心箭頭','系列\x20{0}','主刻度線','小計樣式','標題文本','R平方','右Y軸標題','網格線','第三四分位數','顯示軸線','瀑布圖','累積占比','數據點樣式','散點圖','1015834sSXnio','用直線連接數據點','多項式','91imnPia','箱型圖','8gbJtGX','打開圖表面板','圖表類型','貨幣類型','正值圖例文本','刻度線位置','237246HyQAAg','使用絕對值'];_0x47e3=function(){return _0x10b815;};return _0x47e3();}const e={'chart':{'insertChart':_0x458ea3(0xc0),'editChart':_0x458ea3(0xd3),'openChartPanel':_0x458ea3(0xf4),'deleteChart':_0x458ea3(0x82),'hideChartPanel':_0x458ea3(0x95),'setupChart':_0x458ea3(0xc6),'customChart':_0x458ea3(0xaa),'default':'默認','reset':'重置','chartType':_0x458ea3(0xf5),'themes':'主題','dataRange':_0x458ea3(0x96),'stack':'堆疊','category':'類別','aggregate':'聚合','allSeries':_0x458ea3(0xbe),'series':'系列','addSeries':_0x458ea3(0xa6),'moreSettings':_0x458ea3(0x88),'min':_0x458ea3(0x100),'max':'最大值','invalidType':{'gaps':'間隙','zero':'零','connectDataPointsWithStraightLines':_0x458ea3(0xef)},'blank':_0x458ea3(0x9f),'seriesBlock':{'format':'格式','dataPointStyle':_0x458ea3(0xec)},'backgroundColor':'背景顏色','chartBorderColor':_0x458ea3(0x78),'titles':{'title':'標題','mainTitle':_0x458ea3(0xfe),'subTitle':_0x458ea3(0x7b),'xAxisTitle':_0x458ea3(0xcb),'yAxisTitle':_0x458ea3(0x92),'rightYAxisTitle':_0x458ea3(0xe6),'titleFormat':'標題格式','titleText':_0x458ea3(0xe4),'titlePosition':_0x458ea3(0x85),'titleAlign':_0x458ea3(0xde)},'axisPositionType':{'start':'開始','center':'中間','end':'結束'},'gradientFill':_0x458ea3(0xa3),'settingsLabels':{'switchToRowOrColumn':_0x458ea3(0xd8),'useAsCategoryLabels':_0x458ea3(0x86),'showEmptyCellsAs':_0x458ea3(0xb6)},'positionType':{'auto':'自動','inside':'內部','outside':'外部','top':'頂部','bottom':'底部','left':'左側','right':'右側','hide':'隱藏'},'align':{'left':'左對齊','center':'居中','right':_0x458ea3(0xa9)},'alignY':{'top':'頂部','middle':'中間','bottom':'底部'},'chartStyle':_0x458ea3(0xc8),'chartAndAxisTitles':_0x458ea3(0xb7),'legend':'圖例','legendSelectMode':_0x458ea3(0xa8),'legendSelectModeType':{'single':'單選','multiple':'多選','close':'關閉'},'legendVisualMapType':{'continuous':'連續','piecewise':'分段'},'axes':{'axis':'軸','axisOptions':'軸選項','horizontalAxis':_0x458ea3(0xa0),'verticalAxis':_0x458ea3(0xbd),'rightVerticalAxis':'右垂直軸','leftAxis':'左軸','rightAxis':'右軸','useRightAxis':'使用右軸'},'position':'位置','dataLabels':'數據標籤','gridlinesAndTicks':_0x458ea3(0xdb),'indicatorLine':'指示線','indicatorLineType':_0x458ea3(0xc7),'indicatorLineColor':_0x458ea3(0xd4),'indicatorLabel':_0x458ea3(0x8f),'indicatorValue':'指示值','shape':{'polygon':_0x458ea3(0xcf),'circle':'圓形','square':_0x458ea3(0xdd),'triangle':'三角形','diamond':'菱形','rect':'矩形','roundRect':'圓角矩形','pin':'針形','arrow':'箭頭','none':'無','emptyCircle':_0x458ea3(0xae),'emptySquare':_0x458ea3(0xab),'emptyTriangle':_0x458ea3(0x77),'emptyDiamond':'空心菱形','emptyRect':'空心矩形','emptyRoundRect':_0x458ea3(0x7a),'emptyPin':_0x458ea3(0x9b),'emptyArrow':_0x458ea3(0xe0)},'border':'邊框','value':'值','fill':'填充','line':'線條','withOpacity':_0x458ea3(0x72),'withColor':_0x458ea3(0xaf),'withThickness':_0x458ea3(0x97),'withType':'{0}\x20類型','withSize':'{0}\x20大小','withShape':'{0}\x20形狀','withFormat':_0x458ea3(0x93),'dataPoint':_0x458ea3(0xba),'dataNodeShape':'節點形狀','addDataPoint':_0x458ea3(0xdf),'point':_0x458ea3(0xba),'percentage':_0x458ea3(0x103),'lineType':{'line':'折線','smooth':'平滑','step':'階梯'},'stackType':{'stack':'堆疊','percent':_0x458ea3(0x81)},'lineDashType':'線類型','dashType':{'solid':'實線','dash':'虛線','dot':'點線'},'color':'顏色','gridlines':{'majorGridlines':_0x458ea3(0xfc),'text':_0x458ea3(0xe7)},'ticks':{'majorTick':_0x458ea3(0xe2),'tickPosition':_0x458ea3(0xf8),'tickLength':'刻度線長度'},'none':'無','theIndexItem':_0x458ea3(0xa2),'seriesDefaultName':_0x458ea3(0xe1),'categoryDefaultName':_0x458ea3(0xa1),'styleEditPanel':{'showLabels':_0x458ea3(0x108),'showDataLabels':_0x458ea3(0xff),'padAngle':_0x458ea3(0xd7),'halfPie':'半餅','rosePie':_0x458ea3(0xd1),'pieValScale':'数值比例','pieValSuffix':_0x458ea3(0xa4),'pieDigitalFixed':_0x458ea3(0x79),'showLabelLine':_0x458ea3(0xce),'reverseAxisOrder':'逆序軸','showAxisLine':_0x458ea3(0xe9),'labelPosition':_0x458ea3(0xd2),'labelText':_0x458ea3(0xd9),'repeatWordCould':_0x458ea3(0x9e),'gap':'間隔','useAbsValue':_0x458ea3(0xfa),'labelRotate':'標籤旋轉','wordCloudShape':_0x458ea3(0x87),'useDateAxis':_0x458ea3(0x9a),'dateAxisTips':_0x458ea3(0x91)},'radar':{'fill':'填充'},'doughnutHole':_0x458ea3(0x89),'msg':{'invalidSource':_0x458ea3(0xc2),'emptyTips':_0x458ea3(0xfd)},'cloud':{'title':'詞雲','word':'詞','frequency':'頻率'},'trendline':{'name':_0x458ea3(0x102),'displayName':_0x458ea3(0xbf),'addTrendLine':_0x458ea3(0x73),'trendlineType':'趨勢線類型','trendlineName':_0x458ea3(0xbf),'trendlineColor':_0x458ea3(0x8d),'trendlineThickness':_0x458ea3(0xb9),'trendlineDashType':'趨勢線線類型','exp':'指數','linear':'線性','log':'對數','pow':'冪','movingAvg':_0x458ea3(0xca),'poly':_0x458ea3(0xf0),'order':'多項式階數','period':_0x458ea3(0xdc),'showFormula':_0x458ea3(0x75),'showR2':_0x458ea3(0xd5),'formula':'公式','r2':_0x458ea3(0xe5)},'bubble':{'xAxis':'X軸','yAxis':'Y軸','size':_0x458ea3(0x8e),'label':_0x458ea3(0xbb),'emptyTips':_0x458ea3(0xc9)},'relation':{'title':'關係圖','auto':'自動','circular':'環形','force':_0x458ea3(0x84),'useValueAsSymbolSize':_0x458ea3(0xad),'layoutType':_0x458ea3(0x9d),'forceOptions':'力導向選項','repulsion':'斥力','gravity':'引力','edgeLength':_0x458ea3(0xa7),'rotateLabel':_0x458ea3(0x80),'emphasis':_0x458ea3(0x99),'emptyTips':'關係圖資料來源為額外新增類型列在第二列的共詞矩陣'},'waterfall':{'stackType':_0x458ea3(0x94),'arrangement':'依序','stacked':'堆積','positive':'正值','negative':'負值','subtotal':'小計','showSubtotal':_0x458ea3(0x101),'positiveStyle':_0x458ea3(0x7e),'negativeStyle':_0x458ea3(0x90),'subtotalStyle':_0x458ea3(0xe3),'positiveLegendText':_0x458ea3(0xf7),'negativeLegendText':_0x458ea3(0xd0),'subtotalLegendText':_0x458ea3(0x8a)},'pareto':{'lineName':_0x458ea3(0xeb),'lineSeries':_0x458ea3(0xb4),'barSeries':_0x458ea3(0x7c)},'visualMapScope':_0x458ea3(0x105),'boxplot':{'min':_0x458ea3(0x100),'q1':'第一四分位數','median':_0x458ea3(0xcc),'q3':_0x458ea3(0xe8),'max':'最大值'}},'chartTypes':{'line':_0x458ea3(0x76),'area':_0x458ea3(0x74),'areaStacked':_0x458ea3(0xb8),'areaPercentStacked':_0x458ea3(0xb3),'column':_0x458ea3(0xc4),'bar':_0x458ea3(0xb0),'barStacked':_0x458ea3(0xd6),'barPercentStacked':'百分比堆疊條形圖','pie':'餅圖','donut':_0x458ea3(0x8b),'scatter':_0x458ea3(0xed),'radar':_0x458ea3(0x8c),'bubble':'氣泡圖','stock':'股票圖','combination':_0x458ea3(0x107),'wordCloud':'詞雲圖','funnel':'漏斗圖','relation':'關係圖','waterfall':_0x458ea3(0xea),'pareto':_0x458ea3(0x104),'sankey':_0x458ea3(0xcd),'heatmap':_0x458ea3(0xb5),'boxplot':_0x458ea3(0xf2)},'dialog':{'numfmt':{'general':'常規','accounting':'會計','currency':'貨幣','date':'日期','thousandthPercentile':_0x458ea3(0x98),'fieldSetting':_0x458ea3(0xc1),'formatTypes':'格式類型','confirm':'確定','cancel':'取消','generalDesc':_0x458ea3(0x7d),'accountingDesc':'會計數字格式可對一列數值進行貨幣符號和小數點對齊。','currencyDesc':_0x458ea3(0xa5),'dateDesc':_0x458ea3(0x9c),'thousandthPercentileDesc':_0x458ea3(0x83),'decimalPlaces':_0x458ea3(0x79),'currencyTypes':_0x458ea3(0xf6),'negativeNumberTypes':_0x458ea3(0xc5),'dateTypes':'日期類型'},'setFormat':'設置標籤格式'}};export{e as default};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x334b49=_0x2f3c;(function(_0x436c35,_0x123219){const _0x778e52=_0x2f3c,_0x32781d=_0x436c35();while(!![]){try{const _0x3ec6b2=-parseInt(_0x778e52(0xbe))/0x1*(parseInt(_0x778e52(0xfe))/0x2)+parseInt(_0x778e52(0xb2))/0x3*(-parseInt(_0x778e52(0xae))/0x4)+parseInt(_0x778e52(0xfc))/0x5+parseInt(_0x778e52(0xa6))/0x6+parseInt(_0x778e52(0x9b))/0x7+parseInt(_0x778e52(0xf2))/0x8+-parseInt(_0x778e52(0x96))/0x9*(parseInt(_0x778e52(0x11e))/0xa);if(_0x3ec6b2===_0x123219)break;else _0x32781d['push'](_0x32781d['shift']());}catch(_0x3fcdf8){_0x32781d['push'](_0x32781d['shift']());}}}(_0x3200,0xe6ab6));var b=Object[_0x334b49(0x8f)],k=(_0x39fbe3,_0x37e417,_0x43e70a)=>_0x37e417 in _0x39fbe3?b(_0x39fbe3,_0x37e417,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43e70a}):_0x39fbe3[_0x37e417]=_0x43e70a,n=(_0x15cc66,_0x5c0e61,_0x35ca2d)=>k(_0x15cc66,typeof _0x5c0e61!=_0x334b49(0xea)?_0x5c0e61+'':_0x5c0e61,_0x35ca2d);import{ChartThemeService as _0x15d611,ChartTypeBits as _0x72129b,LegendPositionEnum as _0x534015,SelectModeEnum as _0x1b4207,AxisAlignEnum as _0x360898,ChartBorderDashType as _0x27fc62,LinePointShape as _0x4124d9,TitlePositionEnum as _0x147b36,RadarShape as _0x25155b}from'@univerjs-pro/engine-chart';import{setProperty as _0x43a774,SheetsChartService as _0x4804fa,ChartUpdateSourceCommand as _0x96c901,ChartUpdateConfigCommand as _0x4e75d9}from'@univerjs-pro/sheets-chart';import{InsertChartCommand as _0xccc196}from'@univerjs-pro/sheets-chart-ui';import{ICommandService as _0x40485f,IUniverInstanceService as _0x34a9ce,UniverInstanceType as _0xad5a9f,generateRandomId as _0x5db1b9,DrawingTypeEnum as _0x36c659}from'@univerjs/core';import{RemoveSheetDrawingCommand as _0x21ce0a}from'@univerjs/sheets-drawing-ui';function _0x3200(){const _0x3b2fb9=['setAllSeriesStyle','Range\x20is\x20required\x20to\x20insert\x20a\x20chart','setDataPointSize','updateChart','titles.yAxisTitle.family','config','titles.title.bold','_workbook','axisPointer','getRangeInfo','titles.title.font','chartType','borderColor','ChartBorderDashType','yAxisTitle','gradientFill','registerChartTheme','tooltip.indicatorLabelColor','area','titles.title.color','dataPointColor','getSheetBySheetName','getUnitChartModels','pie','asPieChart','unitId','seriesStyleMap','setPosition','defineProperty','setXAxisTitle','tooltip.indicatorLabelTextColor','indicatorLabelTextColor','allSeriesStyle.point','invalidValueType','length','1116QtIeni','_commandService','SelectModeEnum','lineStyle','getSheetId','5331508LLcSsa','content','position','titles.xAxisTitle.content','removeChart','titles.yAxisTitle.fontSize','yRightAxis','category','chartId','allSeriesStyle.border','legend.position','9742872jmohxi','italic','extend','xAxis','sourceSheetName','subUnitId','fill','fontStyle','4vXnBBJ','series','with','rightYAxisTitle','2291817jkFCAD','asRadarChart','titles.title.align','getRenderById','left','setYAxisTitle','getSeriesData','getCharts','setFill','hasPaddingAngle','setIsHalfPie','allSeriesStyle.rightYAxis','1SxNVun','setWidth','width','addRange','yAxis.label.axisTitleAlign','allSeriesStyle.label','rightYAxis','map','rosePie','executeCommand','options','backgroundColor','getCurrentUnitForType','clearRange','bold','build','radar','point','titles.title.fontSize','setRosePie','isHalfPie','setDoughnutHole','sheetName','pie.hasPaddingAngle','height','getWorkbook','title','titles.rightYAxisTitle.content','fontColor','color','area.lineStyle','setOptions','legend.label.fontSize','insertChart','indicatorLineColor','top','xAxisTitle','context','RadarShape','LegendPositionEnum','pie.borderColor','titles.yAxisTitle.font','DRAWING_CHART','setRightYAxisTextStyle','symbol','allSeriesStyle.point.shape','border','getChartModel','xAxis.label.axisTitleAlign','titles.xAxisTitle.family','allSeriesStyle.color','titles.yAxisTitle.bold','10893800ZLqQJJ','doughnutHole','setLineStyle','setHeight','titles.rightYAxisTitle.fontSize','titles.xAxisTitle.font','yAxis','keys','Pie','dataSource','2513615UzPhwY','updateRange','1815878wKuABc','theme','titles.titlePosition','radar.shape','_injector','newChart','titles.xAxisTitle.color','titles.rightYAxisTitle.font','selectMode','dataPointShape','\x20not\x20found','getUnitId','pie.showLabelLine','get','dataPointSize','setRightYAxisTitle','setInvalidValueStrategy','setShape','setAbsolutePosition','pie.rosePie','TitlePositionEnum','getChartId','rightYAxis.label.axisTitleAlign','transposeRowsAndColumns','pie.isHalfPie','LinePointShape','showLabelLine','style','titles.yAxisTitle.color','legend.selectMode','legend.label.bold','fontSize','131710ZkPncs','titles.title.content','getCategoryData','setTransposeRowsAndColumns','allSeriesStyle','allSeriesStyle.point.size','asLineChart','font','shape','axisAlignment','range','tooltip.indicatorLineColor','UNIVER_SHEET'];_0x3200=function(){return _0x3b2fb9;};return _0x3200();}import{FWorksheet as _0x10d918}from'@univerjs/sheets/facade';import{FBase as _0x4bde75,FEnum as _0x3e553b}from'@univerjs/core/facade';import{deserializeRangeWithSheet as _0x4bcd15}from'@univerjs/engine-formula';import{IRenderManagerService as _0x438530}from'@univerjs/engine-render';import{ISheetSelectionRenderService as _0x55be9d,SheetSkeletonManagerService as _0x38f403,convertPositionCellToSheetOverGrid as _0x53dc90}from'@univerjs/sheets-ui';const s=(_0x13fdc1,_0x5945d3,_0x20492d)=>{_0x20492d!==void 0x0&&_0x43a774(_0x13fdc1,_0x5945d3,_0x20492d);},C=(_0x958ef2,_0x48b96f,_0x5c9770,_0x1a2bdc={})=>{const _0x513066=_0x334b49,_0x373be3={},_0x5de02e={};if(_0x1a2bdc['title']){const _0x3678fd=_0x1a2bdc[_0x513066(0xd8)];s(_0x373be3,_0x513066(0x11f),_0x3678fd[_0x513066(0x9c)]),s(_0x373be3,_0x513066(0x135),_0x3678fd[_0x513066(0x125)]),s(_0x373be3,_0x513066(0xd0),_0x3678fd[_0x513066(0x11d)]),s(_0x373be3,_0x513066(0x13e),_0x3678fd['fontColor']),s(_0x373be3,'titles.title.family',_0x3678fd[_0x513066(0xad)]),s(_0x373be3,_0x513066(0x131),_0x3678fd[_0x513066(0xcc)]),s(_0x373be3,_0x513066(0xb4),_0x3678fd['titleAlignment']),s(_0x373be3,_0x513066(0x100),_0x3678fd[_0x513066(0x9d)]);}if(_0x1a2bdc['legend']){const _0x1ef563=_0x1a2bdc['legend'];s(_0x373be3,_0x513066(0xa5),_0x1ef563[_0x513066(0x9d)]),s(_0x373be3,_0x513066(0x11b),_0x1ef563[_0x513066(0x106)]),s(_0x373be3,_0x513066(0xde),_0x1ef563[_0x513066(0x11d)]),s(_0x373be3,'legend.label.color',_0x1ef563[_0x513066(0xdb)]),s(_0x373be3,_0x513066(0x11c),_0x1ef563[_0x513066(0xcc)]),s(_0x373be3,'legend.label.italic',_0x1ef563[_0x513066(0xa7)]);}if(_0x1a2bdc['pie']){const _0x4619dd=_0x1a2bdc[_0x513066(0x8a)];s(_0x373be3,'pie.doughnutHole',_0x4619dd['doughnutHole']),s(_0x373be3,'pie.borderColor',_0x4619dd[_0x513066(0x137)]),s(_0x373be3,_0x513066(0xd5),_0x4619dd['hasPaddingAngle']),s(_0x373be3,_0x513066(0x116),_0x4619dd[_0x513066(0xd2)]),s(_0x373be3,_0x513066(0x111),_0x4619dd['rosePie']),s(_0x373be3,_0x513066(0x10a),_0x4619dd['showLabelLine']);}if(_0x1a2bdc[_0x513066(0x133)]){const _0x1fd5c3=_0x1a2bdc['axisPointer'];s(_0x373be3,_0x513066(0x13c),_0x1fd5c3['indicatorLabelColor']),s(_0x373be3,'tooltip.indicatorLineType',_0x1fd5c3['indicatorLineType']),s(_0x373be3,_0x513066(0x129),_0x1fd5c3[_0x513066(0xe0)]),s(_0x373be3,_0x513066(0x91),_0x1fd5c3[_0x513066(0x92)]);}if(_0x1a2bdc['allSeriesStyle']&&(s(_0x373be3,_0x513066(0xa4),_0x1a2bdc[_0x513066(0x122)][_0x513066(0xec)]),s(_0x373be3,_0x513066(0xc3),_0x1a2bdc[_0x513066(0x122)]['label']),s(_0x373be3,_0x513066(0xbd),_0x1a2bdc['allSeriesStyle'][_0x513066(0xc4)]),s(_0x373be3,_0x513066(0x93),_0x1a2bdc['allSeriesStyle'][_0x513066(0xcf)]),s(_0x373be3,_0x513066(0xf0),_0x1a2bdc[_0x513066(0x122)][_0x513066(0xdb)])),_0x1a2bdc[_0x513066(0x13d)]&&s(_0x373be3,_0x513066(0xdc),_0x1a2bdc[_0x513066(0x13d)][_0x513066(0x99)]),_0x1a2bdc[_0x513066(0xff)]&&s(_0x373be3,_0x513066(0xff),_0x1a2bdc[_0x513066(0xff)]),_0x1a2bdc['backgroundColor']&&s(_0x373be3,_0x513066(0xc9),_0x1a2bdc[_0x513066(0xc9)]),_0x1a2bdc[_0x513066(0x137)]&&s(_0x373be3,'borderColor',_0x1a2bdc[_0x513066(0x137)]),_0x1a2bdc[_0x513066(0x13a)]&&s(_0x373be3,_0x513066(0x13a),_0x1a2bdc[_0x513066(0x13a)]),_0x1a2bdc[_0x513066(0x94)]&&s(_0x373be3,_0x513066(0x94),_0x1a2bdc[_0x513066(0x94)]),_0x1a2bdc[_0x513066(0xce)]&&s(_0x373be3,_0x513066(0xce),_0x1a2bdc[_0x513066(0xce)]),_0x1a2bdc[_0x513066(0xe2)]){const _0x390a15=_0x1a2bdc['xAxisTitle'];s(_0x373be3,_0x513066(0x9e),_0x390a15[_0x513066(0x9c)]),s(_0x373be3,_0x513066(0xf7),_0x390a15[_0x513066(0x125)]),s(_0x373be3,'titles.xAxisTitle.fontSize',_0x390a15[_0x513066(0x11d)]),s(_0x373be3,_0x513066(0x104),_0x390a15[_0x513066(0xda)]),s(_0x373be3,_0x513066(0xef),_0x390a15['fontStyle']),s(_0x373be3,'titles.xAxisTitle.bold',_0x390a15[_0x513066(0xcc)]),s(_0x373be3,_0x513066(0xee),_0x390a15[_0x513066(0x127)]);}if(_0x1a2bdc['yAxisTitle']){const _0x1f3fe3=_0x1a2bdc[_0x513066(0x139)];s(_0x373be3,'titles.yAxisTitle.content',_0x1f3fe3[_0x513066(0x9c)]),s(_0x373be3,_0x513066(0xe7),_0x1f3fe3['font']),s(_0x373be3,_0x513066(0xa0),_0x1f3fe3[_0x513066(0x11d)]),s(_0x373be3,_0x513066(0x11a),_0x1f3fe3[_0x513066(0xda)]),s(_0x373be3,_0x513066(0x12f),_0x1f3fe3[_0x513066(0xad)]),s(_0x373be3,_0x513066(0xf1),_0x1f3fe3['bold']),s(_0x373be3,_0x513066(0xc2),_0x1f3fe3[_0x513066(0x127)]);}if(_0x1a2bdc[_0x513066(0xb1)]){const _0x36ee6e=_0x1a2bdc[_0x513066(0xb1)];s(_0x373be3,_0x513066(0xd9),_0x36ee6e[_0x513066(0x9c)]),s(_0x373be3,_0x513066(0x105),_0x36ee6e[_0x513066(0x125)]),s(_0x373be3,_0x513066(0xf6),_0x36ee6e['fontSize']),s(_0x373be3,'titles.rightYAxisTitle.color',_0x36ee6e[_0x513066(0xda)]),s(_0x373be3,'titles.rightYAxisTitle.family',_0x36ee6e[_0x513066(0xad)]),s(_0x373be3,'titles.rightYAxisTitle.bold',_0x36ee6e[_0x513066(0xcc)]),s(_0x373be3,_0x513066(0x114),_0x36ee6e['axisAlignment']);}_0x1a2bdc[_0x513066(0xa9)]&&s(_0x373be3,_0x513066(0xa9),_0x1a2bdc[_0x513066(0xa9)]),_0x1a2bdc[_0x513066(0xf8)]&&s(_0x373be3,'yAxis',_0x1a2bdc['yAxis']),_0x1a2bdc[_0x513066(0xa1)]&&s(_0x373be3,_0x513066(0xc4),_0x1a2bdc[_0x513066(0xa1)]),_0x1a2bdc[_0x513066(0x8d)]&&s(_0x373be3,_0x513066(0x8d),_0x1a2bdc[_0x513066(0x8d)]);const _0x1a1459={'unitId':_0x958ef2,'chartModelId':_0x48b96f};let _0x53d232=!0x1;if(_0x5c9770!==void 0x0&&(_0x1a1459[_0x513066(0x136)]=_0x5c9770,_0x53d232=!0x0),Object[_0x513066(0xf9)](_0x373be3)[_0x513066(0x95)]>0x0&&(_0x1a1459[_0x513066(0x119)]=_0x373be3,_0x53d232=!0x0),Object['keys'](_0x5de02e)['length']>0x0&&(_0x1a1459[_0x513066(0xe3)]=_0x5de02e,_0x53d232=!0x0),_0x53d232)return _0x1a1459;};class c extends _0x4bde75{constructor(_0x58ccb1,_0x41d6e2,_0x4f7dd9,_0x5ce8f9,_0x2f9d45){const _0x3dfd97=_0x334b49;super(),n(this,_0x3dfd97(0x132)),n(this,'_injector'),n(this,_0x3dfd97(0x8c)),n(this,'subUnitId'),n(this,_0x3dfd97(0xa3)),n(this,_0x3dfd97(0x128)),n(this,_0x3dfd97(0xaa)),n(this,'x'),n(this,'y'),n(this,'width'),n(this,'height'),n(this,_0x3dfd97(0x136)),n(this,_0x3dfd97(0xc8)),n(this,_0x3dfd97(0x115)),(this[_0x3dfd97(0x8c)]=_0x58ccb1,this[_0x3dfd97(0xab)]=_0x41d6e2,this['_workbook']=_0x4f7dd9,this['_injector']=_0x5ce8f9,_0x2f9d45&&(this['chartId']=_0x2f9d45));}['getChartType'](){const _0x1dd541=_0x334b49;return this[_0x1dd541(0x136)];}[_0x334b49(0xc1)](_0x35639d){const _0x2712cb=_0x334b49;if(typeof _0x35639d=='string'){const _0x468017=_0x4bcd15(_0x35639d);_0x468017['sheetName']&&(this[_0x2712cb(0xaa)]=_0x468017[_0x2712cb(0xd4)]),this[_0x2712cb(0x128)]=_0x468017[_0x2712cb(0x128)];}else this['range']=_0x35639d;return this;}[_0x334b49(0xcb)](){const _0x429abe=_0x334b49;return this[_0x429abe(0x128)]=void 0x0,this['sourceSheetName']=void 0x0,this;}[_0x334b49(0x8e)](_0x4f8d26,_0x150d6a,_0x34185d,_0x48ecad){const _0x1df770=_0x334b49,_0x5bea38=this[_0x1df770(0x102)][_0x1df770(0x10b)](_0x438530)[_0x1df770(0xb5)](this[_0x1df770(0x8c)]);if(!_0x5bea38)throw new Error('This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.');const _0xfe77ab=_0x5bea38[_0x1df770(0xb0)](_0x55be9d),_0x5159b7=_0x5bea38[_0x1df770(0xb0)](_0x38f403),{transform:_0x4aa3e0}=_0x53dc90(this[_0x1df770(0x8c)],this[_0x1df770(0xab)],{'row':_0x4f8d26,'column':_0x150d6a,'rowOffset':_0x34185d,'columnOffset':_0x48ecad},0x1,0x1,_0xfe77ab,_0x5159b7),_0xd60c6d=_0x4aa3e0[_0x1df770(0xe1)],_0x411a1d=_0x4aa3e0[_0x1df770(0xb6)];return this['x']=_0x411a1d,this['y']=_0xd60c6d,this;}[_0x334b49(0x110)](_0x529d76,_0x748d86){return this['x']=_0x529d76,this['y']=_0x748d86,this;}['setChartType'](_0x2c36c8){return this['chartType']=_0x2c36c8,this;}[_0x334b49(0xbf)](_0x3458d5){const _0x2bf250=_0x334b49;return this[_0x2bf250(0xc0)]=_0x3458d5,this;}[_0x334b49(0xf5)](_0xdf06ea){const _0x41a749=_0x334b49;return this[_0x41a749(0xd6)]=_0xdf06ea,this;}[_0x334b49(0xdd)](_0x98b009,_0x2bbd8e){const _0x516f39=_0x334b49;return this[_0x516f39(0xc8)]||(this[_0x516f39(0xc8)]={}),_0x98b009===''?(this['options']={...this['options'],..._0x2bbd8e},this):(_0x43a774(this[_0x516f39(0xc8)],_0x98b009,_0x2bbd8e),this);}[_0x334b49(0x121)](_0x252d98){const _0x407f41=_0x334b49;return this[_0x407f41(0x115)]=_0x252d98,this;}['setTheme'](_0x3440be){const _0x4ccb08=_0x334b49;return this[_0x4ccb08(0xdd)]('theme',_0x3440be),this;}[_0x334b49(0x90)](_0x1610bc){const _0x4b6edb=_0x334b49;var _0x5bd233;const _0x2b79d9=((_0x5bd233=this[_0x4b6edb(0xc8)])==null?void 0x0:_0x5bd233[_0x4b6edb(0xe2)])||{};return _0x2b79d9[_0x4b6edb(0x9c)]=_0x1610bc,this[_0x4b6edb(0xdd)](_0x4b6edb(0xe2),_0x2b79d9),this;}[_0x334b49(0xb7)](_0x253334){const _0x38f603=_0x334b49;var _0x5ab465;const _0x447eba=((_0x5ab465=this[_0x38f603(0xc8)])==null?void 0x0:_0x5ab465[_0x38f603(0x139)])||{};return _0x447eba[_0x38f603(0x9c)]=_0x253334,this[_0x38f603(0xdd)](_0x38f603(0x139),_0x447eba),this;}[_0x334b49(0x10d)](_0x31a581){const _0x1606b2=_0x334b49;var _0x2a410e;const _0x4fcb11=((_0x2a410e=this[_0x1606b2(0xc8)])==null?void 0x0:_0x2a410e[_0x1606b2(0xb1)])||{};return _0x4fcb11[_0x1606b2(0x9c)]=_0x31a581,this['setOptions'](_0x1606b2(0xb1),_0x4fcb11),this;}['setXAxisTextStyle'](_0x640666){const _0x39af3c=_0x334b49;var _0xd597e8;const _0x4bc190=((_0xd597e8=this['options'])==null?void 0x0:_0xd597e8['xAxisTitle'])||{};return this[_0x39af3c(0xdd)](_0x39af3c(0xe2),{..._0x4bc190,..._0x640666}),this;}['setYAxisTextStyle'](_0x18b561){const _0x5acca2=_0x334b49;var _0xf68bb4;const _0x2db471=((_0xf68bb4=this[_0x5acca2(0xc8)])==null?void 0x0:_0xf68bb4[_0x5acca2(0x139)])||{};return this['setOptions'](_0x5acca2(0x139),{..._0x2db471,..._0x18b561}),this;}[_0x334b49(0xe9)](_0x5a3a88){const _0x48c642=_0x334b49;var _0x24e7c9;const _0x30a66a=((_0x24e7c9=this['options'])==null?void 0x0:_0x24e7c9['rightYAxisTitle'])||{};return this['setOptions'](_0x48c642(0xb1),{..._0x30a66a,..._0x5a3a88}),this;}[_0x334b49(0x10e)](_0x16bf03){const _0x1d480f=_0x334b49;return this[_0x1d480f(0xdd)](_0x1d480f(0x94),_0x16bf03),this;}['setAxisPointerStyle'](_0x2e749c){const _0x538d65=_0x334b49;return this[_0x538d65(0xdd)]('axisPointer',_0x2e749c),this;}[_0x334b49(0x12b)](_0x21125b){const _0x275429=_0x334b49;return this['setOptions'](_0x275429(0x122),_0x21125b),this;}['setSeriesStyle'](_0x2a5570,_0x578dcc){const _0x5aa73b=_0x334b49;return this[_0x5aa73b(0xdd)]('seriesStyleMap',{[_0x2a5570]:_0x578dcc}),this;}['build'](){const _0x31ff0f=_0x334b49;var _0x4f803f;let _0x24da43=this[_0x31ff0f(0xab)];if(this[_0x31ff0f(0xaa)]){const _0x37b4e1=(_0x4f803f=this[_0x31ff0f(0x132)][_0x31ff0f(0x140)](this[_0x31ff0f(0xaa)]))==null?void 0x0:_0x4f803f[_0x31ff0f(0x9a)]();if(!_0x37b4e1)throw new Error('Sheet\x20'+this[_0x31ff0f(0xaa)]+_0x31ff0f(0x108));_0x24da43=_0x37b4e1;}return{'unitId':this[_0x31ff0f(0x8c)],'subUnitId':_0x24da43,'chartId':this['chartId'],'range':this['range'],'x':this['x'],'y':this['y'],'width':this[_0x31ff0f(0xc0)],'height':this[_0x31ff0f(0xd6)],'chartType':this['chartType'],'options':this['options'],'isRowDirection':this[_0x31ff0f(0x115)]};}}class f{constructor(_0x302252,_0x5f0f76,_0x93d7c0,_0x11626f){const _0x56cd54=_0x334b49;n(this,'unitId'),n(this,_0x56cd54(0xab)),n(this,_0x56cd54(0xa3)),n(this,_0x56cd54(0x102)),(this[_0x56cd54(0x8c)]=_0x302252,this['subUnitId']=_0x5f0f76,this[_0x56cd54(0xa3)]=_0x93d7c0,this[_0x56cd54(0x102)]=_0x11626f);}[_0x334b49(0x113)](){const _0x10d8e5=_0x334b49;return this[_0x10d8e5(0xa3)];}['getRange'](){const _0x3f7312=_0x334b49,_0x4e0e14=this['_injector'][_0x3f7312(0x10b)](_0x4804fa)[_0x3f7312(0xed)](this[_0x3f7312(0xa3)]);if(_0x4e0e14)return _0x4e0e14[_0x3f7312(0xfb)][_0x3f7312(0x134)]();}[_0x334b49(0xfd)](_0xcf4410){const _0x5f0676=_0x334b49;return this['_injector'][_0x5f0676(0x10b)](_0x40485f)['executeCommand'](_0x96c901['id'],{'unitId':this[_0x5f0676(0x8c)],'chartModelId':this['chartId'],'range':_0xcf4410});}[_0x334b49(0xb8)](){const _0x59e7d9=_0x334b49;var _0x47c272;const _0x27527e=this[_0x59e7d9(0x102)][_0x59e7d9(0x10b)](_0x4804fa)[_0x59e7d9(0xed)](this[_0x59e7d9(0xa3)]);if(_0x27527e)return(_0x47c272=_0x27527e[_0x59e7d9(0x130)])==null?void 0x0:_0x47c272[_0x59e7d9(0xaf)];}[_0x334b49(0x120)](){const _0xb57cc8=_0x334b49;var _0x4c5c2b;const _0x25afbc=this[_0xb57cc8(0x102)]['get'](_0x4804fa)['getChartModel'](this[_0xb57cc8(0xa3)]);if(_0x25afbc)return(_0x4c5c2b=_0x25afbc['config'])==null?void 0x0:_0x4c5c2b[_0xb57cc8(0xa2)];}['modify'](){const _0x46ec15=_0x334b49,_0x364745=this['_injector'][_0x46ec15(0x10b)](_0x34a9ce)[_0x46ec15(0xca)](_0xad5a9f[_0x46ec15(0x12a)]);return new c(this[_0x46ec15(0x8c)],this['subUnitId'],_0x364745,this[_0x46ec15(0x102)],this[_0x46ec15(0xa3)]);}}class Q extends _0x10d918{async[_0x334b49(0xdf)](_0x48b9df){const _0x17eccd=_0x334b49;var _0x1baf12,_0x18f6fb,_0x22f957;const _0x2d685c=_0x48b9df[_0x17eccd(0x8c)]||this[_0x17eccd(0xd7)]()[_0x17eccd(0x109)](),_0x2b5f79=_0x48b9df[_0x17eccd(0xab)]||this['getSheetId'](),_0x77d6b=_0x48b9df[_0x17eccd(0xa3)]||_0x5db1b9(),_0x2cbd61=_0x48b9df[_0x17eccd(0x136)],_0x56c295=_0x48b9df[_0x17eccd(0x128)],_0x2b267e={'x':_0x48b9df['x'],'y':_0x48b9df['y']},_0x1373b9=_0x48b9df[_0x17eccd(0xc0)],_0x11cd07=_0x48b9df['height'],_0x4dd112=(_0x1baf12=_0x48b9df[_0x17eccd(0xc8)])==null?void 0x0:_0x1baf12[_0x17eccd(0xc9)],_0x34a823=(_0x18f6fb=_0x48b9df[_0x17eccd(0xc8)])==null?void 0x0:_0x18f6fb[_0x17eccd(0x137)],_0x226ac4=C(_0x2d685c,_0x77d6b,_0x2cbd61,_0x48b9df[_0x17eccd(0xc8)]),_0x5a2461=(_0x22f957=_0x48b9df['isRowDirection'])!=null?_0x22f957:!0x0;if(!_0x56c295)throw new Error(_0x17eccd(0x12c));return await this[_0x17eccd(0x97)][_0x17eccd(0xc7)](_0xccc196['id'],{'unitId':_0x2d685c,'subUnitId':_0x2b5f79,'chartId':_0x77d6b,'chartType':_0x2cbd61,'range':_0x56c295,'position':_0x2b267e,'width':_0x1373b9,'height':_0x11cd07,'backgroundColor':_0x4dd112,'borderColor':_0x34a823,'config':_0x226ac4,'isRowDirection':_0x5a2461}),new f(_0x2d685c,_0x2b5f79,_0x77d6b,this[_0x17eccd(0x102)]);}[_0x334b49(0x12e)](_0xed8a16){const _0x34c571=_0x334b49,{unitId:_0xdaf7f6,chartId:_0x44ae61,chartType:_0x331c21,options:_0x3ee2f5}=_0xed8a16,_0xc4acad=C(_0xdaf7f6,_0x44ae61,_0x331c21,_0x3ee2f5);this[_0x34c571(0x97)][_0x34c571(0xc7)](_0x4e75d9['id'],_0xc4acad);}[_0x334b49(0x103)](_0x1d7e9f){const _0x2b0492=_0x334b49;if(_0x1d7e9f)return new c(_0x1d7e9f[_0x2b0492(0x8c)],_0x1d7e9f[_0x2b0492(0xab)],this[_0x2b0492(0x132)],this[_0x2b0492(0x102)],_0x1d7e9f[_0x2b0492(0xa3)]);const _0x52617d=this[_0x2b0492(0xd7)]()[_0x2b0492(0x109)](),_0x1ca93f=this['getSheetId']();return new c(_0x52617d,_0x1ca93f,this[_0x2b0492(0x132)],this['_injector']);}[_0x334b49(0xb9)](){const _0x43afcb=_0x334b49,_0x561a2f=this['_injector'][_0x43afcb(0x10b)](_0x4804fa),_0x282782=this[_0x43afcb(0xd7)]()[_0x43afcb(0x109)]();return _0x561a2f[_0x43afcb(0x89)](_0x282782,this['getSheetId']())[_0x43afcb(0xc5)](_0x534d99=>new f(_0x282782,this[_0x43afcb(0x9a)](),_0x534d99['id'],this[_0x43afcb(0x102)]));}[_0x334b49(0x9f)](_0x6a5914){const _0x31eae5=_0x334b49,_0x2399bf=_0x6a5914[_0x31eae5(0x8c)],_0x2b73c3=_0x6a5914['subUnitId'],_0x20713a=_0x6a5914[_0x31eae5(0xa3)],_0x5e75e1={'unitId':_0x2399bf,'drawings':[{'unitId':_0x2399bf,'subUnitId':_0x2b73c3,'drawingId':_0x20713a,'drawingType':_0x36c659[_0x31eae5(0xe8)]}]};return this[_0x31eae5(0x97)]['executeCommand'](_0x21ce0a['id'],_0x5e75e1);}[_0x334b49(0x13b)](_0x138e9c,_0x503b49){const _0x4f2956=_0x334b49;this[_0x4f2956(0x102)][_0x4f2956(0x10b)](_0x15d611)['registerTheme'](_0x138e9c,_0x503b49);}}_0x10d918[_0x334b49(0xa8)](Q);class Z extends _0x3e553b{get['ChartType'](){return _0x72129b;}get[_0x334b49(0xe5)](){return _0x534015;}get[_0x334b49(0x98)](){return _0x1b4207;}get['AxisAlignEnum'](){return _0x360898;}get[_0x334b49(0x138)](){return _0x27fc62;}get[_0x334b49(0x117)](){return _0x4124d9;}get[_0x334b49(0x112)](){return _0x147b36;}get[_0x334b49(0xe4)](){return _0x25155b;}}_0x3e553b[_0x334b49(0xa8)](Z);class tt extends c{constructor(_0x590849,_0xef16c9,_0x54f8be,_0x15d9fc,_0x1de82b){const _0x504812=_0x334b49;super(_0x590849,_0xef16c9,_0x54f8be,_0x15d9fc,_0x1de82b),n(this,_0x504812(0x99)),n(this,_0x504812(0x107)),n(this,_0x504812(0x13f)),n(this,_0x504812(0x10c));}[_0x334b49(0xf4)](_0x557846){const _0x28c0ea=_0x334b49;return this[_0x28c0ea(0x99)]=_0x557846,this;}['setDataPointShape'](_0x12c31f){const _0x45643b=_0x334b49;return this[_0x45643b(0x107)]=_0x12c31f,this;}['setDataPointColor'](_0x733735){const _0x3c3b3a=_0x334b49;return this[_0x3c3b3a(0x13f)]=_0x733735,this;}[_0x334b49(0x12d)](_0x3a8d42){const _0x243c3e=_0x334b49;return this[_0x243c3e(0x10c)]=_0x3a8d42,this;}['build'](){const _0x59f06f=_0x334b49,_0x5cfb87=super[_0x59f06f(0xcd)]();_0x5cfb87[_0x59f06f(0x136)]=_0x72129b['Line'];const _0x407fff=_0x5cfb87[_0x59f06f(0xc8)]||{};return s(_0x407fff,_0x59f06f(0xdc),this[_0x59f06f(0x99)]),s(_0x407fff,_0x59f06f(0xeb),this[_0x59f06f(0x107)]),s(_0x407fff,'allSeriesStyle.point.color',this[_0x59f06f(0x13f)]),s(_0x407fff,_0x59f06f(0x123),this['dataPointSize']),_0x5cfb87[_0x59f06f(0xc8)]=_0x407fff,_0x5cfb87;}}class et extends c{[_0x334b49(0x124)](){const _0x1785c8=_0x334b49;return new tt(this['unitId'],this[_0x1785c8(0xab)],this[_0x1785c8(0x132)],this[_0x1785c8(0x102)],this[_0x1785c8(0xa3)]);}}c[_0x334b49(0xa8)](et);class it extends c{constructor(_0x11f308,_0x2dc081,_0x15fca3,_0x5ea223,_0xd07b30){const _0x4cfd84=_0x334b49;super(_0x11f308,_0x2dc081,_0x15fca3,_0x5ea223,_0xd07b30),n(this,_0x4cfd84(0xf3)),n(this,'borderColor'),n(this,_0x4cfd84(0xbb)),n(this,'isHalfPie'),n(this,'rosePie'),n(this,_0x4cfd84(0x118));}[_0x334b49(0xd3)](_0xbe3e30){const _0x369748=_0x334b49;return this[_0x369748(0xf3)]=_0xbe3e30,this;}['setBorderColor'](_0x25d4f8){const _0x10cadd=_0x334b49;return this[_0x10cadd(0x137)]=_0x25d4f8,this;}['setHasPaddingAngle'](_0x4f0432){const _0x53d46c=_0x334b49;return this[_0x53d46c(0xbb)]=_0x4f0432,this;}[_0x334b49(0xbc)](_0x3f6ba9){return this['isHalfPie']=_0x3f6ba9,this;}[_0x334b49(0xd1)](_0x2f55b2){return this['rosePie']=_0x2f55b2,this;}['setShowLabelLine'](_0x3c9ef1){const _0x1cd07a=_0x334b49;return this[_0x1cd07a(0x118)]=_0x3c9ef1,this;}['build'](){const _0x2a6d43=_0x334b49,_0x2d4033=super[_0x2a6d43(0xcd)]();_0x2d4033[_0x2a6d43(0x136)]=_0x72129b[_0x2a6d43(0xfa)];const _0x1dc646=_0x2d4033[_0x2a6d43(0xc8)]||{};return s(_0x1dc646,'pie.doughnutHole',this['doughnutHole']),s(_0x1dc646,_0x2a6d43(0xe6),this[_0x2a6d43(0x137)]),s(_0x1dc646,_0x2a6d43(0xd5),this[_0x2a6d43(0xbb)]),s(_0x1dc646,'pie.isHalfPie',this[_0x2a6d43(0xd2)]),s(_0x1dc646,_0x2a6d43(0x111),this[_0x2a6d43(0xc6)]),s(_0x1dc646,_0x2a6d43(0x10a),this[_0x2a6d43(0x118)]),_0x2d4033[_0x2a6d43(0xc8)]=_0x1dc646,_0x2d4033;}}class st extends c{[_0x334b49(0x8b)](){const _0x1366ca=_0x334b49;return new it(this[_0x1366ca(0x8c)],this[_0x1366ca(0xab)],this[_0x1366ca(0x132)],this[_0x1366ca(0x102)],this['chartId']);}}c[_0x334b49(0xa8)](st);function _0x2f3c(_0x5b3e27,_0x4d0846){const _0x32004a=_0x3200();return _0x2f3c=function(_0x2f3c3d,_0x1067a4){_0x2f3c3d=_0x2f3c3d-0x89;let _0x2504a7=_0x32004a[_0x2f3c3d];return _0x2504a7;},_0x2f3c(_0x5b3e27,_0x4d0846);}class rt extends c{constructor(_0x2e54c9,_0x322759,_0x335bc4,_0x50ca53,_0x1afce6){const _0x235f61=_0x334b49;super(_0x2e54c9,_0x322759,_0x335bc4,_0x50ca53,_0x1afce6),n(this,_0x235f61(0x126)),n(this,_0x235f61(0xac));}[_0x334b49(0x10f)](_0x1fdbe6){const _0x4829e9=_0x334b49;return this[_0x4829e9(0x126)]=_0x1fdbe6,this;}[_0x334b49(0xba)](_0x3552e4){const _0x77693a=_0x334b49;return this[_0x77693a(0xac)]=_0x3552e4,this;}[_0x334b49(0xcd)](){const _0x62d847=_0x334b49,_0x1144ed=super['build']();_0x1144ed[_0x62d847(0x136)]=_0x72129b['Radar'];const _0x54b18b=_0x1144ed[_0x62d847(0xc8)]||{};return s(_0x54b18b,_0x62d847(0x101),this[_0x62d847(0x126)]),s(_0x54b18b,'radar.fill',this[_0x62d847(0xac)]),_0x1144ed[_0x62d847(0xc8)]=_0x54b18b,_0x1144ed;}}class ot extends c{[_0x334b49(0xb3)](){const _0x341938=_0x334b49;return new rt(this[_0x341938(0x8c)],this[_0x341938(0xab)],this['_workbook'],this[_0x341938(0x102)],this[_0x341938(0xa3)]);}}c[_0x334b49(0xa8)](ot);export{f as FChart,c as FChartBuilderBase,tt as LineChartBuilder,it as PieChartBuilder,rt as RadarChartBuilder};
|
|
1
|
+
function _0x4a41(_0x39b6b9,_0x445b78){const _0x43c589=_0x43c5();return _0x4a41=function(_0x4a415e,_0x31ee32){_0x4a415e=_0x4a415e-0x172;let _0x1702f7=_0x43c589[_0x4a415e];return _0x1702f7;},_0x4a41(_0x39b6b9,_0x445b78);}const _0x1420db=_0x4a41;(function(_0x4017a5,_0x14c401){const _0x682f80=_0x4a41,_0x3b8ed9=_0x4017a5();while(!![]){try{const _0x1fb670=-parseInt(_0x682f80(0x209))/0x1*(-parseInt(_0x682f80(0x22e))/0x2)+-parseInt(_0x682f80(0x1db))/0x3*(-parseInt(_0x682f80(0x216))/0x4)+parseInt(_0x682f80(0x1dd))/0x5+-parseInt(_0x682f80(0x1c8))/0x6*(parseInt(_0x682f80(0x1b3))/0x7)+parseInt(_0x682f80(0x200))/0x8*(parseInt(_0x682f80(0x226))/0x9)+parseInt(_0x682f80(0x1c1))/0xa+parseInt(_0x682f80(0x1fe))/0xb*(-parseInt(_0x682f80(0x19f))/0xc);if(_0x1fb670===_0x14c401)break;else _0x3b8ed9['push'](_0x3b8ed9['shift']());}catch(_0x406692){_0x3b8ed9['push'](_0x3b8ed9['shift']());}}}(_0x43c5,0x57bac));var b=Object[_0x1420db(0x188)],k=(_0x3f61b1,_0x2c30a3,_0x24827a)=>_0x2c30a3 in _0x3f61b1?b(_0x3f61b1,_0x2c30a3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24827a}):_0x3f61b1[_0x2c30a3]=_0x24827a,n=(_0xfbff53,_0xbb68f3,_0x247807)=>k(_0xfbff53,typeof _0xbb68f3!=_0x1420db(0x192)?_0xbb68f3+'':_0xbb68f3,_0x247807);import{ChartThemeService as _0x2ffba9,ChartTypeBits as _0xab92f7,LegendPositionEnum as _0x5cdfe9,SelectModeEnum as _0x326bf9,AxisAlignEnum as _0x34f266,ChartBorderDashType as _0x549221,LinePointShape as _0x34f773,TitlePositionEnum as _0x486166,RadarShape as _0x29e3ae}from'@univerjs-pro/engine-chart';import{setProperty as _0x1c81f1,SheetsChartService as _0x24b9eb,ChartUpdateSourceCommand as _0x2723ee,ChartUpdateConfigCommand as _0xecd172}from'@univerjs-pro/sheets-chart';import{InsertChartCommand as _0x232021}from'@univerjs-pro/sheets-chart-ui';import{ICommandService as _0x221972,IUniverInstanceService as _0x5b972d,UniverInstanceType as _0x2b637c,generateRandomId as _0x442c0a,DrawingTypeEnum as _0x2d77cd}from'@univerjs/core';import{RemoveSheetDrawingCommand as _0x4ed0c0}from'@univerjs/sheets-drawing-ui';import{FWorksheet as _0x37cbcc}from'@univerjs/sheets/facade';import{FBase as _0xb7e52,FEnum as _0x4209b7}from'@univerjs/core/facade';import{deserializeRangeWithSheet as _0x5c45e6}from'@univerjs/engine-formula';import{IRenderManagerService as _0x477f83}from'@univerjs/engine-render';import{ISheetSelectionRenderService as _0x5ed202,SheetSkeletonManagerService as _0x18fa58,convertPositionCellToSheetOverGrid as _0x54af28}from'@univerjs/sheets-ui';function _0x43c5(){const _0x457404=['radar.shape','LinePointShape','titles.rightYAxisTitle.bold','getRangeInfo','164CWMQtT','AxisAlignEnum','setShape','shape','getRenderById','setDataPointSize','clearRange','setDoughnutHole','seriesStyleMap','titles.title.family','setXAxisTitle','asRadarChart','UNIVER_SHEET','_workbook','newChart','setChartType','1503zNzvuL','fontColor','dataPointSize','getCurrentUnitForType','extend','dataSource','unitId','titles.rightYAxisTitle.fontSize','954acHJAM','area.lineStyle','subUnitId','font','position','titles.title.color','titles.yAxisTitle.color','titleAlignment','setWidth','build','setHasPaddingAngle','titles.yAxisTitle.content','gradientFill','legend.label.fontSize','titles.rightYAxisTitle.content','legend.label.bold','hasPaddingAngle','with','indicatorLabelColor','isHalfPie','titles.rightYAxisTitle.font','string','setSeriesStyle','setTheme','defineProperty','setBorderColor','executeCommand','DRAWING_CHART','RadarShape','getWorkbook','pie.hasPaddingAngle','fontStyle','theme','tooltip.indicatorLabelTextColor','symbol','xAxis','indicatorLineColor','setRosePie','setXAxisTextStyle','pie.showLabelLine','rosePie','chartType','style','Radar','fontSize','getSeriesData','getChartModel','21471108KnsMzr','legend.position','setYAxisTitle','context','titles.title.content','SelectModeEnum','pie.borderColor','_commandService','yAxis','tooltip.indicatorLineType','titles.title.fontSize','Pie','yAxisTitle','axisPointer','legend','range','dataPointShape','titles.rightYAxisTitle.color','setAbsolutePosition','_injector','2723oaiEco','pie.rosePie','setDataPointShape','setPosition','backgroundColor','options','fill','allSeriesStyle.label','indicatorLabelTextColor','titles.yAxisTitle.bold','axisAlignment','indicatorLineType','doughnutHole','radar.fill','7007610lJbQsk','getCategoryData','series','titles.yAxisTitle.family','setTransposeRowsAndColumns','map','registerChartTheme','3978CPzHjs','left','italic','rightYAxisTitle','titles.xAxisTitle.fontSize','pie.doughnutHole','config','titles.xAxisTitle.content','allSeriesStyle.point.color','allSeriesStyle.rightYAxis','yRightAxis','asPieChart','getUnitChartModels','xAxisTitle','category','setAxisPointerStyle','allSeriesStyle','getUnitId','allSeriesStyle.point.shape','20715Eicvfv','borderColor','2382490Dlttoe','sheetName','getSheetId','getChartType','sourceSheetName','keys','length','get','width','allSeriesStyle.point','ChartType','\x20not\x20found','pie.isHalfPie','border','dataPointColor','setOptions','allSeriesStyle.point.size','content','addRange','titles.title.align','tooltip.indicatorLabelColor','setInvalidValueStrategy','bold','asLineChart','lineStyle','chartId','allSeriesStyle.border','showLabelLine','titles.title.font','top','setDataPointColor','height','rightYAxis','11lrfCej','yAxis.label.axisTitleAlign','28712DkBrfx','titles.yAxisTitle.font','getChartId','setShowLabelLine','setAllSeriesStyle','invalidValueType','radar','removeChart','label','727rnCjme','transposeRowsAndColumns','setRightYAxisTitle','title','legend.selectMode','updateChart','titles.titlePosition','color','ChartBorderDashType'];_0x43c5=function(){return _0x457404;};return _0x43c5();}const s=(_0x2f3606,_0x22e22d,_0x20b9f8)=>{_0x20b9f8!==void 0x0&&_0x1c81f1(_0x2f3606,_0x22e22d,_0x20b9f8);},C=(_0x58bf6f,_0x2c4242,_0x4eb1d3,_0x4399b2={})=>{const _0xa8fbe1=_0x1420db,_0x1157b9={},_0x932843={};if(_0x4399b2[_0xa8fbe1(0x20c)]){const _0x447754=_0x4399b2[_0xa8fbe1(0x20c)];s(_0x1157b9,_0xa8fbe1(0x1a3),_0x447754[_0xa8fbe1(0x1ee)]),s(_0x1157b9,_0xa8fbe1(0x1f9),_0x447754[_0xa8fbe1(0x173)]),s(_0x1157b9,_0xa8fbe1(0x1a9),_0x447754['fontSize']),s(_0x1157b9,_0xa8fbe1(0x175),_0x447754[_0xa8fbe1(0x227)]),s(_0x1157b9,_0xa8fbe1(0x21f),_0x447754[_0xa8fbe1(0x18f)]),s(_0x1157b9,'titles.title.bold',_0x447754[_0xa8fbe1(0x1f3)]),s(_0x1157b9,_0xa8fbe1(0x1f0),_0x447754[_0xa8fbe1(0x177)]),s(_0x1157b9,_0xa8fbe1(0x20f),_0x447754[_0xa8fbe1(0x174)]);}if(_0x4399b2[_0xa8fbe1(0x1ad)]){const _0xea2381=_0x4399b2[_0xa8fbe1(0x1ad)];s(_0x1157b9,_0xa8fbe1(0x1a0),_0xea2381['position']),s(_0x1157b9,_0xa8fbe1(0x20d),_0xea2381['selectMode']),s(_0x1157b9,_0xa8fbe1(0x17d),_0xea2381['fontSize']),s(_0x1157b9,'legend.label.color',_0xea2381[_0xa8fbe1(0x210)]),s(_0x1157b9,_0xa8fbe1(0x17f),_0xea2381[_0xa8fbe1(0x1f3)]),s(_0x1157b9,'legend.label.italic',_0xea2381[_0xa8fbe1(0x1ca)]);}if(_0x4399b2['pie']){const _0x24b66a=_0x4399b2['pie'];s(_0x1157b9,'pie.doughnutHole',_0x24b66a[_0xa8fbe1(0x1bf)]),s(_0x1157b9,'pie.borderColor',_0x24b66a[_0xa8fbe1(0x1dc)]),s(_0x1157b9,'pie.hasPaddingAngle',_0x24b66a[_0xa8fbe1(0x180)]),s(_0x1157b9,'pie.isHalfPie',_0x24b66a['isHalfPie']),s(_0x1157b9,'pie.rosePie',_0x24b66a['rosePie']),s(_0x1157b9,_0xa8fbe1(0x197),_0x24b66a[_0xa8fbe1(0x1f8)]);}if(_0x4399b2[_0xa8fbe1(0x1ac)]){const _0x162a76=_0x4399b2[_0xa8fbe1(0x1ac)];s(_0x1157b9,_0xa8fbe1(0x1f1),_0x162a76[_0xa8fbe1(0x182)]),s(_0x1157b9,_0xa8fbe1(0x1a8),_0x162a76[_0xa8fbe1(0x1be)]),s(_0x1157b9,'tooltip.indicatorLineColor',_0x162a76[_0xa8fbe1(0x194)]),s(_0x1157b9,_0xa8fbe1(0x191),_0x162a76[_0xa8fbe1(0x1bb)]);}if(_0x4399b2['allSeriesStyle']&&(s(_0x1157b9,_0xa8fbe1(0x1f7),_0x4399b2[_0xa8fbe1(0x1d8)][_0xa8fbe1(0x1ea)]),s(_0x1157b9,_0xa8fbe1(0x1ba),_0x4399b2[_0xa8fbe1(0x1d8)][_0xa8fbe1(0x208)]),s(_0x1157b9,_0xa8fbe1(0x1d1),_0x4399b2[_0xa8fbe1(0x1d8)][_0xa8fbe1(0x1fd)]),s(_0x1157b9,_0xa8fbe1(0x1e6),_0x4399b2['allSeriesStyle']['point']),s(_0x1157b9,'allSeriesStyle.color',_0x4399b2[_0xa8fbe1(0x1d8)]['color'])),_0x4399b2['area']&&s(_0x1157b9,_0xa8fbe1(0x22f),_0x4399b2['area'][_0xa8fbe1(0x1f5)]),_0x4399b2[_0xa8fbe1(0x190)]&&s(_0x1157b9,_0xa8fbe1(0x190),_0x4399b2[_0xa8fbe1(0x190)]),_0x4399b2[_0xa8fbe1(0x1b7)]&&s(_0x1157b9,_0xa8fbe1(0x1b7),_0x4399b2[_0xa8fbe1(0x1b7)]),_0x4399b2[_0xa8fbe1(0x1dc)]&&s(_0x1157b9,_0xa8fbe1(0x1dc),_0x4399b2[_0xa8fbe1(0x1dc)]),_0x4399b2['gradientFill']&&s(_0x1157b9,'gradientFill',_0x4399b2[_0xa8fbe1(0x17c)]),_0x4399b2[_0xa8fbe1(0x205)]&&s(_0x1157b9,_0xa8fbe1(0x205),_0x4399b2[_0xa8fbe1(0x205)]),_0x4399b2[_0xa8fbe1(0x206)]&&s(_0x1157b9,_0xa8fbe1(0x206),_0x4399b2[_0xa8fbe1(0x206)]),_0x4399b2[_0xa8fbe1(0x1d5)]){const _0xe63807=_0x4399b2['xAxisTitle'];s(_0x1157b9,_0xa8fbe1(0x1cf),_0xe63807[_0xa8fbe1(0x1ee)]),s(_0x1157b9,'titles.xAxisTitle.font',_0xe63807['font']),s(_0x1157b9,_0xa8fbe1(0x1cc),_0xe63807[_0xa8fbe1(0x19c)]),s(_0x1157b9,'titles.xAxisTitle.color',_0xe63807[_0xa8fbe1(0x227)]),s(_0x1157b9,'titles.xAxisTitle.family',_0xe63807['fontStyle']),s(_0x1157b9,'titles.xAxisTitle.bold',_0xe63807['bold']),s(_0x1157b9,'xAxis.label.axisTitleAlign',_0xe63807[_0xa8fbe1(0x1bd)]);}if(_0x4399b2['yAxisTitle']){const _0x2b2167=_0x4399b2['yAxisTitle'];s(_0x1157b9,_0xa8fbe1(0x17b),_0x2b2167['content']),s(_0x1157b9,_0xa8fbe1(0x201),_0x2b2167[_0xa8fbe1(0x173)]),s(_0x1157b9,'titles.yAxisTitle.fontSize',_0x2b2167[_0xa8fbe1(0x19c)]),s(_0x1157b9,_0xa8fbe1(0x176),_0x2b2167[_0xa8fbe1(0x227)]),s(_0x1157b9,_0xa8fbe1(0x1c4),_0x2b2167[_0xa8fbe1(0x18f)]),s(_0x1157b9,_0xa8fbe1(0x1bc),_0x2b2167[_0xa8fbe1(0x1f3)]),s(_0x1157b9,_0xa8fbe1(0x1ff),_0x2b2167[_0xa8fbe1(0x1bd)]);}if(_0x4399b2[_0xa8fbe1(0x1cb)]){const _0x5df041=_0x4399b2[_0xa8fbe1(0x1cb)];s(_0x1157b9,_0xa8fbe1(0x17e),_0x5df041[_0xa8fbe1(0x1ee)]),s(_0x1157b9,_0xa8fbe1(0x184),_0x5df041['font']),s(_0x1157b9,_0xa8fbe1(0x22d),_0x5df041['fontSize']),s(_0x1157b9,_0xa8fbe1(0x1b0),_0x5df041[_0xa8fbe1(0x227)]),s(_0x1157b9,'titles.rightYAxisTitle.family',_0x5df041['fontStyle']),s(_0x1157b9,_0xa8fbe1(0x214),_0x5df041[_0xa8fbe1(0x1f3)]),s(_0x1157b9,'rightYAxis.label.axisTitleAlign',_0x5df041[_0xa8fbe1(0x1bd)]);}_0x4399b2['xAxis']&&s(_0x1157b9,_0xa8fbe1(0x193),_0x4399b2[_0xa8fbe1(0x193)]),_0x4399b2[_0xa8fbe1(0x1a7)]&&s(_0x1157b9,_0xa8fbe1(0x1a7),_0x4399b2[_0xa8fbe1(0x1a7)]),_0x4399b2[_0xa8fbe1(0x1d2)]&&s(_0x1157b9,_0xa8fbe1(0x1fd),_0x4399b2[_0xa8fbe1(0x1d2)]),_0x4399b2[_0xa8fbe1(0x21e)]&&s(_0x1157b9,_0xa8fbe1(0x21e),_0x4399b2[_0xa8fbe1(0x21e)]);const _0x4e5b4d={'unitId':_0x58bf6f,'chartModelId':_0x2c4242};let _0x11f360=!0x1;if(_0x4eb1d3!==void 0x0&&(_0x4e5b4d[_0xa8fbe1(0x199)]=_0x4eb1d3,_0x11f360=!0x0),Object['keys'](_0x1157b9)[_0xa8fbe1(0x1e3)]>0x0&&(_0x4e5b4d[_0xa8fbe1(0x19a)]=_0x1157b9,_0x11f360=!0x0),Object[_0xa8fbe1(0x1e2)](_0x932843)[_0xa8fbe1(0x1e3)]>0x0&&(_0x4e5b4d[_0xa8fbe1(0x1a2)]=_0x932843,_0x11f360=!0x0),_0x11f360)return _0x4e5b4d;};class c extends _0xb7e52{constructor(_0x26adce,_0x43be69,_0x342e5b,_0x446e47,_0x3be1f1){const _0x2bf1f4=_0x1420db;super(),n(this,'_workbook'),n(this,'_injector'),n(this,_0x2bf1f4(0x22c)),n(this,'subUnitId'),n(this,_0x2bf1f4(0x1f6)),n(this,_0x2bf1f4(0x1ae)),n(this,'sourceSheetName'),n(this,'x'),n(this,'y'),n(this,_0x2bf1f4(0x1e5)),n(this,_0x2bf1f4(0x1fc)),n(this,'chartType'),n(this,'options'),n(this,_0x2bf1f4(0x20a)),(this[_0x2bf1f4(0x22c)]=_0x26adce,this[_0x2bf1f4(0x172)]=_0x43be69,this[_0x2bf1f4(0x223)]=_0x342e5b,this['_injector']=_0x446e47,_0x3be1f1&&(this[_0x2bf1f4(0x1f6)]=_0x3be1f1));}[_0x1420db(0x1e0)](){return this['chartType'];}[_0x1420db(0x1ef)](_0x365911){const _0x3dc53e=_0x1420db;if(typeof _0x365911==_0x3dc53e(0x185)){const _0x5f3813=_0x5c45e6(_0x365911);_0x5f3813[_0x3dc53e(0x1de)]&&(this[_0x3dc53e(0x1e1)]=_0x5f3813[_0x3dc53e(0x1de)]),this[_0x3dc53e(0x1ae)]=_0x5f3813[_0x3dc53e(0x1ae)];}else this['range']=_0x365911;return this;}[_0x1420db(0x21c)](){const _0x56d8c1=_0x1420db;return this['range']=void 0x0,this[_0x56d8c1(0x1e1)]=void 0x0,this;}[_0x1420db(0x1b6)](_0xfc46c5,_0x25d582,_0x3aa972,_0x3a9bfd){const _0x143c01=_0x1420db,_0x17943a=this[_0x143c01(0x1b2)][_0x143c01(0x1e4)](_0x477f83)[_0x143c01(0x21a)](this['unitId']);if(!_0x17943a)throw new Error('This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.');const _0x353d47=_0x17943a[_0x143c01(0x181)](_0x5ed202),_0x3d0a41=_0x17943a[_0x143c01(0x181)](_0x18fa58),{transform:_0x12757c}=_0x54af28(this[_0x143c01(0x22c)],this[_0x143c01(0x172)],{'row':_0xfc46c5,'column':_0x25d582,'rowOffset':_0x3aa972,'columnOffset':_0x3a9bfd},0x1,0x1,_0x353d47,_0x3d0a41),_0x1afc15=_0x12757c[_0x143c01(0x1fa)],_0x3dd467=_0x12757c[_0x143c01(0x1c9)];return this['x']=_0x3dd467,this['y']=_0x1afc15,this;}[_0x1420db(0x1b1)](_0x478fa6,_0x16e7cc){return this['x']=_0x478fa6,this['y']=_0x16e7cc,this;}[_0x1420db(0x225)](_0x83071b){const _0x4fb32a=_0x1420db;return this[_0x4fb32a(0x199)]=_0x83071b,this;}[_0x1420db(0x178)](_0x5b6c28){const _0xa8abab=_0x1420db;return this[_0xa8abab(0x1e5)]=_0x5b6c28,this;}['setHeight'](_0x15a6e4){const _0x4c068e=_0x1420db;return this[_0x4c068e(0x1fc)]=_0x15a6e4,this;}[_0x1420db(0x1ec)](_0x30f54e,_0x1022a9){const _0x143720=_0x1420db;return this[_0x143720(0x1b8)]||(this[_0x143720(0x1b8)]={}),_0x30f54e===''?(this[_0x143720(0x1b8)]={...this[_0x143720(0x1b8)],..._0x1022a9},this):(_0x1c81f1(this['options'],_0x30f54e,_0x1022a9),this);}[_0x1420db(0x1c5)](_0x3aa805){const _0x2be89b=_0x1420db;return this[_0x2be89b(0x20a)]=_0x3aa805,this;}[_0x1420db(0x187)](_0x26d54f){const _0x48f31e=_0x1420db;return this['setOptions'](_0x48f31e(0x190),_0x26d54f),this;}[_0x1420db(0x220)](_0x34eb2e){const _0x5c8d7f=_0x1420db;var _0xc094dc;const _0x37b0b4=((_0xc094dc=this[_0x5c8d7f(0x1b8)])==null?void 0x0:_0xc094dc[_0x5c8d7f(0x1d5)])||{};return _0x37b0b4[_0x5c8d7f(0x1ee)]=_0x34eb2e,this[_0x5c8d7f(0x1ec)](_0x5c8d7f(0x1d5),_0x37b0b4),this;}[_0x1420db(0x1a1)](_0x3585c1){const _0x73f369=_0x1420db;var _0x2f9ee0;const _0x143488=((_0x2f9ee0=this[_0x73f369(0x1b8)])==null?void 0x0:_0x2f9ee0['yAxisTitle'])||{};return _0x143488[_0x73f369(0x1ee)]=_0x3585c1,this[_0x73f369(0x1ec)](_0x73f369(0x1ab),_0x143488),this;}[_0x1420db(0x20b)](_0x4000fe){const _0x468c6b=_0x1420db;var _0x2dfbd5;const _0x7829f2=((_0x2dfbd5=this[_0x468c6b(0x1b8)])==null?void 0x0:_0x2dfbd5[_0x468c6b(0x1cb)])||{};return _0x7829f2[_0x468c6b(0x1ee)]=_0x4000fe,this[_0x468c6b(0x1ec)](_0x468c6b(0x1cb),_0x7829f2),this;}[_0x1420db(0x196)](_0x407710){const _0xda3507=_0x1420db;var _0x2efa96;const _0x19cc76=((_0x2efa96=this[_0xda3507(0x1b8)])==null?void 0x0:_0x2efa96['xAxisTitle'])||{};return this[_0xda3507(0x1ec)](_0xda3507(0x1d5),{..._0x19cc76,..._0x407710}),this;}['setYAxisTextStyle'](_0xfce50b){const _0x45e285=_0x1420db;var _0x327fd0;const _0x396a6b=((_0x327fd0=this[_0x45e285(0x1b8)])==null?void 0x0:_0x327fd0[_0x45e285(0x1ab)])||{};return this[_0x45e285(0x1ec)](_0x45e285(0x1ab),{..._0x396a6b,..._0xfce50b}),this;}['setRightYAxisTextStyle'](_0x51652a){const _0x177fe6=_0x1420db;var _0x44b80d;const _0x39eadf=((_0x44b80d=this[_0x177fe6(0x1b8)])==null?void 0x0:_0x44b80d[_0x177fe6(0x1cb)])||{};return this[_0x177fe6(0x1ec)](_0x177fe6(0x1cb),{..._0x39eadf,..._0x51652a}),this;}[_0x1420db(0x1f2)](_0x57a415){const _0x2e56dd=_0x1420db;return this[_0x2e56dd(0x1ec)]('invalidValueType',_0x57a415),this;}[_0x1420db(0x1d7)](_0x1b08f6){const _0x3b8247=_0x1420db;return this[_0x3b8247(0x1ec)](_0x3b8247(0x1ac),_0x1b08f6),this;}[_0x1420db(0x204)](_0x3cbd77){const _0x296711=_0x1420db;return this[_0x296711(0x1ec)](_0x296711(0x1d8),_0x3cbd77),this;}[_0x1420db(0x186)](_0x36ff02,_0x5f0622){const _0x2d8d07=_0x1420db;return this[_0x2d8d07(0x1ec)](_0x2d8d07(0x21e),{[_0x36ff02]:_0x5f0622}),this;}[_0x1420db(0x179)](){const _0x388b34=_0x1420db;var _0x5b4866;let _0x44d092=this[_0x388b34(0x172)];if(this[_0x388b34(0x1e1)]){const _0x3f6266=(_0x5b4866=this['_workbook']['getSheetBySheetName'](this[_0x388b34(0x1e1)]))==null?void 0x0:_0x5b4866['getSheetId']();if(!_0x3f6266)throw new Error('Sheet\x20'+this[_0x388b34(0x1e1)]+_0x388b34(0x1e8));_0x44d092=_0x3f6266;}return{'unitId':this['unitId'],'subUnitId':_0x44d092,'chartId':this[_0x388b34(0x1f6)],'range':this[_0x388b34(0x1ae)],'x':this['x'],'y':this['y'],'width':this[_0x388b34(0x1e5)],'height':this[_0x388b34(0x1fc)],'chartType':this['chartType'],'options':this['options'],'isRowDirection':this[_0x388b34(0x20a)]};}}class f{constructor(_0xca8856,_0x4a15b,_0x4f5ca5,_0x53ff91){const _0x3dc573=_0x1420db;n(this,_0x3dc573(0x22c)),n(this,'subUnitId'),n(this,_0x3dc573(0x1f6)),n(this,_0x3dc573(0x1b2)),(this['unitId']=_0xca8856,this[_0x3dc573(0x172)]=_0x4a15b,this[_0x3dc573(0x1f6)]=_0x4f5ca5,this[_0x3dc573(0x1b2)]=_0x53ff91);}[_0x1420db(0x202)](){return this['chartId'];}['getRange'](){const _0x4fd066=_0x1420db,_0x2060d9=this['_injector']['get'](_0x24b9eb)[_0x4fd066(0x19e)](this[_0x4fd066(0x1f6)]);if(_0x2060d9)return _0x2060d9[_0x4fd066(0x22b)][_0x4fd066(0x215)]();}['updateRange'](_0x1845ef){const _0x580b93=_0x1420db;return this['_injector']['get'](_0x221972)['executeCommand'](_0x2723ee['id'],{'unitId':this[_0x580b93(0x22c)],'chartModelId':this[_0x580b93(0x1f6)],'range':_0x1845ef});}[_0x1420db(0x19d)](){const _0x389f61=_0x1420db;var _0x28cf30;const _0x2f0c0c=this[_0x389f61(0x1b2)]['get'](_0x24b9eb)[_0x389f61(0x19e)](this[_0x389f61(0x1f6)]);if(_0x2f0c0c)return(_0x28cf30=_0x2f0c0c[_0x389f61(0x1ce)])==null?void 0x0:_0x28cf30[_0x389f61(0x1c3)];}[_0x1420db(0x1c2)](){const _0x2cfac0=_0x1420db;var _0x3ced29;const _0x2d498f=this['_injector'][_0x2cfac0(0x1e4)](_0x24b9eb)[_0x2cfac0(0x19e)](this['chartId']);if(_0x2d498f)return(_0x3ced29=_0x2d498f['config'])==null?void 0x0:_0x3ced29[_0x2cfac0(0x1d6)];}['modify'](){const _0x1fa19c=_0x1420db,_0x2254f0=this['_injector'][_0x1fa19c(0x1e4)](_0x5b972d)[_0x1fa19c(0x229)](_0x2b637c[_0x1fa19c(0x222)]);return new c(this[_0x1fa19c(0x22c)],this[_0x1fa19c(0x172)],_0x2254f0,this['_injector'],this[_0x1fa19c(0x1f6)]);}}class Q extends _0x37cbcc{async['insertChart'](_0x4d5400){const _0x3b7842=_0x1420db;var _0x7d0483,_0x374112,_0x4cfe40;const _0x1c146a=_0x4d5400[_0x3b7842(0x22c)]||this[_0x3b7842(0x18d)]()[_0x3b7842(0x1d9)](),_0x1e1b79=_0x4d5400['subUnitId']||this[_0x3b7842(0x1df)](),_0x44d577=_0x4d5400[_0x3b7842(0x1f6)]||_0x442c0a(),_0x84b75a=_0x4d5400[_0x3b7842(0x199)],_0x3fc40d=_0x4d5400[_0x3b7842(0x1ae)],_0x28e4f6={'x':_0x4d5400['x'],'y':_0x4d5400['y']},_0x20a190=_0x4d5400['width'],_0x449822=_0x4d5400[_0x3b7842(0x1fc)],_0x263838=(_0x7d0483=_0x4d5400['options'])==null?void 0x0:_0x7d0483[_0x3b7842(0x1b7)],_0x1864d7=(_0x374112=_0x4d5400[_0x3b7842(0x1b8)])==null?void 0x0:_0x374112[_0x3b7842(0x1dc)],_0xd98928=C(_0x1c146a,_0x44d577,_0x84b75a,_0x4d5400[_0x3b7842(0x1b8)]),_0x529e58=(_0x4cfe40=_0x4d5400['isRowDirection'])!=null?_0x4cfe40:!0x0;if(!_0x3fc40d)throw new Error('Range\x20is\x20required\x20to\x20insert\x20a\x20chart');return await this['_commandService'][_0x3b7842(0x18a)](_0x232021['id'],{'unitId':_0x1c146a,'subUnitId':_0x1e1b79,'chartId':_0x44d577,'chartType':_0x84b75a,'range':_0x3fc40d,'position':_0x28e4f6,'width':_0x20a190,'height':_0x449822,'backgroundColor':_0x263838,'borderColor':_0x1864d7,'config':_0xd98928,'isRowDirection':_0x529e58}),new f(_0x1c146a,_0x1e1b79,_0x44d577,this[_0x3b7842(0x1b2)]);}[_0x1420db(0x20e)](_0x441696){const _0x367d88=_0x1420db,{unitId:_0x52a78f,chartId:_0x1d4389,chartType:_0x2c30f0,options:_0x161430}=_0x441696,_0xc68511=C(_0x52a78f,_0x1d4389,_0x2c30f0,_0x161430);this[_0x367d88(0x1a6)][_0x367d88(0x18a)](_0xecd172['id'],_0xc68511);}[_0x1420db(0x224)](_0x5630c1){const _0x522982=_0x1420db;if(_0x5630c1)return new c(_0x5630c1['unitId'],_0x5630c1['subUnitId'],this['_workbook'],this[_0x522982(0x1b2)],_0x5630c1[_0x522982(0x1f6)]);const _0x242019=this[_0x522982(0x18d)]()['getUnitId'](),_0x22f34b=this[_0x522982(0x1df)]();return new c(_0x242019,_0x22f34b,this['_workbook'],this[_0x522982(0x1b2)]);}['getCharts'](){const _0x15a6d7=_0x1420db,_0x10b035=this[_0x15a6d7(0x1b2)][_0x15a6d7(0x1e4)](_0x24b9eb),_0x2e8d20=this[_0x15a6d7(0x18d)]()[_0x15a6d7(0x1d9)]();return _0x10b035[_0x15a6d7(0x1d4)](_0x2e8d20,this['getSheetId']())[_0x15a6d7(0x1c6)](_0x4529e8=>new f(_0x2e8d20,this[_0x15a6d7(0x1df)](),_0x4529e8['id'],this['_injector']));}[_0x1420db(0x207)](_0x28bb2e){const _0x48f808=_0x1420db,_0x5a1784=_0x28bb2e[_0x48f808(0x22c)],_0x10bc1d=_0x28bb2e[_0x48f808(0x172)],_0x1f0021=_0x28bb2e[_0x48f808(0x1f6)],_0x41cd92={'unitId':_0x5a1784,'drawings':[{'unitId':_0x5a1784,'subUnitId':_0x10bc1d,'drawingId':_0x1f0021,'drawingType':_0x2d77cd[_0x48f808(0x18b)]}]};return this[_0x48f808(0x1a6)]['executeCommand'](_0x4ed0c0['id'],_0x41cd92);}[_0x1420db(0x1c7)](_0x28b131,_0x49fb66){const _0xa26d2=_0x1420db;this[_0xa26d2(0x1b2)][_0xa26d2(0x1e4)](_0x2ffba9)['registerTheme'](_0x28b131,_0x49fb66);}}_0x37cbcc['extend'](Q);class Z extends _0x4209b7{get[_0x1420db(0x1e7)](){return _0xab92f7;}get['LegendPositionEnum'](){return _0x5cdfe9;}get[_0x1420db(0x1a4)](){return _0x326bf9;}get[_0x1420db(0x217)](){return _0x34f266;}get[_0x1420db(0x211)](){return _0x549221;}get[_0x1420db(0x213)](){return _0x34f773;}get['TitlePositionEnum'](){return _0x486166;}get[_0x1420db(0x18c)](){return _0x29e3ae;}}_0x4209b7['extend'](Z);class tt extends c{constructor(_0x86686a,_0x1bb171,_0x20e829,_0x280e05,_0x1bdd91){const _0x137d3a=_0x1420db;super(_0x86686a,_0x1bb171,_0x20e829,_0x280e05,_0x1bdd91),n(this,_0x137d3a(0x1f5)),n(this,_0x137d3a(0x1af)),n(this,_0x137d3a(0x1eb)),n(this,_0x137d3a(0x228));}['setLineStyle'](_0x2c601a){const _0x508809=_0x1420db;return this[_0x508809(0x1f5)]=_0x2c601a,this;}[_0x1420db(0x1b5)](_0x16de7a){const _0x3fb2cb=_0x1420db;return this[_0x3fb2cb(0x1af)]=_0x16de7a,this;}[_0x1420db(0x1fb)](_0x2f5d5d){const _0x2303b4=_0x1420db;return this[_0x2303b4(0x1eb)]=_0x2f5d5d,this;}[_0x1420db(0x21b)](_0xcc9408){const _0x1c554f=_0x1420db;return this[_0x1c554f(0x228)]=_0xcc9408,this;}[_0x1420db(0x179)](){const _0x2a462f=_0x1420db,_0x56c6c9=super[_0x2a462f(0x179)]();_0x56c6c9[_0x2a462f(0x199)]=_0xab92f7['Line'];const _0x1c6863=_0x56c6c9[_0x2a462f(0x1b8)]||{};return s(_0x1c6863,_0x2a462f(0x22f),this[_0x2a462f(0x1f5)]),s(_0x1c6863,_0x2a462f(0x1da),this[_0x2a462f(0x1af)]),s(_0x1c6863,_0x2a462f(0x1d0),this[_0x2a462f(0x1eb)]),s(_0x1c6863,_0x2a462f(0x1ed),this['dataPointSize']),_0x56c6c9[_0x2a462f(0x1b8)]=_0x1c6863,_0x56c6c9;}}class et extends c{[_0x1420db(0x1f4)](){const _0x294a39=_0x1420db;return new tt(this[_0x294a39(0x22c)],this[_0x294a39(0x172)],this['_workbook'],this[_0x294a39(0x1b2)],this['chartId']);}}c['extend'](et);class it extends c{constructor(_0x1bf95f,_0x309168,_0x1c38e7,_0x5351b1,_0x1461dd){const _0x202b8d=_0x1420db;super(_0x1bf95f,_0x309168,_0x1c38e7,_0x5351b1,_0x1461dd),n(this,'doughnutHole'),n(this,_0x202b8d(0x1dc)),n(this,'hasPaddingAngle'),n(this,_0x202b8d(0x183)),n(this,_0x202b8d(0x198)),n(this,'showLabelLine');}[_0x1420db(0x21d)](_0x159c12){const _0x59baf4=_0x1420db;return this[_0x59baf4(0x1bf)]=_0x159c12,this;}[_0x1420db(0x189)](_0x58ab17){const _0x9af077=_0x1420db;return this[_0x9af077(0x1dc)]=_0x58ab17,this;}[_0x1420db(0x17a)](_0x4ff249){const _0x1262f5=_0x1420db;return this[_0x1262f5(0x180)]=_0x4ff249,this;}['setIsHalfPie'](_0x23b12f){return this['isHalfPie']=_0x23b12f,this;}[_0x1420db(0x195)](_0x230d1f){const _0x16c683=_0x1420db;return this[_0x16c683(0x198)]=_0x230d1f,this;}[_0x1420db(0x203)](_0xdde007){return this['showLabelLine']=_0xdde007,this;}['build'](){const _0x4d9181=_0x1420db,_0xb81a7f=super['build']();_0xb81a7f[_0x4d9181(0x199)]=_0xab92f7[_0x4d9181(0x1aa)];const _0x42560b=_0xb81a7f[_0x4d9181(0x1b8)]||{};return s(_0x42560b,_0x4d9181(0x1cd),this['doughnutHole']),s(_0x42560b,_0x4d9181(0x1a5),this['borderColor']),s(_0x42560b,_0x4d9181(0x18e),this['hasPaddingAngle']),s(_0x42560b,_0x4d9181(0x1e9),this['isHalfPie']),s(_0x42560b,_0x4d9181(0x1b4),this[_0x4d9181(0x198)]),s(_0x42560b,'pie.showLabelLine',this[_0x4d9181(0x1f8)]),_0xb81a7f[_0x4d9181(0x1b8)]=_0x42560b,_0xb81a7f;}}class st extends c{[_0x1420db(0x1d3)](){const _0x27d751=_0x1420db;return new it(this[_0x27d751(0x22c)],this[_0x27d751(0x172)],this[_0x27d751(0x223)],this[_0x27d751(0x1b2)],this[_0x27d751(0x1f6)]);}}c[_0x1420db(0x22a)](st);class rt extends c{constructor(_0x273221,_0x24ff65,_0x26dd62,_0x2413b0,_0x5c8588){const _0x4e6eea=_0x1420db;super(_0x273221,_0x24ff65,_0x26dd62,_0x2413b0,_0x5c8588),n(this,_0x4e6eea(0x219)),n(this,_0x4e6eea(0x1b9));}[_0x1420db(0x218)](_0x315e06){const _0x394ee4=_0x1420db;return this[_0x394ee4(0x219)]=_0x315e06,this;}['setFill'](_0x540c75){const _0x590f97=_0x1420db;return this[_0x590f97(0x1b9)]=_0x540c75,this;}[_0x1420db(0x179)](){const _0x63e74d=_0x1420db,_0xe4c71a=super[_0x63e74d(0x179)]();_0xe4c71a[_0x63e74d(0x199)]=_0xab92f7[_0x63e74d(0x19b)];const _0x3ed82c=_0xe4c71a[_0x63e74d(0x1b8)]||{};return s(_0x3ed82c,_0x63e74d(0x212),this[_0x63e74d(0x219)]),s(_0x3ed82c,_0x63e74d(0x1c0),this['fill']),_0xe4c71a[_0x63e74d(0x1b8)]=_0x3ed82c,_0xe4c71a;}}class ot extends c{[_0x1420db(0x221)](){const _0x550b76=_0x1420db;return new rt(this[_0x550b76(0x22c)],this[_0x550b76(0x172)],this['_workbook'],this['_injector'],this['chartId']);}}c[_0x1420db(0x22a)](ot);export{f as FChart,c as FChartBuilderBase,tt as LineChartBuilder,it as PieChartBuilder,rt as RadarChartBuilder};
|