@univerjs-pro/chart-ui 1.0.0-beta.0 → 1.0.0-beta.2

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.
Files changed (99) hide show
  1. package/lib/cjs/facade.js +1 -0
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -0
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -0
  44. package/lib/index.css +30 -99
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/components/ChartReferencedDataSourceEditor.d.ts +11 -0
  66. package/lib/types/components/ChartTypeOptions.d.ts +0 -4
  67. package/lib/types/editor/components/ChartColorField.d.ts +1 -0
  68. package/lib/types/editor/hooks/use-chart-type-state.d.ts +20 -0
  69. package/lib/types/editor/sections/chart-style-options.d.ts +1 -1
  70. package/lib/types/facade/f-chart.d.ts +21 -0
  71. package/lib/types/facade/index.d.ts +2 -0
  72. package/lib/types/float-menu/constants.d.ts +0 -14
  73. package/lib/types/index.d.ts +8 -2
  74. package/lib/types/locale/en-US.d.ts +7 -0
  75. package/lib/types/services/chart-image-export.service.d.ts +30 -0
  76. package/lib/types/services/chart-referenced-data-source-binding.service.d.ts +13 -0
  77. package/lib/types/services/chart-snapshot-queue.d.ts +5 -4
  78. package/lib/umd/facade.js +1 -0
  79. package/lib/umd/index.js +1 -1
  80. package/lib/umd/locale/ar-SA.js +1 -1
  81. package/lib/umd/locale/ca-ES.js +1 -1
  82. package/lib/umd/locale/de-DE.js +1 -1
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/es-ES.js +1 -1
  85. package/lib/umd/locale/fa-IR.js +1 -1
  86. package/lib/umd/locale/fr-FR.js +1 -1
  87. package/lib/umd/locale/id-ID.js +1 -1
  88. package/lib/umd/locale/it-IT.js +1 -1
  89. package/lib/umd/locale/ja-JP.js +1 -1
  90. package/lib/umd/locale/ko-KR.js +1 -1
  91. package/lib/umd/locale/pl-PL.js +1 -1
  92. package/lib/umd/locale/pt-BR.js +1 -1
  93. package/lib/umd/locale/ru-RU.js +1 -1
  94. package/lib/umd/locale/sk-SK.js +1 -1
  95. package/lib/umd/locale/vi-VN.js +1 -1
  96. package/lib/umd/locale/zh-CN.js +1 -1
  97. package/lib/umd/locale/zh-HK.js +1 -1
  98. package/lib/umd/locale/zh-TW.js +1 -1
  99. package/package.json +23 -9
@@ -1,4 +1,4 @@
1
- import type { IStaticChartModelRuntime } from '@univerjs-pro/engine-chart';
1
+ import type { IChartModelRuntime } from '@univerjs-pro/engine-chart';
2
2
  import type { LocaleService } from '@univerjs/core';
3
3
  import { Disposable } from '@univerjs/core';
4
4
  import { Subject } from 'rxjs';
