@univerjs-pro/sheets-chart 1.0.0-alpha.7 → 1.0.0-beta.0
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/chart-builder/sheet-chart-builder-adapter.d.ts +3 -3
- package/lib/types/chart-builder/types.d.ts +2 -2
- package/lib/types/chart-source/source-util.d.ts +0 -20
- package/lib/types/commands/chart-persisted-context.d.ts +3 -0
- package/lib/types/commands/commands/sheets-chart-update-config.command.d.ts +17 -3
- package/lib/types/commands/mutations/sheets-chart-update-config.mutation.d.ts +18 -4
- package/lib/types/common/util.d.ts +2 -8
- package/lib/types/config/config.d.ts +0 -2
- package/lib/types/facade/index.d.ts +2 -3
- package/lib/types/index.d.ts +12 -5
- package/lib/types/locale/en-US.d.ts +54 -2
- package/lib/types/models/types.d.ts +1 -2
- package/lib/types/plugin.d.ts +0 -1
- package/lib/types/services/chart-model.service.d.ts +12 -14
- package/lib/types/services/sheet-chart-range-watcher.d.ts +5 -5
- package/lib/types/services/sheets-chart.service.d.ts +4 -5
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
- package/lib/types/chart-builder/index.d.ts +0 -10
- package/lib/types/facade/chart/index.d.ts +0 -2
- package/lib/types/models/chart-model.d.ts +0 -22
package/lib/umd/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4ae2(_0x45906f,_0x5380a4){_0x45906f=_0x45906f-0x1b0;var _0x1c37f6=_0x1c37();var _0x4ae203=_0x1c37f6[_0x45906f];return _0x4ae203;}function _0x1c37(){var _0x4c51e2=['請先添加系列開始數據可視化','2519190RXGJAu','6JOxNix','292QRzeYB','10160336jTUAEE','收盤價','自身值','開盤價','所選數值欄位不包含數值資料。','exports','旭日圖至少需要一個階層欄位和一個數值欄位。','1123855OEnQsf','第一四分位數','關係數','此圖表類型沒有欄位使用規則。','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','所選欄位無法構成此圖表所需的有效資料結構。','中位數','此圖表需要更多標籤欄位。','最小值','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','數值欄位','桑基圖不能包含循環數據','累積占比','8139jGwnmb','function','360525XlLklE','15177033AeyKVG','類別\x20{0}','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','(空)','矩形樹圖至少需要一個階層欄位和一個數值欄位。','25669700kxheyC','所選圖表欄位已無法使用。','Value','系列\x20{0}','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','最高價','amd','氣泡圖至少需要2欄,X軸、Y軸。','此圖表需要更多數值欄位。','關聯值','7giRzwV','object','最低價'];_0x1c37=function(){return _0x4c51e2;};return _0x1c37();}(function(_0x3f355f,_0x1cc4a7){var _0x395a01=_0x4ae2,_0x44fbbf=_0x3f355f();while(!![]){try{var _0x217276=-parseInt(_0x395a01(0x1d9))/0x1+parseInt(_0x395a01(0x1c0))/0x2+-parseInt(_0x395a01(0x1d7))/0x3*(parseInt(_0x395a01(0x1c2))/0x4)+parseInt(_0x395a01(0x1ca))/0x5*(-parseInt(_0x395a01(0x1c1))/0x6)+parseInt(_0x395a01(0x1bc))/0x7*(parseInt(_0x395a01(0x1c3))/0x8)+parseInt(_0x395a01(0x1da))/0x9+-parseInt(_0x395a01(0x1b1))/0xa;if(_0x217276===_0x1cc4a7)break;else _0x44fbbf['push'](_0x44fbbf['shift']());}catch(_0x32ac25){_0x44fbbf['push'](_0x44fbbf['shift']());}}}(_0x1c37,0xd357b),function(_0x39b6d1,_0x40b128){var _0x1e6ab6=_0x4ae2;typeof exports==_0x1e6ab6(0x1bd)&&typeof module<'u'?module[_0x1e6ab6(0x1c8)]=_0x40b128():typeof define==_0x1e6ab6(0x1d8)&&define[_0x1e6ab6(0x1b8)]?define([],_0x40b128):(_0x39b6d1=typeof globalThis<'u'?globalThis:_0x39b6d1||self,_0x39b6d1['UniverProSheetsChartZhHK']=_0x40b128());}(this,function(){var _0x26bff0=_0x4ae2;return{'sheets-chart':{'seriesDefaultName':_0x26bff0(0x1b4),'categoryDefaultName':_0x26bff0(0x1db),'blank':_0x26bff0(0x1dd),'msg':{'emptyTips':_0x26bff0(0x1bf),'sankeyCircularTips':_0x26bff0(0x1d5)},'bubble':{'emptyTips':_0x26bff0(0x1b9)},'relation':{'emptyTips':_0x26bff0(0x1d3)},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x26bff0(0x1d6)},'boxplot':{'min':_0x26bff0(0x1d2),'q1':_0x26bff0(0x1cb),'median':_0x26bff0(0x1d0),'q3':'第三四分位數','max':'最大值'},'candlestick':{'series':'OHLC\x20數列','category':'Category','open':_0x26bff0(0x1c6),'high':_0x26bff0(0x1b7),'low':_0x26bff0(0x1be),'close':_0x26bff0(0x1c4)},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':'階層欄位','value':_0x26bff0(0x1d4),'ownValue':_0x26bff0(0x1c5),'children':'子項','diagnostic':_0x26bff0(0x1b0)},'sunburst':{'hierarchy':'階層','value':_0x26bff0(0x1b3),'ownValue':_0x26bff0(0x1c5),'children':'子項','diagnostic':_0x26bff0(0x1c9)},'gauge':{'label':'標籤','value':'Value','emptyDiagnostic':'儀表圖至少需要一個有限數值。','mappingDiagnostic':_0x26bff0(0x1b6),'configDiagnostic':_0x26bff0(0x1dc)},'chord':{'emptyDiagnostic':'弦圖至少需要兩個不同節點之間的一條正權重關係。','mappingDiagnostic':_0x26bff0(0x1ce),'configDiagnostic':_0x26bff0(0x1b5),'source':'來源','target':'目標','value':_0x26bff0(0x1b3),'count':_0x26bff0(0x1cc),'associatedValue':_0x26bff0(0x1bb)},'chartField':{'missingCategoryFields':_0x26bff0(0x1d1),'missingSeriesFields':_0x26bff0(0x1ba),'invalidFieldIndex':_0x26bff0(0x1b2),'invalidValueFieldType':_0x26bff0(0x1c7),'invalidDataStructure':_0x26bff0(0x1cf),'unsupportedChartType':_0x26bff0(0x1cd)}}};}));
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x308848,_0x159c87){var _0x22ef07=_0x1bdb,_0x105e8f=_0x308848();while(!![]){try{var _0x409306=-parseInt(_0x22ef07(0x108))/0x1+parseInt(_0x22ef07(0x11d))/0x2+-parseInt(_0x22ef07(0x117))/0x3*(parseInt(_0x22ef07(0x112))/0x4)+parseInt(_0x22ef07(0x106))/0x5+-parseInt(_0x22ef07(0x116))/0x6*(-parseInt(_0x22ef07(0x10f))/0x7)+-parseInt(_0x22ef07(0x103))/0x8*(-parseInt(_0x22ef07(0x115))/0x9)+-parseInt(_0x22ef07(0x102))/0xa;if(_0x409306===_0x159c87)break;else _0x105e8f['push'](_0x105e8f['shift']());}catch(_0x254517){_0x105e8f['push'](_0x105e8f['shift']());}}}(_0x1fbf,0x77c23),function(_0x58b522,_0x9bb145){var _0x422077=_0x1bdb;typeof exports=='object'&&typeof module<'u'?module[_0x422077(0xfe)]=_0x9bb145():typeof define=='function'&&define[_0x422077(0x127)]?define([],_0x9bb145):(_0x58b522=typeof globalThis<'u'?globalThis:_0x58b522||self,_0x58b522[_0x422077(0x11a)]=_0x9bb145());}(this,function(){var _0x55cc19=_0x1bdb;return{'sheets-chart':{'seriesDefaultName':_0x55cc19(0x110),'categoryDefaultName':_0x55cc19(0x11e),'blank':'(空)','msg':{'emptyTips':_0x55cc19(0x11f),'sankeyCircularTips':_0x55cc19(0x104)},'bubble':{'emptyTips':_0x55cc19(0x120)},'relation':{'emptyTips':'關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣'},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x55cc19(0x10d)},'boxplot':{'min':_0x55cc19(0x121),'q1':_0x55cc19(0x100),'median':_0x55cc19(0xfc),'q3':_0x55cc19(0x105),'max':'最大值'},'candlestick':{'series':_0x55cc19(0x122),'category':_0x55cc19(0x107),'open':_0x55cc19(0x10a),'high':_0x55cc19(0xfd),'low':_0x55cc19(0x10e),'close':_0x55cc19(0x123)},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':_0x55cc19(0x10b),'value':_0x55cc19(0x10c),'ownValue':_0x55cc19(0xfb),'children':'子項','diagnostic':_0x55cc19(0x11b)},'sunburst':{'hierarchy':'階層','value':'Value','ownValue':_0x55cc19(0xfb),'children':'子項','diagnostic':_0x55cc19(0x101)},'gauge':{'label':'標籤','value':_0x55cc19(0x11c),'emptyDiagnostic':_0x55cc19(0xff),'mappingDiagnostic':_0x55cc19(0xfa),'configDiagnostic':_0x55cc19(0x113)},'chord':{'emptyDiagnostic':_0x55cc19(0xf9),'mappingDiagnostic':_0x55cc19(0x109),'configDiagnostic':'弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','source':'來源','target':'目標','value':_0x55cc19(0x11c),'count':_0x55cc19(0x118),'associatedValue':'關聯值'},'chartField':{'missingCategoryFields':_0x55cc19(0x114),'missingSeriesFields':_0x55cc19(0x119),'invalidFieldIndex':_0x55cc19(0x111),'invalidValueFieldType':_0x55cc19(0x124),'invalidDataStructure':_0x55cc19(0x125),'unsupportedChartType':_0x55cc19(0x126)}}};}));function _0x1bdb(_0x2c1a6b,_0x4acad6){_0x2c1a6b=_0x2c1a6b-0xf9;var _0x1fbf20=_0x1fbf();var _0x1bdb0a=_0x1fbf20[_0x2c1a6b];return _0x1bdb0a;}function _0x1fbf(){var _0xd58f97=['1637300TIDnMA','Category','362573WHDRDo','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','開盤價','階層欄位','數值欄位','累積占比','最低價','17556nDisIP','系列\x20{0}','選取的圖表欄位已無法使用。','1470812kZPzFi','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','這個圖表需要更多標籤欄位。','9xnmnQz','1734MpNiKD','3AAFSNw','關係數','這個圖表需要更多數值欄位。','UniverProSheetsChartZhTW','矩形樹圖至少需要一個階層欄位和一個數值欄位。','Value','1450734dkcAfG','類別\x20{0}','請先添加系列開始數據可視化','氣泡圖至少需要2欄,X軸、Y軸。','最小值','OHLC\x20數列','收盤價','選取的數值欄位不包含數值資料。','選取的欄位無法構成這個圖表所需的有效資料結構。','這個圖表類型沒有欄位使用規則。','amd','弦圖至少需要兩個不同節點之間的一條正權重關係。','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','自身值','中位數','最高價','exports','儀表圖至少需要一個有限數值。','第一四分位數','旭日圖至少需要一個階層欄位和一個數值欄位。','14171650fKNGVo','6882664IDCZeF','桑基圖不能包含循環數據','第三四分位數'];_0x1fbf=function(){return _0xd58f97;};return _0x1fbf();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-chart",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Chart model integration for Univer Sheets.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -66,19 +66,19 @@
|
|
|
66
66
|
"rxjs": ">=7.0.0"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@univerjs-pro/engine-chart": "1.0.0-
|
|
70
|
-
"@univerjs-pro/license": "1.0.0-
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/
|
|
73
|
-
"@univerjs/sheets": "1.0.0-
|
|
74
|
-
"@univerjs/
|
|
69
|
+
"@univerjs-pro/engine-chart": "1.0.0-beta.0",
|
|
70
|
+
"@univerjs-pro/license": "1.0.0-beta.0",
|
|
71
|
+
"@univerjs/core": "1.0.0-beta.0",
|
|
72
|
+
"@univerjs/engine-formula": "1.0.0-beta.0",
|
|
73
|
+
"@univerjs/sheets": "1.0.0-beta.0",
|
|
74
|
+
"@univerjs/sheets-drawing": "1.0.0-beta.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"rxjs": "7.8.2",
|
|
78
78
|
"typescript": "^6.0.3",
|
|
79
79
|
"vitest": "^4.1.10",
|
|
80
|
-
"@univerjs-infra/shared": "1.0.0-
|
|
81
|
-
"@univerjs/drawing": "1.0.0-
|
|
80
|
+
"@univerjs-infra/shared": "1.0.0-beta.0",
|
|
81
|
+
"@univerjs/drawing": "1.0.0-beta.0"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"test": "vitest run",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { SheetChartBuilder } from './sheet-chart-builder';
|
|
2
|
-
export { SheetChartBuilderAdapter } from './sheet-chart-builder-adapter';
|
|
3
|
-
export type { ISheetChartBuilderAdapter, ISheetChartBuilderAdapterContext, ISheetChartHostPatch } from './sheet-chart-builder-adapter';
|
|
4
|
-
export { toSheetChartCreateSpec } from './sheet-chart-create-spec';
|
|
5
|
-
export type { ISheetChartDescriptionExtension } from './sheet-chart-description';
|
|
6
|
-
export { buildLayoutDrawingPatch, describeLayout, getWorkbook, resolveInitialChartPosition } from './sheet-chart-layout';
|
|
7
|
-
export type { ISheetChartLayoutContext } from './sheet-chart-layout';
|
|
8
|
-
export { resolveSourceSeries, resolveSourceSpec } from './sheet-chart-source';
|
|
9
|
-
export type { ISheetChartSourceContext } from './sheet-chart-source';
|
|
10
|
-
export * from './types';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ChartStyle, ChartTypeBits, IChartContext, IChartDataAggregation, IChartLocaleTexts } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type { Injector } from '@univerjs/core';
|
|
3
|
-
import type { ISheetChartDataSource } from './types';
|
|
4
|
-
import { ChartModel } from '@univerjs-pro/engine-chart';
|
|
5
|
-
import { LocaleService } from '@univerjs/core';
|
|
6
|
-
export interface IChartModelInit {
|
|
7
|
-
chartType?: ChartTypeBits;
|
|
8
|
-
dataSource: ISheetChartDataSource;
|
|
9
|
-
dataAggregation?: IChartDataAggregation;
|
|
10
|
-
context?: Pick<IChartContext, 'categoryIndex' | 'seriesIndexes' | 'transform'>;
|
|
11
|
-
style?: ChartStyle;
|
|
12
|
-
localeTexts?: IChartLocaleTexts;
|
|
13
|
-
}
|
|
14
|
-
export declare function buildLocaleTexts(localeService: LocaleService): IChartLocaleTexts;
|
|
15
|
-
export declare class SheetChartModel extends ChartModel {
|
|
16
|
-
protected _dataSource: ISheetChartDataSource;
|
|
17
|
-
get dataSource(): ISheetChartDataSource;
|
|
18
|
-
replaceDataSource(dataSource: ISheetChartDataSource): void;
|
|
19
|
-
constructor(id: string, options: IChartModelInit, _injector: Injector);
|
|
20
|
-
_init(): void;
|
|
21
|
-
dispose(): void;
|
|
22
|
-
}
|