@univerjs-pro/engine-chart 1.4.0 → 1.5.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/README.md +11 -15
- 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-3d/adapters/axes.d.ts +3 -2
- package/lib/types/chart-3d/adapters/types.d.ts +2 -0
- package/lib/types/chart-3d/core/scene.d.ts +11 -1
- package/lib/types/chart-3d/core/types.d.ts +2 -0
- package/lib/types/chart-builder/chart-builder.d.ts +2 -1
- package/lib/types/chart-builder/chart-types.d.ts +5 -1
- package/lib/types/chart-builder/configuration/chart-config-group.d.ts +1 -0
- package/lib/types/chart-builder/configuration/error-bars.d.ts +4 -0
- package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +3 -1
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +1 -0
- package/lib/types/chart-builder/conversion/chart-source-fields.d.ts +4 -0
- package/lib/types/chart-builder/conversion/chart-type-converter.d.ts +2 -1
- package/lib/types/enum.d.ts +4 -0
- package/lib/types/facade/chart-builder-type-map.d.ts +2 -0
- package/lib/types/facade/f-cartesian-chart-builder.d.ts +41 -1
- package/lib/types/facade/f-chart.d.ts +40 -2
- package/lib/types/index.d.ts +3 -1
- package/lib/types/models/chart-data/pie-composite/pie-composite-spec.d.ts +0 -2
- package/lib/types/models/chart-render/converter/calendar-date-axis.d.ts +5 -7
- package/lib/types/models/chart-render/converter/calendar-date-point.d.ts +4 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/axis-title.operator.d.ts +2 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/chart-axes.operator.d.ts +2 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/grid-operator.d.ts +2 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/legend-size.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/legend-style.operator.d.ts +4 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/series-style-operator/series-style-operator.d.ts +1 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/title-style.operator.d.ts +2 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/tool-tip-operator.d.ts +0 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/watermark.operator.d.ts +5 -0
- package/lib/types/models/chart-render/echart-render-model/base-chart-render-instance.d.ts +1 -1
- package/lib/types/models/chart-render/echart-render-model/chart-dimension-render-instance.d.ts +1 -0
- package/lib/types/models/chart-render/echart-render-model/echart-render-model.d.ts +3 -3
- package/lib/types/models/chart-render/style/chart-runtime-style.d.ts +3 -1
- package/lib/types/models/common/adaptive-size/chart-runtime-adaptive-size.d.ts +1 -0
- package/lib/types/models/common/chart-field-role.d.ts +1 -2
- package/lib/types/models/common/constants/default-chart-style.d.ts +5 -0
- package/lib/types/types.d.ts +21 -8
- package/lib/types/validation/validate-candlestick.d.ts +4 -0
- package/lib/types/validation/validate-error-bars.d.ts +17 -0
- package/lib/types/validation/validate-gradient.d.ts +15 -0
- package/lib/types/validation/validate-pie-composite.d.ts +9 -0
- package/lib/types/validation/validate.d.ts +12 -0
- package/lib/types/wordcloud/word-cloud-extension.d.ts +1 -1
- 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 +7 -7
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1e7a57=_0x49d9;(function(_0x5c5af5,_0x20eb16){const _0x4531ac=_0x49d9,_0x7ca7a2=_0x5c5af5();while(!![]){try{const _0x410fdd=parseInt(_0x4531ac(0x13a))/0x1+parseInt(_0x4531ac(0x14f))/0x2*(-parseInt(_0x4531ac(0x135))/0x3)+-parseInt(_0x4531ac(0x12b))/0x4*(parseInt(_0x4531ac(0x151))/0x5)+-parseInt(_0x4531ac(0x136))/0x6+-parseInt(_0x4531ac(0x12c))/0x7+parseInt(_0x4531ac(0x133))/0x8*(parseInt(_0x4531ac(0x132))/0x9)+parseInt(_0x4531ac(0x134))/0xa*(parseInt(_0x4531ac(0x13c))/0xb);if(_0x410fdd===_0x20eb16)break;else _0x7ca7a2['push'](_0x7ca7a2['shift']());}catch(_0x48c0f4){_0x7ca7a2['push'](_0x7ca7a2['shift']());}}}(_0x4364,0x32a57));const e={'engine-chart':{'projectionInvalid':_0x1e7a57(0x12a),'projectionUnavailable':_0x1e7a57(0x139),'projectionRetry':_0x1e7a57(0x152),'projectionPngOnly':'Трёхмерные\x20диаграммы\x20поддерживают\x20только\x20экспорт\x20PNG.','logUnsupported':_0x1e7a57(0x12f),'logNoPositive':_0x1e7a57(0x146),'logPercent':_0x1e7a57(0x149),'invalidSourceHeader':_0x1e7a57(0x150),'seriesDefaultName':_0x1e7a57(0x13f),'blank':_0x1e7a57(0x153),'boxplotMin':_0x1e7a57(0x155),'boxplotQ1':_0x1e7a57(0x137),'boxplotMedian':_0x1e7a57(0x145),'boxplotQ3':'Третий\x20квартиль','boxplotMax':_0x1e7a57(0x141),'bubbleEmptyTips':_0x1e7a57(0x14a),'cloudWord':_0x1e7a57(0x138),'cloudFrequency':_0x1e7a57(0x13b),'msgEmptyTips':_0x1e7a57(0x144),'msgSankeyCircularTips':_0x1e7a57(0x142),'paretoLineName':_0x1e7a57(0x154),'pieAggregateOther':_0x1e7a57(0x13d),'pieAggregateMembers':'Элементы','relationEmptyTips':_0x1e7a57(0x14c),'waterfallPositive':_0x1e7a57(0x14e),'waterfallNegative':'Отрицательное','waterfallSubtotal':_0x1e7a57(0x148),'candlestickSeries':'Ряд\x20OHLC','candlestickHlcSeries':'Ряд\x20HLC','candlestickCategory':'Категория','candlestickDate':_0x1e7a57(0x143),'candlestickOpen':'Открытие','candlestickHigh':_0x1e7a57(0x141),'candlestickLow':'Минимум','candlestickClose':_0x1e7a57(0x14d),'histogramFrequency':_0x1e7a57(0x13b),'treemapEmptyTips':_0x1e7a57(0x13e),'treemapOwnValue':_0x1e7a57(0x131),'treemapChildren':'Дочерние\x20элементы','sunburstEmptyTips':_0x1e7a57(0x14b),'sunburstOwnValue':_0x1e7a57(0x131),'sunburstChildren':_0x1e7a57(0x12e),'gaugeEmptyTips':'Для\x20индикаторной\x20диаграммы\x20требуется\x20хотя\x20бы\x20одно\x20конечное\x20числовое\x20значение.','gaugeInvalidMapping':_0x1e7a57(0x147),'gaugeInvalidConfig':_0x1e7a57(0x130),'chordEmptyTips':'Для\x20хордовой\x20диаграммы\x20требуется\x20хотя\x20бы\x20одна\x20связь\x20с\x20положительным\x20весом\x20между\x20двумя\x20разными\x20узлами.','chordInvalidMapping':_0x1e7a57(0x140),'chordInvalidConfig':_0x1e7a57(0x157),'chordCount':_0x1e7a57(0x156),'chordAssociatedValue':_0x1e7a57(0x12d)}};export{e as default};function _0x49d9(_0x1907f6,_0x51d9c4){_0x1907f6=_0x1907f6-0x12a;const _0x4364b2=_0x4364();let _0x49d901=_0x4364b2[_0x1907f6];return _0x49d901;}function _0x4364(){const _0x4e9c91=['Положительное','82510BAZCcT','Заголовок\x20источника\x20данных\x20диаграммы\x20недопустим.','5YCfvgV','Повторить\x20рендеринг','Пусто','Накопительный\x20процент','Минимум','Количество\x20отношений','Конфигурация\x20хордовой\x20диаграммы\x20недопустима.\x20Проверьте\x20углы,\x20радиусы,\x20непрозрачность\x20и\x20размеры.','Неверные\x20настройки\x20трёхмерной\x20диаграммы.','38204joTYMA','1616090gZhYbE','Связанное\x20значение','Дочерние\x20элементы','Логарифмическая\x20шкала\x20здесь\x20недоступна.\x20Переключитесь\x20на\x20линейную.','Конфигурация\x20индикаторной\x20диаграммы\x20недопустима.\x20Проверьте\x20шкалу,\x20диапазоны,\x20пропорции\x20и\x20размеры.','Собственное\x20значение','23157KvQLQm','472XCeAJR','621410NVoQbZ','9WWECPu','628734gcvcVe','Первый\x20квартиль','Слово','Трёхмерный\x20рендеринг\x20недоступен.\x20Данные\x20диаграммы\x20сохранены.','400333zeGpTL','Частота','22DxpUxr','Другие','Для\x20древовидной\x20карты\x20требуется\x20хотя\x20бы\x20одно\x20поле\x20иерархии\x20и\x20одно\x20числовое\x20поле\x20значений.','Серия\x20{0}','Для\x20хордовой\x20диаграммы\x20требуются\x20разные\x20поля\x20источника\x20и\x20назначения,\x20а\x20также\x20необязательное\x20отдельное\x20поле\x20значения.','Максимум','Диаграмма\x20Санки\x20не\x20может\x20содержать\x20циклические\x20данные','Дата','Добавьте\x20серию,\x20чтобы\x20начать\x20визуализацию\x20данных','Медиана','На\x20этой\x20логарифмической\x20оси\x20нет\x20положительных\x20значений.','Для\x20индикаторной\x20диаграммы\x20требуется\x20одно\x20поле\x20подписи\x20и\x20ровно\x20одно\x20поле\x20значения.','Промежуточный\x20итог','Логарифмические\x20оси\x20недоступны\x20для\x20нормированных\x20диаграмм\x20с\x20накоплением.\x20Выберите\x20линейную\x20шкалу.','Диаграмма\x20пузырей\x20требует\x20как\x20минимум\x202\x20столбца:\x20ось\x20X,\x20ось\x20Y','Для\x20кольцевой\x20иерархической\x20диаграммы\x20требуется\x20хотя\x20бы\x20одно\x20поле\x20иерархии\x20и\x20одно\x20числовое\x20поле\x20значений.','Источником\x20данных\x20для\x20графика\x20взаимоотношений\x20является\x20матрица\x20сопутствующих\x20слов\x20с\x20дополнительным\x20столбцом\x20типа\x20во\x20втором\x20столбце.','Закрытие'];_0x4364=function(){return _0x4e9c91;};return _0x4364();}
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x401a65=_0x1739;(function(_0x1365ce,_0x373d60){const _0x4c3d97=_0x1739,_0x5b2a12=_0x1365ce();while(!![]){try{const _0x4424b7=-parseInt(_0x4c3d97(0x203))/0x1*(parseInt(_0x4c3d97(0x1f0))/0x2)+parseInt(_0x4c3d97(0x201))/0x3*(parseInt(_0x4c3d97(0x1f7))/0x4)+-parseInt(_0x4c3d97(0x1e0))/0x5*(-parseInt(_0x4c3d97(0x1ea))/0x6)+-parseInt(_0x4c3d97(0x1f9))/0x7*(parseInt(_0x4c3d97(0x1f3))/0x8)+-parseInt(_0x4c3d97(0x1f6))/0x9*(parseInt(_0x4c3d97(0x1ee))/0xa)+parseInt(_0x4c3d97(0x20c))/0xb*(parseInt(_0x4c3d97(0x1eb))/0xc)+-parseInt(_0x4c3d97(0x1e6))/0xd*(-parseInt(_0x4c3d97(0x206))/0xe);if(_0x4424b7===_0x373d60)break;else _0x5b2a12['push'](_0x5b2a12['shift']());}catch(_0x5e031e){_0x5b2a12['push'](_0x5b2a12['shift']());}}}(_0x44d5,0x73d85));function _0x44d5(){const _0x1fe11c=['Séria\x20{0}','Logaritmické\x20osi\x20nie\x20sú\x20dostupné\x20pre\x20100\x20%\x20skladané\x20grafy.\x20Prepnite\x20na\x20lineárnu\x20mierku.','Konfigurácia\x20chordového\x20diagramu\x20je\x20neplatná.\x20Skontrolujte\x20uhly,\x20polomery,\x20nepriehľadnosť\x20a\x20veľkosti.','Prvý\x20kvartil','692679KmXjhI','Kategória','297gPDwEX','Logaritmická\x20mierka\x20tu\x20nie\x20je\x20dostupná.\x20Prepnite\x20na\x20lineárnu\x20mierku.','Zatvorenie','42pkLvcn','Priradená\x20hodnota','Slovo','Medzisúčet','Medián','Frekvencia','43846dAQVRy','3D\x20vykresľovanie\x20nie\x20je\x20dostupné.\x20Údaje\x20grafu\x20sú\x20zachované.','Chordový\x20diagram\x20vyžaduje\x20aspoň\x20jeden\x20vzťah\x20s\x20kladnou\x20váhou\x20medzi\x20dvoma\x20rôznymi\x20uzlami.','Stromová\x20mapa\x20vyžaduje\x20aspoň\x20jedno\x20pole\x20hierarchie\x20a\x20jedno\x20číselné\x20pole\x20hodnoty.','Minimum','110SFiRmH','Pridajte\x20sériu\x20a\x20začnite\x20vizualizovať\x20údaje','3D\x20grafy\x20podporujú\x20iba\x20export\x20PNG.','Zdrojové\x20dáta\x20pre\x20graf\x20vzťahov\x20sú\x20ko-slovná\x20matica\x20s\x20dodatočným\x20typovým\x20stĺpcom\x20v\x20druhom\x20stĺpci','Tretí\x20kvartil','Ukazovateľový\x20graf\x20vyžaduje\x20jedno\x20pole\x20menovky\x20a\x20presne\x20jedno\x20pole\x20hodnoty.','3005717zFWoqM','Bublinový\x20graf\x20vyžaduje\x20aspoň\x202\x20stĺpce:\x20os\x20X,\x20os\x20Y','Počet\x20vzťahov','Zopakovať\x20vykreslenie','26436SxuqpK','1524mssGtQ','Rad\x20OHLC','Dátum','10PPhIVg','Lúčový\x20hierarchický\x20graf\x20vyžaduje\x20aspoň\x20jedno\x20pole\x20hierarchie\x20a\x20jedno\x20číselné\x20pole\x20hodnoty.','1640oUJGAN','Negatívne','Chordový\x20diagram\x20vyžaduje\x20rozdielne\x20polia\x20Zdroj\x20a\x20Cieľ\x20a\x20voliteľné\x20samostatné\x20pole\x20Hodnota.','24DiWerM','Podradené\x20prvky','(Prázdne)','681498mtZKSw','4jbkuqo','Vlastná\x20hodnota','1712459dWylWC','Maximum','Iné','Konfigurácia\x20ukazovateľového\x20grafu\x20je\x20neplatná.\x20Skontrolujte\x20mierku,\x20rozsahy,\x20pomery\x20a\x20veľkosti.'];_0x44d5=function(){return _0x1fe11c;};return _0x44d5();}const e={'engine-chart':{'projectionInvalid':'Neplatná\x20konfigurácia\x203D\x20grafu.','projectionUnavailable':_0x401a65(0x20d),'projectionRetry':_0x401a65(0x1e9),'projectionPngOnly':_0x401a65(0x1e2),'logUnsupported':_0x401a65(0x204),'logNoPositive':'Táto\x20logaritmická\x20os\x20nemá\x20kladné\x20hodnoty.','logPercent':_0x401a65(0x1fe),'invalidSourceHeader':'Hlavička\x20zdroja\x20údajov\x20grafu\x20je\x20neplatná.','seriesDefaultName':_0x401a65(0x1fd),'blank':_0x401a65(0x1f5),'boxplotMin':'Minimum','boxplotQ1':_0x401a65(0x200),'boxplotMedian':_0x401a65(0x20a),'boxplotQ3':_0x401a65(0x1e4),'boxplotMax':_0x401a65(0x1fa),'bubbleEmptyTips':_0x401a65(0x1e7),'cloudWord':_0x401a65(0x208),'cloudFrequency':_0x401a65(0x20b),'msgEmptyTips':_0x401a65(0x1e1),'msgSankeyCircularTips':'Sankeyho\x20graf\x20nemôže\x20obsahovať\x20cyklické\x20údaje','paretoLineName':'Kumulatívne\x20percento','pieAggregateOther':_0x401a65(0x1fb),'pieAggregateMembers':'Položky','relationEmptyTips':_0x401a65(0x1e3),'waterfallPositive':'Pozitívne','waterfallNegative':_0x401a65(0x1f1),'waterfallSubtotal':_0x401a65(0x209),'candlestickSeries':_0x401a65(0x1ec),'candlestickHlcSeries':'Rad\x20HLC','candlestickCategory':_0x401a65(0x202),'candlestickDate':_0x401a65(0x1ed),'candlestickOpen':'Otvorenie','candlestickHigh':_0x401a65(0x1fa),'candlestickLow':_0x401a65(0x210),'candlestickClose':_0x401a65(0x205),'histogramFrequency':_0x401a65(0x20b),'treemapEmptyTips':_0x401a65(0x20f),'treemapOwnValue':_0x401a65(0x1f8),'treemapChildren':_0x401a65(0x1f4),'sunburstEmptyTips':_0x401a65(0x1ef),'sunburstOwnValue':_0x401a65(0x1f8),'sunburstChildren':_0x401a65(0x1f4),'gaugeEmptyTips':'Ukazovateľový\x20graf\x20vyžaduje\x20aspoň\x20jednu\x20konečnú\x20číselnú\x20hodnotu.','gaugeInvalidMapping':_0x401a65(0x1e5),'gaugeInvalidConfig':_0x401a65(0x1fc),'chordEmptyTips':_0x401a65(0x20e),'chordInvalidMapping':_0x401a65(0x1f2),'chordInvalidConfig':_0x401a65(0x1ff),'chordCount':_0x401a65(0x1e8),'chordAssociatedValue':_0x401a65(0x207)}};function _0x1739(_0x22b6f4,_0x164192){_0x22b6f4=_0x22b6f4-0x1e0;const _0x44d540=_0x44d5();let _0x173954=_0x44d540[_0x22b6f4];return _0x173954;}export{e as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x238d2f=_0x29f5;(function(_0x71bce4,_0x74c7b5){const _0x3b3f13=_0x29f5,_0x2fbf95=_0x71bce4();while(!![]){try{const _0x48cfb1=parseInt(_0x3b3f13(0x169))/0x1+-parseInt(_0x3b3f13(0x13d))/0x2*(-parseInt(_0x3b3f13(0x143))/0x3)+-parseInt(_0x3b3f13(0x154))/0x4+-parseInt(_0x3b3f13(0x13e))/0x5+parseInt(_0x3b3f13(0x16a))/0x6+parseInt(_0x3b3f13(0x153))/0x7+-parseInt(_0x3b3f13(0x13f))/0x8*(parseInt(_0x3b3f13(0x14b))/0x9);if(_0x48cfb1===_0x74c7b5)break;else _0x2fbf95['push'](_0x2fbf95['shift']());}catch(_0xbf190a){_0x2fbf95['push'](_0x2fbf95['shift']());}}}(_0x58d2,0x95ad0));function _0x29f5(_0x25f8e4,_0x132011){_0x25f8e4=_0x25f8e4-0x13b;const _0x58d2a5=_0x58d2();let _0x29f506=_0x58d2a5[_0x25f8e4];return _0x29f506;}const e={'engine-chart':{'projectionInvalid':_0x238d2f(0x14f),'projectionUnavailable':_0x238d2f(0x155),'projectionRetry':_0x238d2f(0x13c),'projectionPngOnly':_0x238d2f(0x159),'logUnsupported':_0x238d2f(0x156),'logNoPositive':_0x238d2f(0x166),'logPercent':_0x238d2f(0x151),'invalidSourceHeader':_0x238d2f(0x15d),'seriesDefaultName':_0x238d2f(0x161),'blank':_0x238d2f(0x14e),'boxplotMin':_0x238d2f(0x144),'boxplotQ1':_0x238d2f(0x162),'boxplotMedian':_0x238d2f(0x164),'boxplotQ3':_0x238d2f(0x160),'boxplotMax':_0x238d2f(0x167),'bubbleEmptyTips':_0x238d2f(0x15f),'cloudWord':'Từ','cloudFrequency':_0x238d2f(0x15b),'msgEmptyTips':_0x238d2f(0x146),'msgSankeyCircularTips':_0x238d2f(0x163),'paretoLineName':'Tỷ\x20lệ\x20tích\x20lũy','pieAggregateOther':_0x238d2f(0x165),'pieAggregateMembers':_0x238d2f(0x168),'relationEmptyTips':_0x238d2f(0x14c),'waterfallPositive':_0x238d2f(0x152),'waterfallNegative':_0x238d2f(0x14a),'waterfallSubtotal':_0x238d2f(0x15a),'candlestickSeries':_0x238d2f(0x15e),'candlestickHlcSeries':_0x238d2f(0x150),'candlestickCategory':'Danh\x20mục','candlestickDate':_0x238d2f(0x147),'candlestickOpen':_0x238d2f(0x14d),'candlestickHigh':_0x238d2f(0x145),'candlestickLow':'Giá\x20thấp\x20nhất','candlestickClose':'Giá\x20đóng\x20cửa','histogramFrequency':'Tần\x20suất','treemapEmptyTips':'Biểu\x20đồ\x20cây\x20cần\x20ít\x20nhất\x20một\x20trường\x20phân\x20cấp\x20và\x20một\x20trường\x20giá\x20trị\x20số.','treemapOwnValue':'Giá\x20trị\x20riêng','treemapChildren':_0x238d2f(0x140),'sunburstEmptyTips':_0x238d2f(0x142),'sunburstOwnValue':_0x238d2f(0x13b),'sunburstChildren':_0x238d2f(0x140),'gaugeEmptyTips':_0x238d2f(0x141),'gaugeInvalidMapping':_0x238d2f(0x149),'gaugeInvalidConfig':_0x238d2f(0x15c),'chordEmptyTips':_0x238d2f(0x157),'chordInvalidMapping':_0x238d2f(0x158),'chordInvalidConfig':'Cấu\x20hình\x20biểu\x20đồ\x20dây\x20cung\x20không\x20hợp\x20lệ.\x20Hãy\x20kiểm\x20tra\x20góc,\x20bán\x20kính,\x20độ\x20mờ\x20và\x20kích\x20thước.','chordCount':_0x238d2f(0x148),'chordAssociatedValue':'Giá\x20trị\x20liên\x20kết'}};function _0x58d2(){const _0x47b9be=['Số\x20lượng\x20mối\x20quan\x20hệ','Biểu\x20đồ\x20đồng\x20hồ\x20cần\x20một\x20trường\x20nhãn\x20và\x20đúng\x20một\x20trường\x20giá\x20trị.','Giá\x20trị\x20âm','639XZeTKA','Nguồn\x20dữ\x20liệu\x20cho\x20biểu\x20đồ\x20quan\x20hệ\x20là\x20ma\x20trận\x20đồng\x20từ\x20với\x20cột\x20loại\x20bổ\x20sung\x20ở\x20cột\x20thứ\x20hai','Giá\x20mở\x20cửa','(Trống)','Cấu\x20hình\x20biểu\x20đồ\x203D\x20không\x20hợp\x20lệ.','Chuỗi\x20HLC','Biểu\x20đồ\x20xếp\x20chồng\x20100%\x20chưa\x20hỗ\x20trợ\x20trục\x20logarit.\x20Hãy\x20chuyển\x20sang\x20tuyến\x20tính.','Giá\x20trị\x20dương','3957632ZKaWUO','782328HDJQSP','Không\x20thể\x20kết\x20xuất\x203D.\x20Dữ\x20liệu\x20biểu\x20đồ\x20được\x20giữ\x20nguyên.','Thang\x20logarit\x20không\x20khả\x20dụng\x20ở\x20đây.\x20Chuyển\x20sang\x20thang\x20tuyến\x20tính\x20để\x20hiển\x20thị.','Biểu\x20đồ\x20dây\x20cung\x20cần\x20ít\x20nhất\x20một\x20quan\x20hệ\x20có\x20trọng\x20số\x20dương\x20giữa\x20hai\x20nút\x20khác\x20nhau.','Biểu\x20đồ\x20dây\x20cung\x20cần\x20các\x20trường\x20Nguồn\x20và\x20Đích\x20khác\x20nhau\x20cùng\x20một\x20trường\x20Giá\x20trị\x20khác\x20biệt\x20không\x20bắt\x20buộc.','Biểu\x20đồ\x203D\x20chỉ\x20hỗ\x20trợ\x20xuất\x20PNG.','Tổng\x20phụ','Tần\x20suất','Cấu\x20hình\x20biểu\x20đồ\x20đồng\x20hồ\x20không\x20hợp\x20lệ.\x20Hãy\x20kiểm\x20tra\x20thang\x20đo,\x20phạm\x20vi,\x20tỷ\x20lệ\x20và\x20kích\x20thước.','Tiêu\x20đề\x20nguồn\x20dữ\x20liệu\x20biểu\x20đồ\x20không\x20hợp\x20lệ.','Chuỗi\x20OHLC','Biểu\x20đồ\x20bong\x20bóng\x20yêu\x20cầu\x20ít\x20nhất\x202\x20cột:\x20trục\x20X,\x20trục\x20Y','Phần\x20tư\x20thứ\x20ba','Loạt\x20{0}','Phần\x20tư\x20thứ\x20nhất','Biểu\x20đồ\x20Sankey\x20không\x20thể\x20chứa\x20dữ\x20liệu\x20vòng\x20lặp','Trung\x20vị','Khác','Trục\x20logarit\x20này\x20không\x20có\x20giá\x20trị\x20dương.','Giá\x20trị\x20lớn\x20nhất','Thành\x20phần','1216441Ndvwnj','2455326zbNBDF','Giá\x20trị\x20riêng','Thử\x20kết\x20xuất\x20lại','148UZZIrt','3597560AWGmLw','83920mCEGdy','Phần\x20tử\x20con','Biểu\x20đồ\x20đồng\x20hồ\x20cần\x20ít\x20nhất\x20một\x20giá\x20trị\x20số\x20hữu\x20hạn.','Biểu\x20đồ\x20sunburst\x20cần\x20ít\x20nhất\x20một\x20trường\x20phân\x20cấp\x20và\x20một\x20trường\x20giá\x20trị\x20số.','3321EFxEiY','Giá\x20trị\x20nhỏ\x20nhất','Giá\x20cao\x20nhất','Không\x20có\x20dữ\x20liệu\x20để\x20hiển\x20thị.','Ngày'];_0x58d2=function(){return _0x47b9be;};return _0x58d2();}export{e as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x7fed9a=_0x3fca;(function(_0x4bc14a,_0x48f188){const _0x20e990=_0x3fca,_0x3bf4b6=_0x4bc14a();while(!![]){try{const _0x13b900=-parseInt(_0x20e990(0x163))/0x1*(parseInt(_0x20e990(0x15d))/0x2)+-parseInt(_0x20e990(0x15e))/0x3+-parseInt(_0x20e990(0x16d))/0x4+parseInt(_0x20e990(0x150))/0x5*(parseInt(_0x20e990(0x154))/0x6)+-parseInt(_0x20e990(0x160))/0x7+-parseInt(_0x20e990(0x14f))/0x8+parseInt(_0x20e990(0x164))/0x9;if(_0x13b900===_0x48f188)break;else _0x3bf4b6['push'](_0x3bf4b6['shift']());}catch(_0x185a78){_0x3bf4b6['push'](_0x3bf4b6['shift']());}}}(_0x5714,0xe9ca6));function _0x5714(){const _0x4ef88f=['关系图数据源为额外添加类型列在第二列的共词矩阵','6500151TqQVmF','桑基图不能包含循环数据','最小值','1sVGmZd','36742734yIasQH','弦图需要不同的来源字段和目标字段,并可选一个与二者不同的数值字段。','此图表或坐标轴不支持对数刻度。切换为线性以恢复绘制。','HLC\x20系列','此对数轴没有正数数据。','三维图表仅支持\x20PNG\x20导出。','系列\x20{0}','图表数据源标题配置无效。','成员数','5960132tiTCLP','重试渲染','11213416MpYWit','5SxrVgC','自身值','关联值','OHLC\x20系列','11245938KCTRNM','百分比堆积暂不支持对数轴,请切换为线性以显示。','气泡图至少需要2列,X轴、Y轴。','第三四分位数','矩形树图至少需要一个层级字段和一个数值字段。','仪表图需要一个标签字段且只能有一个数值字段。','三维渲染不可用,图表数据已保留。','仪表图配置无效,请检查刻度范围、分段区间、比例和尺寸。','(空)','1624288grJFIU','1100388acIXDC'];_0x5714=function(){return _0x4ef88f;};return _0x5714();}function _0x3fca(_0x2da8b9,_0x33755b){_0x2da8b9=_0x2da8b9-0x14e;const _0x5714d6=_0x5714();let _0x3fca13=_0x5714d6[_0x2da8b9];return _0x3fca13;}const e={'engine-chart':{'projectionInvalid':'三维图表配置无效。','projectionUnavailable':_0x7fed9a(0x15a),'projectionRetry':_0x7fed9a(0x14e),'projectionPngOnly':_0x7fed9a(0x169),'logUnsupported':_0x7fed9a(0x166),'logNoPositive':_0x7fed9a(0x168),'logPercent':_0x7fed9a(0x155),'invalidSourceHeader':_0x7fed9a(0x16b),'seriesDefaultName':_0x7fed9a(0x16a),'blank':_0x7fed9a(0x15c),'boxplotMin':_0x7fed9a(0x162),'boxplotQ1':'第一四分位数','boxplotMedian':'中位数','boxplotQ3':_0x7fed9a(0x157),'boxplotMax':'最大值','bubbleEmptyTips':_0x7fed9a(0x156),'cloudWord':'词语','cloudFrequency':'频率','msgEmptyTips':'请先添加系列开始数据可视化','msgSankeyCircularTips':_0x7fed9a(0x161),'paretoLineName':'累积占比','pieAggregateOther':'其他','pieAggregateMembers':_0x7fed9a(0x16c),'relationEmptyTips':_0x7fed9a(0x15f),'waterfallPositive':'正值','waterfallNegative':'负值','waterfallSubtotal':'小计','candlestickSeries':_0x7fed9a(0x153),'candlestickHlcSeries':_0x7fed9a(0x167),'candlestickCategory':'类别','candlestickDate':'日期','candlestickOpen':'开盘','candlestickHigh':'最高','candlestickLow':'最低','candlestickClose':'收盘','histogramFrequency':'频数','treemapEmptyTips':_0x7fed9a(0x158),'treemapOwnValue':'自身值','treemapChildren':'子项','sunburstEmptyTips':'旭日图至少需要一个层级字段和一个数值字段。','sunburstOwnValue':_0x7fed9a(0x151),'sunburstChildren':'子项','gaugeEmptyTips':'仪表图至少需要一个有限数值。','gaugeInvalidMapping':_0x7fed9a(0x159),'gaugeInvalidConfig':_0x7fed9a(0x15b),'chordEmptyTips':'弦图至少需要两个不同节点之间的一条正权重关系。','chordInvalidMapping':_0x7fed9a(0x165),'chordInvalidConfig':'弦图配置无效,请检查角度、半径、不透明度和尺寸。','chordCount':'关系计数','chordAssociatedValue':_0x7fed9a(0x152)}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3dc2(_0x6d181c,_0x2a8819){_0x6d181c=_0x6d181c-0x14a;const _0x1e6cfd=_0x1e6c();let _0x3dc2c3=_0x1e6cfd[_0x6d181c];return _0x3dc2c3;}function _0x1e6c(){const _0x5b2ea9=['系列\x20{0}','百分比堆積暫不支援對數軸,請切換為線性以顯示。','此圖表或座標軸不支援對數刻度。切換為線性以恢復繪製。','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','桑基圖不能包含循環數據','累積占比','開盤價','4412871xPDPHs','旭日圖至少需要一個階層欄位和一個數值欄位。','關係數','第一四分位數','704514YomuuG','最小值','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','此對數軸沒有正數資料。','2419724vhRdRZ','三維圖表僅支援\x20PNG\x20匯出。','自身值','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','2129SVcqDj','中位數','儀表圖至少需要一個有限數值。','三維渲染無法使用,圖表資料已保留。','370752FGyfRc','重試渲染','最低價','最大值','關聯值','三維圖表設定無效。','(空)','1546OoBGTT','15aMlDZr','氣泡圖至少需要2欄,X軸、Y軸。','請先添加系列開始數據可視化','15633054hfhnMz','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','矩形樹圖至少需要一個階層欄位和一個數值欄位。','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','49EIGhEC','收盤價','19952050jJEzat'];_0x1e6c=function(){return _0x5b2ea9;};return _0x1e6c();}const _0x17f853=_0x3dc2;(function(_0x303c2e,_0x5b138b){const _0x59ab57=_0x3dc2,_0x3becd9=_0x303c2e();while(!![]){try{const _0x1fbf70=parseInt(_0x59ab57(0x157))/0x1*(-parseInt(_0x59ab57(0x162))/0x2)+parseInt(_0x59ab57(0x14b))/0x3+parseInt(_0x59ab57(0x153))/0x4*(-parseInt(_0x59ab57(0x163))/0x5)+parseInt(_0x59ab57(0x14f))/0x6*(-parseInt(_0x59ab57(0x16a))/0x7)+parseInt(_0x59ab57(0x15b))/0x8+parseInt(_0x59ab57(0x166))/0x9+parseInt(_0x59ab57(0x16c))/0xa;if(_0x1fbf70===_0x5b138b)break;else _0x3becd9['push'](_0x3becd9['shift']());}catch(_0x51226d){_0x3becd9['push'](_0x3becd9['shift']());}}}(_0x1e6c,0xec19d));const e={'engine-chart':{'projectionInvalid':_0x17f853(0x160),'projectionUnavailable':_0x17f853(0x15a),'projectionRetry':_0x17f853(0x15c),'projectionPngOnly':_0x17f853(0x154),'logUnsupported':_0x17f853(0x16f),'logNoPositive':_0x17f853(0x152),'logPercent':_0x17f853(0x16e),'invalidSourceHeader':'圖表資料來源標題設定無效。','seriesDefaultName':_0x17f853(0x16d),'blank':_0x17f853(0x161),'boxplotMin':_0x17f853(0x150),'boxplotQ1':_0x17f853(0x14e),'boxplotMedian':_0x17f853(0x158),'boxplotQ3':'第三四分位數','boxplotMax':_0x17f853(0x15e),'bubbleEmptyTips':_0x17f853(0x164),'cloudWord':'詞','cloudFrequency':'頻率','msgEmptyTips':_0x17f853(0x165),'msgSankeyCircularTips':_0x17f853(0x171),'paretoLineName':_0x17f853(0x172),'pieAggregateOther':'其他','pieAggregateMembers':'成員','relationEmptyTips':_0x17f853(0x167),'waterfallPositive':'正值','waterfallNegative':'負值','waterfallSubtotal':'小計','candlestickSeries':'OHLC\x20數列','candlestickHlcSeries':'HLC\x20數列','candlestickCategory':'類別','candlestickDate':'日期','candlestickOpen':_0x17f853(0x14a),'candlestickHigh':'最高價','candlestickLow':_0x17f853(0x15d),'candlestickClose':_0x17f853(0x16b),'histogramFrequency':'頻數','treemapEmptyTips':_0x17f853(0x168),'treemapOwnValue':_0x17f853(0x155),'treemapChildren':'子項','sunburstEmptyTips':_0x17f853(0x14c),'sunburstOwnValue':_0x17f853(0x155),'sunburstChildren':'子項','gaugeEmptyTips':_0x17f853(0x159),'gaugeInvalidMapping':_0x17f853(0x170),'gaugeInvalidConfig':_0x17f853(0x156),'chordEmptyTips':'弦圖至少需要兩個不同節點之間的一條正權重關係。','chordInvalidMapping':_0x17f853(0x169),'chordInvalidConfig':_0x17f853(0x151),'chordCount':_0x17f853(0x14d),'chordAssociatedValue':_0x17f853(0x15f)}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x8507(){const _0x38d882=['HLC\x20數列','百分比堆積暫不支援對數軸,請切換為線性以顯示。','5425014niLbfc','弦圖至少需要兩個不同節點之間的一條正權重關係。','最高價','最小值','矩形樹圖至少需要一個階層欄位和一個數值欄位。','系列\x20{0}','(空)','三維圖表僅支援\x20PNG\x20匯出。','2533048QcRhMy','圖表資料來源標題設定無效。','此對數軸沒有正數資料。','最大值','氣泡圖至少需要2欄,X軸、Y軸。','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','第一四分位數','4rYljTU','三維算繪無法使用,圖表資料已保留。','OHLC\x20數列','儀表圖至少需要一個有限數值。','關聯值','旭日圖至少需要一個階層欄位和一個數值欄位。','5GZVToY','1732560gaQoYS','重試算繪','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','最低價','464766DKGQHm','三維圖表設定無效。','418869ZcwxMS','開盤價','收盤價','自身值','請先添加系列開始數據可視化','13797972zVhETc','累積占比','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','974949jEMdKD'];_0x8507=function(){return _0x38d882;};return _0x8507();}function _0x1a25(_0x4fc433,_0x414978){_0x4fc433=_0x4fc433-0x153;const _0x85079c=_0x8507();let _0x1a259c=_0x85079c[_0x4fc433];return _0x1a259c;}const _0x35d8ec=_0x1a25;(function(_0x32a2d0,_0x1b52d2){const _0xf699e1=_0x1a25,_0x272a9b=_0x32a2d0();while(!![]){try{const _0x1f14dc=parseInt(_0xf699e1(0x166))/0x1*(parseInt(_0xf699e1(0x159))/0x2)+-parseInt(_0xf699e1(0x16e))/0x3+-parseInt(_0xf699e1(0x160))/0x4+parseInt(_0xf699e1(0x15f))/0x5*(-parseInt(_0xf699e1(0x164))/0x6)+-parseInt(_0xf699e1(0x171))/0x7+-parseInt(_0xf699e1(0x179))/0x8+parseInt(_0xf699e1(0x16b))/0x9;if(_0x1f14dc===_0x1b52d2)break;else _0x272a9b['push'](_0x272a9b['shift']());}catch(_0x264a73){_0x272a9b['push'](_0x272a9b['shift']());}}}(_0x8507,0x6c4ed));const e={'engine-chart':{'projectionInvalid':_0x35d8ec(0x165),'projectionUnavailable':_0x35d8ec(0x15a),'projectionRetry':_0x35d8ec(0x161),'projectionPngOnly':_0x35d8ec(0x178),'logUnsupported':'此圖表或座標軸不支援對數刻度。切換為線性以恢復繪製。','logNoPositive':_0x35d8ec(0x154),'logPercent':_0x35d8ec(0x170),'invalidSourceHeader':_0x35d8ec(0x153),'seriesDefaultName':_0x35d8ec(0x176),'blank':_0x35d8ec(0x177),'boxplotMin':_0x35d8ec(0x174),'boxplotQ1':_0x35d8ec(0x158),'boxplotMedian':'中位數','boxplotQ3':'第三四分位數','boxplotMax':_0x35d8ec(0x155),'bubbleEmptyTips':_0x35d8ec(0x156),'cloudWord':'詞','cloudFrequency':'頻率','msgEmptyTips':_0x35d8ec(0x16a),'msgSankeyCircularTips':'桑基圖不能包含循環數據','paretoLineName':_0x35d8ec(0x16c),'pieAggregateOther':'其他','pieAggregateMembers':'成員','relationEmptyTips':_0x35d8ec(0x157),'waterfallPositive':'正值','waterfallNegative':'負值','waterfallSubtotal':'小計','candlestickSeries':_0x35d8ec(0x15b),'candlestickHlcSeries':_0x35d8ec(0x16f),'candlestickCategory':'類別','candlestickDate':'日期','candlestickOpen':_0x35d8ec(0x167),'candlestickHigh':_0x35d8ec(0x173),'candlestickLow':_0x35d8ec(0x163),'candlestickClose':_0x35d8ec(0x168),'histogramFrequency':'頻數','treemapEmptyTips':_0x35d8ec(0x175),'treemapOwnValue':_0x35d8ec(0x169),'treemapChildren':'子項','sunburstEmptyTips':_0x35d8ec(0x15e),'sunburstOwnValue':'自身值','sunburstChildren':'子項','gaugeEmptyTips':_0x35d8ec(0x15c),'gaugeInvalidMapping':'儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','gaugeInvalidConfig':'儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','chordEmptyTips':_0x35d8ec(0x172),'chordInvalidMapping':_0x35d8ec(0x162),'chordInvalidConfig':_0x35d8ec(0x16d),'chordCount':'關係數','chordAssociatedValue':_0x35d8ec(0x15d)}};export{e as default};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { GraphicComponentOption } from 'echarts';
|
|
2
2
|
import type { IChartSnapshot } from '../../types';
|
|
3
3
|
import type { IFace3, IVector3 } from '../core/geometry';
|
|
4
|
-
import type { ISceneAxis, ISceneLine } from '../core/scene';
|
|
4
|
+
import type { ISceneAxis, ISceneLine, prepareCartesianSceneData } from '../core/scene';
|
|
5
5
|
import type { IProjectionChartInput } from '../core/types';
|
|
6
6
|
import { buildScene } from '../core/scene';
|
|
7
|
+
export declare const AXIS_LABEL_Z = 100;
|
|
7
8
|
/** Screen-width lines share data BSP; plot topology and label anchors share the same world scene. */
|
|
8
|
-
export declare function buildDecoratedScene(input: IProjectionChartInput<IChartSnapshot>, color: string, floorColor: string): {
|
|
9
|
+
export declare function buildDecoratedScene(input: IProjectionChartInput<IChartSnapshot>, color: string, floorColor: string, preparedData?: ReturnType<typeof prepareCartesianSceneData>): {
|
|
9
10
|
labels?: readonly import("../core/scene").ISceneLabel[];
|
|
10
11
|
edges?: readonly import("../core/geometry").ISurfaceEdge[];
|
|
11
12
|
floor?: readonly IVector3[];
|
|
@@ -33,6 +33,8 @@ export interface IProjectionRenderSession {
|
|
|
33
33
|
}
|
|
34
34
|
export interface IProjectionSessionOptions {
|
|
35
35
|
readonly backend: 'webgl';
|
|
36
|
+
/** Independent image exports use a footer; interactive sessions keep the existing tiled branding. */
|
|
37
|
+
readonly outputLicenseFooter?: boolean;
|
|
36
38
|
readonly onEvent?: (event: IProjectionEvent) => void;
|
|
37
39
|
readonly onDispose?: () => void;
|
|
38
40
|
}
|
|
@@ -54,4 +54,14 @@ export interface IProjectionSceneServices {
|
|
|
54
54
|
readonly ticks: readonly number[];
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
/** Canonical normalized values and bounds shared by native layout and 3D geometry. */
|
|
58
|
+
export declare function prepareCartesianSceneData(input: IProjectionChartInput, createValueAxisScale: IProjectionSceneServices['createValueAxisScale']): {
|
|
59
|
+
matrix: (number | undefined)[][];
|
|
60
|
+
categoryCount: number;
|
|
61
|
+
valueAxisScale: {
|
|
62
|
+
readonly min: number;
|
|
63
|
+
readonly max: number;
|
|
64
|
+
readonly ticks: readonly number[];
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export declare function buildScene(input: IProjectionChartInput, createValueAxisScale: IProjectionSceneServices['createValueAxisScale'], preparedData?: ReturnType<typeof prepareCartesianSceneData>): IScene3;
|
|
@@ -10,6 +10,8 @@ export interface IProjectionChartInput<TSnapshot extends IChartSnapshot = IChart
|
|
|
10
10
|
readonly style: ProjectionReadonly<ChartRuntimeStyle>;
|
|
11
11
|
readonly width: number;
|
|
12
12
|
readonly height: number;
|
|
13
|
+
/** Native Cartesian layout already reserves labels and component spacing. */
|
|
14
|
+
readonly viewportInset?: number;
|
|
13
15
|
}
|
|
14
16
|
export interface IProjectionSemanticTarget {
|
|
15
17
|
readonly chartId: string;
|
|
@@ -29,5 +29,6 @@ export declare class ChartBuilder<THostDescription extends object = object> {
|
|
|
29
29
|
protected getDescriptionDataSetOverride(): IUniverDataSet | undefined;
|
|
30
30
|
/** Adds host-owned pending fields before the public description is frozen. */
|
|
31
31
|
protected composeHostDescription(description: IChartDescription & THostDescription): IChartDescription & THostDescription;
|
|
32
|
-
private
|
|
32
|
+
private _validateErrorBarsPatch;
|
|
33
|
+
private _validatePieCompositePatch;
|
|
33
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IChartTopNSpec } from '../chart-data-aggregation';
|
|
2
2
|
import type { AreaLineStyle, AxisAlignEnum, BarShape, ChartAxisDimension, ChartBorderDashType, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartTrendlineType, ChartWaterfallPointRole, InvalidValueType, IRuntimeAxisPosition, LabelAlignEnum, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, RelationChartLayoutEnum, ScatterLineType, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from '../enum';
|
|
3
|
-
import type { DeepNullish, IAxisOptions, IChart3DStyle, IChartCandlestickMappingSpec, IChartCandlestickSpec, IChartChordMappingSpec, IChartChordSpec, IChartGaugeSpec, IChartHistogramSpec, IChartSeriesFillPattern, IChartSunburstSpec, IChartTreemapSpec, IChartValueLabelSpec } from '../types';
|
|
3
|
+
import type { DeepNullish, IAxisOptions, IChart3DStyle, IChartCandlestickMappingSpec, IChartCandlestickSpec, IChartChordMappingSpec, IChartChordSpec, IChartErrorBars, IChartGaugeSpec, IChartHistogramSpec, IChartSeriesFillPattern, IChartSunburstSpec, IChartTreemapSpec, IChartValueLabelSpec } from '../types';
|
|
4
4
|
import type { ChartColor } from './chart-color';
|
|
5
5
|
/** Canonical semantic chart type names exposed by the chart facade. */
|
|
6
6
|
export declare enum ChartTypeString {
|
|
@@ -16,6 +16,8 @@ export declare enum ChartTypeString {
|
|
|
16
16
|
AreaStacked3D = "areaStacked3D",
|
|
17
17
|
AreaPercentStacked3D = "areaPercentStacked3D",
|
|
18
18
|
Line = "line",
|
|
19
|
+
LineStacked = "lineStacked",
|
|
20
|
+
LinePercentStacked = "linePercentStacked",
|
|
19
21
|
Column = "column",
|
|
20
22
|
ColumnStacked = "columnStacked",
|
|
21
23
|
ColumnPercentStacked = "columnPercentStacked",
|
|
@@ -551,6 +553,8 @@ interface IChartSemanticConfig {
|
|
|
551
553
|
title?: ChartTitleSpec;
|
|
552
554
|
subtitle?: ChartSubtitleSpec;
|
|
553
555
|
trendlines?: IChartTrendlineSpec[];
|
|
556
|
+
/** Complete error-bar collection; seriesIndex identifies a source field. */
|
|
557
|
+
errorBars?: IChartErrorBars[];
|
|
554
558
|
heatmap?: IChartHeatmapSpec;
|
|
555
559
|
invalidValueStrategy?: InvalidValueType;
|
|
556
560
|
legend?: ChartLegendSpec;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IChartErrorBars } from '../../types';
|
|
2
|
+
import { ChartTypeBits } from '../../enum';
|
|
3
|
+
/** Numeric axes available for new error-bar authoring; imported styles remain readable. */
|
|
4
|
+
export declare function getChartErrorBarDirections(chartType: ChartTypeBits): readonly IChartErrorBars['direction'][];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { IChartDataAggregation } from '../../chart-data-aggregation';
|
|
2
|
-
import type { ChartStyle, IChartContext, IChartDataSeries } from '../../types';
|
|
2
|
+
import type { ChartStyle, IChartContext, IChartDataSeries, IUniverDataSet } from '../../types';
|
|
3
3
|
import type { ChartPendingConfig, IChartCreateConfig, IChartDescription } from '../chart-types';
|
|
4
4
|
import { ChartTypeBits } from '../../enum';
|
|
5
5
|
interface IChartConfigConversionOptions {
|
|
6
6
|
series?: IChartDataSeries[];
|
|
7
|
+
/** Host-projected target source used to validate authored field bindings. */
|
|
8
|
+
targetDataSet?: IUniverDataSet;
|
|
7
9
|
currentChartType?: ChartTypeBits;
|
|
8
10
|
currentStyle?: ChartStyle;
|
|
9
11
|
currentContext?: IChartContext;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IChartContext, IUniverDataSet } from '../../types';
|
|
2
|
+
export declare function hasChartSourceField(dataSet: IUniverDataSet, index: number): boolean;
|
|
3
|
+
/** Selected physical fields present in the source, independent of rendered series. */
|
|
4
|
+
export declare function getChartSourceSeriesIndexes(dataSet: IUniverDataSet, context: IChartContext): number[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChartTypeBits, StackType } from '../../enum';
|
|
2
|
-
import { ChartTypeString } from '../chart-types';
|
|
2
|
+
import { ChartSeriesTypeString, ChartTypeString } from '../chart-types';
|
|
3
3
|
export declare function chartTypeToBits(type: ChartTypeString): ChartTypeBits;
|
|
4
4
|
export declare function chartBitsToType(bits: ChartTypeBits): ChartTypeString;
|
|
5
5
|
export declare function getChartStackType(chartType: ChartTypeBits | undefined): StackType | undefined;
|
|
6
6
|
export declare function withChartStackType(chartType: ChartTypeBits, stackType: StackType | ''): ChartTypeBits;
|
|
7
|
+
export declare const SERIES_TYPE_BITS: Readonly<Record<ChartSeriesTypeString, ChartTypeBits>>;
|
package/lib/types/enum.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ export declare enum ChartTypeBits {
|
|
|
17
17
|
* Line chart
|
|
18
18
|
*/
|
|
19
19
|
Line = 2,
|
|
20
|
+
/** Persisted two-dimensional stacked line; retain the Line family bit. */
|
|
21
|
+
LineStacked = 1073741826,
|
|
22
|
+
/** Persisted two-dimensional 100% stacked line. */
|
|
23
|
+
LinePercentStacked = 1610612738,
|
|
20
24
|
/**
|
|
21
25
|
* column chart
|
|
22
26
|
*/
|
|
@@ -39,6 +39,8 @@ export interface IChartBuilderTypeMap<TSource = never[], TDataSource = TSource,
|
|
|
39
39
|
[ChartTypeString.AreaStacked3D]: FAreaThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
40
40
|
[ChartTypeString.AreaPercentStacked3D]: FAreaThreeDChartBuilder<TSource, TDataSource, TInfo>;
|
|
41
41
|
[ChartTypeString.Line]: FLineChartBuilder<TSource, TDataSource, TInfo>;
|
|
42
|
+
[ChartTypeString.LineStacked]: FLineChartBuilder<TSource, TDataSource, TInfo>;
|
|
43
|
+
[ChartTypeString.LinePercentStacked]: FLineChartBuilder<TSource, TDataSource, TInfo>;
|
|
42
44
|
[ChartTypeString.Column]: FCartesianChartBuilder<Omit<IChartSeriesPatch, 'selector'>, IChartSeriesStyleSpec, TSource, TDataSource, TInfo>;
|
|
43
45
|
[ChartTypeString.ColumnStacked]: FCartesianChartBuilder<Omit<IChartSeriesPatch, 'selector'>, IChartSeriesStyleSpec, TSource, TDataSource, TInfo>;
|
|
44
46
|
[ChartTypeString.ColumnPercentStacked]: FCartesianChartBuilder<Omit<IChartSeriesPatch, 'selector'>, IChartSeriesStyleSpec, TSource, TDataSource, TInfo>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartAllSeriesStyleTarget, ChartAxisPointerTarget, ChartPublicSeriesSelector, ChartSeriesClearTarget, ChartSeriesTrendlineSelector, ChartTrendlineSelector, ChartTrendlineValue, DeepNullish, IChartAxisPointerSpec, IChartBarSpec, IChartInfo, IChartSeriesPatch, IChartSeriesStyleSpec } from '@univerjs-pro/engine-chart';
|
|
1
|
+
import type { ChartAllSeriesStyleTarget, ChartAxisPointerTarget, ChartPublicSeriesSelector, ChartSeriesClearTarget, ChartSeriesTrendlineSelector, ChartTrendlineSelector, ChartTrendlineValue, DeepNullish, IChartAxisPointerSpec, IChartBarSpec, IChartErrorBars, IChartInfo, IChartSeriesPatch, IChartSeriesStyleSpec } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import { FAxisChartBuilder } from './f-axis-chart-builder';
|
|
3
3
|
/**
|
|
4
4
|
* Fluent Builder for Cartesian Charts with per-series styling and trendlines.
|
|
@@ -17,6 +17,46 @@ import { FAxisChartBuilder } from './f-axis-chart-builder';
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class FCartesianChartBuilder<TSeriesPatch extends Omit<IChartSeriesPatch, 'selector'> = Omit<IChartSeriesPatch, 'selector'>, TSeriesStyle extends IChartSeriesStyleSpec = IChartSeriesStyleSpec, TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> extends FAxisChartBuilder<TSource, TDataSource, TInfo> {
|
|
19
19
|
readonly __seriesPatchType?: TSeriesPatch;
|
|
20
|
+
/**
|
|
21
|
+
* Replaces the entire collection; entries omitted from this call are removed.
|
|
22
|
+
* `seriesIndex` is a zero-based source-field index, including category fields:
|
|
23
|
+
* for source columns [Category, Sales], Sales is 1, even if it is the first visible series.
|
|
24
|
+
* `direction` targets a numeric axis: y for Column/Line, x for Bar, x or y for Scatter.
|
|
25
|
+
* `type` selects both / plus / minus. Each (seriesIndex, direction) can occur only once.
|
|
26
|
+
* `valueType` and `value`: fixedVal uses axis units; percentage uses 20 for 20%;
|
|
27
|
+
* stdDev uses 2 for two series standard deviations and centers bars on the series mean;
|
|
28
|
+
* stdErr computes the standard error and omits value.
|
|
29
|
+
* `noEndCap: false` shows caps; true hides them. Optional line fields are color, width,
|
|
30
|
+
* opacity (0–1), visible, and dashType (ChartBorderDashType.Solid / Dashed / Dotted).
|
|
31
|
+
* Supports basic 2D Column, Bar, Line and Scatter charts. Custom errors use valueType: 'cust'
|
|
32
|
+
* with plusIndex / minusIndex referencing positive / negative error fields in the same data source;
|
|
33
|
+
* omit value and supply the field for each enabled direction. Literal arrays are unsupported.
|
|
34
|
+
* @param errorBars The complete error-bar collection, copied into the detached draft.
|
|
35
|
+
* @returns This builder for chaining. Call build() and insert/update the chart to persist it.
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* import { ChartBorderDashType } from '@univerjs-pro/engine-chart';
|
|
39
|
+
*
|
|
40
|
+
* // Source columns: 0 = Category, 1 = Sales.
|
|
41
|
+
* const info = worksheet.newChart(univerAPI.Enum.ChartTypeString.Column)
|
|
42
|
+
* .setSource('A1:B4')
|
|
43
|
+
* .setErrorBars([{
|
|
44
|
+
* seriesIndex: 1, direction: 'y', type: 'both',
|
|
45
|
+
* valueType: 'percentage', value: 20, noEndCap: false,
|
|
46
|
+
* line: { color: '#C00000', width: 2, dashType: ChartBorderDashType.Solid },
|
|
47
|
+
* }])
|
|
48
|
+
* .build();
|
|
49
|
+
* const chart = await worksheet.insertChart(info);
|
|
50
|
+
* console.log(chart.getInfo().config.errorBars);
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
setErrorBars(errorBars: readonly IChartErrorBars[]): this;
|
|
54
|
+
/**
|
|
55
|
+
* Clears the error bars without changing trendlines or other configuration.
|
|
56
|
+
* @returns This builder for chaining.
|
|
57
|
+
* @example `builder.clearErrorBars()`
|
|
58
|
+
*/
|
|
59
|
+
clearErrorBars(): this;
|
|
20
60
|
/**
|
|
21
61
|
* Sets Chart-wide Bar and Column spacing and width options.
|
|
22
62
|
* @param {IChartBarSpec} value The Bar or Column layout specification.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ChartAggregationTarget, ChartAppearanceTarget, ChartLegendSpec, ChartSubtitleSpec, ChartTitleSpec, ChartTypeString, IChartAggregationSpec, IChartAppearanceSpec, IChartDescription, IChartInfo, IChartLiveAdapter, InvalidValueType } from '@univerjs-pro/engine-chart';
|
|
1
|
+
import type { ChartAggregationTarget, ChartAppearanceTarget, ChartLegendSpec, ChartSubtitleSpec, ChartTitleSpec, ChartTypeString, IChartAggregationSpec, IChartAppearanceSpec, IChartDescription, IChartErrorBars, IChartInfo, IChartLiveAdapter, InvalidValueType } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { DeepReadonly, Injector } from '@univerjs/core';
|
|
3
|
-
import type { FChartInfoBuilder } from './create-chart-builder';
|
|
4
3
|
import { FBase } from '@univerjs/core/facade';
|
|
4
|
+
import type { FChartInfoBuilder } from './create-chart-builder';
|
|
5
5
|
/**
|
|
6
6
|
* Base facade for a live Chart that has already been inserted into a host.
|
|
7
7
|
*
|
|
@@ -748,6 +748,44 @@ export declare class FChart<TSource, TDataSource = TSource, TInfo extends IChart
|
|
|
748
748
|
* ```
|
|
749
749
|
*/
|
|
750
750
|
remove(): Promise<boolean>;
|
|
751
|
+
/**
|
|
752
|
+
* Replaces the entire collection; entries omitted from this call are removed.
|
|
753
|
+
* `seriesIndex` is a zero-based source-field index, including category fields:
|
|
754
|
+
* for source columns [Category, Sales], Sales is 1, even if it is the first visible series.
|
|
755
|
+
* `direction` targets a numeric axis: y for Column/Line, x for Bar, x or y for Scatter.
|
|
756
|
+
* `type` selects both / plus / minus. Each (seriesIndex, direction) can occur only once.
|
|
757
|
+
* `valueType` and `value`: fixedVal uses axis units; percentage uses 20 for 20%;
|
|
758
|
+
* stdDev uses 2 for two series standard deviations and centers bars on the series mean;
|
|
759
|
+
* stdErr computes the standard error and omits value.
|
|
760
|
+
* `noEndCap: false` shows caps; true hides them. Optional line fields are color, width,
|
|
761
|
+
* opacity (0–1), visible, and dashType (ChartBorderDashType.Solid / Dashed / Dotted).
|
|
762
|
+
* Supports basic 2D Column, Bar, Line and Scatter charts. Custom errors use valueType: 'cust'
|
|
763
|
+
* with plusIndex / minusIndex referencing positive / negative error fields in the same data source;
|
|
764
|
+
* omit value and supply the field for each enabled direction. Literal arrays are unsupported.
|
|
765
|
+
* @param errorBars The complete collection to persist through the host command.
|
|
766
|
+
* @returns This chart for chaining. Read back through getInfo().config.errorBars.
|
|
767
|
+
* @example
|
|
768
|
+
* ```ts
|
|
769
|
+
* // Source columns: 0 = Category, 1 = Sales. Show an error of 5 axis units on each side.
|
|
770
|
+
* chart.setErrorBars([{
|
|
771
|
+
* seriesIndex: 1, direction: 'y', type: 'both',
|
|
772
|
+
* valueType: 'fixedVal', value: 5, noEndCap: false,
|
|
773
|
+
* }]);
|
|
774
|
+
* // Replaces the fixed errors above with computed standard errors (no value parameter).
|
|
775
|
+
* chart.setErrorBars([{
|
|
776
|
+
* seriesIndex: 1, direction: 'y', type: 'both', valueType: 'stdErr',
|
|
777
|
+
* }]);
|
|
778
|
+
* const errorBars = chart.getInfo().config.errorBars;
|
|
779
|
+
* chart.clearErrorBars(); // Equivalent to setErrorBars([]); supports Undo/Redo.
|
|
780
|
+
* ```
|
|
781
|
+
*/
|
|
782
|
+
setErrorBars(errorBars: readonly IChartErrorBars[]): this;
|
|
783
|
+
/**
|
|
784
|
+
* Clears error bars through the host command, preserving unrelated configuration.
|
|
785
|
+
* @returns This chart for chaining.
|
|
786
|
+
* @example `chart.clearErrorBars()`
|
|
787
|
+
*/
|
|
788
|
+
clearErrorBars(): this;
|
|
751
789
|
private _arrange;
|
|
752
790
|
private _apply;
|
|
753
791
|
private _commit;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export { ChartAllSeriesStyleTarget, ChartSeriesClearTarget, clearAllSeriesOverri
|
|
|
20
20
|
export type { IChartConfigOperation, } from './chart-builder/configuration/chart-config-operation';
|
|
21
21
|
export { resetChordEmphasis, resetChordLabel, resetChordLayout, resetChordNode, resetChordRibbon, setChordEmphasis, setChordLabel, setChordLayout, setChordMapping, setChordNode, setChordRibbon, } from './chart-builder/configuration/chord';
|
|
22
22
|
export { ChartSeriesAxis, resetCombinationSeriesAxis, resetCombinationSeriesType, setCombinationSeriesAxis, setCombinationSeriesType, } from './chart-builder/configuration/combination';
|
|
23
|
+
export { getChartErrorBarDirections } from './chart-builder/configuration/error-bars';
|
|
23
24
|
export { resetFunnelGap, resetUseAbsoluteValue, setFunnelGap, setUseAbsoluteValue, } from './chart-builder/configuration/funnel';
|
|
24
25
|
export { resetGaugeAnchor, resetGaugeAngles, resetGaugeAxisLabel, resetGaugeAxisLine, resetGaugeAxisTick, resetGaugeDetail, resetGaugeMode, resetGaugePointer, resetGaugeProgress, resetGaugeRanges, resetGaugeScale, resetGaugeSplitLine, resetGaugeTitle, setGaugeAnchor, setGaugeAngles, setGaugeAxisLabel, setGaugeAxisLine, setGaugeAxisTick, setGaugeDetail, setGaugeMode, setGaugePointer, setGaugeProgress, setGaugeRanges, setGaugeScale, setGaugeSplitLine, setGaugeTicks, setGaugeTitle, setGaugeValueField, } from './chart-builder/configuration/gauge';
|
|
25
26
|
export { clearCellLabel, clearValueRange, clearValueUnit, resetVisualMapType, setCellLabel, setValueRange, setValueUnit, setVisualMapType, } from './chart-builder/configuration/heatmap';
|
|
@@ -92,6 +93,7 @@ export type { IChartModelInitParams } from './models/chart-render/converter/mode
|
|
|
92
93
|
export { convertModelFromInitData, convertModelToSpec, } from './models/chart-render/converter/mode-converter';
|
|
93
94
|
export { resolveChartPlotAreaForEditing } from './models/chart-render/converter/render-spec-operators/grid-operator';
|
|
94
95
|
export { excelDateToUnixMilliseconds } from './models/chart-render/converter/render-spec-operators/tool-tip-operator';
|
|
96
|
+
export { renderChartLicenseWatermark, } from './models/chart-render/converter/render-spec-operators/watermark.operator';
|
|
95
97
|
export { EChartRenderEngine, EChartRenderModel } from './models/chart-render/echart-render-model';
|
|
96
98
|
export { CHART_VALUE_FORMAT_PRESETS, CHART_VALUE_FORMAT_PREVIEW_VALUE, } from './models/chart-render/format/chart-value-format';
|
|
97
99
|
export { resolveChartRuntimeStyle, resolveChartStyleBackgroundColor, } from './models/chart-render/style/chart-runtime-style';
|
|
@@ -128,7 +130,7 @@ export { ChartDataSource } from './source/chart-source';
|
|
|
128
130
|
export { ChartSourceHeaderTitleType } from './source/chart-source-header';
|
|
129
131
|
export type { IChartSourceHeader, IChartSourceHeaderTitle } from './source/chart-source-header';
|
|
130
132
|
export { StaticChartSource } from './source/static-chart-source';
|
|
131
|
-
export type { ChartDataSourceValues, ChartDirection, ChartElementEventHandler, ChartElementEventType, ChartElementKind, ChartFieldButtonRole, ChartImageSource, ChartRenderRuntimeContext, ChartRuntimeStyle, ChartStyle, DeepNullish, DeepPartial, DimensionDefinitionLoose, IAllSeriesStyle, IAxisOptions, IBarStyle, IChart3DStyle, IChartBubbleStyle, IChartCandlestickData, IChartCandlestickMappingSpec, IChartCandlestickPoint, IChartCandlestickSpec, IChartCandlestickStateStyleSpec, IChartChordData, IChartChordEmphasisSpec, IChartChordLabelSpec, IChartChordLayoutSpec, IChartChordLink, IChartChordMappingSpec, IChartChordNode, IChartChordNodeStyleSpec, IChartChordRibbonStyleSpec, IChartChordSpec, IChartConfig, IChartContext, IChartData, IChartDataCategory, IChartDataCategoryLevel, IChartDataCategorySegment, IChartDataSeries, IChartDataSource, IChartElementBounds, IChartElementEvent, IChartElementHit, IChartElementOverlay, IChartFieldButton, IChartGaugeAnchorSpec, IChartGaugeAnglesSpec, IChartGaugeAxisLabelSpec, IChartGaugeAxisLineSpec, IChartGaugeAxisTickSpec, IChartGaugeData, IChartGaugeDetailSpec, IChartGaugeFontSpec, IChartGaugeItem, IChartGaugePointerSpec, IChartGaugeProgressSpec, IChartGaugeRangeSpec, IChartGaugeScaleSpec, IChartGaugeSpec, IChartGaugeSplitLineSpec, IChartGaugeTitleSpec, IChartHistogramBin, IChartHistogramBinningSpec, IChartHistogramData, IChartHistogramDataSpec, IChartHistogramSpec, IChartHistogramStyleSpec, IChartHost, IChartHostBorderStyle, IChartHostLease, IChartHostRect, IChartHostStyle, IChartInstance, IChartPlotArea, IChartRenderAsImageOptions, IChartRenderInput, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderInstanceSpecInput, IChartRenderInstanceStyleInput, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IChartRenderTransitionOptions, IChartSnapshot, IChartStyle, IChartSunburstCenterLabelSpec, IChartSunburstData, IChartSunburstLabelSpec, IChartSunburstNode, IChartSunburstSpec, IChartTreemapData, IChartTreemapLabelSpec, IChartTreemapNode, IChartTreemapSpec, IChartValueLabelSpec, IDimensionDefinition, IDomChartHost, IGridLineStyle, IImageChartHost, ILabelStyle, ILegendStyle, IPieLabelStyle, IPointStyle, IRelationForceOptions, IRuntimeAxis, ISeriesLabelStyle, ISeriesStyle, ITrendLine, IUniverDataSet, IUniverDataSetCategorySpan, OptionDataValue, RightYAxisOptions, } from './types';
|
|
133
|
+
export type { ChartDataSourceValues, ChartDirection, ChartElementEventHandler, ChartElementEventType, ChartElementKind, ChartFieldButtonRole, ChartImageSource, ChartRenderRuntimeContext, ChartRuntimeStyle, ChartStyle, DeepNullish, DeepPartial, DimensionDefinitionLoose, IAllSeriesStyle, IAxisOptions, IBarStyle, IChart3DStyle, IChartBubbleStyle, IChartCandlestickData, IChartCandlestickMappingSpec, IChartCandlestickPoint, IChartCandlestickSpec, IChartCandlestickStateStyleSpec, IChartChordData, IChartChordEmphasisSpec, IChartChordLabelSpec, IChartChordLayoutSpec, IChartChordLink, IChartChordMappingSpec, IChartChordNode, IChartChordNodeStyleSpec, IChartChordRibbonStyleSpec, IChartChordSpec, IChartConfig, IChartContext, IChartData, IChartDataCategory, IChartDataCategoryLevel, IChartDataCategorySegment, IChartDataSeries, IChartDataSource, IChartElementBounds, IChartElementEvent, IChartElementHit, IChartElementOverlay, IChartErrorBars, IChartFieldButton, IChartGaugeAnchorSpec, IChartGaugeAnglesSpec, IChartGaugeAxisLabelSpec, IChartGaugeAxisLineSpec, IChartGaugeAxisTickSpec, IChartGaugeData, IChartGaugeDetailSpec, IChartGaugeFontSpec, IChartGaugeItem, IChartGaugePointerSpec, IChartGaugeProgressSpec, IChartGaugeRangeSpec, IChartGaugeScaleSpec, IChartGaugeSpec, IChartGaugeSplitLineSpec, IChartGaugeTitleSpec, IChartHistogramBin, IChartHistogramBinningSpec, IChartHistogramData, IChartHistogramDataSpec, IChartHistogramSpec, IChartHistogramStyleSpec, IChartHost, IChartHostBorderStyle, IChartHostLease, IChartHostRect, IChartHostStyle, IChartInstance, IChartPlotArea, IChartRenderAsImageOptions, IChartRenderInput, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderInstanceSpecInput, IChartRenderInstanceStyleInput, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IChartRenderTransitionOptions, IChartSnapshot, IChartStyle, IChartSunburstCenterLabelSpec, IChartSunburstData, IChartSunburstLabelSpec, IChartSunburstNode, IChartSunburstSpec, IChartTreemapData, IChartTreemapLabelSpec, IChartTreemapNode, IChartTreemapSpec, IChartValueLabelSpec, IDimensionDefinition, IDomChartHost, IGridLineStyle, IImageChartHost, ILabelStyle, ILegendStyle, IPieLabelStyle, IPointStyle, IRelationForceOptions, IRuntimeAxis, ISeriesLabelStyle, ISeriesStyle, ITrendLine, IUniverDataSet, IUniverDataSetCategorySpan, OptionDataValue, RightYAxisOptions, } from './types';
|
|
132
134
|
export { CHART_DATA_UPDATE_ANIMATION_DURATION, ChartImageExportFormat, ChartImageSourceType, ChartRenderMode, } from './types';
|
|
133
135
|
export { chartBitsUtils, chartTypeCanUseTrendLine, mergeChartConfig, } from './util';
|
|
134
136
|
export { omitUndefinedFields, } from './utils/compact';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IChartPieCompositeSpec } from '../../../chart-builder/chart-types';
|
|
2
|
-
import type { DeepNullish } from '../../../types';
|
|
3
2
|
import { PieSecondaryPlotType } from '../../../chart-builder/chart-types';
|
|
4
3
|
import { ChartBorderDashType } from '../../../enum';
|
|
5
4
|
export declare const PIE_COMPOSITE_MIN_SOURCE_POINT_COUNT = 2;
|
|
@@ -23,7 +22,6 @@ export declare const PIE_CONNECTOR_OPACITY_DEFAULT = 1;
|
|
|
23
22
|
export declare const PIE_CONNECTOR_DASH_TYPE_DEFAULT = ChartBorderDashType.Solid;
|
|
24
23
|
export declare const PIE_COMPOSITE_SECONDARY_PLOT_REQUIRED_ERROR = "Active Pie composite requires a secondary plot with type \"pie\" or \"bar\".";
|
|
25
24
|
export declare const PIE_COMPOSITE_INVALID_VALUE_ERROR_PREFIX = "Invalid Pie composite value";
|
|
26
|
-
export declare function assertPieCompositePatch(current: DeepNullish<IChartPieCompositeSpec> | null | undefined, patch: DeepNullish<IChartPieCompositeSpec> | null | undefined): void;
|
|
27
25
|
/**
|
|
28
26
|
* Composite Pie fields were added to the persisted Pie style additively.
|
|
29
27
|
* Historical snapshots omit `composite`, and an abandoned transition shape can
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { IAxisOptions, IChartConfig } from '../../../types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function resolveCalendarDateAxis(category: IChartConfig['category'], axis: Pick<IAxisOptions, 'baseTimeUnit' | 'min' | 'max'> | undefined, useDefault1900DateSystem?: boolean): ICalendarDateAxis | undefined;
|
|
7
|
-
export {};
|
|
1
|
+
import type { IAxisOptions, ICalendarDateAxis, IChartConfig } from '../../../types';
|
|
2
|
+
import { ChartTypeBits } from '../../../enum';
|
|
3
|
+
export declare function isObservationIndexedCalendarLineStack(chartType: ChartTypeBits, calendarAxis: ICalendarDateAxis | undefined): boolean;
|
|
4
|
+
export declare function buildChartCalendarDateAxis(config: IChartConfig, axis: Pick<IAxisOptions, 'baseTimeUnit' | 'min' | 'max'> | undefined, useDefault1900DateSystem?: boolean): ICalendarDateAxis | undefined;
|
|
5
|
+
export declare function buildCalendarDateAxis(categories: Array<IChartConfig['category']>, axis: Pick<IAxisOptions, 'baseTimeUnit' | 'min' | 'max'> | undefined, useDefault1900DateSystem?: boolean): ICalendarDateAxis | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { OptionalDataValue } from '../../../types';
|
|
2
|
+
export declare function getCalendarDatePointValues(point: unknown): unknown[] | undefined;
|
|
3
|
+
export declare function createCalendarDatePoint(xValue: string | number, value: OptionalDataValue, sourceDate: number): [string | number, OptionalDataValue, number];
|
|
4
|
+
export declare function getCalendarDatePointSource(point: unknown): number | undefined;
|
package/lib/types/models/chart-render/converter/render-spec-operators/axis-title.operator.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
1
|
+
import type { ChartRuntimeStyle, EChartRenderSpecOperator, EChartSpec, IChartConfig } from '../../../../types';
|
|
2
2
|
export declare const axisTitleStyleOperator: EChartRenderSpecOperator;
|
|
3
|
+
export declare function applyAxisTitleStyle(spec: EChartSpec, style: ChartRuntimeStyle, config: IChartConfig): void;
|