@@ -23,14 +23,14 @@ export interface IChartSnapshotInvalidation {
23
23
  export interface IChartSnapshotInvalidationOptions {
24
24
  waitForConfig?: boolean;
25
25
  }
26
- export interface IChartSnapshotRenderer<TRequest extends IChartSnapshotRequest, TRuntime extends IStaticChartModelRuntime = IStaticChartModelRuntime> {
26
+ export interface IChartSnapshotRenderer<TRequest extends IChartSnapshotRequest, TRuntime extends IChartModelRuntime = IChartModelRuntime> {
27
27
  render(request: TRequest, runtime: TRuntime): Promise<string>;
28
28
  }
29
- export interface IChartSnapshotRuntimeProvider<TRuntime extends IStaticChartModelRuntime> {
29
+ export interface IChartSnapshotRuntimeProvider<TRuntime extends IChartModelRuntime> {
30
30
  ensureChartModel(unitId: string, chartId: string): TRuntime | undefined;
31
31
  getChartModel(unitId: string, chartId: string): TRuntime | undefined;
32
32
  }
33
- export declare class ChartSnapshotQueue<TRequest extends IChartSnapshotRequest, TRuntime extends IStaticChartModelRuntime = IStaticChartModelRuntime> extends Disposable {
33
+ export declare class ChartSnapshotQueue<TRequest extends IChartSnapshotRequest, TRuntime extends IChartModelRuntime = IChartModelRuntime> extends Disposable {
34
34
  private readonly _localeService;
35
35
  private readonly _modelService;
36
36
  private readonly _renderer;
@@ -44,6 +44,7 @@ export declare class ChartSnapshotQueue<TRequest extends IChartSnapshotRequest,
44
44
  constructor(_localeService: LocaleService, _modelService: IChartSnapshotRuntimeProvider<TRuntime>, _renderer: IChartSnapshotRenderer<TRequest, TRuntime>);
45
45
  requestSnapshot(request: TRequest): IChartSnapshotEntry;
46
46
  getSnapshot(request: TRequest): IChartSnapshotEntry | undefined;
47
+ exportImage(request: TRequest): Promise<string | undefined>;
47
48
  invalidateChart(unitId: string, chartId: string, options?: IChartSnapshotInvalidationOptions): void;
48
49
  getCacheKey(request: TRequest): string;
49
50
  flushForTests(): Promise<void>;
@@ -0,0 +1 @@
1
+ function _0x5005(){var _0x3e34c2=['104408hQOmcB','1320605scNdNY','UniverProEngineChartFacade','UniverProChartUi','_injector','6XQYDFi','9608748esqvRS','3239qcQyIO','2323866YDnxZx','object','120igfjQw','ChartImageExportService','@univerjs-pro/engine-chart/facade','7bClxlB','1980LKSTam','19818RpfOwE','3602696MnUsjz','FChart','get','11HGmRWO','@univerjs-pro/chart-ui'];_0x5005=function(){return _0x3e34c2;};return _0x5005();}function _0xd678(_0x56eef3,_0x4e3e65){_0x56eef3=_0x56eef3-0x13b;var _0x500560=_0x5005();var _0xd67860=_0x500560[_0x56eef3];return _0xd67860;}(function(_0x2e2ab8,_0x49827d){var _0x4bd040=_0xd678,_0x2611bd=_0x2e2ab8();while(!![]){try{var _0x57302a=parseInt(_0x4bd040(0x14d))/0x1*(parseInt(_0x4bd040(0x13b))/0x2)+parseInt(_0x4bd040(0x14b))/0x3*(-parseInt(_0x4bd040(0x146))/0x4)+-parseInt(_0x4bd040(0x147))/0x5+-parseInt(_0x4bd040(0x14e))/0x6+-parseInt(_0x4bd040(0x13e))/0x7*(parseInt(_0x4bd040(0x141))/0x8)+parseInt(_0x4bd040(0x140))/0x9*(parseInt(_0x4bd040(0x13f))/0xa)+parseInt(_0x4bd040(0x144))/0xb*(parseInt(_0x4bd040(0x14c))/0xc);if(_0x57302a===_0x49827d)break;else _0x2611bd['push'](_0x2611bd['shift']());}catch(_0x5e3ae1){_0x2611bd['push'](_0x2611bd['shift']());}}}(_0x5005,0x43a64),function(_0x44f34f,_0x202a50){var _0x3fed70=_0xd678;typeof exports==_0x3fed70(0x14f)&&typeof module<'u'?_0x202a50(require('@univerjs-pro/chart-ui'),require('@univerjs-pro/engine-chart/facade')):typeof define=='function'&&define['amd']?define([_0x3fed70(0x145),_0x3fed70(0x13d)],_0x202a50):(_0x44f34f=typeof globalThis<'u'?globalThis:_0x44f34f||self,_0x202a50(_0x44f34f[_0x3fed70(0x149)],_0x44f34f[_0x3fed70(0x148)]));}(this,function(_0x3e65ae,_0x2c9a6d){var _0x3e2cc1=_0xd678,_0x4b0cec=class extends _0x2c9a6d[_0x3e2cc1(0x142)]{['exportImage'](_0x3f01d1){var _0x590ddc=_0x3e2cc1;return this[_0x590ddc(0x14a)][_0x590ddc(0x143)](_0x3e65ae[_0x590ddc(0x13c)])['exportImage'](this,_0x3f01d1);}};_0x2c9a6d['FChart']['extend'](_0x4b0cec);}));