@univerjs-pro/sheets-chart-ui 0.5.2 → 0.5.3-experimental.20250106-4af1f4e
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/en-US.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/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/en-US.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/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/index.css +1 -1
- package/lib/types/facade/chart-builder/chart-builder-base.d.ts +88 -41
- package/lib/types/facade/chart-builder/line-chart-builder.d.ts +4 -4
- package/lib/types/facade/chart-builder/pie-chart-builder.d.ts +6 -6
- package/lib/types/facade/chart-builder/radar-chart-builder.d.ts +24 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.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/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 +16 -40
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*{scrollbar-color:initial;scrollbar-width:initial}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.univer-button-switch{display:flex;align-items:center;padding:var(--padding-xs);border:1px solid rgb(var(--border-color));border-radius:4px;background:var(--white, #fff);height:32px;padding:0 4px}.univer-button-switch-item{flex-grow:1;font-size:12px;font-style:normal;font-weight:500;line-height:150%;color:var(--gray-800, #181c2a);display:flex;align-items:center;justify-content:center;padding:4px 0;cursor:default;border-radius:var(--rounded-md, 6px)}.univer-button-switch-item-active{background:var(--gray-100, #eeeff1)}.univer-chart-edit-panel-tabs{display:flex;align-items:center;justify-content:start}.univer-chart-edit-panel-tab{padding:var(--padding-lg) 0;text-align:center;font-size:14px;font-style:normal;font-weight:600;line-height:150%;margin-right:20px;cursor:default}.univer-chart-edit-panel-tab-btn{color:rgb(var(--text-color-secondary));position:relative}.univer-chart-edit-panel-tab-btn-active{color:rgb(var(--primary-color))}.univer-chart-edit-panel-tab-btn-active:after{content:"";width:50%;height:4px;border-radius:2px;display:block;position:absolute;background-color:rgb(var(--primary-color));bottom:-8px;left:50%;transform:translate(-50%)}.univer-chart-edit-panel-tab-btn:hover{background-color:transparent}.univer-chart-edit-panel h5{margin:var(--margin-xs) 0 var(--margin-sm);font-size:var(--font-size-xs)}.univer-chart-edit-panel .univer-chart-edit-panel-select{width:100%;height:32px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;border-radius:var(--rounded-lg, 8px);border:1px solid var(--gray-200, #e3e5ea);background:var(--gray-50, #f9fafb);cursor:default}.univer-chart-edit-panel .univer-chart-edit-panel-select .univer-select-selector{width:100%}.univer-chart-edit-panel .univer-chart-edit-panel-input{width:100%;height:32px;background:var(--gray-50, #f9fafb)}.univer-chart-edit-panel .univer-chart-edit-panel-input input{background-color:var(--gray-50, #f9fafb)}.univer-chart-edit-panel .chart-edit-panel-label{font-size:var(--font-size-sm);color:var(--text-color)}.univer-chart-edit-panel .chart-edit-panel-top-gap{margin-top:var(--margin-xs)}.univer-chart-edit-panel .chart-edit-panel-top-gap-sm{margin-top:var(--margin-sm)}.univer-chart-edit-panel .chart-edit-panel-top-gap-base{margin-top:var(--margin-base)}.univer-chart-edit-panel .chart-edit-panel-row{display:flex;gap:var(--margin-sm)}.univer-chart-edit-panel .chart-edit-panel-row-wrap{flex-wrap:wrap}.univer-chart-edit-panel .chart-edit-panel-text-right{text-align:right}.univer-chart-edit-panel .chart-edit-panel-row-half{width:calc(50% - 6px);box-sizing:border-box}.univer-chart-edit-panel .univer-select-selection-overflow{align-items:center}.univer-data-tab-panel-series-select{display:flex;align-items:center}.univer-data-tab-panel-series-select-delete{width:24px;height:24px;display:flex;justify-content:center;align-items:center;margin-left:var(--margin-xs);flex-shrink:0}.univer-data-tab-panel-series-select-delete:hover{background:var(--gray-100, #eeeff1);border-radius:4px}.univer-data-tab-panel-add-series-btn{color:rgb(var(--primary-color));display:flex;align-items:center}.univer-data-tab-panel-add-series-btn-icon{font-size:12px}.univer-data-tab-panel-add-series-btn-text{margin-left:1.5px;font-size:12px;font-style:normal;font-weight:500;line-height:150%}.univer-data-tab-panel-colorItem{display:flex;align-items:center;height:16px}.univer-data-tab-panel-color-option{height:28px;width:80%;display:flex;flex-direction:row;align-items:center}.univer-data-tab-panel-chart-type-option{display:flex;flex-direction:row;align-items:center;gap:6px;height:26px}.univer-data-tab-panel-chart-type-option-icon{font-size:16px;display:flex;align-items:center}.univer-data-tab-panel-chart-type-option-text{color:var(--gray-900, #0e111e);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.univer-chart-edit-panel-select{width:100%;height:32px;flex-direction:column;justify-content:center;align-items:flex-start;border-radius:var(--rounded-lg, 8px);border:1px solid var(--gray-200, #e3e5ea);background:var(--gray-50, #f9fafb);cursor:default}.univer-chart-edit-panel-range-selector{border-radius:var(--rounded-lg, 8px);border:1px solid var(--gray-200, #e3e5ea);background:var(--gray-50, #f9fafb);cursor:default}.univer-chart-edit-block-title{color:var(--gray-900, var(--gray-900, #0e111e));font-weight:500;line-height:150%;font-size:14px;font-style:normal;margin-bottom:8px;margin-top:16px}.univer-chart-edit-gradient-fill{margin-top:8px;font-size:14px;font-style:normal;font-weight:400;line-height:14px;color:var(--gray-900, #0e111e)}.univer-margin-bottom-8{margin-bottom:8px}.univer-chart-radio-group-vertical{display:flex;flex-direction:column;gap:10px}.univer-color-picker-control{padding:0;width:100%;border-radius:var(--rounded-lg, 8px);border:1px solid var(--gray-200, #e3e5ea);background:var(--gray-50, #f9fafb)}.univer-color-picker-control-overlay{padding:var(--padding-base);font-size:var(--font-size-xs);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-base);display:flex;flex-direction:column;gap:12px;align-items:center}.univer-color-picker-control-overlay-default{width:100%}.univer-color-picker-control-view-box{display:flex;align-items:center;height:32px;line-height:32px;flex:1;box-sizing:border-box;padding:0 var(--padding-base);justify-content:space-between}.univer-color-picker-control-view{width:20px;height:20px;border:1px solid rgb(var(--border-color))}.univer-color-picker-control-text{color:var(--gray-900, #0e111e);text-overflow:ellipsis;white-space:nowrap;font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:125%}.univer-color-picker-control-arrow{margin-left:var(--margin-xs);transition:transform .3s}.univer-color-picker-control-rotate{transform:rotate(180deg)}.univer-font-format-bar{display:flex;padding:2px 3px;border:1px solid #d0d3d6;border-radius:6px;align-items:center;gap:6px;width:-moz-fit-content;width:fit-content}.univer-font-format-bar-item{line-height:1;cursor:pointer;border-radius:4px;padding:4px 6px}.univer-font-format-bar-item-active{background-color:#e0e9ff;color:#1456f0}.univer-font-format-bar-menu-item{display:flex;align-items:center}.univer-font-format-bar-item:hover{background-color:#eff0f1}.univer-font-format-bar-color-bar{border-radius:6px;height:4px;width:1em}.univer-font-format-bar-color-picker-overlay{padding:var(--padding-base);font-size:var(--font-size-xs);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-base)}.univer-font-format-bar-menu-icon{margin-left:4px;transition:transform .3s}.univer-font-format-bar-rotate-icon{transform:rotate(180deg)}.univer-font-format-bar-font-color-box{display:flex;flex-direction:column}.univer-style-tab-panel>.univer-style-tab-panel-collapse{background-color:#fff;border:none}.univer-style-tab-panel>.univer-style-tab-panel-collapse .rc-collapse-content{padding:0}.univer-style-tab-panel>.univer-style-tab-panel-collapse .rc-collapse-content-box{margin:var(--margin-xs) 0}.univer-style-tab-panel-split{margin-bottom:var(--margin-xs)}.univer-style-tab-panel-select{width:100%;height:32px}.univer-style-tab-panel-font-style-bar{display:flex;align-items:center}.univer-style-tab-panel-font-size-bar{display:inline-flex;border:1px solid rgb(var(--border-color));border-radius:4px}.univer-style-tab-panel-font-size-btn{padding:var(--padding-xs) var(--padding-sm)}.univer-style-tab-panel-row-half{display:flex;justify-content:space-between;flex-direction:column;align-items:flex-start;flex:1 0 0}.univer-style-tab-panel-block{padding:0 16px 10px;color:var(--gray-600, #414657);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.univer-style-tab-panel-row-label{color:var(--gray-600, #414657);font-size:14px;font-weight:400;line-height:150%;font-style:normal;margin-bottom:8px}.univer-style-tab-panel-row-half-label{margin-bottom:var(--margin-xs);font-size:14px;font-style:normal;font-weight:400;line-height:150%;color:var(--gray-600, #414657)}.univer-style-tab-panel-row{display:flex;padding:0;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:var(--margin-xs)}.univer-style-tab-panel-label{font-size:14px;font-style:normal;font-weight:500;line-height:150%;color:var(--gray-600, #414657)}.univer-style-tab-panel-mini-group{display:flex;padding:var(--3, 12px);flex-direction:column;align-items:flex-start;gap:var(--4, 16px);border-radius:var(--rounded-xl, 12px);border:1px solid var(--gray-200, #e3e5ea);background:var(--white, #fff);box-shadow:0 2px 4px #0e111e0f;position:relative}.univer-style-tab-panel-mini-group-delete{position:absolute;right:8px;top:8px}.univer-series-style-edit-add-data-point-btn{justify-self:flex-end;display:inline-flex;gap:4px;font-size:12px;font-style:normal;font-weight:500;line-height:150%;color:rgb(var(--primary-color));align-items:center}.univer-series-style-edit-row{padding:10px 16px}.univer-series-style-edit-label{margin-bottom:var(--margin-xs)}.univer-series-style-edit-block-title{color:var(--gray-900, #0e111e);font-size:14px;font-style:normal;font-weight:500;line-height:150%;margin-bottom:16px}.univer-data-points-edit-container{display:flex;flex-direction:column;gap:16px}.rc-collapse-motion{transition:height .3s,opacity .3s}.rc-collapse-content-hidden{display:none}.rc-collapse{background-color:#f7f7f7;border-radius:3px;border:1px solid #d9d9d9}.rc-collapse>.rc-collapse-item{border-top:1px solid #d9d9d9}.rc-collapse>.rc-collapse-item:first-child{border-top:none}.rc-collapse>.rc-collapse-item>.rc-collapse-header{display:flex;align-items:center;line-height:22px;padding:10px 16px;color:#666;cursor:pointer}.rc-collapse>.rc-collapse-item>.rc-collapse-header .arrow{display:inline-block;content:" ";width:0;height:0;font-size:0;line-height:0;border-top:3px solid transparent;border-bottom:3px solid transparent;border-left:4px solid #666;vertical-align:middle;margin-right:8px}.rc-collapse>.rc-collapse-item>.rc-collapse-header .rc-collapse-extra{margin:0 16px 0 auto}.rc-collapse>.rc-collapse-item .rc-collapse-collapsible-header{cursor:default}.rc-collapse>.rc-collapse-item .rc-collapse-collapsible-header .rc-collapse-header-text{cursor:pointer}.rc-collapse>.rc-collapse-item .rc-collapse-collapsible-header .rc-collapse-expand-icon{cursor:pointer}.rc-collapse>.rc-collapse-item .rc-collapse-collapsible-icon{cursor:default}.rc-collapse>.rc-collapse-item .rc-collapse-collapsible-icon .rc-collapse-expand-icon{cursor:pointer}.rc-collapse>.rc-collapse-item-disabled>.rc-collapse-header{cursor:not-allowed;color:#999;background-color:#f3f3f3}.rc-collapse-content{overflow:hidden;color:#666;padding:0 16px;background-color:#fff}.rc-collapse-content>.rc-collapse-content-box{margin-top:16px;margin-bottom:16px}.rc-collapse-item:last-child>.rc-collapse-content{border-radius:0 0 3px 3px}.rc-collapse>.rc-collapse-item-active>.rc-collapse-header .arrow{position:relative;top:2px;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #666;margin-right:6px}
|
|
1
|
+
.univer-button-switch{display:flex;align-items:center;padding:var(--padding-xs);border:1px solid rgb(var(--border-color));border-radius:4px;background:var(--white, #fff);height:32px;padding:0 4px}.univer-button-switch-item{flex-grow:1;font-size:12px;font-style:normal;font-weight:500;line-height:150%;color:var(--gray-800, #181c2a);display:flex;align-items:center;justify-content:center;padding:4px 0;cursor:default;border-radius:var(--rounded-md, 6px)}.univer-button-switch-item-active{background:var(--gray-100, #eeeff1)}.univer-chart-edit-panel-tabs{display:flex;align-items:center;justify-content:start}.univer-chart-edit-panel-tab{padding:var(--padding-lg) 0;text-align:center;font-size:14px;font-style:normal;font-weight:600;line-height:150%;margin-right:20px;cursor:default}.univer-chart-edit-panel-tab-btn{color:rgb(var(--text-color-secondary));position:relative}.univer-chart-edit-panel-tab-btn-active{color:rgb(var(--primary-color))}.univer-chart-edit-panel-tab-btn-active:after{content:"";width:50%;height:4px;border-radius:2px;display:block;position:absolute;background-color:rgb(var(--primary-color));bottom:-8px;left:50%;transform:translate(-50%)}.univer-chart-edit-panel-tab-btn:hover{background-color:transparent}.univer-chart-edit-panel h5{margin:var(--margin-xs) 0 var(--margin-sm);font-size:var(--font-size-xs)}.univer-chart-edit-panel .univer-chart-edit-panel-select{width:100%;height:32px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;border-radius:var(--rounded-lg, 8px);border:1px solid var(--gray-200, #e3e5ea);background:var(--gray-50, #f9fafb);cursor:default}.univer-chart-edit-panel .univer-chart-edit-panel-select .univer-select-selector{width:100%}.univer-chart-edit-panel .univer-chart-edit-panel-input{width:100%;height:32px;background:var(--gray-50, #f9fafb)}.univer-chart-edit-panel .univer-chart-edit-panel-input input{background-color:var(--gray-50, #f9fafb)}.univer-chart-edit-panel .chart-edit-panel-label{font-size:var(--font-size-sm);color:var(--text-color)}.univer-chart-edit-panel .chart-edit-panel-top-gap{margin-top:var(--margin-xs)}.univer-chart-edit-panel .chart-edit-panel-top-gap-sm{margin-top:var(--margin-sm)}.univer-chart-edit-panel .chart-edit-panel-top-gap-base{margin-top:var(--margin-base)}.univer-chart-edit-panel .chart-edit-panel-row{display:flex;gap:var(--margin-sm)}.univer-chart-edit-panel .chart-edit-panel-row-wrap{flex-wrap:wrap}.univer-chart-edit-panel .chart-edit-panel-text-right{text-align:right}.univer-chart-edit-panel .chart-edit-panel-row-half{width:calc(50% - 6px);box-sizing:border-box}.univer-chart-edit-panel .univer-select-selection-overflow{align-items:center}.univer-data-tab-panel-series-select{display:flex;align-items:center}.univer-data-tab-panel-series-select-delete{width:24px;height:24px;display:flex;justify-content:center;align-items:center;margin-left:var(--margin-xs);flex-shrink:0}.univer-data-tab-panel-series-select-delete:hover{background:var(--gray-100, #eeeff1);border-radius:4px}.univer-data-tab-panel-add-series-btn{color:rgb(var(--primary-color));display:flex;align-items:center}.univer-data-tab-panel-add-series-btn-icon{font-size:12px}.univer-data-tab-panel-add-series-btn-text{margin-left:1.5px;font-size:12px;font-style:normal;font-weight:500;line-height:150%}.univer-data-tab-panel-colorItem{display:flex;align-items:center;height:16px}.univer-data-tab-panel-color-option{height:28px;width:80%;display:flex;flex-direction:row;align-items:center}.univer-data-tab-panel-chart-type-option{display:flex;flex-direction:row;align-items:center;gap:6px;height:26px}.univer-data-tab-panel-chart-type-option-icon{font-size:16px;display:flex;align-items:center}.univer-data-tab-panel-chart-type-option-text{color:var(--gray-900, #0e111e);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.univer-chart-edit-panel-select{width:100%;height:32px;flex-direction:column;justify-content:center;align-items:flex-start;border-radius:var(--rounded-lg, 8px);border:1px solid var(--gray-200, #e3e5ea);background:var(--gray-50, #f9fafb);cursor:default}.univer-chart-edit-panel-range-selector{border-radius:var(--rounded-lg, 8px);border:1px solid var(--gray-200, #e3e5ea);background:var(--gray-50, #f9fafb);cursor:default}.univer-chart-edit-block-title{color:var(--gray-900, var(--gray-900, #0e111e));font-weight:500;line-height:150%;font-size:14px;font-style:normal;margin-bottom:8px;margin-top:16px}.univer-chart-edit-gradient-fill{margin-top:8px;font-size:14px;font-style:normal;font-weight:400;line-height:14px;color:var(--gray-900, #0e111e)}.univer-margin-bottom-8{margin-bottom:8px}.univer-chart-radio-group-vertical{display:flex;flex-direction:column;gap:10px}.univer-color-picker-control{padding:0;width:100%;border-radius:var(--rounded-lg, 8px);border:1px solid var(--gray-200, #e3e5ea);background:var(--gray-50, #f9fafb)}.univer-color-picker-control-overlay{padding:var(--padding-base);font-size:var(--font-size-xs);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-base);display:flex;flex-direction:column;gap:12px;align-items:center}.univer-color-picker-control-overlay-default{width:100%}.univer-color-picker-control-view-box{display:flex;align-items:center;height:32px;line-height:32px;flex:1;box-sizing:border-box;padding:0 var(--padding-base);justify-content:space-between}.univer-color-picker-control-view{width:20px;height:20px;border:1px solid rgb(var(--border-color))}.univer-color-picker-control-text{color:var(--gray-900, #0e111e);text-overflow:ellipsis;white-space:nowrap;font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:125%}.univer-color-picker-control-arrow{margin-left:var(--margin-xs);transition:transform .3s}.univer-color-picker-control-rotate{transform:rotate(180deg)}.univer-font-format-bar{display:flex;padding:2px 3px;border:1px solid #d0d3d6;border-radius:6px;align-items:center;gap:6px;width:-moz-fit-content;width:fit-content}.univer-font-format-bar-item{line-height:1;cursor:pointer;border-radius:4px;padding:4px 6px}.univer-font-format-bar-item-active{background-color:#e0e9ff;color:#1456f0}.univer-font-format-bar-menu-item{display:flex;align-items:center}.univer-font-format-bar-item:hover{background-color:#eff0f1}.univer-font-format-bar-color-bar{border-radius:6px;height:4px;width:1em}.univer-font-format-bar-color-picker-overlay{padding:var(--padding-base);font-size:var(--font-size-xs);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-base)}.univer-font-format-bar-menu-icon{margin-left:4px;transition:transform .3s}.univer-font-format-bar-rotate-icon{transform:rotate(180deg)}.univer-font-format-bar-font-color-box{display:flex;flex-direction:column}.univer-style-tab-panel>.univer-style-tab-panel-collapse{background-color:#fff;border:none}.univer-style-tab-panel>.univer-style-tab-panel-collapse .rc-collapse-content{padding:0}.univer-style-tab-panel>.univer-style-tab-panel-collapse .rc-collapse-content-box{margin:var(--margin-xs) 0}.univer-style-tab-panel-split{margin-bottom:var(--margin-xs)}.univer-style-tab-panel-select{width:100%;height:32px}.univer-style-tab-panel-font-style-bar{display:flex;align-items:center}.univer-style-tab-panel-font-size-bar{display:inline-flex;border:1px solid rgb(var(--border-color));border-radius:4px}.univer-style-tab-panel-font-size-btn{padding:var(--padding-xs) var(--padding-sm)}.univer-style-tab-panel-row-half{display:flex;justify-content:space-between;flex-direction:column;align-items:flex-start;flex:1 0 0}.univer-style-tab-panel-block{padding:0 16px 10px;color:var(--gray-600, #414657);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.univer-style-tab-panel-row-label{color:var(--gray-600, #414657);font-size:14px;font-weight:400;line-height:150%;font-style:normal;margin-bottom:8px}.univer-style-tab-panel-row-half-label{margin-bottom:var(--margin-xs);font-size:14px;font-style:normal;font-weight:400;line-height:150%;color:var(--gray-600, #414657)}.univer-style-tab-panel-row{display:flex;padding:0;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:var(--margin-xs)}.univer-style-tab-panel-label{font-size:14px;font-style:normal;font-weight:500;line-height:150%;color:var(--gray-600, #414657)}.univer-style-tab-panel-mini-group{display:flex;padding:var(--3, 12px);flex-direction:column;align-items:flex-start;gap:var(--4, 16px);border-radius:var(--rounded-xl, 12px);border:1px solid var(--gray-200, #e3e5ea);background:var(--white, #fff);box-shadow:0 2px 4px #0e111e0f;position:relative}.univer-style-tab-panel-mini-group-delete{position:absolute;right:8px;top:8px}.univer-series-style-edit-add-data-point-btn{justify-self:flex-end;display:inline-flex;gap:4px;font-size:12px;font-style:normal;font-weight:500;line-height:150%;color:rgb(var(--primary-color));align-items:center}.univer-series-style-edit-row{padding:10px 16px}.univer-series-style-edit-label{margin-bottom:var(--margin-xs)}.univer-series-style-edit-block-title{color:var(--gray-900, #0e111e);font-size:14px;font-style:normal;font-weight:500;line-height:150%;margin-bottom:16px}.univer-data-points-edit-container{display:flex;flex-direction:column;gap:16px}.rc-collapse-motion{transition:height .3s,opacity .3s}.rc-collapse-content-hidden{display:none}.rc-collapse{background-color:#f7f7f7;border-radius:3px;border:1px solid #d9d9d9}.rc-collapse>.rc-collapse-item{border-top:1px solid #d9d9d9}.rc-collapse>.rc-collapse-item:first-child{border-top:none}.rc-collapse>.rc-collapse-item>.rc-collapse-header{display:flex;align-items:center;line-height:22px;padding:10px 16px;color:#666;cursor:pointer}.rc-collapse>.rc-collapse-item>.rc-collapse-header .arrow{display:inline-block;content:" ";width:0;height:0;font-size:0;line-height:0;border-top:3px solid transparent;border-bottom:3px solid transparent;border-left:4px solid #666;vertical-align:middle;margin-right:8px}.rc-collapse>.rc-collapse-item>.rc-collapse-header .rc-collapse-extra{margin:0 16px 0 auto}.rc-collapse>.rc-collapse-item .rc-collapse-collapsible-header{cursor:default}.rc-collapse>.rc-collapse-item .rc-collapse-collapsible-header .rc-collapse-header-text{cursor:pointer}.rc-collapse>.rc-collapse-item .rc-collapse-collapsible-header .rc-collapse-expand-icon{cursor:pointer}.rc-collapse>.rc-collapse-item .rc-collapse-collapsible-icon{cursor:default}.rc-collapse>.rc-collapse-item .rc-collapse-collapsible-icon .rc-collapse-expand-icon{cursor:pointer}.rc-collapse>.rc-collapse-item-disabled>.rc-collapse-header{cursor:not-allowed;color:#999;background-color:#f3f3f3}.rc-collapse-content{overflow:hidden;color:#666;padding:0 16px;background-color:#fff}.rc-collapse-content>.rc-collapse-content-box{margin-top:16px;margin-bottom:16px}.rc-collapse-item:last-child>.rc-collapse-content{border-radius:0 0 3px 3px}.rc-collapse>.rc-collapse-item-active>.rc-collapse-header .arrow{position:relative;top:2px;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #666;margin-right:6px}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AreaLineStyle, ChartBorderDashType, ChartTypeBits, IAllSeriesStyle, IAxisOptions, InvalidValueType, ISeriesStyle, LegendPositionEnum, SelectModeEnum, TitlePositionEnum } from '@univerjs-pro/sheets-chart';
|
|
1
|
+
import { AreaLineStyle, AxisAlignEnum, ChartBorderDashType, ChartTypeBits, IAllSeriesStyle, IAxisOptions, InvalidValueType, ISeriesStyle, LabelAlignEnum, LegendPositionEnum, RadarShape, SelectModeEnum, TitlePositionEnum } from '@univerjs-pro/sheets-chart';
|
|
2
2
|
import { Injector, IRange, Workbook, FBase } from '@univerjs/core';
|
|
3
3
|
export interface IChartBuilderInfo {
|
|
4
4
|
unitId: string;
|
|
@@ -35,13 +35,13 @@ export interface IChartTextStyle {
|
|
|
35
35
|
*/
|
|
36
36
|
fontStyle?: string;
|
|
37
37
|
/**
|
|
38
|
-
* @property {
|
|
38
|
+
* @property {boolean} [bold] The font is bold.
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
bold?: boolean;
|
|
41
41
|
/**
|
|
42
|
-
* @property {
|
|
42
|
+
* @property {AxisAlignEnum} [axisAlignment] The alignment of the chart axis.The possible values are 'start', 'center' & 'end'.
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
axisAlignment?: AxisAlignEnum;
|
|
45
45
|
}
|
|
46
46
|
export interface IChartBuildOptions {
|
|
47
47
|
/**
|
|
@@ -52,6 +52,10 @@ export interface IChartBuildOptions {
|
|
|
52
52
|
* @property {string} [titlePosition] The position of the chart title.
|
|
53
53
|
*/
|
|
54
54
|
position?: TitlePositionEnum;
|
|
55
|
+
/**
|
|
56
|
+
* @property {string} [titleAlignment] The alignment of the chart title.The possible values are 'left', 'center' & 'right'.
|
|
57
|
+
*/
|
|
58
|
+
titleAlignment: LabelAlignEnum;
|
|
55
59
|
} & IChartTextStyle;
|
|
56
60
|
/**
|
|
57
61
|
* @property {string} [legend] The legend of the chart.
|
|
@@ -123,7 +127,7 @@ export interface IChartBuildOptions {
|
|
|
123
127
|
*/
|
|
124
128
|
indicatorLabelTextColor?: string;
|
|
125
129
|
};
|
|
126
|
-
allSeriesStyle?: IAllSeriesStyle
|
|
130
|
+
allSeriesStyle?: Partial<IAllSeriesStyle>;
|
|
127
131
|
seriesStyleMap?: {
|
|
128
132
|
[id: string]: ISeriesStyle;
|
|
129
133
|
};
|
|
@@ -138,6 +142,10 @@ export interface IChartBuildOptions {
|
|
|
138
142
|
gradientFill?: boolean;
|
|
139
143
|
theme?: string;
|
|
140
144
|
invalidValueType?: InvalidValueType;
|
|
145
|
+
radar?: {
|
|
146
|
+
shape?: RadarShape;
|
|
147
|
+
fill?: boolean;
|
|
148
|
+
};
|
|
141
149
|
}
|
|
142
150
|
export declare class FChartBuilderBase extends FBase {
|
|
143
151
|
protected readonly _workbook: Workbook;
|
|
@@ -160,19 +168,43 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
160
168
|
* @description The chart type of the chart this builder modifies. The chart type (ChartTypeBits) can be found from package @univerjs-pro/sheets-chart.
|
|
161
169
|
* Please pay attention to the type of the chart you are creating, a Pie chart have a property of Doughnut is donut chart, and a Pie chart have a property of Rose is rose pie chart.But the chart builder will not change the chart type to the corresponding chart type.
|
|
162
170
|
* @returns {ChartTypeBits} ChartType - The chart type of the chart this builder modifies.
|
|
171
|
+
* @example
|
|
172
|
+
* ```ts
|
|
173
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
174
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
175
|
+
* const charts = fSheet.getCharts();
|
|
176
|
+
* if(charts.length > 0) {
|
|
177
|
+
* const chart = charts[0];
|
|
178
|
+
* const chartBuilder = chart.getChartBuilder();
|
|
179
|
+
* const chartType = chartBuilder.getChartType();
|
|
180
|
+
* console.log(chartType); // The chart type of first chart.
|
|
181
|
+
* }
|
|
163
182
|
*/
|
|
164
183
|
getChartType(): ChartTypeBits;
|
|
165
184
|
/**
|
|
166
185
|
* Adds a range to the chart this builder modifies
|
|
167
|
-
* @param {IRange | string} range The range string or object to add for chart source data.
|
|
186
|
+
* @param {IRange | string} range The range string or object to add for chart source data.The should be not a single cell.
|
|
168
187
|
* @returns {FChartBuilderBase} -this builder, for chaining
|
|
188
|
+
* @example
|
|
189
|
+
* ```ts
|
|
190
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
191
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
192
|
+
* const chartBuilder = fSheet.newChart();
|
|
193
|
+
* const chartInfo = chartBuilder
|
|
194
|
+
* // set the source data range of the chart
|
|
195
|
+
* .addRange('A1:D6')
|
|
196
|
+
* .setChartType(ChartTypeBits.Column)
|
|
197
|
+
* .setPosition(1, 1, 0, 0)
|
|
198
|
+
* .build();
|
|
199
|
+
* fSheet.insertChart(chartInfo);
|
|
200
|
+
* ```
|
|
169
201
|
*/
|
|
170
|
-
addRange(range: IRange | string):
|
|
202
|
+
addRange(range: IRange | string): this;
|
|
171
203
|
/**
|
|
172
204
|
* Clears the range from the chart this builder modifies
|
|
173
205
|
* @returns {FChartBuilderBase} -this builder, for chaining
|
|
174
206
|
*/
|
|
175
|
-
clearRange():
|
|
207
|
+
clearRange(): this;
|
|
176
208
|
/**
|
|
177
209
|
* Sets the position, changing where the chart appears on the sheet. anchorRowPos and anchorColPos are 0-indexed.This api can only work in the active sheet.
|
|
178
210
|
* @description The chart's start anchor position is the top left-hand corner of the chart. The rowOffset and columnOffset are the pixel offsets from the anchor position.
|
|
@@ -194,7 +226,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
194
226
|
* fSheet.insertChart(chartInfo);
|
|
195
227
|
* ```
|
|
196
228
|
*/
|
|
197
|
-
setPosition(anchorRowPos: number, anchorColPos: number, rowOffset: number, columnOffset: number):
|
|
229
|
+
setPosition(anchorRowPos: number, anchorColPos: number, rowOffset: number, columnOffset: number): this;
|
|
198
230
|
/**
|
|
199
231
|
* Sets the position, changing where the chart appears on the sheet by pixel.
|
|
200
232
|
* @description The chart's start anchor position is the top left-hand corner of the chart. This api is opposite to setPosition.
|
|
@@ -214,7 +246,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
214
246
|
* fSheet.insertChart(chartInfo);
|
|
215
247
|
* ```
|
|
216
248
|
*/
|
|
217
|
-
setAbsolutePosition(x: number, y: number):
|
|
249
|
+
setAbsolutePosition(x: number, y: number): this;
|
|
218
250
|
/**
|
|
219
251
|
* The type of chart to create.
|
|
220
252
|
* @param {ChartTypeBits} chartType The type of chart to create.Which can be found from package @univerjs-pro/sheets-chart.
|
|
@@ -236,23 +268,23 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
236
268
|
* fSheet.updateChart(updateChartInfo);
|
|
237
269
|
* ```
|
|
238
270
|
*/
|
|
239
|
-
setChartType(chartType: ChartTypeBits):
|
|
271
|
+
setChartType(chartType: ChartTypeBits): this;
|
|
240
272
|
/**
|
|
241
273
|
* Sets the width of the chart in pixels.
|
|
242
274
|
* @param {number} width The width of the chart in pixels.
|
|
243
275
|
* @returns -this builder, for chaining.
|
|
244
276
|
*/
|
|
245
|
-
setWidth(width: number):
|
|
277
|
+
setWidth(width: number): this;
|
|
246
278
|
/**
|
|
247
279
|
* Sets the height of the chart in pixels.
|
|
248
280
|
* @param {number} height The height of the chart in pixels.
|
|
249
281
|
* @returns -this builder, for chaining.
|
|
250
282
|
*/
|
|
251
|
-
setHeight(height: number):
|
|
283
|
+
setHeight(height: number): this;
|
|
252
284
|
/**
|
|
253
285
|
* The options for the chart. This function will overwrite existing options and merge new options property.
|
|
254
286
|
* @param {string} optionPath The path of the option to set. A '' path means the root of the options object.
|
|
255
|
-
* @param
|
|
287
|
+
* @param optionVal The value to set. Undefined value will be ignore , and null means delete the property.If a path is '', the value must be the whole options object.
|
|
256
288
|
* @returns The builder, for chaining.
|
|
257
289
|
* @example
|
|
258
290
|
* ```ts
|
|
@@ -262,7 +294,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
262
294
|
*
|
|
263
295
|
* const chartBuilderInfo1 = chartBuilder
|
|
264
296
|
* .addRange('A1:D6')
|
|
265
|
-
* .setOptions('title.content', '
|
|
297
|
+
* .setOptions('title.content', 'Chart Title')
|
|
266
298
|
* .setOptions('legend.position', 'right')
|
|
267
299
|
* .setDoughnutHole(0.5)
|
|
268
300
|
* .setHasPaddingAngle(true)
|
|
@@ -274,7 +306,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
274
306
|
* .addRange('A1:D6')
|
|
275
307
|
* .setOptions('', {
|
|
276
308
|
* "title": {
|
|
277
|
-
* "content": "
|
|
309
|
+
* "content": "Chart Title"
|
|
278
310
|
* },
|
|
279
311
|
* "legend": {
|
|
280
312
|
* "position": "right"
|
|
@@ -289,14 +321,28 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
289
321
|
* fWorkSheet.insertChart(chartBuilderInfo1);
|
|
290
322
|
* // or they are same effect
|
|
291
323
|
* // fWorkSheet.insertChart(chartBuilderInfo2);
|
|
324
|
+
* ```
|
|
292
325
|
*/
|
|
293
|
-
setOptions
|
|
326
|
+
setOptions(optionPath: string, optionVal: unknown): this;
|
|
294
327
|
/**
|
|
295
328
|
* Sets whether to transpose the rows and columns of the chart.
|
|
296
329
|
* @param {boolean} transposeRowsAndColumns Whether to transpose the rows and columns of the chart.The default value is false.
|
|
297
330
|
* @returns -this builder, for chaining.
|
|
331
|
+
* @example
|
|
332
|
+
* ```ts
|
|
333
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
334
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
335
|
+
* const chartBuilder = fSheet.newChart();
|
|
336
|
+
* const chartInfo = chartBuilder.addRange('A1:D6')
|
|
337
|
+
* .setChartType(ChartTypeBits.Column)
|
|
338
|
+
* .setPosition(1, 1, 0, 0)
|
|
339
|
+
* // the chart will transpose the rows and columns
|
|
340
|
+
* .setTransposeRowsAndColumns(true)
|
|
341
|
+
* .build();
|
|
342
|
+
* fSheet.insertChart(chartInfo);
|
|
343
|
+
* ```
|
|
298
344
|
*/
|
|
299
|
-
setTransposeRowsAndColumns(transposeRowsAndColumns: boolean):
|
|
345
|
+
setTransposeRowsAndColumns(transposeRowsAndColumns: boolean): this;
|
|
300
346
|
/**
|
|
301
347
|
* Sets the theme of the chart. If the theme name not registered, a default theme will be used.
|
|
302
348
|
* @param {string} theme The theme name of the chart.
|
|
@@ -314,7 +360,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
314
360
|
* fSheet.insertChart(chartInfo);
|
|
315
361
|
* ```
|
|
316
362
|
*/
|
|
317
|
-
setTheme(theme: string):
|
|
363
|
+
setTheme(theme: string): this;
|
|
318
364
|
/**
|
|
319
365
|
* Sets the title of the chart x-axis.
|
|
320
366
|
* @param {string} title The title of the chart x-axis.
|
|
@@ -332,7 +378,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
332
378
|
* fSheet.insertChart(chartInfo);
|
|
333
379
|
* ```
|
|
334
380
|
*/
|
|
335
|
-
setXAxisTitle(title: string):
|
|
381
|
+
setXAxisTitle(title: string): this;
|
|
336
382
|
/**
|
|
337
383
|
* Sets the title of the chart y-axis.
|
|
338
384
|
* @param {string} title The title of the chart y-axis.
|
|
@@ -350,7 +396,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
350
396
|
* fSheet.insertChart(chartInfo);
|
|
351
397
|
* ```
|
|
352
398
|
*/
|
|
353
|
-
setYAxisTitle(title: string):
|
|
399
|
+
setYAxisTitle(title: string): this;
|
|
354
400
|
/**
|
|
355
401
|
* Sets the title of the chart right y-axis.
|
|
356
402
|
* @param {string} title The title of the chart right y-axis.
|
|
@@ -368,7 +414,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
368
414
|
* fSheet.insertChart(chartInfo);
|
|
369
415
|
* ```
|
|
370
416
|
*/
|
|
371
|
-
setRightYAxisTitle(title: string):
|
|
417
|
+
setRightYAxisTitle(title: string): this;
|
|
372
418
|
/**
|
|
373
419
|
* Sets the text style for the chart x-axis.
|
|
374
420
|
* @param {IChartTextStyle} textStyle The text style for the chart x-axis.
|
|
@@ -386,7 +432,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
386
432
|
* fSheet.insertChart(chartInfo);
|
|
387
433
|
* ```
|
|
388
434
|
*/
|
|
389
|
-
setXAxisTextStyle(textStyle: IChartTextStyle):
|
|
435
|
+
setXAxisTextStyle(textStyle: IChartTextStyle): this;
|
|
390
436
|
/**
|
|
391
437
|
* Sets the text style for the chart y-axis.
|
|
392
438
|
* @param {IChartTextStyle} textStyle The text style for the chart y-axis.
|
|
@@ -404,7 +450,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
404
450
|
* fSheet.insertChart(chartInfo);
|
|
405
451
|
* ```
|
|
406
452
|
*/
|
|
407
|
-
setYAxisTextStyle(textStyle: IChartTextStyle):
|
|
453
|
+
setYAxisTextStyle(textStyle: IChartTextStyle): this;
|
|
408
454
|
/**
|
|
409
455
|
* Sets the text style for the chart right y-axis. Only works in charts have right y-axis.
|
|
410
456
|
* @param {IChartTextStyle} textStyle The text style for the chart right y-axis.
|
|
@@ -422,7 +468,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
422
468
|
* fSheet.insertChart(chartInfo);
|
|
423
469
|
* ```
|
|
424
470
|
*/
|
|
425
|
-
setRightYAxisTextStyle(textStyle: IChartTextStyle):
|
|
471
|
+
setRightYAxisTextStyle(textStyle: IChartTextStyle): this;
|
|
426
472
|
/**
|
|
427
473
|
* Sets how to handle invalid data in the chart.The possible values are 'zero', 'break' & 'link'.
|
|
428
474
|
* @description The default value is 'zero'. It means that invalid data will be treated as zero. 'break' means that the chart will have a gap where the invalid data is. 'link' means that the chart will connect the data points on either side of the invalid data.
|
|
@@ -441,7 +487,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
441
487
|
* fSheet.insertChart(chartInfo);
|
|
442
488
|
* ```
|
|
443
489
|
*/
|
|
444
|
-
setInvalidValueStrategy(invalidValueType: InvalidValueType):
|
|
490
|
+
setInvalidValueStrategy(invalidValueType: InvalidValueType): this;
|
|
445
491
|
/**
|
|
446
492
|
* Sets the axis pointer style
|
|
447
493
|
* @param {IChartBuildOptions['axisPointer']} style The style for the axis pointer.
|
|
@@ -476,21 +522,22 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
476
522
|
* .build();
|
|
477
523
|
* ```
|
|
478
524
|
*/
|
|
479
|
-
setAxisPointerStyle(style: IChartBuildOptions['axisPointer']):
|
|
525
|
+
setAxisPointerStyle(style: IChartBuildOptions['axisPointer']): this;
|
|
480
526
|
/**
|
|
481
527
|
* Sets styles for all series.
|
|
482
528
|
* @typedef allSeriesStyle
|
|
483
|
-
* @property {ChartTypeBits} chartType The chart type of the series.It only works in combination chart, and the value must be one of ChartTypeBits.Line | ChartTypeBits.Column | ChartTypeBits.Area;
|
|
484
|
-
* @property {boolean} rightYAxis Use the right y-axis for the series.
|
|
485
|
-
* @property {string} color The color of the series.
|
|
486
|
-
* @property {number} fillOpacity The opacity of the series fill.
|
|
487
|
-
* @property {
|
|
488
|
-
* @property {
|
|
489
|
-
* @property {number} border.
|
|
490
|
-
* @property {
|
|
491
|
-
* @property {
|
|
492
|
-
* @property {
|
|
493
|
-
* @property {
|
|
529
|
+
* @property {ChartTypeBits} [chartType] The chart type of the series.It only works in combination chart, and the value must be one of ChartTypeBits.Line | ChartTypeBits.Column | ChartTypeBits.Area;
|
|
530
|
+
* @property {boolean} [rightYAxis] Use the right y-axis for the series.
|
|
531
|
+
* @property {string} [color] The color of the series.
|
|
532
|
+
* @property {number} [fillOpacity] The opacity of the series fill.
|
|
533
|
+
* @property {object} [border] The border style of the series.
|
|
534
|
+
* @property {string} [border.color] The color of the series border.
|
|
535
|
+
* @property {number} [border.opacity] The opacity of the series border.
|
|
536
|
+
* @property {number} [border.width] The width of the series border.
|
|
537
|
+
* @property {ChartBorderDashType} [border.dashType] The dash type of the series border.
|
|
538
|
+
* @property {ISeriesLabelStyle} [label] The label style of the series.
|
|
539
|
+
* @property {IPointStyle} [point] The point style of the series.
|
|
540
|
+
* @property {IDataPointStyle} [dataPoints] The data point style of the series.Radar chart does not support this property.
|
|
494
541
|
* @param {allSeriesStyle} allSeriesStyle The style for all series.
|
|
495
542
|
* @returns {FChartBuilderBase} -this builder, for chaining.
|
|
496
543
|
* @example
|
|
@@ -516,7 +563,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
516
563
|
* fSheet.insertChart(chartInfo);
|
|
517
564
|
* ```
|
|
518
565
|
*/
|
|
519
|
-
setAllSeriesStyle(allSeriesStyle: IAllSeriesStyle):
|
|
566
|
+
setAllSeriesStyle(allSeriesStyle: Partial<IAllSeriesStyle>): this;
|
|
520
567
|
/**
|
|
521
568
|
* Sets the series style by series index.
|
|
522
569
|
* @description Like setALLSeriesStyle, this difference is the style only set for the provide sty
|
|
@@ -545,7 +592,7 @@ export declare class FChartBuilderBase extends FBase {
|
|
|
545
592
|
* , 1000);
|
|
546
593
|
* ```
|
|
547
594
|
*/
|
|
548
|
-
setSeriesStyle(index: number | string, seriesStyle: ISeriesStyle):
|
|
595
|
+
setSeriesStyle(index: number | string, seriesStyle: ISeriesStyle): this;
|
|
549
596
|
/**
|
|
550
597
|
* Builds the chart to reflect all changes made to it.
|
|
551
598
|
* @description This method does not automatically draw the chart on top of the spreadsheet. A new chart must be inserted via sheet.insertChart(chart), and an existing chart should be updated via sheet.updateChart(chart).
|
|
@@ -12,25 +12,25 @@ export declare class LineChartBuilder extends FChartBuilderBase {
|
|
|
12
12
|
* @param lineStyle
|
|
13
13
|
* @returns - The builder, for chaining.
|
|
14
14
|
*/
|
|
15
|
-
setLineStyle(lineStyle: AreaLineStyle):
|
|
15
|
+
setLineStyle(lineStyle: AreaLineStyle): this;
|
|
16
16
|
/**
|
|
17
17
|
* The shape of the data point in the line chart.
|
|
18
18
|
* @param dataPointShape
|
|
19
19
|
* @returns - The builder, for chaining.
|
|
20
20
|
*/
|
|
21
|
-
setDataPointShape(dataPointShape: LinePointShape):
|
|
21
|
+
setDataPointShape(dataPointShape: LinePointShape): this;
|
|
22
22
|
/**
|
|
23
23
|
* The color of the data point in the line chart.
|
|
24
24
|
* @param dataPointColor
|
|
25
25
|
* @returns - The builder, for chaining.
|
|
26
26
|
*/
|
|
27
|
-
setDataPointColor(dataPointColor: string):
|
|
27
|
+
setDataPointColor(dataPointColor: string): this;
|
|
28
28
|
/**
|
|
29
29
|
* The size of the data point in the line chart.
|
|
30
30
|
* @param dataPointSize
|
|
31
31
|
* @returns - The builder, for chaining.
|
|
32
32
|
*/
|
|
33
|
-
setDataPointSize(dataPointSize: number):
|
|
33
|
+
setDataPointSize(dataPointSize: number): this;
|
|
34
34
|
/**
|
|
35
35
|
* Builds the chart to reflect all changes made to it.
|
|
36
36
|
* @description This method does not automatically draw the chart on top of the spreadsheet. A new chart must be inserted via sheet.insertChart(chart), and an existing chart should be updated via sheet.updateChart(chart).
|
|
@@ -13,37 +13,37 @@ export declare class PieChartBuilder extends FChartBuilderBase {
|
|
|
13
13
|
* @param {number} doughnutHole The size of the hole in the center of the pie chart as a percentage of the chart size.
|
|
14
14
|
* @returns this builder, for chaining.
|
|
15
15
|
*/
|
|
16
|
-
setDoughnutHole(doughnutHole: number):
|
|
16
|
+
setDoughnutHole(doughnutHole: number): this;
|
|
17
17
|
/**
|
|
18
18
|
* Sets the color of the border around the pie chart.
|
|
19
19
|
* @param {string} borderColor The color of the border around the pie chart.
|
|
20
20
|
* @returns this builder, for chaining.
|
|
21
21
|
*/
|
|
22
|
-
setBorderColor(borderColor: string):
|
|
22
|
+
setBorderColor(borderColor: string): this;
|
|
23
23
|
/**
|
|
24
24
|
* Sets whether the pie chart has a padding angle.
|
|
25
25
|
* @param {boolean} hasPaddingAngle True if the pie chart has a padding angle; false otherwise.
|
|
26
26
|
* @returns this builder, for chaining.
|
|
27
27
|
*/
|
|
28
|
-
setHasPaddingAngle(hasPaddingAngle: boolean):
|
|
28
|
+
setHasPaddingAngle(hasPaddingAngle: boolean): this;
|
|
29
29
|
/**
|
|
30
30
|
* Sets whether the pie chart is a half pie chart.
|
|
31
31
|
* @param {boolean} isHalfPie True if the pie chart is a half pie chart; false otherwise.
|
|
32
32
|
* @returns this builder, for chaining.
|
|
33
33
|
*/
|
|
34
|
-
setIsHalfPie(isHalfPie: boolean):
|
|
34
|
+
setIsHalfPie(isHalfPie: boolean): this;
|
|
35
35
|
/**
|
|
36
36
|
* Sets whether the pie chart is a rose pie chart.
|
|
37
37
|
* @param {boolean} rosePie True if the pie chart is a rose pie chart; false otherwise.
|
|
38
38
|
* @returns this builder, for chaining.
|
|
39
39
|
*/
|
|
40
|
-
setRosePie(rosePie: boolean):
|
|
40
|
+
setRosePie(rosePie: boolean): this;
|
|
41
41
|
/**
|
|
42
42
|
* Sets whether the pie chart shows label lines.
|
|
43
43
|
* @param {boolean} showLabelLine True if the pie chart shows label lines; false otherwise.
|
|
44
44
|
* @returns this builder, for chaining.
|
|
45
45
|
*/
|
|
46
|
-
setShowLabelLine(showLabelLine: boolean):
|
|
46
|
+
setShowLabelLine(showLabelLine: boolean): this;
|
|
47
47
|
/**
|
|
48
48
|
* Builds the chart to reflect all changes made to it.
|
|
49
49
|
* @description This method does not automatically draw the chart on top of the spreadsheet. A new chart must be inserted via sheet.insertChart(chart), and an existing chart should be updated via sheet.updateChart(chart).
|
|
@@ -9,14 +9,36 @@ export declare class RadarChartBuilder extends FChartBuilderBase {
|
|
|
9
9
|
* Sets the shape of the radar chart.
|
|
10
10
|
* @param {RadarShape} shape The shape of the radar chart.
|
|
11
11
|
* @returns this builder, for chaining.
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // import { ChartTypeBits, RadarShape } from '@univerjs-pro/sheets-chart';
|
|
15
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
16
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
17
|
+
* const chartBuilder = fSheet.newChart().asRadarChart();
|
|
18
|
+
* const chartInfo = chartBuilder.addRange('A1:B8')
|
|
19
|
+
* .setShape(RadarShape.Polygon)
|
|
20
|
+
* .build();
|
|
21
|
+
* fSheet.insertChart(chartInfo);
|
|
22
|
+
* ```
|
|
12
23
|
*/
|
|
13
|
-
setShape(shape: RadarShape):
|
|
24
|
+
setShape(shape: RadarShape): this;
|
|
14
25
|
/**
|
|
15
26
|
* Sets whether the radar chart is filled.
|
|
16
27
|
* @param {boolean} fill True if the radar chart is filled; false otherwise.
|
|
17
28
|
* @returns this builder, for chaining.
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* // import { ChartTypeBits } from '@univerjs-pro/sheets-chart';
|
|
32
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
33
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
34
|
+
* const chartBuilder = fSheet.newChart().asRadarChart();
|
|
35
|
+
* const chartInfo = chartBuilder.addRange('A1:B8')
|
|
36
|
+
* .setFill(true)
|
|
37
|
+
* .build();
|
|
38
|
+
* fSheet.insertChart(chartInfo);
|
|
39
|
+
* ```
|
|
18
40
|
*/
|
|
19
|
-
setFill(fill: boolean):
|
|
41
|
+
setFill(fill: boolean): this;
|
|
20
42
|
/**
|
|
21
43
|
* Builds the chart to reflect all changes made to it.
|
|
22
44
|
* @description This method does not automatically draw the chart on top of the spreadsheet. A new chart must be inserted via sheet.insertChart(chart), and an existing chart should be updated via sheet.updateChart(chart).
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1f03(){const _0x569dc0=['titles.xAxisTitle.fontSize','titles.xAxisTitle.alignment','setRightYAxisTextStyle','xAxisTitle','fontSize','convertPositionCellToSheetOverGrid','setLineStyle','RemoveSheetDrawingCommand','fontWeight','pie.rosePie','titles.title.titlePosition','setYAxisTextStyle','bold','getCharts','tooltip.indicatorLineColor','6OVAwUo','pie.borderColor','6250937OZqYBC','indicatorLineColor','setDataPointShape','ChartThemeService','getChartModel','symbol','setSeriesStyle','with','2074960fTIsNw','getUnitId','updateRange','chartType','setChartType','dataPointShape','titles.title.alignment','sourceSheetName','926141ExoLVr','config','color','titles.yAxisTitle.alignment','This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.','setPosition','getRange','setBorderColor','UniverProSheetsChartUiFacade','ChartUpdateSourceCommand','titles.rightYAxisTitle.fontWeight','setXAxisTextStyle','IUniverInstanceService','subUnitId','2275230rznZSz','xAxis','setDataPointSize','getWorkbook','UNIVER_SHEET','pie','titles.xAxisTitle.fontColor','borderColor','alignment','UniverEngineRender','position','radar.fill','Radar','setHeight','range','ChartTypeBits','dataPointSize','generateRandomId','sheetName','area.lineStyle','RadarChartBuilder','removeChart','seriesStyleMap','8705484xjukzr','registerTheme','titles.title.font','theme','UniverSheetsDrawingUi','setProperty','titles.rightYAxisTitle.content','fontStyle','UniverInstanceType','titles.title.fontSize','asRadarChart','getChartType','area','setTheme','chartId','UniverEngineFormula','title','indicatorLineType','shape','italic','titles.xAxisTitle.fontStyle','setAllSeriesStyle','setTransposeRowsAndColumns','titles.title.content','rightYAxisTitle','Line','@univerjs/sheets-drawing-ui','tooltip.indicatorLineType','options','legend.label.color','titles.yAxisTitle.content','function','titles.title.fontWeight','rightYAxis','showLabelLine','keys','getCategoryData','context','getSeriesData','legend','dataPointColor','string','732120WcHSnY','Module','@univerjs/sheets-ui','font','setDataPointColor','hasPaddingAngle','clearRange','defineProperty','radar.shape','setDoughnutHole','titles.xAxisTitle.content','height','deserializeRangeWithSheet','length','extend','get','8jqvnMb','allSeriesStyle.point.color','getSheetId','titles.yAxisTitle.fontSize','content','getChartId','yAxisTitle','Range\x20is\x20required\x20to\x20insert\x20a\x20chart','asPieChart','dataSource','width','@univerjs/engine-render','setAxisPointerStyle','isHalfPie','Sheet\x20','getRenderById','indicatorLabelTextColor','yRightAxis','legend.label.bold','pie.hasPaddingAngle','@univerjs/engine-formula','titles.title.fontStyle','4939760bsBiqV','fill','fontColor','DRAWING_CHART','addRange','legend.position','newChart','titles.rightYAxisTitle.fontColor','CommandService','getCurrentUnitForType','@univerjs/sheets/facade','axisPointer','pie.doughnutHole','point','invalidValueType','isRowDirection','UniverSheetsFacade','tooltip.indicatorLabelColor','UniverSheetsUi','@univerjs/core','setShowLabelLine','tooltip.indicatorLabelTextColor','ISheetSelectionRenderService','legend.label.italic','ChartUpdateConfigCommand','lineStyle','PieChartBuilder','_commandService','build','titles.yAxisTitle.fontColor','titles.rightYAxisTitle.fontStyle','backgroundColor','object','SheetsChartService','registerChartTheme','FBase','setOptions','titles.xAxisTitle.font','_workbook','allSeriesStyle','_injector','setShape','setAbsolutePosition','indicatorLabelColor','executeCommand','unitId','toStringTag','@univerjs-pro/sheets-chart','transposeRowsAndColumns','\x20not\x20found','yAxis','legend.label.fontSize','pie.showLabelLine','rosePie','DrawingTypeEnum','FChart','doughnutHole'];_0x1f03=function(){return _0x569dc0;};return _0x1f03();}function _0x1d32(_0x143941,_0x102d7b){const _0x1f03b5=_0x1f03();return _0x1d32=function(_0x1d3208,_0x34de4e){_0x1d3208=_0x1d3208-0x1cd;let _0x5769aa=_0x1f03b5[_0x1d3208];return _0x5769aa;},_0x1d32(_0x143941,_0x102d7b);}(function(_0x300258,_0x10a4d8){const _0x3e24dd=_0x1d32,_0x542925=_0x300258();while(!![]){try{const _0xb6c08e=-parseInt(_0x3e24dd(0x290))/0x1+parseInt(_0x3e24dd(0x210))/0x2+parseInt(_0x3e24dd(0x1cf))/0x3+-parseInt(_0x3e24dd(0x220))/0x4*(parseInt(_0x3e24dd(0x288))/0x5)+-parseInt(_0x3e24dd(0x27e))/0x6*(-parseInt(_0x3e24dd(0x280))/0x7)+-parseInt(_0x3e24dd(0x236))/0x8+parseInt(_0x3e24dd(0x1e6))/0x9;if(_0xb6c08e===_0x10a4d8)break;else _0x542925['push'](_0x542925['shift']());}catch(_0x3a32b8){_0x542925['push'](_0x542925['shift']());}}}(_0x1f03,0x95346),function(_0x566f63,_0xfc7e81){const _0x3c0aab=_0x1d32;typeof exports==_0x3c0aab(0x256)&&typeof module<'u'?_0xfc7e81(exports,require(_0x3c0aab(0x265)),require('@univerjs-pro/sheets-chart-ui'),require(_0x3c0aab(0x249)),require(_0x3c0aab(0x200)),require(_0x3c0aab(0x240)),require(_0x3c0aab(0x234)),require(_0x3c0aab(0x22b)),require(_0x3c0aab(0x212))):typeof define==_0x3c0aab(0x205)&&define['amd']?define(['exports',_0x3c0aab(0x265),'@univerjs-pro/sheets-chart-ui','@univerjs/core',_0x3c0aab(0x200),_0x3c0aab(0x240),'@univerjs/engine-formula',_0x3c0aab(0x22b),_0x3c0aab(0x212)],_0xfc7e81):(_0x566f63=typeof globalThis<'u'?globalThis:_0x566f63||self,_0xfc7e81(_0x566f63[_0x3c0aab(0x298)]={},_0x566f63['UniverProSheetsChart'],_0x566f63['UniverProSheetsChartUi'],_0x566f63['UniverCore'],_0x566f63[_0x3c0aab(0x1ea)],_0x566f63[_0x3c0aab(0x246)],_0x566f63[_0x3c0aab(0x1f5)],_0x566f63[_0x3c0aab(0x1d8)],_0x566f63[_0x3c0aab(0x248)]));}(this,function(_0x343f69,_0x28f2fb,_0x3faa1e,_0x28ac5e,_0x109214,_0x51d57a,_0x255e30,_0x5adb08,_0x307e37){'use strict';const _0x468c49=_0x1d32;var _0x2298ad=Object[_0x468c49(0x217)],_0xa758aa=(_0x7d91b3,_0x17abb8,_0x4083c0)=>_0x17abb8 in _0x7d91b3?_0x2298ad(_0x7d91b3,_0x17abb8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4083c0}):_0x7d91b3[_0x17abb8]=_0x4083c0,_0x4a73e7=(_0x1a6689,_0x18e0fc,_0x25e5e7)=>_0xa758aa(_0x1a6689,typeof _0x18e0fc!=_0x468c49(0x285)?_0x18e0fc+'':_0x18e0fc,_0x25e5e7);const _0x49b778=(_0x50ebe4,_0x3678f9,_0xe81329)=>{const _0x14222f=_0x468c49;_0xe81329!==void 0x0&&_0x28f2fb[_0x14222f(0x1eb)](_0x50ebe4,_0x3678f9,_0xe81329);},_0x4b385a=(_0xa40633,_0x57c6ec,_0x12d468,_0xd7a133={})=>{const _0x57ecf4=_0x468c49,_0x1f2f17={},_0x4eb846={};if(_0xd7a133[_0x57ecf4(0x1f6)]){const _0x18ed8f=_0xd7a133[_0x57ecf4(0x1f6)];_0x49b778(_0x1f2f17,_0x57ecf4(0x1fd),_0x18ed8f[_0x57ecf4(0x224)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x1e8),_0x18ed8f['font']),_0x49b778(_0x1f2f17,_0x57ecf4(0x1ef),_0x18ed8f[_0x57ecf4(0x273)]),_0x49b778(_0x1f2f17,'titles.title.fontColor',_0x18ed8f['fontColor']),_0x49b778(_0x1f2f17,_0x57ecf4(0x235),_0x18ed8f['fontStyle']),_0x49b778(_0x1f2f17,_0x57ecf4(0x206),_0x18ed8f[_0x57ecf4(0x277)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x28e),_0x18ed8f[_0x57ecf4(0x1d7)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x279),_0x18ed8f[_0x57ecf4(0x1d9)]);}if(_0xd7a133[_0x57ecf4(0x20d)]){const _0x266315=_0xd7a133[_0x57ecf4(0x20d)];_0x49b778(_0x1f2f17,_0x57ecf4(0x23b),_0x266315['position']),_0x49b778(_0x1f2f17,'legend.selectMode',_0x266315['selectMode']),_0x49b778(_0x1f2f17,_0x57ecf4(0x269),_0x266315[_0x57ecf4(0x273)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x203),_0x266315[_0x57ecf4(0x292)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x232),_0x266315[_0x57ecf4(0x27b)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x24d),_0x266315[_0x57ecf4(0x1f9)]);}if(_0xd7a133[_0x57ecf4(0x1d4)]){const _0x76e37b=_0xd7a133[_0x57ecf4(0x1d4)];_0x49b778(_0x1f2f17,_0x57ecf4(0x242),_0x76e37b[_0x57ecf4(0x26e)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x27f),_0x76e37b[_0x57ecf4(0x1d6)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x233),_0x76e37b[_0x57ecf4(0x215)]),_0x49b778(_0x1f2f17,'pie.isHalfPie',_0x76e37b['isHalfPie']),_0x49b778(_0x1f2f17,_0x57ecf4(0x278),_0x76e37b['rosePie']),_0x49b778(_0x1f2f17,_0x57ecf4(0x26a),_0x76e37b[_0x57ecf4(0x208)]);}if(_0xd7a133[_0x57ecf4(0x241)]){const _0x16316d=_0xd7a133[_0x57ecf4(0x241)];_0x49b778(_0x1f2f17,_0x57ecf4(0x247),_0x16316d[_0x57ecf4(0x261)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x201),_0x16316d[_0x57ecf4(0x1f7)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x27d),_0x16316d[_0x57ecf4(0x281)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x24b),_0x16316d[_0x57ecf4(0x230)]);}if(_0xd7a133[_0x57ecf4(0x25d)]&&_0x49b778(_0x1f2f17,'allSeriesStyle.point',_0xd7a133[_0x57ecf4(0x25d)][_0x57ecf4(0x243)]),_0xd7a133[_0x57ecf4(0x1f2)]&&_0x49b778(_0x1f2f17,_0x57ecf4(0x1e2),_0xd7a133[_0x57ecf4(0x1f2)][_0x57ecf4(0x24f)]),_0xd7a133[_0x57ecf4(0x1e9)]&&_0x49b778(_0x1f2f17,_0x57ecf4(0x1e9),_0xd7a133['theme']),_0xd7a133[_0x57ecf4(0x272)]){const _0x4d4404=_0xd7a133[_0x57ecf4(0x272)];_0x49b778(_0x1f2f17,_0x57ecf4(0x21a),_0x4d4404['content']),_0x49b778(_0x1f2f17,_0x57ecf4(0x25b),_0x4d4404[_0x57ecf4(0x213)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x26f),_0x4d4404[_0x57ecf4(0x273)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x1d5),_0x4d4404[_0x57ecf4(0x238)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x1fa),_0x4d4404['fontStyle']),_0x49b778(_0x1f2f17,'titles.xAxisTitle.fontWeight',_0x4d4404['fontWeight']),_0x49b778(_0x1f2f17,_0x57ecf4(0x270),_0x4d4404['alignment']);}if(_0xd7a133[_0x57ecf4(0x226)]){const _0x3f9227=_0xd7a133[_0x57ecf4(0x226)];_0x49b778(_0x1f2f17,_0x57ecf4(0x204),_0x3f9227[_0x57ecf4(0x224)]),_0x49b778(_0x1f2f17,'titles.yAxisTitle.font',_0x3f9227[_0x57ecf4(0x213)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x223),_0x3f9227[_0x57ecf4(0x273)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x253),_0x3f9227[_0x57ecf4(0x238)]),_0x49b778(_0x1f2f17,'titles.yAxisTitle.fontStyle',_0x3f9227[_0x57ecf4(0x1ed)]),_0x49b778(_0x1f2f17,'titles.yAxisTitle.fontWeight',_0x3f9227[_0x57ecf4(0x277)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x293),_0x3f9227['alignment']);}if(_0xd7a133[_0x57ecf4(0x1fe)]){const _0x44c343=_0xd7a133[_0x57ecf4(0x1fe)];_0x49b778(_0x1f2f17,_0x57ecf4(0x1ec),_0x44c343[_0x57ecf4(0x224)]),_0x49b778(_0x1f2f17,'titles.rightYAxisTitle.font',_0x44c343['font']),_0x49b778(_0x1f2f17,'titles.rightYAxisTitle.fontSize',_0x44c343[_0x57ecf4(0x273)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x23d),_0x44c343[_0x57ecf4(0x238)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x254),_0x44c343[_0x57ecf4(0x1ed)]),_0x49b778(_0x1f2f17,_0x57ecf4(0x29a),_0x44c343[_0x57ecf4(0x277)]),_0x49b778(_0x1f2f17,'titles.rightYAxisTitle.alignment',_0x44c343[_0x57ecf4(0x1d7)]);}_0xd7a133[_0x57ecf4(0x1d0)]&&_0x49b778(_0x1f2f17,_0x57ecf4(0x1d0),_0xd7a133['xAxis']),_0xd7a133[_0x57ecf4(0x268)]&&_0x49b778(_0x1f2f17,_0x57ecf4(0x268),_0xd7a133[_0x57ecf4(0x268)]),_0xd7a133['yRightAxis']&&_0x49b778(_0x1f2f17,_0x57ecf4(0x207),_0xd7a133[_0x57ecf4(0x231)]),_0xd7a133['seriesStyleMap']&&_0x49b778(_0x1f2f17,_0x57ecf4(0x1e5),_0xd7a133[_0x57ecf4(0x1e5)]);const _0x51a0d9={'unitId':_0xa40633,'chartModelId':_0x57c6ec};let _0x5d7ee5=!0x1;if(_0x12d468!==void 0x0&&(_0x51a0d9[_0x57ecf4(0x28b)]=_0x12d468,_0x5d7ee5=!0x0),Object[_0x57ecf4(0x209)](_0x1f2f17)[_0x57ecf4(0x21d)]>0x0&&(_0x51a0d9['style']=_0x1f2f17,_0x5d7ee5=!0x0),Object['keys'](_0x4eb846)[_0x57ecf4(0x21d)]>0x0&&(_0x51a0d9[_0x57ecf4(0x20b)]=_0x4eb846,_0x5d7ee5=!0x0),_0x5d7ee5)return _0x51a0d9;};class _0x4c7cb0 extends _0x28ac5e[_0x468c49(0x259)]{constructor(_0x80f9e,_0x2f48dc,_0x19a489,_0x307f73,_0x2801fd){const _0x52a6ae=_0x468c49;super(),_0x4a73e7(this,_0x52a6ae(0x25c)),_0x4a73e7(this,'_injector'),_0x4a73e7(this,_0x52a6ae(0x263)),_0x4a73e7(this,_0x52a6ae(0x1ce)),_0x4a73e7(this,_0x52a6ae(0x1f4)),_0x4a73e7(this,_0x52a6ae(0x1dd)),_0x4a73e7(this,'sourceSheetName'),_0x4a73e7(this,'x'),_0x4a73e7(this,'y'),_0x4a73e7(this,_0x52a6ae(0x22a)),_0x4a73e7(this,'height'),_0x4a73e7(this,_0x52a6ae(0x28b)),_0x4a73e7(this,_0x52a6ae(0x202)),_0x4a73e7(this,_0x52a6ae(0x266)),(this[_0x52a6ae(0x263)]=_0x80f9e,this['subUnitId']=_0x2f48dc,this['_workbook']=_0x19a489,this[_0x52a6ae(0x25e)]=_0x307f73,_0x2801fd&&(this[_0x52a6ae(0x1f4)]=_0x2801fd));}[_0x468c49(0x1f1)](){const _0x1acf42=_0x468c49;return this[_0x1acf42(0x28b)];}[_0x468c49(0x23a)](_0x509470){const _0x4491b7=_0x468c49;if(typeof _0x509470==_0x4491b7(0x20f)){const _0x4032ab=_0x255e30[_0x4491b7(0x21c)](_0x509470);_0x4032ab[_0x4491b7(0x1e1)]&&(this[_0x4491b7(0x28f)]=_0x4032ab[_0x4491b7(0x1e1)]),this[_0x4491b7(0x1dd)]=_0x4032ab[_0x4491b7(0x1dd)];}else this[_0x4491b7(0x1dd)]=_0x509470;return this;}[_0x468c49(0x216)](){const _0x21fedb=_0x468c49;return this[_0x21fedb(0x1dd)]=void 0x0,this['sourceSheetName']=void 0x0,this;}[_0x468c49(0x295)](_0x1c8f47,_0xef008a,_0x404253,_0x4756cb){const _0x2a952a=_0x468c49,_0x1b7fdf=this[_0x2a952a(0x25e)][_0x2a952a(0x21f)](_0x5adb08['IRenderManagerService'])[_0x2a952a(0x22f)](this[_0x2a952a(0x263)]);if(!_0x1b7fdf)throw new Error(_0x2a952a(0x294));const _0x4657a0=_0x1b7fdf['with'](_0x307e37[_0x2a952a(0x24c)]),_0x400eab=_0x1b7fdf[_0x2a952a(0x287)](_0x307e37['SheetSkeletonManagerService']),{transform:_0x73c0a8}=_0x307e37[_0x2a952a(0x274)](this[_0x2a952a(0x263)],this['subUnitId'],{'row':_0x1c8f47,'column':_0xef008a,'rowOffset':_0x404253,'columnOffset':_0x4756cb},0x1,0x1,_0x4657a0,_0x400eab),_0x3c6d45=_0x73c0a8['top'],_0x9b1715=_0x73c0a8['left'];return this['x']=_0x9b1715,this['y']=_0x3c6d45,this;}[_0x468c49(0x260)](_0x50cf07,_0x5b32c0){return this['x']=_0x50cf07,this['y']=_0x5b32c0,this;}[_0x468c49(0x28c)](_0x443a4e){const _0xfaba61=_0x468c49;return this[_0xfaba61(0x28b)]=_0x443a4e,this;}['setWidth'](_0x58546d){const _0x4a7956=_0x468c49;return this[_0x4a7956(0x22a)]=_0x58546d,this;}[_0x468c49(0x1dc)](_0x1da3ae){const _0x3ee41f=_0x468c49;return this[_0x3ee41f(0x21b)]=_0x1da3ae,this;}[_0x468c49(0x25a)](_0x2a0d4f,_0x2420e5){const _0x482d21=_0x468c49;return this[_0x482d21(0x202)]||(this[_0x482d21(0x202)]={}),_0x2a0d4f===''?(this[_0x482d21(0x202)]={...this['options'],..._0x2420e5},this):(_0x28f2fb['setProperty'](this[_0x482d21(0x202)],_0x2a0d4f,_0x2420e5),this);}[_0x468c49(0x1fc)](_0xfb2025){const _0x10b938=_0x468c49;return this[_0x10b938(0x266)]=_0xfb2025,this;}[_0x468c49(0x1f3)](_0xdc276f){const _0x465ec0=_0x468c49;return this[_0x465ec0(0x25a)](_0x465ec0(0x1e9),_0xdc276f),this;}['setXAxisTitle'](_0x123a83){const _0x230c8e=_0x468c49;var _0x55fa87;const _0x55955d=((_0x55fa87=this[_0x230c8e(0x202)])==null?void 0x0:_0x55fa87[_0x230c8e(0x272)])||{};return _0x55955d[_0x230c8e(0x224)]=_0x123a83,this[_0x230c8e(0x25a)](_0x230c8e(0x272),_0x55955d),this;}['setYAxisTitle'](_0x13b72e){const _0x2fcb08=_0x468c49;var _0x57d19e;const _0x5db899=((_0x57d19e=this[_0x2fcb08(0x202)])==null?void 0x0:_0x57d19e['yAxisTitle'])||{};return _0x5db899[_0x2fcb08(0x224)]=_0x13b72e,this['setOptions'](_0x2fcb08(0x226),_0x5db899),this;}['setRightYAxisTitle'](_0x3db479){const _0x1ba4af=_0x468c49;var _0xab6f7e;const _0x121d86=((_0xab6f7e=this[_0x1ba4af(0x202)])==null?void 0x0:_0xab6f7e[_0x1ba4af(0x1fe)])||{};return _0x121d86[_0x1ba4af(0x224)]=_0x3db479,this['setOptions'](_0x1ba4af(0x1fe),_0x121d86),this;}[_0x468c49(0x29b)](_0x182d7b){const _0x356886=_0x468c49;var _0x15b679;const _0x3f2c19=((_0x15b679=this[_0x356886(0x202)])==null?void 0x0:_0x15b679['xAxisTitle'])||{};return this['setOptions'](_0x356886(0x272),{..._0x3f2c19,..._0x182d7b}),this;}[_0x468c49(0x27a)](_0x4602b2){const _0x399347=_0x468c49;var _0x1ae5f7;const _0x1257ee=((_0x1ae5f7=this['options'])==null?void 0x0:_0x1ae5f7[_0x399347(0x226)])||{};return this[_0x399347(0x25a)](_0x399347(0x226),{..._0x1257ee,..._0x4602b2}),this;}[_0x468c49(0x271)](_0x2a0502){const _0x3c8994=_0x468c49;var _0x22c2dc;const _0x4c6e0f=((_0x22c2dc=this['options'])==null?void 0x0:_0x22c2dc[_0x3c8994(0x1fe)])||{};return this[_0x3c8994(0x25a)](_0x3c8994(0x1fe),{..._0x4c6e0f,..._0x2a0502}),this;}['setInvalidValueStrategy'](_0x44bb09){const _0x5389aa=_0x468c49;return this['setOptions'](_0x5389aa(0x244),_0x44bb09),this;}[_0x468c49(0x22c)](_0x264aab){const _0x117a2c=_0x468c49;return this[_0x117a2c(0x25a)](_0x117a2c(0x241),_0x264aab),this;}[_0x468c49(0x1fb)](_0x4481ed){const _0x40c7f=_0x468c49;return this[_0x40c7f(0x25a)](_0x40c7f(0x25d),_0x4481ed),this;}[_0x468c49(0x286)](_0x1974b1,_0x292903){const _0x2868f2=_0x468c49;return this[_0x2868f2(0x25a)](_0x2868f2(0x1e5),{[_0x1974b1]:_0x292903}),this;}['build'](){const _0x4adfab=_0x468c49;var _0x26ffa6;let _0x5b3ac6=this[_0x4adfab(0x1ce)];if(this[_0x4adfab(0x28f)]){const _0x24f2d5=(_0x26ffa6=this[_0x4adfab(0x25c)]['getSheetBySheetName'](this[_0x4adfab(0x28f)]))==null?void 0x0:_0x26ffa6[_0x4adfab(0x222)]();if(!_0x24f2d5)throw new Error(_0x4adfab(0x22e)+this['sourceSheetName']+_0x4adfab(0x267));_0x5b3ac6=_0x24f2d5;}return{'unitId':this[_0x4adfab(0x263)],'subUnitId':_0x5b3ac6,'chartId':this['chartId'],'range':this['range'],'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x4adfab(0x21b)],'chartType':this[_0x4adfab(0x28b)],'options':this[_0x4adfab(0x202)],'isRowDirection':this[_0x4adfab(0x266)]};}}class _0x2fd813{constructor(_0x364893,_0x13b7f3,_0x233886,_0x4c1f5c){const _0x493c82=_0x468c49;_0x4a73e7(this,_0x493c82(0x263)),_0x4a73e7(this,_0x493c82(0x1ce)),_0x4a73e7(this,_0x493c82(0x1f4)),_0x4a73e7(this,_0x493c82(0x25e)),(this[_0x493c82(0x263)]=_0x364893,this['subUnitId']=_0x13b7f3,this[_0x493c82(0x1f4)]=_0x233886,this[_0x493c82(0x25e)]=_0x4c1f5c);}[_0x468c49(0x225)](){return this['chartId'];}[_0x468c49(0x296)](){const _0x38ff12=_0x468c49,_0x9b0885=this['_injector'][_0x38ff12(0x21f)](_0x28f2fb[_0x38ff12(0x257)])[_0x38ff12(0x284)](this[_0x38ff12(0x1f4)]);if(_0x9b0885)return _0x9b0885[_0x38ff12(0x229)]['getRangeInfo']();}[_0x468c49(0x28a)](_0x4b09e2){const _0x58d072=_0x468c49;return this['_injector']['get'](_0x28ac5e[_0x58d072(0x23e)])[_0x58d072(0x262)](_0x28f2fb[_0x58d072(0x299)]['id'],{'unitId':this[_0x58d072(0x263)],'chartModelId':this['chartId'],'range':_0x4b09e2});}[_0x468c49(0x20c)](){const _0x551f84=_0x468c49;var _0x16a507;const _0x18666c=this[_0x551f84(0x25e)][_0x551f84(0x21f)](_0x28f2fb[_0x551f84(0x257)])[_0x551f84(0x284)](this['chartId']);if(_0x18666c)return(_0x16a507=_0x18666c[_0x551f84(0x291)])==null?void 0x0:_0x16a507['series'];}[_0x468c49(0x20a)](){const _0x1f2f6b=_0x468c49;var _0x28f02f;const _0x417732=this[_0x1f2f6b(0x25e)][_0x1f2f6b(0x21f)](_0x28f2fb[_0x1f2f6b(0x257)])[_0x1f2f6b(0x284)](this[_0x1f2f6b(0x1f4)]);if(_0x417732)return(_0x28f02f=_0x417732[_0x1f2f6b(0x291)])==null?void 0x0:_0x28f02f['category'];}['modify'](){const _0x634578=_0x468c49,_0x25b374=this[_0x634578(0x25e)][_0x634578(0x21f)](_0x28ac5e[_0x634578(0x1cd)])[_0x634578(0x23f)](_0x28ac5e[_0x634578(0x1ee)][_0x634578(0x1d3)]);return new _0x4c7cb0(this[_0x634578(0x263)],this[_0x634578(0x1ce)],_0x25b374,this[_0x634578(0x25e)],this[_0x634578(0x1f4)]);}}class _0x3164b9 extends _0x51d57a['FWorksheet']{async['insertChart'](_0xf293ae){const _0x18192c=_0x468c49;var _0x4cace3,_0x11d704,_0x1ca12a;const _0x1aba19=_0xf293ae[_0x18192c(0x263)]||this[_0x18192c(0x1d2)]()[_0x18192c(0x289)](),_0x3d87db=_0xf293ae[_0x18192c(0x1ce)]||this[_0x18192c(0x222)](),_0x1f3bac=_0xf293ae[_0x18192c(0x1f4)]||_0x28ac5e[_0x18192c(0x1e0)](),_0x9c4ffc=_0xf293ae[_0x18192c(0x28b)],_0x42be21=_0xf293ae[_0x18192c(0x1dd)],_0x19b6ee={'x':_0xf293ae['x'],'y':_0xf293ae['y']},_0x4a91c7=_0xf293ae[_0x18192c(0x22a)],_0x1574c7=_0xf293ae[_0x18192c(0x21b)],_0x35844c=(_0x4cace3=_0xf293ae[_0x18192c(0x202)])==null?void 0x0:_0x4cace3[_0x18192c(0x255)],_0x355bfe=(_0x11d704=_0xf293ae[_0x18192c(0x202)])==null?void 0x0:_0x11d704[_0x18192c(0x1d6)],_0x32179d=_0x4b385a(_0x1aba19,_0x1f3bac,_0x9c4ffc,_0xf293ae[_0x18192c(0x202)]),_0x54cbf0=(_0x1ca12a=_0xf293ae[_0x18192c(0x245)])!=null?_0x1ca12a:!0x0;if(!_0x42be21)throw new Error(_0x18192c(0x227));return await this[_0x18192c(0x251)][_0x18192c(0x262)](_0x3faa1e['InsertChartCommand']['id'],{'unitId':_0x1aba19,'subUnitId':_0x3d87db,'chartId':_0x1f3bac,'chartType':_0x9c4ffc,'range':_0x42be21,'position':_0x19b6ee,'width':_0x4a91c7,'height':_0x1574c7,'backgroundColor':_0x35844c,'borderColor':_0x355bfe,'config':_0x32179d,'isRowDirection':_0x54cbf0}),new _0x2fd813(_0x1aba19,_0x3d87db,_0x1f3bac,this[_0x18192c(0x25e)]);}['updateChart'](_0x4751f8){const _0x1cf9b6=_0x468c49,{unitId:_0x41572d,chartId:_0x2f2f7c,chartType:_0x4a14a8,options:_0x4a7473}=_0x4751f8,_0x436880=_0x4b385a(_0x41572d,_0x2f2f7c,_0x4a14a8,_0x4a7473);this[_0x1cf9b6(0x251)][_0x1cf9b6(0x262)](_0x28f2fb[_0x1cf9b6(0x24e)]['id'],_0x436880);}[_0x468c49(0x23c)](_0x312421){const _0x48aa76=_0x468c49;if(_0x312421)return new _0x4c7cb0(_0x312421[_0x48aa76(0x263)],_0x312421['subUnitId'],this[_0x48aa76(0x25c)],this[_0x48aa76(0x25e)],_0x312421[_0x48aa76(0x1f4)]);const _0x1c02ca=this[_0x48aa76(0x1d2)]()[_0x48aa76(0x289)](),_0x34dccc=this[_0x48aa76(0x222)]();return new _0x4c7cb0(_0x1c02ca,_0x34dccc,this['_workbook'],this[_0x48aa76(0x25e)]);}[_0x468c49(0x27c)](){const _0x4bd14f=_0x468c49,_0x434e6e=this['_injector'][_0x4bd14f(0x21f)](_0x28f2fb[_0x4bd14f(0x257)]),_0x5d2ebc=this['getWorkbook']()['getUnitId']();return _0x434e6e['getUnitChartModels'](_0x5d2ebc,this[_0x4bd14f(0x222)]())['map'](_0x174f7e=>new _0x2fd813(_0x5d2ebc,this['getSheetId'](),_0x174f7e['id'],this[_0x4bd14f(0x25e)]));}[_0x468c49(0x1e4)](_0x2b9a4b){const _0x2f9809=_0x468c49,_0x4e6bcd=_0x2b9a4b['unitId'],_0x48e970=_0x2b9a4b[_0x2f9809(0x1ce)],_0x53aaad=_0x2b9a4b[_0x2f9809(0x1f4)],_0x1f71bf={'unitId':_0x4e6bcd,'drawings':[{'unitId':_0x4e6bcd,'subUnitId':_0x48e970,'drawingId':_0x53aaad,'drawingType':_0x28ac5e[_0x2f9809(0x26c)][_0x2f9809(0x239)]}]};return this[_0x2f9809(0x251)]['executeCommand'](_0x109214[_0x2f9809(0x276)]['id'],_0x1f71bf);}[_0x468c49(0x258)](_0x37e776,_0x5f0840){const _0x4f3f1e=_0x468c49;this[_0x4f3f1e(0x25e)][_0x4f3f1e(0x21f)](_0x28f2fb[_0x4f3f1e(0x283)])[_0x4f3f1e(0x1e7)](_0x37e776,_0x5f0840);}}_0x51d57a['FWorksheet'][_0x468c49(0x21e)](_0x3164b9);class _0x2bbdd4 extends _0x4c7cb0{constructor(_0x4d8a5e,_0x5bbc5e,_0x4271f6,_0x1da10e,_0x40a5f7){const _0x8e712d=_0x468c49;super(_0x4d8a5e,_0x5bbc5e,_0x4271f6,_0x1da10e,_0x40a5f7),_0x4a73e7(this,_0x8e712d(0x24f)),_0x4a73e7(this,'dataPointShape'),_0x4a73e7(this,_0x8e712d(0x20e)),_0x4a73e7(this,'dataPointSize');}[_0x468c49(0x275)](_0x5e3b91){const _0x4b3e78=_0x468c49;return this[_0x4b3e78(0x24f)]=_0x5e3b91,this;}[_0x468c49(0x282)](_0x5ba01b){const _0x405f7c=_0x468c49;return this[_0x405f7c(0x28d)]=_0x5ba01b,this;}[_0x468c49(0x214)](_0x58e043){const _0x4d87bf=_0x468c49;return this[_0x4d87bf(0x20e)]=_0x58e043,this;}[_0x468c49(0x1d1)](_0x36205c){const _0x4142cc=_0x468c49;return this[_0x4142cc(0x1df)]=_0x36205c,this;}[_0x468c49(0x252)](){const _0x57187f=_0x468c49,_0x1e4f77=super['build']();_0x1e4f77[_0x57187f(0x28b)]=_0x28f2fb[_0x57187f(0x1de)][_0x57187f(0x1ff)];const _0x34d77c=_0x1e4f77[_0x57187f(0x202)]||{};return _0x49b778(_0x34d77c,_0x57187f(0x1e2),this[_0x57187f(0x24f)]),_0x49b778(_0x34d77c,'allSeriesStyle.point.shape',this[_0x57187f(0x28d)]),_0x49b778(_0x34d77c,_0x57187f(0x221),this['dataPointColor']),_0x49b778(_0x34d77c,'allSeriesStyle.point.size',this[_0x57187f(0x1df)]),_0x1e4f77[_0x57187f(0x202)]=_0x34d77c,_0x1e4f77;}}class _0x573466 extends _0x4c7cb0{['asLineChart'](){const _0x77df73=_0x468c49;return new _0x2bbdd4(this['unitId'],this[_0x77df73(0x1ce)],this['_workbook'],this[_0x77df73(0x25e)],this[_0x77df73(0x1f4)]);}}_0x4c7cb0['extend'](_0x573466);class _0x2bd7da extends _0x4c7cb0{constructor(_0x1f511b,_0x52663a,_0x25bb80,_0x29d22d,_0x3077b7){const _0x4bdd37=_0x468c49;super(_0x1f511b,_0x52663a,_0x25bb80,_0x29d22d,_0x3077b7),_0x4a73e7(this,_0x4bdd37(0x26e)),_0x4a73e7(this,_0x4bdd37(0x1d6)),_0x4a73e7(this,_0x4bdd37(0x215)),_0x4a73e7(this,_0x4bdd37(0x22d)),_0x4a73e7(this,_0x4bdd37(0x26b)),_0x4a73e7(this,'showLabelLine');}[_0x468c49(0x219)](_0x3b29f3){const _0x227549=_0x468c49;return this[_0x227549(0x26e)]=_0x3b29f3,this;}[_0x468c49(0x297)](_0x249120){const _0x509dcd=_0x468c49;return this[_0x509dcd(0x1d6)]=_0x249120,this;}['setHasPaddingAngle'](_0x3406ff){const _0x467ae6=_0x468c49;return this[_0x467ae6(0x215)]=_0x3406ff,this;}['setIsHalfPie'](_0x3e1501){const _0x4b9650=_0x468c49;return this[_0x4b9650(0x22d)]=_0x3e1501,this;}['setRosePie'](_0x4d6799){const _0x5d8529=_0x468c49;return this[_0x5d8529(0x26b)]=_0x4d6799,this;}[_0x468c49(0x24a)](_0x47c048){return this['showLabelLine']=_0x47c048,this;}['build'](){const _0x56c492=_0x468c49,_0x183eee=super[_0x56c492(0x252)]();_0x183eee['chartType']=_0x28f2fb[_0x56c492(0x1de)]['Pie'];const _0x307041=_0x183eee[_0x56c492(0x202)]||{};return _0x49b778(_0x307041,_0x56c492(0x242),this['doughnutHole']),_0x49b778(_0x307041,_0x56c492(0x27f),this[_0x56c492(0x1d6)]),_0x49b778(_0x307041,_0x56c492(0x233),this[_0x56c492(0x215)]),_0x49b778(_0x307041,'pie.isHalfPie',this[_0x56c492(0x22d)]),_0x49b778(_0x307041,_0x56c492(0x278),this[_0x56c492(0x26b)]),_0x49b778(_0x307041,_0x56c492(0x26a),this[_0x56c492(0x208)]),_0x183eee[_0x56c492(0x202)]=_0x307041,_0x183eee;}}class _0x3a50d0 extends _0x4c7cb0{[_0x468c49(0x228)](){const _0x2af971=_0x468c49;return new _0x2bd7da(this[_0x2af971(0x263)],this[_0x2af971(0x1ce)],this[_0x2af971(0x25c)],this[_0x2af971(0x25e)],this['chartId']);}}_0x4c7cb0[_0x468c49(0x21e)](_0x3a50d0);class _0x4e41c8 extends _0x4c7cb0{constructor(_0x3f9909,_0x1fe264,_0x2d436a,_0x19214d,_0x1a9968){const _0x391122=_0x468c49;super(_0x3f9909,_0x1fe264,_0x2d436a,_0x19214d,_0x1a9968),_0x4a73e7(this,_0x391122(0x1f8)),_0x4a73e7(this,_0x391122(0x237));}[_0x468c49(0x25f)](_0xafae98){const _0x2334ba=_0x468c49;return this[_0x2334ba(0x1f8)]=_0xafae98,this;}['setFill'](_0x238d8e){const _0x3f453d=_0x468c49;return this[_0x3f453d(0x237)]=_0x238d8e,this;}[_0x468c49(0x252)](){const _0xf3b7c4=_0x468c49,_0x33381a=super['build']();_0x33381a['chartType']=_0x28f2fb[_0xf3b7c4(0x1de)][_0xf3b7c4(0x1db)];const _0x5132ea=_0x33381a[_0xf3b7c4(0x202)]||{};return _0x49b778(_0x5132ea,_0xf3b7c4(0x218),this[_0xf3b7c4(0x1f8)]),_0x49b778(_0x5132ea,_0xf3b7c4(0x1da),this[_0xf3b7c4(0x237)]),_0x33381a['options']=_0x5132ea,_0x33381a;}}class _0x2b07df extends _0x4c7cb0{[_0x468c49(0x1f0)](){const _0x1e2c14=_0x468c49;return new _0x4e41c8(this['unitId'],this[_0x1e2c14(0x1ce)],this[_0x1e2c14(0x25c)],this[_0x1e2c14(0x25e)],this['chartId']);}}_0x4c7cb0['extend'](_0x2b07df),_0x343f69[_0x468c49(0x26d)]=_0x2fd813,_0x343f69['FChartBuilderBase']=_0x4c7cb0,_0x343f69['LineChartBuilder']=_0x2bbdd4,_0x343f69[_0x468c49(0x250)]=_0x2bd7da,_0x343f69[_0x468c49(0x1e3)]=_0x4e41c8,Object[_0x468c49(0x217)](_0x343f69,Symbol[_0x468c49(0x264)],{'value':_0x468c49(0x211)});}));
|
|
1
|
+
function _0x1c26(){const _0x101c9d=['newChart','function','titles.rightYAxisTitle.content','object','yAxis','convertPositionCellToSheetOverGrid','getCharts','titles.xAxisTitle.fontSize','UniverSheetsFacade','setProperty','addRange','top','21710799ZTnvon','legend.selectMode','width','setAbsolutePosition','titles.titlePosition','Sheet\x20','pie.isHalfPie','UniverSheetsUi','setBorderColor','UniverEngineRender','rightYAxis.label.axisTitleAlign','sheetName','ChartThemeService','@univerjs/core','get','getCurrentUnitForType','toStringTag','titles.xAxisTitle.font','setShape','legend.label.fontSize','ChartTypeBits','getCategoryData','string','indicatorLineColor','isRowDirection','_injector','This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.','left','chartId','context','UniverInstanceType','titles.title.content','isHalfPie','getWorkbook','Module','removeChart','titles.title.color','pie.hasPaddingAngle','executeCommand','setWidth','bold','@univerjs/sheets-drawing-ui','setDoughnutHole','titles.xAxisTitle.color','\x20not\x20found','getSheetId','fill','RadarChartBuilder','FWorksheet','370878GLjGGQ','title','setRightYAxisTextStyle','titles.xAxisTitle.bold','titles.title.font','registerChartTheme','xAxis.label.axisTitleAlign','doughnutHole','allSeriesStyle.point.size','@univerjs/sheets/facade','exports','UniverProSheetsChart','legend','extend','@univerjs/engine-formula','getUnitId','setDataPointColor','length','titles.xAxisTitle.content','yAxisTitle','185XvHzXi','invalidValueType','titles.title.align','legend.position','keys','shape','series','titles.yAxisTitle.content','InsertChartCommand','dataPointColor','setAllSeriesStyle','fontSize','category','SheetsChartService','getRange','pie.showLabelLine','7880160erQStK','titles.yAxisTitle.font','setTheme','insertChart','Pie','hasPaddingAngle','_commandService','setOptions','dataPointShape','@univerjs-pro/sheets-chart','tooltip.indicatorLineType','@univerjs/engine-render','registerTheme','1407376qJssuB','chartType','setHeight','DRAWING_CHART','allSeriesStyle.point','pie.borderColor','xAxis','29052CGZXXX','lineStyle','borderColor','area.lineStyle','5588660JJNLZo','setPosition','options','legend.label.italic','_workbook','allSeriesStyle','titles.title.bold','UniverSheetsDrawingUi','titles.yAxisTitle.family','@univerjs/sheets-ui','FChartBuilderBase','radar.fill','@univerjs-pro/sheets-chart-ui','updateChart','unitId','setChartType','tooltip.indicatorLineColor','symbol','193920oahSLQ','setAxisPointerStyle','yAxis.label.axisTitleAlign','height','seriesStyleMap','getUnitChartModels','subUnitId','setFill','legend.label.color','getSheetBySheetName','clearRange','deserializeRangeWithSheet','titles.title.family','setInvalidValueStrategy','3FyQymS','axisAlignment','setRightYAxisTitle','titles.rightYAxisTitle.fontSize','dataSource','content','transposeRowsAndColumns','font','LineChartBuilder','Radar','Line','setYAxisTitle','axisPointer','titles.rightYAxisTitle.family','ISheetSelectionRenderService','theme','indicatorLabelColor','FChart','pie','titleAlignment','setHasPaddingAngle','dataPointSize','getSeriesData','sourceSheetName','SheetSkeletonManagerService','UniverCore','xAxisTitle','modify','FBase','rightYAxisTitle','range','showLabelLine','getChartModel','defineProperty','getChartType','rosePie','map','IUniverInstanceService','fontStyle','UniverProSheetsChartUiFacade','pie.doughnutHole','position','build','config','UniverProSheetsChartUi','RemoveSheetDrawingCommand','radar','radar.shape','point','area','tooltip.indicatorLabelTextColor','with','setXAxisTitle','IRenderManagerService','fontColor','titles.yAxisTitle.color','titles.title.fontSize','tooltip.indicatorLabelColor','pie.rosePie','indicatorLabelTextColor'];_0x1c26=function(){return _0x101c9d;};return _0x1c26();}function _0x3487(_0x3f94df,_0x37e81b){const _0x1c266c=_0x1c26();return _0x3487=function(_0x3487a6,_0x51c036){_0x3487a6=_0x3487a6-0x187;let _0x4ce0c7=_0x1c266c[_0x3487a6];return _0x4ce0c7;},_0x3487(_0x3f94df,_0x37e81b);}(function(_0x54264f,_0x288429){const _0x19b5f1=_0x3487,_0x173dbe=_0x54264f();while(!![]){try{const _0x3fa5ee=-parseInt(_0x19b5f1(0x1bf))/0x1+-parseInt(_0x19b5f1(0x18e))/0x2*(-parseInt(_0x19b5f1(0x1ea))/0x3)+parseInt(_0x19b5f1(0x1c6))/0x4*(-parseInt(_0x19b5f1(0x1a2))/0x5)+parseInt(_0x19b5f1(0x1dc))/0x6+parseInt(_0x19b5f1(0x1ca))/0x7+-parseInt(_0x19b5f1(0x1b2))/0x8+parseInt(_0x19b5f1(0x232))/0x9;if(_0x3fa5ee===_0x288429)break;else _0x173dbe['push'](_0x173dbe['shift']());}catch(_0x1340e3){_0x173dbe['push'](_0x173dbe['shift']());}}}(_0x1c26,0xbb55b),function(_0x1ce81a,_0x1926e2){const _0x1822f3=_0x3487;typeof exports==_0x1822f3(0x229)&&typeof module<'u'?_0x1926e2(exports,require(_0x1822f3(0x1bb)),require(_0x1822f3(0x1d6)),require('@univerjs/core'),require(_0x1822f3(0x25b)),require('@univerjs/sheets/facade'),require('@univerjs/engine-formula'),require(_0x1822f3(0x1bd)),require(_0x1822f3(0x1d3))):typeof define==_0x1822f3(0x227)&&define['amd']?define([_0x1822f3(0x198),_0x1822f3(0x1bb),_0x1822f3(0x1d6),_0x1822f3(0x23f),'@univerjs/sheets-drawing-ui',_0x1822f3(0x197),_0x1822f3(0x19c),'@univerjs/engine-render','@univerjs/sheets-ui'],_0x1926e2):(_0x1ce81a=typeof globalThis<'u'?globalThis:_0x1ce81a||self,_0x1926e2(_0x1ce81a[_0x1822f3(0x211)]={},_0x1ce81a[_0x1822f3(0x199)],_0x1ce81a[_0x1822f3(0x216)],_0x1ce81a[_0x1822f3(0x203)],_0x1ce81a[_0x1822f3(0x1d1)],_0x1ce81a[_0x1822f3(0x22e)],_0x1ce81a['UniverEngineFormula'],_0x1ce81a[_0x1822f3(0x23b)],_0x1ce81a[_0x1822f3(0x239)]));}(this,function(_0x3f29e0,_0x478919,_0x4878c2,_0x24e8cb,_0x4f9995,_0x44c3e0,_0x50baa1,_0x3573f5,_0x153050){'use strict';const _0x34c02b=_0x3487;var _0x216972=Object[_0x34c02b(0x20b)],_0x2cc2db=(_0x1697ed,_0x2bb967,_0x556a90)=>_0x2bb967 in _0x1697ed?_0x216972(_0x1697ed,_0x2bb967,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x556a90}):_0x1697ed[_0x2bb967]=_0x556a90,_0x29118a=(_0x17a3dd,_0x435c25,_0x952141)=>_0x2cc2db(_0x17a3dd,typeof _0x435c25!=_0x34c02b(0x1db)?_0x435c25+'':_0x435c25,_0x952141);const _0x2b7ad4=(_0x586f75,_0x5201ef,_0x2853fb)=>{const _0x13c193=_0x34c02b;_0x2853fb!==void 0x0&&_0x478919[_0x13c193(0x22f)](_0x586f75,_0x5201ef,_0x2853fb);},_0x225769=(_0x557e3f,_0x2c049e,_0x2dfce0,_0x486fb9={})=>{const _0x31fbc0=_0x34c02b,_0x460606={},_0x403c1f={};if(_0x486fb9[_0x31fbc0(0x18f)]){const _0x4e9a09=_0x486fb9[_0x31fbc0(0x18f)];_0x2b7ad4(_0x460606,_0x31fbc0(0x251),_0x4e9a09[_0x31fbc0(0x1ef)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x192),_0x4e9a09['font']),_0x2b7ad4(_0x460606,_0x31fbc0(0x222),_0x4e9a09[_0x31fbc0(0x1ad)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x256),_0x4e9a09['fontColor']),_0x2b7ad4(_0x460606,_0x31fbc0(0x1e8),_0x4e9a09[_0x31fbc0(0x210)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x1d0),_0x4e9a09[_0x31fbc0(0x25a)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x1a4),_0x4e9a09[_0x31fbc0(0x1fd)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x236),_0x4e9a09['position']);}if(_0x486fb9[_0x31fbc0(0x19a)]){const _0x427649=_0x486fb9['legend'];_0x2b7ad4(_0x460606,_0x31fbc0(0x1a5),_0x427649[_0x31fbc0(0x213)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x233),_0x427649['selectMode']),_0x2b7ad4(_0x460606,_0x31fbc0(0x245),_0x427649[_0x31fbc0(0x1ad)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x1e4),_0x427649['color']),_0x2b7ad4(_0x460606,'legend.label.bold',_0x427649[_0x31fbc0(0x25a)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x1cd),_0x427649['italic']);}if(_0x486fb9['pie']){const _0x4b3eda=_0x486fb9[_0x31fbc0(0x1fc)];_0x2b7ad4(_0x460606,_0x31fbc0(0x212),_0x4b3eda['doughnutHole']),_0x2b7ad4(_0x460606,_0x31fbc0(0x1c4),_0x4b3eda[_0x31fbc0(0x1c8)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x257),_0x4b3eda[_0x31fbc0(0x1b7)]),_0x2b7ad4(_0x460606,'pie.isHalfPie',_0x4b3eda[_0x31fbc0(0x252)]),_0x2b7ad4(_0x460606,'pie.rosePie',_0x4b3eda['rosePie']),_0x2b7ad4(_0x460606,_0x31fbc0(0x1b1),_0x4b3eda['showLabelLine']);}if(_0x486fb9[_0x31fbc0(0x1f6)]){const _0x56bae9=_0x486fb9['axisPointer'];_0x2b7ad4(_0x460606,_0x31fbc0(0x223),_0x56bae9[_0x31fbc0(0x1fa)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x1bc),_0x56bae9['indicatorLineType']),_0x2b7ad4(_0x460606,_0x31fbc0(0x1da),_0x56bae9[_0x31fbc0(0x249)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x21c),_0x56bae9[_0x31fbc0(0x225)]);}if(_0x486fb9[_0x31fbc0(0x1cf)]&&_0x2b7ad4(_0x460606,_0x31fbc0(0x1c3),_0x486fb9[_0x31fbc0(0x1cf)][_0x31fbc0(0x21a)]),_0x486fb9[_0x31fbc0(0x21b)]&&_0x2b7ad4(_0x460606,_0x31fbc0(0x1c9),_0x486fb9[_0x31fbc0(0x21b)][_0x31fbc0(0x1c7)]),_0x486fb9['theme']&&_0x2b7ad4(_0x460606,_0x31fbc0(0x1f9),_0x486fb9[_0x31fbc0(0x1f9)]),_0x486fb9[_0x31fbc0(0x218)]&&_0x2b7ad4(_0x460606,'radar',_0x486fb9[_0x31fbc0(0x218)]),_0x486fb9[_0x31fbc0(0x204)]){const _0x368db8=_0x486fb9[_0x31fbc0(0x204)];_0x2b7ad4(_0x460606,_0x31fbc0(0x1a0),_0x368db8['content']),_0x2b7ad4(_0x460606,_0x31fbc0(0x243),_0x368db8[_0x31fbc0(0x1f1)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x22d),_0x368db8[_0x31fbc0(0x1ad)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x188),_0x368db8['fontColor']),_0x2b7ad4(_0x460606,'titles.xAxisTitle.family',_0x368db8[_0x31fbc0(0x210)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x191),_0x368db8['bold']),_0x2b7ad4(_0x460606,_0x31fbc0(0x194),_0x368db8[_0x31fbc0(0x1eb)]);}if(_0x486fb9[_0x31fbc0(0x1a1)]){const _0x113c1d=_0x486fb9['yAxisTitle'];_0x2b7ad4(_0x460606,_0x31fbc0(0x1a9),_0x113c1d[_0x31fbc0(0x1ef)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x1b3),_0x113c1d[_0x31fbc0(0x1f1)]),_0x2b7ad4(_0x460606,'titles.yAxisTitle.fontSize',_0x113c1d[_0x31fbc0(0x1ad)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x221),_0x113c1d[_0x31fbc0(0x220)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x1d2),_0x113c1d[_0x31fbc0(0x210)]),_0x2b7ad4(_0x460606,'titles.yAxisTitle.bold',_0x113c1d['bold']),_0x2b7ad4(_0x460606,_0x31fbc0(0x1de),_0x113c1d[_0x31fbc0(0x1eb)]);}if(_0x486fb9[_0x31fbc0(0x207)]){const _0x289743=_0x486fb9[_0x31fbc0(0x207)];_0x2b7ad4(_0x460606,_0x31fbc0(0x228),_0x289743[_0x31fbc0(0x1ef)]),_0x2b7ad4(_0x460606,'titles.rightYAxisTitle.font',_0x289743['font']),_0x2b7ad4(_0x460606,_0x31fbc0(0x1ed),_0x289743[_0x31fbc0(0x1ad)]),_0x2b7ad4(_0x460606,'titles.rightYAxisTitle.color',_0x289743[_0x31fbc0(0x220)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x1f7),_0x289743[_0x31fbc0(0x210)]),_0x2b7ad4(_0x460606,'titles.rightYAxisTitle.bold',_0x289743[_0x31fbc0(0x25a)]),_0x2b7ad4(_0x460606,_0x31fbc0(0x23c),_0x289743[_0x31fbc0(0x1eb)]);}_0x486fb9[_0x31fbc0(0x1c5)]&&_0x2b7ad4(_0x460606,_0x31fbc0(0x1c5),_0x486fb9[_0x31fbc0(0x1c5)]),_0x486fb9[_0x31fbc0(0x22a)]&&_0x2b7ad4(_0x460606,'yAxis',_0x486fb9[_0x31fbc0(0x22a)]),_0x486fb9['yRightAxis']&&_0x2b7ad4(_0x460606,'rightYAxis',_0x486fb9['yRightAxis']),_0x486fb9[_0x31fbc0(0x1e0)]&&_0x2b7ad4(_0x460606,_0x31fbc0(0x1e0),_0x486fb9['seriesStyleMap']);const _0x32cd93={'unitId':_0x557e3f,'chartModelId':_0x2c049e};let _0x211f57=!0x1;if(_0x2dfce0!==void 0x0&&(_0x32cd93['chartType']=_0x2dfce0,_0x211f57=!0x0),Object[_0x31fbc0(0x1a6)](_0x460606)[_0x31fbc0(0x19f)]>0x0&&(_0x32cd93['style']=_0x460606,_0x211f57=!0x0),Object[_0x31fbc0(0x1a6)](_0x403c1f)[_0x31fbc0(0x19f)]>0x0&&(_0x32cd93[_0x31fbc0(0x24f)]=_0x403c1f,_0x211f57=!0x0),_0x211f57)return _0x32cd93;};class _0x32dcc1 extends _0x24e8cb[_0x34c02b(0x206)]{constructor(_0x11edce,_0x111009,_0x19e75f,_0x2256d2,_0xa7cce7){const _0x470b15=_0x34c02b;super(),_0x29118a(this,'_workbook'),_0x29118a(this,'_injector'),_0x29118a(this,_0x470b15(0x1d8)),_0x29118a(this,'subUnitId'),_0x29118a(this,_0x470b15(0x24e)),_0x29118a(this,_0x470b15(0x208)),_0x29118a(this,_0x470b15(0x201)),_0x29118a(this,'x'),_0x29118a(this,'y'),_0x29118a(this,'width'),_0x29118a(this,_0x470b15(0x1df)),_0x29118a(this,_0x470b15(0x1c0)),_0x29118a(this,_0x470b15(0x1cc)),_0x29118a(this,_0x470b15(0x1f0)),(this[_0x470b15(0x1d8)]=_0x11edce,this['subUnitId']=_0x111009,this[_0x470b15(0x1ce)]=_0x19e75f,this[_0x470b15(0x24b)]=_0x2256d2,_0xa7cce7&&(this[_0x470b15(0x24e)]=_0xa7cce7));}[_0x34c02b(0x20c)](){const _0x589bba=_0x34c02b;return this[_0x589bba(0x1c0)];}[_0x34c02b(0x230)](_0x21dafb){const _0xe6b331=_0x34c02b;if(typeof _0x21dafb==_0xe6b331(0x248)){const _0x1ae2f2=_0x50baa1[_0xe6b331(0x1e7)](_0x21dafb);_0x1ae2f2[_0xe6b331(0x23d)]&&(this['sourceSheetName']=_0x1ae2f2['sheetName']),this[_0xe6b331(0x208)]=_0x1ae2f2[_0xe6b331(0x208)];}else this[_0xe6b331(0x208)]=_0x21dafb;return this;}[_0x34c02b(0x1e6)](){const _0x5ecf45=_0x34c02b;return this[_0x5ecf45(0x208)]=void 0x0,this[_0x5ecf45(0x201)]=void 0x0,this;}[_0x34c02b(0x1cb)](_0x470f64,_0x5acb37,_0x11adb2,_0xc36597){const _0x340edc=_0x34c02b,_0x180367=this['_injector'][_0x340edc(0x240)](_0x3573f5[_0x340edc(0x21f)])['getRenderById'](this[_0x340edc(0x1d8)]);if(!_0x180367)throw new Error(_0x340edc(0x24c));const _0x4c75b1=_0x180367['with'](_0x153050[_0x340edc(0x1f8)]),_0x5925c8=_0x180367[_0x340edc(0x21d)](_0x153050[_0x340edc(0x202)]),{transform:_0x24eb7a}=_0x153050[_0x340edc(0x22b)](this[_0x340edc(0x1d8)],this[_0x340edc(0x1e2)],{'row':_0x470f64,'column':_0x5acb37,'rowOffset':_0x11adb2,'columnOffset':_0xc36597},0x1,0x1,_0x4c75b1,_0x5925c8),_0x182b19=_0x24eb7a[_0x340edc(0x231)],_0xfcc605=_0x24eb7a[_0x340edc(0x24d)];return this['x']=_0xfcc605,this['y']=_0x182b19,this;}[_0x34c02b(0x235)](_0x486ee0,_0x13e309){return this['x']=_0x486ee0,this['y']=_0x13e309,this;}[_0x34c02b(0x1d9)](_0x4ffdc2){const _0xace20f=_0x34c02b;return this[_0xace20f(0x1c0)]=_0x4ffdc2,this;}[_0x34c02b(0x259)](_0x1c5c67){const _0x42ce6a=_0x34c02b;return this[_0x42ce6a(0x234)]=_0x1c5c67,this;}[_0x34c02b(0x1c1)](_0x301229){const _0x2bbdbc=_0x34c02b;return this[_0x2bbdbc(0x1df)]=_0x301229,this;}[_0x34c02b(0x1b9)](_0x34051e,_0x4961cc){const _0x5ab763=_0x34c02b;return this[_0x5ab763(0x1cc)]||(this[_0x5ab763(0x1cc)]={}),_0x34051e===''?(this[_0x5ab763(0x1cc)]={...this[_0x5ab763(0x1cc)],..._0x4961cc},this):(_0x478919[_0x5ab763(0x22f)](this[_0x5ab763(0x1cc)],_0x34051e,_0x4961cc),this);}['setTransposeRowsAndColumns'](_0x57f659){const _0x56e571=_0x34c02b;return this[_0x56e571(0x1f0)]=_0x57f659,this;}[_0x34c02b(0x1b4)](_0x32c3a7){const _0x201c94=_0x34c02b;return this[_0x201c94(0x1b9)](_0x201c94(0x1f9),_0x32c3a7),this;}[_0x34c02b(0x21e)](_0x272b44){const _0x105c3e=_0x34c02b;var _0x5d25e9;const _0x68361e=((_0x5d25e9=this['options'])==null?void 0x0:_0x5d25e9['xAxisTitle'])||{};return _0x68361e['content']=_0x272b44,this['setOptions'](_0x105c3e(0x204),_0x68361e),this;}[_0x34c02b(0x1f5)](_0xca7d63){const _0x2a35b5=_0x34c02b;var _0x54f79b;const _0x48b7e9=((_0x54f79b=this['options'])==null?void 0x0:_0x54f79b['yAxisTitle'])||{};return _0x48b7e9[_0x2a35b5(0x1ef)]=_0xca7d63,this[_0x2a35b5(0x1b9)](_0x2a35b5(0x1a1),_0x48b7e9),this;}[_0x34c02b(0x1ec)](_0x26f4ac){const _0x20ff6b=_0x34c02b;var _0x282bbc;const _0x41f99c=((_0x282bbc=this['options'])==null?void 0x0:_0x282bbc[_0x20ff6b(0x207)])||{};return _0x41f99c['content']=_0x26f4ac,this['setOptions'](_0x20ff6b(0x207),_0x41f99c),this;}['setXAxisTextStyle'](_0x28fdae){const _0x190fc5=_0x34c02b;var _0x3b6349;const _0x220e99=((_0x3b6349=this[_0x190fc5(0x1cc)])==null?void 0x0:_0x3b6349[_0x190fc5(0x204)])||{};return this['setOptions'](_0x190fc5(0x204),{..._0x220e99,..._0x28fdae}),this;}['setYAxisTextStyle'](_0x4a2282){const _0x113481=_0x34c02b;var _0x43bf26;const _0x4b2a89=((_0x43bf26=this[_0x113481(0x1cc)])==null?void 0x0:_0x43bf26[_0x113481(0x1a1)])||{};return this['setOptions']('yAxisTitle',{..._0x4b2a89,..._0x4a2282}),this;}[_0x34c02b(0x190)](_0x5b2f3e){const _0x403171=_0x34c02b;var _0x357134;const _0x47865a=((_0x357134=this[_0x403171(0x1cc)])==null?void 0x0:_0x357134[_0x403171(0x207)])||{};return this[_0x403171(0x1b9)]('rightYAxisTitle',{..._0x47865a,..._0x5b2f3e}),this;}[_0x34c02b(0x1e9)](_0x47870c){const _0xca9c44=_0x34c02b;return this[_0xca9c44(0x1b9)](_0xca9c44(0x1a3),_0x47870c),this;}[_0x34c02b(0x1dd)](_0x22f9ea){const _0x1b5590=_0x34c02b;return this[_0x1b5590(0x1b9)](_0x1b5590(0x1f6),_0x22f9ea),this;}[_0x34c02b(0x1ac)](_0x120e40){const _0x477f23=_0x34c02b;return this['setOptions'](_0x477f23(0x1cf),_0x120e40),this;}['setSeriesStyle'](_0x3b3cb2,_0x4d0232){const _0x3590c3=_0x34c02b;return this[_0x3590c3(0x1b9)](_0x3590c3(0x1e0),{[_0x3b3cb2]:_0x4d0232}),this;}['build'](){const _0x4ee81c=_0x34c02b;var _0x175634;let _0x4cc5fb=this['subUnitId'];if(this[_0x4ee81c(0x201)]){const _0x3c7e05=(_0x175634=this[_0x4ee81c(0x1ce)][_0x4ee81c(0x1e5)](this[_0x4ee81c(0x201)]))==null?void 0x0:_0x175634[_0x4ee81c(0x18a)]();if(!_0x3c7e05)throw new Error(_0x4ee81c(0x237)+this[_0x4ee81c(0x201)]+_0x4ee81c(0x189));_0x4cc5fb=_0x3c7e05;}return{'unitId':this[_0x4ee81c(0x1d8)],'subUnitId':_0x4cc5fb,'chartId':this[_0x4ee81c(0x24e)],'range':this['range'],'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x4ee81c(0x1df)],'chartType':this[_0x4ee81c(0x1c0)],'options':this[_0x4ee81c(0x1cc)],'isRowDirection':this[_0x4ee81c(0x1f0)]};}}class _0x184de7{constructor(_0x4f09c5,_0xbb55a1,_0x31e7e1,_0x658923){const _0x18062f=_0x34c02b;_0x29118a(this,_0x18062f(0x1d8)),_0x29118a(this,_0x18062f(0x1e2)),_0x29118a(this,'chartId'),_0x29118a(this,_0x18062f(0x24b)),(this[_0x18062f(0x1d8)]=_0x4f09c5,this[_0x18062f(0x1e2)]=_0xbb55a1,this['chartId']=_0x31e7e1,this[_0x18062f(0x24b)]=_0x658923);}['getChartId'](){const _0x4decec=_0x34c02b;return this[_0x4decec(0x24e)];}[_0x34c02b(0x1b0)](){const _0x5b4c8e=_0x34c02b,_0x2e9d78=this[_0x5b4c8e(0x24b)]['get'](_0x478919[_0x5b4c8e(0x1af)])[_0x5b4c8e(0x20a)](this[_0x5b4c8e(0x24e)]);if(_0x2e9d78)return _0x2e9d78[_0x5b4c8e(0x1ee)]['getRangeInfo']();}['updateRange'](_0x4e004b){const _0x32b540=_0x34c02b;return this[_0x32b540(0x24b)][_0x32b540(0x240)](_0x24e8cb['CommandService'])['executeCommand'](_0x478919['ChartUpdateSourceCommand']['id'],{'unitId':this[_0x32b540(0x1d8)],'chartModelId':this[_0x32b540(0x24e)],'range':_0x4e004b});}[_0x34c02b(0x200)](){const _0x40b27a=_0x34c02b;var _0x5da058;const _0xf2bc2d=this[_0x40b27a(0x24b)][_0x40b27a(0x240)](_0x478919['SheetsChartService'])[_0x40b27a(0x20a)](this[_0x40b27a(0x24e)]);if(_0xf2bc2d)return(_0x5da058=_0xf2bc2d['config'])==null?void 0x0:_0x5da058[_0x40b27a(0x1a8)];}[_0x34c02b(0x247)](){const _0x58c7a7=_0x34c02b;var _0x1ef60a;const _0x1aab1c=this[_0x58c7a7(0x24b)][_0x58c7a7(0x240)](_0x478919[_0x58c7a7(0x1af)])['getChartModel'](this[_0x58c7a7(0x24e)]);if(_0x1aab1c)return(_0x1ef60a=_0x1aab1c[_0x58c7a7(0x215)])==null?void 0x0:_0x1ef60a[_0x58c7a7(0x1ae)];}[_0x34c02b(0x205)](){const _0x7af8c2=_0x34c02b,_0x165e4a=this[_0x7af8c2(0x24b)][_0x7af8c2(0x240)](_0x24e8cb[_0x7af8c2(0x20f)])[_0x7af8c2(0x241)](_0x24e8cb[_0x7af8c2(0x250)]['UNIVER_SHEET']);return new _0x32dcc1(this[_0x7af8c2(0x1d8)],this[_0x7af8c2(0x1e2)],_0x165e4a,this[_0x7af8c2(0x24b)],this[_0x7af8c2(0x24e)]);}}class _0x2e1146 extends _0x44c3e0[_0x34c02b(0x18d)]{async[_0x34c02b(0x1b5)](_0x353b5a){const _0x443818=_0x34c02b;var _0x6a553c,_0x57b935,_0x16b36d;const _0x207a7d=_0x353b5a['unitId']||this[_0x443818(0x253)]()['getUnitId'](),_0x3588eb=_0x353b5a[_0x443818(0x1e2)]||this[_0x443818(0x18a)](),_0x4e8584=_0x353b5a[_0x443818(0x24e)]||_0x24e8cb['generateRandomId'](),_0x4e1868=_0x353b5a[_0x443818(0x1c0)],_0x4c288d=_0x353b5a[_0x443818(0x208)],_0x503a36={'x':_0x353b5a['x'],'y':_0x353b5a['y']},_0x25f071=_0x353b5a[_0x443818(0x234)],_0x35b1ec=_0x353b5a[_0x443818(0x1df)],_0x5561dd=(_0x6a553c=_0x353b5a[_0x443818(0x1cc)])==null?void 0x0:_0x6a553c['backgroundColor'],_0x352496=(_0x57b935=_0x353b5a[_0x443818(0x1cc)])==null?void 0x0:_0x57b935[_0x443818(0x1c8)],_0x1491a7=_0x225769(_0x207a7d,_0x4e8584,_0x4e1868,_0x353b5a[_0x443818(0x1cc)]),_0xa8b011=(_0x16b36d=_0x353b5a[_0x443818(0x24a)])!=null?_0x16b36d:!0x0;if(!_0x4c288d)throw new Error('Range\x20is\x20required\x20to\x20insert\x20a\x20chart');return await this[_0x443818(0x1b8)][_0x443818(0x258)](_0x4878c2[_0x443818(0x1aa)]['id'],{'unitId':_0x207a7d,'subUnitId':_0x3588eb,'chartId':_0x4e8584,'chartType':_0x4e1868,'range':_0x4c288d,'position':_0x503a36,'width':_0x25f071,'height':_0x35b1ec,'backgroundColor':_0x5561dd,'borderColor':_0x352496,'config':_0x1491a7,'isRowDirection':_0xa8b011}),new _0x184de7(_0x207a7d,_0x3588eb,_0x4e8584,this[_0x443818(0x24b)]);}[_0x34c02b(0x1d7)](_0x1fa157){const _0x2b8247=_0x34c02b,{unitId:_0x500c9c,chartId:_0x2eff61,chartType:_0x595d0e,options:_0x484b99}=_0x1fa157,_0x3e50a8=_0x225769(_0x500c9c,_0x2eff61,_0x595d0e,_0x484b99);this[_0x2b8247(0x1b8)][_0x2b8247(0x258)](_0x478919['ChartUpdateConfigCommand']['id'],_0x3e50a8);}[_0x34c02b(0x226)](_0x4c53df){const _0x358d57=_0x34c02b;if(_0x4c53df)return new _0x32dcc1(_0x4c53df[_0x358d57(0x1d8)],_0x4c53df[_0x358d57(0x1e2)],this['_workbook'],this[_0x358d57(0x24b)],_0x4c53df[_0x358d57(0x24e)]);const _0x43d7ca=this[_0x358d57(0x253)]()[_0x358d57(0x19d)](),_0x2c8afc=this['getSheetId']();return new _0x32dcc1(_0x43d7ca,_0x2c8afc,this[_0x358d57(0x1ce)],this[_0x358d57(0x24b)]);}[_0x34c02b(0x22c)](){const _0x3d3a9d=_0x34c02b,_0x424484=this[_0x3d3a9d(0x24b)][_0x3d3a9d(0x240)](_0x478919[_0x3d3a9d(0x1af)]),_0x493fa2=this[_0x3d3a9d(0x253)]()[_0x3d3a9d(0x19d)]();return _0x424484[_0x3d3a9d(0x1e1)](_0x493fa2,this[_0x3d3a9d(0x18a)]())[_0x3d3a9d(0x20e)](_0x179e29=>new _0x184de7(_0x493fa2,this['getSheetId'](),_0x179e29['id'],this[_0x3d3a9d(0x24b)]));}[_0x34c02b(0x255)](_0x4a3cf4){const _0x20835b=_0x34c02b,_0x4aeeef=_0x4a3cf4[_0x20835b(0x1d8)],_0x569038=_0x4a3cf4['subUnitId'],_0x46e58c=_0x4a3cf4[_0x20835b(0x24e)],_0x5794ad={'unitId':_0x4aeeef,'drawings':[{'unitId':_0x4aeeef,'subUnitId':_0x569038,'drawingId':_0x46e58c,'drawingType':_0x24e8cb['DrawingTypeEnum'][_0x20835b(0x1c2)]}]};return this[_0x20835b(0x1b8)][_0x20835b(0x258)](_0x4f9995[_0x20835b(0x217)]['id'],_0x5794ad);}[_0x34c02b(0x193)](_0x57eba8,_0x449854){const _0x3010be=_0x34c02b;this['_injector'][_0x3010be(0x240)](_0x478919[_0x3010be(0x23e)])[_0x3010be(0x1be)](_0x57eba8,_0x449854);}}_0x44c3e0[_0x34c02b(0x18d)][_0x34c02b(0x19b)](_0x2e1146);class _0x3fa83a extends _0x32dcc1{constructor(_0x2cb5ed,_0x3a80a6,_0x67c54,_0x5ae200,_0x5a5d44){const _0xe066d6=_0x34c02b;super(_0x2cb5ed,_0x3a80a6,_0x67c54,_0x5ae200,_0x5a5d44),_0x29118a(this,_0xe066d6(0x1c7)),_0x29118a(this,_0xe066d6(0x1ba)),_0x29118a(this,_0xe066d6(0x1ab)),_0x29118a(this,_0xe066d6(0x1ff));}['setLineStyle'](_0x5b92cb){return this['lineStyle']=_0x5b92cb,this;}['setDataPointShape'](_0x5ab72e){return this['dataPointShape']=_0x5ab72e,this;}[_0x34c02b(0x19e)](_0x173a25){return this['dataPointColor']=_0x173a25,this;}['setDataPointSize'](_0x606f0){const _0x19bfa1=_0x34c02b;return this[_0x19bfa1(0x1ff)]=_0x606f0,this;}['build'](){const _0x55396b=_0x34c02b,_0x227bfb=super['build']();_0x227bfb[_0x55396b(0x1c0)]=_0x478919[_0x55396b(0x246)][_0x55396b(0x1f4)];const _0x1fa632=_0x227bfb[_0x55396b(0x1cc)]||{};return _0x2b7ad4(_0x1fa632,_0x55396b(0x1c9),this[_0x55396b(0x1c7)]),_0x2b7ad4(_0x1fa632,'allSeriesStyle.point.shape',this[_0x55396b(0x1ba)]),_0x2b7ad4(_0x1fa632,'allSeriesStyle.point.color',this[_0x55396b(0x1ab)]),_0x2b7ad4(_0x1fa632,_0x55396b(0x196),this[_0x55396b(0x1ff)]),_0x227bfb[_0x55396b(0x1cc)]=_0x1fa632,_0x227bfb;}}class _0x2adac6 extends _0x32dcc1{['asLineChart'](){const _0x230e6d=_0x34c02b;return new _0x3fa83a(this[_0x230e6d(0x1d8)],this['subUnitId'],this[_0x230e6d(0x1ce)],this[_0x230e6d(0x24b)],this[_0x230e6d(0x24e)]);}}_0x32dcc1['extend'](_0x2adac6);class _0x5cc946 extends _0x32dcc1{constructor(_0x5cb679,_0x23a5a6,_0x18eaad,_0x221376,_0x5a9542){const _0x2065b3=_0x34c02b;super(_0x5cb679,_0x23a5a6,_0x18eaad,_0x221376,_0x5a9542),_0x29118a(this,_0x2065b3(0x195)),_0x29118a(this,'borderColor'),_0x29118a(this,_0x2065b3(0x1b7)),_0x29118a(this,'isHalfPie'),_0x29118a(this,_0x2065b3(0x20d)),_0x29118a(this,_0x2065b3(0x209));}[_0x34c02b(0x187)](_0x114599){const _0x2655a6=_0x34c02b;return this[_0x2655a6(0x195)]=_0x114599,this;}[_0x34c02b(0x23a)](_0x2fc0b2){const _0x3712f1=_0x34c02b;return this[_0x3712f1(0x1c8)]=_0x2fc0b2,this;}[_0x34c02b(0x1fe)](_0x10c846){const _0x41c0ce=_0x34c02b;return this[_0x41c0ce(0x1b7)]=_0x10c846,this;}['setIsHalfPie'](_0x30a40a){const _0x2d85a9=_0x34c02b;return this[_0x2d85a9(0x252)]=_0x30a40a,this;}['setRosePie'](_0x24a98a){return this['rosePie']=_0x24a98a,this;}['setShowLabelLine'](_0x41b0ee){return this['showLabelLine']=_0x41b0ee,this;}[_0x34c02b(0x214)](){const _0x375007=_0x34c02b,_0x5e1117=super[_0x375007(0x214)]();_0x5e1117[_0x375007(0x1c0)]=_0x478919['ChartTypeBits'][_0x375007(0x1b6)];const _0xdf9d88=_0x5e1117[_0x375007(0x1cc)]||{};return _0x2b7ad4(_0xdf9d88,_0x375007(0x212),this[_0x375007(0x195)]),_0x2b7ad4(_0xdf9d88,_0x375007(0x1c4),this[_0x375007(0x1c8)]),_0x2b7ad4(_0xdf9d88,'pie.hasPaddingAngle',this[_0x375007(0x1b7)]),_0x2b7ad4(_0xdf9d88,_0x375007(0x238),this[_0x375007(0x252)]),_0x2b7ad4(_0xdf9d88,_0x375007(0x224),this[_0x375007(0x20d)]),_0x2b7ad4(_0xdf9d88,'pie.showLabelLine',this['showLabelLine']),_0x5e1117[_0x375007(0x1cc)]=_0xdf9d88,_0x5e1117;}}class _0x4bc65a extends _0x32dcc1{['asPieChart'](){const _0x1e1679=_0x34c02b;return new _0x5cc946(this[_0x1e1679(0x1d8)],this['subUnitId'],this[_0x1e1679(0x1ce)],this[_0x1e1679(0x24b)],this[_0x1e1679(0x24e)]);}}_0x32dcc1[_0x34c02b(0x19b)](_0x4bc65a);class _0x409846 extends _0x32dcc1{constructor(_0x265a22,_0xb54cbb,_0x69fcb9,_0x1158aa,_0x444878){const _0x6c5e73=_0x34c02b;super(_0x265a22,_0xb54cbb,_0x69fcb9,_0x1158aa,_0x444878),_0x29118a(this,'shape'),_0x29118a(this,_0x6c5e73(0x18b));}[_0x34c02b(0x244)](_0x4b9c01){const _0x325505=_0x34c02b;return this[_0x325505(0x1a7)]=_0x4b9c01,this;}[_0x34c02b(0x1e3)](_0x1d2136){const _0x5a3e58=_0x34c02b;return this[_0x5a3e58(0x18b)]=_0x1d2136,this;}[_0x34c02b(0x214)](){const _0xcbed32=_0x34c02b,_0x26c589=super[_0xcbed32(0x214)]();_0x26c589['chartType']=_0x478919[_0xcbed32(0x246)][_0xcbed32(0x1f3)];const _0x106cf8=_0x26c589['options']||{};return _0x2b7ad4(_0x106cf8,_0xcbed32(0x219),this[_0xcbed32(0x1a7)]),_0x2b7ad4(_0x106cf8,_0xcbed32(0x1d5),this[_0xcbed32(0x18b)]),_0x26c589['options']=_0x106cf8,_0x26c589;}}class _0x4e4c1e extends _0x32dcc1{['asRadarChart'](){const _0x477cb1=_0x34c02b;return new _0x409846(this[_0x477cb1(0x1d8)],this[_0x477cb1(0x1e2)],this['_workbook'],this[_0x477cb1(0x24b)],this[_0x477cb1(0x24e)]);}}_0x32dcc1[_0x34c02b(0x19b)](_0x4e4c1e),_0x3f29e0[_0x34c02b(0x1fb)]=_0x184de7,_0x3f29e0[_0x34c02b(0x1d4)]=_0x32dcc1,_0x3f29e0[_0x34c02b(0x1f2)]=_0x3fa83a,_0x3f29e0['PieChartBuilder']=_0x5cc946,_0x3f29e0[_0x34c02b(0x18c)]=_0x409846,Object[_0x34c02b(0x20b)](_0x3f29e0,Symbol[_0x34c02b(0x242)],{'value':_0x34c02b(0x254)});}));
|