@v587d/capital-generation 2.29.0 → 2.30.1
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/CHANGELOG.md +58 -0
- package/README.md +3 -3
- package/THIRD_PARTY_NOTICES.md +16 -0
- package/automation/package.json +1 -1
- package/chart-ui/package.json +1 -1
- package/config/package.json +1 -1
- package/lib/collector-runtime.js +56 -1
- package/lib/data-collector/catalog-taxonomy.d.ts +1 -1
- package/lib/data-collector/catalog-taxonomy.js +33 -0
- package/lib/data-collector/dataset-tools.js +4 -2
- package/lib/data-collector/describe.d.ts +2 -0
- package/lib/data-collector/describe.js +2 -0
- package/lib/data-collector/store.d.ts +11 -0
- package/lib/data-collector/store.js +80 -1
- package/lib/data-collector/tools.d.ts +1 -1
- package/lib/data-collector/tools.js +10 -9
- package/lib/python-runtime/errors.d.ts +1 -1
- package/lib/python-runtime/errors.js +2 -0
- package/lib/python-runtime/manager.d.ts +28 -1
- package/lib/python-runtime/manager.js +141 -5
- package/lib/python-runtime/probe.d.ts +24 -0
- package/lib/python-runtime/probe.js +66 -50
- package/lib/sources/csindex-http.d.ts +4 -0
- package/lib/sources/csindex-http.js +233 -0
- package/lib/sources/eastmoney-http.js +1504 -1
- package/lib/sources/fuyao-rest.js +168 -8
- package/lib/sources/official-http.d.ts +4 -0
- package/lib/sources/official-http.js +477 -0
- package/lib/sources/python-remote.d.ts +25 -0
- package/lib/sources/python-remote.js +461 -0
- package/lib/sources/sina-http.d.ts +2 -0
- package/lib/sources/sina-http.js +484 -0
- package/lib/sources/tencent-http.js +23 -8
- package/lib/sources/ths-http.d.ts +2 -0
- package/lib/sources/ths-http.js +517 -0
- package/lib/time/tools.js +19 -0
- package/lib/web-retriever/local-fetch.d.ts +1 -1
- package/lib/web-retriever/local-fetch.js +1 -1
- package/lib/web-retriever/sources.d.ts +7 -0
- package/lib/web-retriever/sources.js +46 -21
- package/lib/web-retriever/throttle.d.ts +8 -0
- package/lib/web-retriever/throttle.js +13 -0
- package/lib/web-retriever/tools.js +1 -1
- package/lib/web-retriever/wind-client.d.ts +1 -1
- package/lib/web-retriever/wind-client.js +1 -1
- package/package.json +1 -1
- package/preset/capital-generation/agent.patch.yml +7 -5
- package/preset/capital-generation/skills/capital-data-protocol/SKILL.md +16 -16
- package/python/scripts/baostock_stock_basic.py +129 -0
- package/python/scripts/baostock_valuation_history.py +141 -0
- package/python/scripts/pbc_social_financing.py +291 -0
- package/python/vendor/baostock/LICENSE +19 -0
- package/python/vendor/baostock/__init__.py +42 -0
- package/python/vendor/baostock/common/__init__.py +0 -0
- package/python/vendor/baostock/common/contants.py +189 -0
- package/python/vendor/baostock/common/context.py +4 -0
- package/python/vendor/baostock/corpreport/__init__.py +0 -0
- package/python/vendor/baostock/corpreport/corp_performance.py +202 -0
- package/python/vendor/baostock/data/__init__.py +0 -0
- package/python/vendor/baostock/data/messageheader.py +17 -0
- package/python/vendor/baostock/data/msg.py +21 -0
- package/python/vendor/baostock/data/resultset.py +200 -0
- package/python/vendor/baostock/demo/__init__.py +0 -0
- package/python/vendor/baostock/demo/demo_A_stock_5mk-data.py +34 -0
- package/python/vendor/baostock/demo/demo_A_stock_k_data.py +36 -0
- package/python/vendor/baostock/demo/demo_AllStock.py +27 -0
- package/python/vendor/baostock/demo/demo_Balance_data.py +22 -0
- package/python/vendor/baostock/demo/demo_CashFlow_data.py +22 -0
- package/python/vendor/baostock/demo/demo_Dividend_data.py +35 -0
- package/python/vendor/baostock/demo/demo_Dupont_data.py +25 -0
- package/python/vendor/baostock/demo/demo_Forecast_report.py +24 -0
- package/python/vendor/baostock/demo/demo_Growth_data.py +22 -0
- package/python/vendor/baostock/demo/demo_Index_k_data.py +39 -0
- package/python/vendor/baostock/demo/demo_Operation_data.py +22 -0
- package/python/vendor/baostock/demo/demo_PerformanceExpress_report.py +25 -0
- package/python/vendor/baostock/demo/demo_Profit_data.py +22 -0
- package/python/vendor/baostock/demo/demo_TradeDates.py +27 -0
- package/python/vendor/baostock/demo/demo_adjust_factor_data.py +23 -0
- package/python/vendor/baostock/demo/demo_assignDayData.py +23 -0
- package/python/vendor/baostock/demo/demo_daily_adjust_factor_data.py +28 -0
- package/python/vendor/baostock/demo/demo_daily_k_4_AStock.py +28 -0
- package/python/vendor/baostock/demo/demo_daily_k_4_ETF.py +28 -0
- package/python/vendor/baostock/demo/demo_depositRate_data.py +26 -0
- package/python/vendor/baostock/demo/demo_hs300_stocks.py +26 -0
- package/python/vendor/baostock/demo/demo_loanRate_data.py +26 -0
- package/python/vendor/baostock/demo/demo_moneySupplyDataMonth_data.py +26 -0
- package/python/vendor/baostock/demo/demo_moneySupplyDataYear_data.py +26 -0
- package/python/vendor/baostock/demo/demo_requiredReserveRatio_data.py +26 -0
- package/python/vendor/baostock/demo/demo_set_API_key.py +37 -0
- package/python/vendor/baostock/demo/demo_stockBasic_data.py +27 -0
- package/python/vendor/baostock/demo/demo_stock_Valuation_indicator_data.py +34 -0
- package/python/vendor/baostock/demo/demo_stock_industry.py +26 -0
- package/python/vendor/baostock/demo/demo_sz50stocks.py +26 -0
- package/python/vendor/baostock/demo/demo_zz500_stock.py +26 -0
- package/python/vendor/baostock/evaluation/__init__.py +0 -0
- package/python/vendor/baostock/evaluation/season_index.py +758 -0
- package/python/vendor/baostock/login/__init__.py +0 -0
- package/python/vendor/baostock/login/loginout.py +230 -0
- package/python/vendor/baostock/macroscopic/__init__.py +0 -0
- package/python/vendor/baostock/macroscopic/economic_data.py +723 -0
- package/python/vendor/baostock/metadata/__init__.py +0 -0
- package/python/vendor/baostock/metadata/stock_metadata.py +207 -0
- package/python/vendor/baostock/security/__init__.py +0 -0
- package/python/vendor/baostock/security/history.py +265 -0
- package/python/vendor/baostock/security/sectorinfo.py +1024 -0
- package/python/vendor/baostock/util/__init__.py +0 -0
- package/python/vendor/baostock/util/socketutil.py +97 -0
- package/python/vendor/baostock/util/stringutil.py +83 -0
- package/python/vendor/et_xmlfile/LICENSE +23 -0
- package/python/vendor/et_xmlfile/LICENSE.python +298 -0
- package/python/vendor/et_xmlfile/__init__.py +8 -0
- package/python/vendor/et_xmlfile/incremental_tree.py +917 -0
- package/python/vendor/et_xmlfile/xmlfile.py +158 -0
- package/python/vendor/openpyxl/LICENSE +23 -0
- package/python/vendor/openpyxl/__init__.py +19 -0
- package/python/vendor/openpyxl/_constants.py +13 -0
- package/python/vendor/openpyxl/cell/__init__.py +4 -0
- package/python/vendor/openpyxl/cell/_writer.py +136 -0
- package/python/vendor/openpyxl/cell/cell.py +332 -0
- package/python/vendor/openpyxl/cell/read_only.py +136 -0
- package/python/vendor/openpyxl/cell/rich_text.py +202 -0
- package/python/vendor/openpyxl/cell/text.py +184 -0
- package/python/vendor/openpyxl/chart/_3d.py +105 -0
- package/python/vendor/openpyxl/chart/__init__.py +19 -0
- package/python/vendor/openpyxl/chart/_chart.py +199 -0
- package/python/vendor/openpyxl/chart/area_chart.py +106 -0
- package/python/vendor/openpyxl/chart/axis.py +401 -0
- package/python/vendor/openpyxl/chart/bar_chart.py +144 -0
- package/python/vendor/openpyxl/chart/bubble_chart.py +67 -0
- package/python/vendor/openpyxl/chart/chartspace.py +195 -0
- package/python/vendor/openpyxl/chart/data_source.py +246 -0
- package/python/vendor/openpyxl/chart/descriptors.py +43 -0
- package/python/vendor/openpyxl/chart/error_bar.py +62 -0
- package/python/vendor/openpyxl/chart/label.py +127 -0
- package/python/vendor/openpyxl/chart/layout.py +74 -0
- package/python/vendor/openpyxl/chart/legend.py +75 -0
- package/python/vendor/openpyxl/chart/line_chart.py +129 -0
- package/python/vendor/openpyxl/chart/marker.py +90 -0
- package/python/vendor/openpyxl/chart/picture.py +35 -0
- package/python/vendor/openpyxl/chart/pie_chart.py +177 -0
- package/python/vendor/openpyxl/chart/pivot.py +65 -0
- package/python/vendor/openpyxl/chart/plotarea.py +162 -0
- package/python/vendor/openpyxl/chart/print_settings.py +57 -0
- package/python/vendor/openpyxl/chart/radar_chart.py +55 -0
- package/python/vendor/openpyxl/chart/reader.py +32 -0
- package/python/vendor/openpyxl/chart/reference.py +124 -0
- package/python/vendor/openpyxl/chart/scatter_chart.py +53 -0
- package/python/vendor/openpyxl/chart/series.py +197 -0
- package/python/vendor/openpyxl/chart/series_factory.py +41 -0
- package/python/vendor/openpyxl/chart/shapes.py +89 -0
- package/python/vendor/openpyxl/chart/stock_chart.py +54 -0
- package/python/vendor/openpyxl/chart/surface_chart.py +119 -0
- package/python/vendor/openpyxl/chart/text.py +78 -0
- package/python/vendor/openpyxl/chart/title.py +76 -0
- package/python/vendor/openpyxl/chart/trendline.py +98 -0
- package/python/vendor/openpyxl/chart/updown_bars.py +31 -0
- package/python/vendor/openpyxl/chartsheet/__init__.py +3 -0
- package/python/vendor/openpyxl/chartsheet/chartsheet.py +107 -0
- package/python/vendor/openpyxl/chartsheet/custom.py +61 -0
- package/python/vendor/openpyxl/chartsheet/properties.py +28 -0
- package/python/vendor/openpyxl/chartsheet/protection.py +41 -0
- package/python/vendor/openpyxl/chartsheet/publish.py +58 -0
- package/python/vendor/openpyxl/chartsheet/relation.py +97 -0
- package/python/vendor/openpyxl/chartsheet/views.py +51 -0
- package/python/vendor/openpyxl/comments/__init__.py +4 -0
- package/python/vendor/openpyxl/comments/author.py +21 -0
- package/python/vendor/openpyxl/comments/comment_sheet.py +211 -0
- package/python/vendor/openpyxl/comments/comments.py +62 -0
- package/python/vendor/openpyxl/comments/shape_writer.py +112 -0
- package/python/vendor/openpyxl/compat/__init__.py +54 -0
- package/python/vendor/openpyxl/compat/abc.py +8 -0
- package/python/vendor/openpyxl/compat/numbers.py +43 -0
- package/python/vendor/openpyxl/compat/product.py +17 -0
- package/python/vendor/openpyxl/compat/singleton.py +40 -0
- package/python/vendor/openpyxl/compat/strings.py +25 -0
- package/python/vendor/openpyxl/descriptors/__init__.py +58 -0
- package/python/vendor/openpyxl/descriptors/base.py +272 -0
- package/python/vendor/openpyxl/descriptors/container.py +41 -0
- package/python/vendor/openpyxl/descriptors/excel.py +112 -0
- package/python/vendor/openpyxl/descriptors/namespace.py +12 -0
- package/python/vendor/openpyxl/descriptors/nested.py +129 -0
- package/python/vendor/openpyxl/descriptors/sequence.py +136 -0
- package/python/vendor/openpyxl/descriptors/serialisable.py +240 -0
- package/python/vendor/openpyxl/descriptors/slots.py +18 -0
- package/python/vendor/openpyxl/drawing/__init__.py +4 -0
- package/python/vendor/openpyxl/drawing/colors.py +435 -0
- package/python/vendor/openpyxl/drawing/connector.py +144 -0
- package/python/vendor/openpyxl/drawing/drawing.py +92 -0
- package/python/vendor/openpyxl/drawing/effect.py +407 -0
- package/python/vendor/openpyxl/drawing/fill.py +425 -0
- package/python/vendor/openpyxl/drawing/geometry.py +584 -0
- package/python/vendor/openpyxl/drawing/graphic.py +177 -0
- package/python/vendor/openpyxl/drawing/image.py +65 -0
- package/python/vendor/openpyxl/drawing/line.py +144 -0
- package/python/vendor/openpyxl/drawing/picture.py +144 -0
- package/python/vendor/openpyxl/drawing/properties.py +174 -0
- package/python/vendor/openpyxl/drawing/relation.py +17 -0
- package/python/vendor/openpyxl/drawing/spreadsheet_drawing.py +382 -0
- package/python/vendor/openpyxl/drawing/text.py +717 -0
- package/python/vendor/openpyxl/drawing/xdr.py +33 -0
- package/python/vendor/openpyxl/formatting/__init__.py +3 -0
- package/python/vendor/openpyxl/formatting/formatting.py +114 -0
- package/python/vendor/openpyxl/formatting/rule.py +291 -0
- package/python/vendor/openpyxl/formula/__init__.py +3 -0
- package/python/vendor/openpyxl/formula/tokenizer.py +446 -0
- package/python/vendor/openpyxl/formula/translate.py +166 -0
- package/python/vendor/openpyxl/packaging/__init__.py +3 -0
- package/python/vendor/openpyxl/packaging/core.py +115 -0
- package/python/vendor/openpyxl/packaging/custom.py +289 -0
- package/python/vendor/openpyxl/packaging/extended.py +137 -0
- package/python/vendor/openpyxl/packaging/interface.py +56 -0
- package/python/vendor/openpyxl/packaging/manifest.py +194 -0
- package/python/vendor/openpyxl/packaging/relationship.py +158 -0
- package/python/vendor/openpyxl/packaging/workbook.py +185 -0
- package/python/vendor/openpyxl/pivot/__init__.py +1 -0
- package/python/vendor/openpyxl/pivot/cache.py +965 -0
- package/python/vendor/openpyxl/pivot/fields.py +326 -0
- package/python/vendor/openpyxl/pivot/record.py +111 -0
- package/python/vendor/openpyxl/pivot/table.py +1261 -0
- package/python/vendor/openpyxl/reader/__init__.py +1 -0
- package/python/vendor/openpyxl/reader/drawings.py +71 -0
- package/python/vendor/openpyxl/reader/excel.py +349 -0
- package/python/vendor/openpyxl/reader/strings.py +44 -0
- package/python/vendor/openpyxl/reader/workbook.py +133 -0
- package/python/vendor/openpyxl/styles/__init__.py +11 -0
- package/python/vendor/openpyxl/styles/alignment.py +62 -0
- package/python/vendor/openpyxl/styles/borders.py +103 -0
- package/python/vendor/openpyxl/styles/builtins.py +1397 -0
- package/python/vendor/openpyxl/styles/cell_style.py +206 -0
- package/python/vendor/openpyxl/styles/colors.py +172 -0
- package/python/vendor/openpyxl/styles/differential.py +95 -0
- package/python/vendor/openpyxl/styles/fills.py +224 -0
- package/python/vendor/openpyxl/styles/fonts.py +113 -0
- package/python/vendor/openpyxl/styles/named_styles.py +282 -0
- package/python/vendor/openpyxl/styles/numbers.py +200 -0
- package/python/vendor/openpyxl/styles/protection.py +17 -0
- package/python/vendor/openpyxl/styles/proxy.py +62 -0
- package/python/vendor/openpyxl/styles/styleable.py +151 -0
- package/python/vendor/openpyxl/styles/stylesheet.py +274 -0
- package/python/vendor/openpyxl/styles/table.py +94 -0
- package/python/vendor/openpyxl/utils/__init__.py +17 -0
- package/python/vendor/openpyxl/utils/bound_dictionary.py +26 -0
- package/python/vendor/openpyxl/utils/cell.py +240 -0
- package/python/vendor/openpyxl/utils/dataframe.py +87 -0
- package/python/vendor/openpyxl/utils/datetime.py +140 -0
- package/python/vendor/openpyxl/utils/escape.py +43 -0
- package/python/vendor/openpyxl/utils/exceptions.py +34 -0
- package/python/vendor/openpyxl/utils/formulas.py +24 -0
- package/python/vendor/openpyxl/utils/indexed_list.py +49 -0
- package/python/vendor/openpyxl/utils/inference.py +60 -0
- package/python/vendor/openpyxl/utils/protection.py +22 -0
- package/python/vendor/openpyxl/utils/units.py +108 -0
- package/python/vendor/openpyxl/workbook/__init__.py +4 -0
- package/python/vendor/openpyxl/workbook/_writer.py +197 -0
- package/python/vendor/openpyxl/workbook/child.py +166 -0
- package/python/vendor/openpyxl/workbook/defined_name.py +189 -0
- package/python/vendor/openpyxl/workbook/external_link/__init__.py +3 -0
- package/python/vendor/openpyxl/workbook/external_link/external.py +190 -0
- package/python/vendor/openpyxl/workbook/external_reference.py +18 -0
- package/python/vendor/openpyxl/workbook/function_group.py +36 -0
- package/python/vendor/openpyxl/workbook/properties.py +151 -0
- package/python/vendor/openpyxl/workbook/protection.py +163 -0
- package/python/vendor/openpyxl/workbook/smart_tags.py +56 -0
- package/python/vendor/openpyxl/workbook/views.py +155 -0
- package/python/vendor/openpyxl/workbook/web.py +98 -0
- package/python/vendor/openpyxl/workbook/workbook.py +438 -0
- package/python/vendor/openpyxl/worksheet/__init__.py +1 -0
- package/python/vendor/openpyxl/worksheet/_read_only.py +190 -0
- package/python/vendor/openpyxl/worksheet/_reader.py +472 -0
- package/python/vendor/openpyxl/worksheet/_write_only.py +160 -0
- package/python/vendor/openpyxl/worksheet/_writer.py +390 -0
- package/python/vendor/openpyxl/worksheet/cell_range.py +512 -0
- package/python/vendor/openpyxl/worksheet/cell_watch.py +34 -0
- package/python/vendor/openpyxl/worksheet/controls.py +107 -0
- package/python/vendor/openpyxl/worksheet/copier.py +70 -0
- package/python/vendor/openpyxl/worksheet/custom.py +35 -0
- package/python/vendor/openpyxl/worksheet/datavalidation.py +202 -0
- package/python/vendor/openpyxl/worksheet/dimensions.py +306 -0
- package/python/vendor/openpyxl/worksheet/drawing.py +14 -0
- package/python/vendor/openpyxl/worksheet/errors.py +93 -0
- package/python/vendor/openpyxl/worksheet/filters.py +486 -0
- package/python/vendor/openpyxl/worksheet/formula.py +51 -0
- package/python/vendor/openpyxl/worksheet/header_footer.py +270 -0
- package/python/vendor/openpyxl/worksheet/hyperlink.py +46 -0
- package/python/vendor/openpyxl/worksheet/merge.py +141 -0
- package/python/vendor/openpyxl/worksheet/ole.py +133 -0
- package/python/vendor/openpyxl/worksheet/page.py +174 -0
- package/python/vendor/openpyxl/worksheet/pagebreak.py +94 -0
- package/python/vendor/openpyxl/worksheet/picture.py +8 -0
- package/python/vendor/openpyxl/worksheet/print_settings.py +184 -0
- package/python/vendor/openpyxl/worksheet/properties.py +97 -0
- package/python/vendor/openpyxl/worksheet/protection.py +120 -0
- package/python/vendor/openpyxl/worksheet/related.py +17 -0
- package/python/vendor/openpyxl/worksheet/scenario.py +105 -0
- package/python/vendor/openpyxl/worksheet/smart_tag.py +78 -0
- package/python/vendor/openpyxl/worksheet/table.py +385 -0
- package/python/vendor/openpyxl/worksheet/views.py +155 -0
- package/python/vendor/openpyxl/worksheet/worksheet.py +907 -0
- package/python/vendor/openpyxl/writer/__init__.py +1 -0
- package/python/vendor/openpyxl/writer/excel.py +295 -0
- package/python/vendor/openpyxl/writer/theme.py +291 -0
- package/python/vendor/openpyxl/xml/__init__.py +42 -0
- package/python/vendor/openpyxl/xml/constants.py +129 -0
- package/python/vendor/openpyxl/xml/functions.py +87 -0
- package/watchlist/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
4
|
+
from openpyxl.descriptors import (
|
|
5
|
+
Typed,
|
|
6
|
+
Float,
|
|
7
|
+
Set,
|
|
8
|
+
Alias
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from openpyxl.descriptors.excel import ExtensionList
|
|
12
|
+
from openpyxl.descriptors.nested import (
|
|
13
|
+
NestedNoneSet,
|
|
14
|
+
NestedSet,
|
|
15
|
+
NestedBool,
|
|
16
|
+
NestedFloat,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
from .data_source import NumDataSource
|
|
20
|
+
from .shapes import GraphicalProperties
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ErrorBars(Serialisable):
|
|
24
|
+
|
|
25
|
+
tagname = "errBars"
|
|
26
|
+
|
|
27
|
+
errDir = NestedNoneSet(values=(['x', 'y']))
|
|
28
|
+
direction = Alias("errDir")
|
|
29
|
+
errBarType = NestedSet(values=(['both', 'minus', 'plus']))
|
|
30
|
+
style = Alias("errBarType")
|
|
31
|
+
errValType = NestedSet(values=(['cust', 'fixedVal', 'percentage', 'stdDev', 'stdErr']))
|
|
32
|
+
size = Alias("errValType")
|
|
33
|
+
noEndCap = NestedBool(nested=True, allow_none=True)
|
|
34
|
+
plus = Typed(expected_type=NumDataSource, allow_none=True)
|
|
35
|
+
minus = Typed(expected_type=NumDataSource, allow_none=True)
|
|
36
|
+
val = NestedFloat(allow_none=True)
|
|
37
|
+
spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
|
|
38
|
+
graphicalProperties = Alias("spPr")
|
|
39
|
+
extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
|
40
|
+
|
|
41
|
+
__elements__ = ('errDir','errBarType', 'errValType', 'noEndCap','minus', 'plus', 'val', 'spPr')
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def __init__(self,
|
|
45
|
+
errDir=None,
|
|
46
|
+
errBarType="both",
|
|
47
|
+
errValType="fixedVal",
|
|
48
|
+
noEndCap=None,
|
|
49
|
+
plus=None,
|
|
50
|
+
minus=None,
|
|
51
|
+
val=None,
|
|
52
|
+
spPr=None,
|
|
53
|
+
extLst=None,
|
|
54
|
+
):
|
|
55
|
+
self.errDir = errDir
|
|
56
|
+
self.errBarType = errBarType
|
|
57
|
+
self.errValType = errValType
|
|
58
|
+
self.noEndCap = noEndCap
|
|
59
|
+
self.plus = plus
|
|
60
|
+
self.minus = minus
|
|
61
|
+
self.val = val
|
|
62
|
+
self.spPr = spPr
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
4
|
+
from openpyxl.descriptors import (
|
|
5
|
+
Sequence,
|
|
6
|
+
Alias,
|
|
7
|
+
Typed
|
|
8
|
+
)
|
|
9
|
+
from openpyxl.descriptors.excel import ExtensionList
|
|
10
|
+
from openpyxl.descriptors.nested import (
|
|
11
|
+
NestedNoneSet,
|
|
12
|
+
NestedBool,
|
|
13
|
+
NestedString,
|
|
14
|
+
NestedInteger,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
from .shapes import GraphicalProperties
|
|
18
|
+
from .text import RichText
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class _DataLabelBase(Serialisable):
|
|
22
|
+
|
|
23
|
+
numFmt = NestedString(allow_none=True, attribute="formatCode")
|
|
24
|
+
spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
|
|
25
|
+
graphicalProperties = Alias('spPr')
|
|
26
|
+
txPr = Typed(expected_type=RichText, allow_none=True)
|
|
27
|
+
textProperties = Alias('txPr')
|
|
28
|
+
dLblPos = NestedNoneSet(values=['bestFit', 'b', 'ctr', 'inBase', 'inEnd',
|
|
29
|
+
'l', 'outEnd', 'r', 't'])
|
|
30
|
+
position = Alias('dLblPos')
|
|
31
|
+
showLegendKey = NestedBool(allow_none=True)
|
|
32
|
+
showVal = NestedBool(allow_none=True)
|
|
33
|
+
showCatName = NestedBool(allow_none=True)
|
|
34
|
+
showSerName = NestedBool(allow_none=True)
|
|
35
|
+
showPercent = NestedBool(allow_none=True)
|
|
36
|
+
showBubbleSize = NestedBool(allow_none=True)
|
|
37
|
+
showLeaderLines = NestedBool(allow_none=True)
|
|
38
|
+
separator = NestedString(allow_none=True)
|
|
39
|
+
extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
|
40
|
+
|
|
41
|
+
__elements__ = ("numFmt", "spPr", "txPr", "dLblPos", "showLegendKey",
|
|
42
|
+
"showVal", "showCatName", "showSerName", "showPercent", "showBubbleSize",
|
|
43
|
+
"showLeaderLines", "separator")
|
|
44
|
+
|
|
45
|
+
def __init__(self,
|
|
46
|
+
numFmt=None,
|
|
47
|
+
spPr=None,
|
|
48
|
+
txPr=None,
|
|
49
|
+
dLblPos=None,
|
|
50
|
+
showLegendKey=None,
|
|
51
|
+
showVal=None,
|
|
52
|
+
showCatName=None,
|
|
53
|
+
showSerName=None,
|
|
54
|
+
showPercent=None,
|
|
55
|
+
showBubbleSize=None,
|
|
56
|
+
showLeaderLines=None,
|
|
57
|
+
separator=None,
|
|
58
|
+
extLst=None,
|
|
59
|
+
):
|
|
60
|
+
self.numFmt = numFmt
|
|
61
|
+
self.spPr = spPr
|
|
62
|
+
self.txPr = txPr
|
|
63
|
+
self.dLblPos = dLblPos
|
|
64
|
+
self.showLegendKey = showLegendKey
|
|
65
|
+
self.showVal = showVal
|
|
66
|
+
self.showCatName = showCatName
|
|
67
|
+
self.showSerName = showSerName
|
|
68
|
+
self.showPercent = showPercent
|
|
69
|
+
self.showBubbleSize = showBubbleSize
|
|
70
|
+
self.showLeaderLines = showLeaderLines
|
|
71
|
+
self.separator = separator
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class DataLabel(_DataLabelBase):
|
|
75
|
+
|
|
76
|
+
tagname = "dLbl"
|
|
77
|
+
|
|
78
|
+
idx = NestedInteger()
|
|
79
|
+
|
|
80
|
+
numFmt = _DataLabelBase.numFmt
|
|
81
|
+
spPr = _DataLabelBase.spPr
|
|
82
|
+
txPr = _DataLabelBase.txPr
|
|
83
|
+
dLblPos = _DataLabelBase.dLblPos
|
|
84
|
+
showLegendKey = _DataLabelBase.showLegendKey
|
|
85
|
+
showVal = _DataLabelBase.showVal
|
|
86
|
+
showCatName = _DataLabelBase.showCatName
|
|
87
|
+
showSerName = _DataLabelBase.showSerName
|
|
88
|
+
showPercent = _DataLabelBase.showPercent
|
|
89
|
+
showBubbleSize = _DataLabelBase.showBubbleSize
|
|
90
|
+
showLeaderLines = _DataLabelBase.showLeaderLines
|
|
91
|
+
separator = _DataLabelBase.separator
|
|
92
|
+
extLst = _DataLabelBase.extLst
|
|
93
|
+
|
|
94
|
+
__elements__ = ("idx",) + _DataLabelBase.__elements__
|
|
95
|
+
|
|
96
|
+
def __init__(self, idx=0, **kw ):
|
|
97
|
+
self.idx = idx
|
|
98
|
+
super().__init__(**kw)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class DataLabelList(_DataLabelBase):
|
|
102
|
+
|
|
103
|
+
tagname = "dLbls"
|
|
104
|
+
|
|
105
|
+
dLbl = Sequence(expected_type=DataLabel, allow_none=True)
|
|
106
|
+
|
|
107
|
+
delete = NestedBool(allow_none=True)
|
|
108
|
+
numFmt = _DataLabelBase.numFmt
|
|
109
|
+
spPr = _DataLabelBase.spPr
|
|
110
|
+
txPr = _DataLabelBase.txPr
|
|
111
|
+
dLblPos = _DataLabelBase.dLblPos
|
|
112
|
+
showLegendKey = _DataLabelBase.showLegendKey
|
|
113
|
+
showVal = _DataLabelBase.showVal
|
|
114
|
+
showCatName = _DataLabelBase.showCatName
|
|
115
|
+
showSerName = _DataLabelBase.showSerName
|
|
116
|
+
showPercent = _DataLabelBase.showPercent
|
|
117
|
+
showBubbleSize = _DataLabelBase.showBubbleSize
|
|
118
|
+
showLeaderLines = _DataLabelBase.showLeaderLines
|
|
119
|
+
separator = _DataLabelBase.separator
|
|
120
|
+
extLst = _DataLabelBase.extLst
|
|
121
|
+
|
|
122
|
+
__elements__ = ("delete", "dLbl",) + _DataLabelBase.__elements__
|
|
123
|
+
|
|
124
|
+
def __init__(self, dLbl=(), delete=None, **kw):
|
|
125
|
+
self.dLbl = dLbl
|
|
126
|
+
self.delete = delete
|
|
127
|
+
super().__init__(**kw)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
4
|
+
from openpyxl.descriptors import (
|
|
5
|
+
NoneSet,
|
|
6
|
+
Float,
|
|
7
|
+
Typed,
|
|
8
|
+
Alias,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from openpyxl.descriptors.excel import ExtensionList
|
|
12
|
+
from openpyxl.descriptors.nested import (
|
|
13
|
+
NestedNoneSet,
|
|
14
|
+
NestedSet,
|
|
15
|
+
NestedMinMax,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
class ManualLayout(Serialisable):
|
|
19
|
+
|
|
20
|
+
tagname = "manualLayout"
|
|
21
|
+
|
|
22
|
+
layoutTarget = NestedNoneSet(values=(['inner', 'outer']))
|
|
23
|
+
xMode = NestedNoneSet(values=(['edge', 'factor']))
|
|
24
|
+
yMode = NestedNoneSet(values=(['edge', 'factor']))
|
|
25
|
+
wMode = NestedSet(values=(['edge', 'factor']))
|
|
26
|
+
hMode = NestedSet(values=(['edge', 'factor']))
|
|
27
|
+
x = NestedMinMax(min=-1, max=1, allow_none=True)
|
|
28
|
+
y = NestedMinMax(min=-1, max=1, allow_none=True)
|
|
29
|
+
w = NestedMinMax(min=0, max=1, allow_none=True)
|
|
30
|
+
width = Alias('w')
|
|
31
|
+
h = NestedMinMax(min=0, max=1, allow_none=True)
|
|
32
|
+
height = Alias('h')
|
|
33
|
+
extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
|
34
|
+
|
|
35
|
+
__elements__ = ('layoutTarget', 'xMode', 'yMode', 'wMode', 'hMode', 'x',
|
|
36
|
+
'y', 'w', 'h')
|
|
37
|
+
|
|
38
|
+
def __init__(self,
|
|
39
|
+
layoutTarget=None,
|
|
40
|
+
xMode=None,
|
|
41
|
+
yMode=None,
|
|
42
|
+
wMode="factor",
|
|
43
|
+
hMode="factor",
|
|
44
|
+
x=None,
|
|
45
|
+
y=None,
|
|
46
|
+
w=None,
|
|
47
|
+
h=None,
|
|
48
|
+
extLst=None,
|
|
49
|
+
):
|
|
50
|
+
self.layoutTarget = layoutTarget
|
|
51
|
+
self.xMode = xMode
|
|
52
|
+
self.yMode = yMode
|
|
53
|
+
self.wMode = wMode
|
|
54
|
+
self.hMode = hMode
|
|
55
|
+
self.x = x
|
|
56
|
+
self.y = y
|
|
57
|
+
self.w = w
|
|
58
|
+
self.h = h
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class Layout(Serialisable):
|
|
62
|
+
|
|
63
|
+
tagname = "layout"
|
|
64
|
+
|
|
65
|
+
manualLayout = Typed(expected_type=ManualLayout, allow_none=True)
|
|
66
|
+
extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
|
67
|
+
|
|
68
|
+
__elements__ = ('manualLayout',)
|
|
69
|
+
|
|
70
|
+
def __init__(self,
|
|
71
|
+
manualLayout=None,
|
|
72
|
+
extLst=None,
|
|
73
|
+
):
|
|
74
|
+
self.manualLayout = manualLayout
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
4
|
+
from openpyxl.descriptors import (
|
|
5
|
+
Typed,
|
|
6
|
+
Integer,
|
|
7
|
+
Alias,
|
|
8
|
+
Sequence,
|
|
9
|
+
)
|
|
10
|
+
from openpyxl.descriptors.excel import ExtensionList
|
|
11
|
+
from openpyxl.descriptors.nested import (
|
|
12
|
+
NestedBool,
|
|
13
|
+
NestedSet,
|
|
14
|
+
NestedInteger
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
from .layout import Layout
|
|
18
|
+
from .shapes import GraphicalProperties
|
|
19
|
+
from .text import RichText
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class LegendEntry(Serialisable):
|
|
23
|
+
|
|
24
|
+
tagname = "legendEntry"
|
|
25
|
+
|
|
26
|
+
idx = NestedInteger()
|
|
27
|
+
delete = NestedBool()
|
|
28
|
+
txPr = Typed(expected_type=RichText, allow_none=True)
|
|
29
|
+
extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
|
30
|
+
|
|
31
|
+
__elements__ = ('idx', 'delete', 'txPr')
|
|
32
|
+
|
|
33
|
+
def __init__(self,
|
|
34
|
+
idx=0,
|
|
35
|
+
delete=False,
|
|
36
|
+
txPr=None,
|
|
37
|
+
extLst=None,
|
|
38
|
+
):
|
|
39
|
+
self.idx = idx
|
|
40
|
+
self.delete = delete
|
|
41
|
+
self.txPr = txPr
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class Legend(Serialisable):
|
|
45
|
+
|
|
46
|
+
tagname = "legend"
|
|
47
|
+
|
|
48
|
+
legendPos = NestedSet(values=(['b', 'tr', 'l', 'r', 't']))
|
|
49
|
+
position = Alias('legendPos')
|
|
50
|
+
legendEntry = Sequence(expected_type=LegendEntry)
|
|
51
|
+
layout = Typed(expected_type=Layout, allow_none=True)
|
|
52
|
+
overlay = NestedBool(allow_none=True)
|
|
53
|
+
spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
|
|
54
|
+
graphicalProperties = Alias('spPr')
|
|
55
|
+
txPr = Typed(expected_type=RichText, allow_none=True)
|
|
56
|
+
textProperties = Alias('txPr')
|
|
57
|
+
extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
|
58
|
+
|
|
59
|
+
__elements__ = ('legendPos', 'legendEntry', 'layout', 'overlay', 'spPr', 'txPr',)
|
|
60
|
+
|
|
61
|
+
def __init__(self,
|
|
62
|
+
legendPos="r",
|
|
63
|
+
legendEntry=(),
|
|
64
|
+
layout=None,
|
|
65
|
+
overlay=None,
|
|
66
|
+
spPr=None,
|
|
67
|
+
txPr=None,
|
|
68
|
+
extLst=None,
|
|
69
|
+
):
|
|
70
|
+
self.legendPos = legendPos
|
|
71
|
+
self.legendEntry = legendEntry
|
|
72
|
+
self.layout = layout
|
|
73
|
+
self.overlay = overlay
|
|
74
|
+
self.spPr = spPr
|
|
75
|
+
self.txPr = txPr
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
#Autogenerated schema
|
|
2
|
+
from openpyxl.descriptors import (
|
|
3
|
+
Typed,
|
|
4
|
+
Sequence,
|
|
5
|
+
Alias,
|
|
6
|
+
)
|
|
7
|
+
from openpyxl.descriptors.excel import ExtensionList
|
|
8
|
+
from openpyxl.descriptors.nested import (
|
|
9
|
+
NestedSet,
|
|
10
|
+
NestedBool,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from ._chart import ChartBase
|
|
14
|
+
from .updown_bars import UpDownBars
|
|
15
|
+
from .descriptors import NestedGapAmount
|
|
16
|
+
from .axis import TextAxis, NumericAxis, SeriesAxis, ChartLines, _BaseAxis
|
|
17
|
+
from .label import DataLabelList
|
|
18
|
+
from .series import Series
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class _LineChartBase(ChartBase):
|
|
22
|
+
|
|
23
|
+
grouping = NestedSet(values=(['percentStacked', 'standard', 'stacked']))
|
|
24
|
+
varyColors = NestedBool(allow_none=True)
|
|
25
|
+
ser = Sequence(expected_type=Series, allow_none=True)
|
|
26
|
+
dLbls = Typed(expected_type=DataLabelList, allow_none=True)
|
|
27
|
+
dataLabels = Alias("dLbls")
|
|
28
|
+
dropLines = Typed(expected_type=ChartLines, allow_none=True)
|
|
29
|
+
|
|
30
|
+
_series_type = "line"
|
|
31
|
+
|
|
32
|
+
__elements__ = ('grouping', 'varyColors', 'ser', 'dLbls', 'dropLines')
|
|
33
|
+
|
|
34
|
+
def __init__(self,
|
|
35
|
+
grouping="standard",
|
|
36
|
+
varyColors=None,
|
|
37
|
+
ser=(),
|
|
38
|
+
dLbls=None,
|
|
39
|
+
dropLines=None,
|
|
40
|
+
**kw
|
|
41
|
+
):
|
|
42
|
+
self.grouping = grouping
|
|
43
|
+
self.varyColors = varyColors
|
|
44
|
+
self.ser = ser
|
|
45
|
+
self.dLbls = dLbls
|
|
46
|
+
self.dropLines = dropLines
|
|
47
|
+
super().__init__(**kw)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class LineChart(_LineChartBase):
|
|
51
|
+
|
|
52
|
+
tagname = "lineChart"
|
|
53
|
+
|
|
54
|
+
grouping = _LineChartBase.grouping
|
|
55
|
+
varyColors = _LineChartBase.varyColors
|
|
56
|
+
ser = _LineChartBase.ser
|
|
57
|
+
dLbls = _LineChartBase.dLbls
|
|
58
|
+
dropLines =_LineChartBase.dropLines
|
|
59
|
+
|
|
60
|
+
hiLowLines = Typed(expected_type=ChartLines, allow_none=True)
|
|
61
|
+
upDownBars = Typed(expected_type=UpDownBars, allow_none=True)
|
|
62
|
+
marker = NestedBool(allow_none=True)
|
|
63
|
+
smooth = NestedBool(allow_none=True)
|
|
64
|
+
extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
|
65
|
+
|
|
66
|
+
x_axis = Typed(expected_type=_BaseAxis)
|
|
67
|
+
y_axis = Typed(expected_type=NumericAxis)
|
|
68
|
+
|
|
69
|
+
__elements__ = _LineChartBase.__elements__ + ('hiLowLines', 'upDownBars', 'marker', 'smooth', 'axId')
|
|
70
|
+
|
|
71
|
+
def __init__(self,
|
|
72
|
+
hiLowLines=None,
|
|
73
|
+
upDownBars=None,
|
|
74
|
+
marker=None,
|
|
75
|
+
smooth=None,
|
|
76
|
+
extLst=None,
|
|
77
|
+
**kw
|
|
78
|
+
):
|
|
79
|
+
self.hiLowLines = hiLowLines
|
|
80
|
+
self.upDownBars = upDownBars
|
|
81
|
+
self.marker = marker
|
|
82
|
+
self.smooth = smooth
|
|
83
|
+
self.x_axis = TextAxis()
|
|
84
|
+
self.y_axis = NumericAxis()
|
|
85
|
+
|
|
86
|
+
super().__init__(**kw)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class LineChart3D(_LineChartBase):
|
|
90
|
+
|
|
91
|
+
tagname = "line3DChart"
|
|
92
|
+
|
|
93
|
+
grouping = _LineChartBase.grouping
|
|
94
|
+
varyColors = _LineChartBase.varyColors
|
|
95
|
+
ser = _LineChartBase.ser
|
|
96
|
+
dLbls = _LineChartBase.dLbls
|
|
97
|
+
dropLines =_LineChartBase.dropLines
|
|
98
|
+
|
|
99
|
+
gapDepth = NestedGapAmount()
|
|
100
|
+
hiLowLines = Typed(expected_type=ChartLines, allow_none=True)
|
|
101
|
+
upDownBars = Typed(expected_type=UpDownBars, allow_none=True)
|
|
102
|
+
marker = NestedBool(allow_none=True)
|
|
103
|
+
smooth = NestedBool(allow_none=True)
|
|
104
|
+
extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
|
105
|
+
|
|
106
|
+
x_axis = Typed(expected_type=TextAxis)
|
|
107
|
+
y_axis = Typed(expected_type=NumericAxis)
|
|
108
|
+
z_axis = Typed(expected_type=SeriesAxis)
|
|
109
|
+
|
|
110
|
+
__elements__ = _LineChartBase.__elements__ + ('gapDepth', 'hiLowLines',
|
|
111
|
+
'upDownBars', 'marker', 'smooth', 'axId')
|
|
112
|
+
|
|
113
|
+
def __init__(self,
|
|
114
|
+
gapDepth=None,
|
|
115
|
+
hiLowLines=None,
|
|
116
|
+
upDownBars=None,
|
|
117
|
+
marker=None,
|
|
118
|
+
smooth=None,
|
|
119
|
+
**kw
|
|
120
|
+
):
|
|
121
|
+
self.gapDepth = gapDepth
|
|
122
|
+
self.hiLowLines = hiLowLines
|
|
123
|
+
self.upDownBars = upDownBars
|
|
124
|
+
self.marker = marker
|
|
125
|
+
self.smooth = smooth
|
|
126
|
+
self.x_axis = TextAxis()
|
|
127
|
+
self.y_axis = NumericAxis()
|
|
128
|
+
self.z_axis = SeriesAxis()
|
|
129
|
+
super(LineChart3D, self).__init__(**kw)
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
4
|
+
from openpyxl.descriptors import (
|
|
5
|
+
Typed,
|
|
6
|
+
Alias,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
from openpyxl.descriptors.excel import(
|
|
10
|
+
ExtensionList,
|
|
11
|
+
_explicit_none,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
from openpyxl.descriptors.nested import (
|
|
15
|
+
NestedBool,
|
|
16
|
+
NestedInteger,
|
|
17
|
+
NestedMinMax,
|
|
18
|
+
NestedNoneSet,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
from .layout import Layout
|
|
22
|
+
from .picture import PictureOptions
|
|
23
|
+
from .shapes import *
|
|
24
|
+
from .text import *
|
|
25
|
+
from .error_bar import *
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class Marker(Serialisable):
|
|
29
|
+
|
|
30
|
+
tagname = "marker"
|
|
31
|
+
|
|
32
|
+
symbol = NestedNoneSet(values=(['circle', 'dash', 'diamond', 'dot', 'picture',
|
|
33
|
+
'plus', 'square', 'star', 'triangle', 'x', 'auto']),
|
|
34
|
+
to_tree=_explicit_none)
|
|
35
|
+
size = NestedMinMax(min=2, max=72, allow_none=True)
|
|
36
|
+
spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
|
|
37
|
+
graphicalProperties = Alias('spPr')
|
|
38
|
+
extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
|
39
|
+
|
|
40
|
+
__elements__ = ('symbol', 'size', 'spPr')
|
|
41
|
+
|
|
42
|
+
def __init__(self,
|
|
43
|
+
symbol=None,
|
|
44
|
+
size=None,
|
|
45
|
+
spPr=None,
|
|
46
|
+
extLst=None,
|
|
47
|
+
):
|
|
48
|
+
self.symbol = symbol
|
|
49
|
+
self.size = size
|
|
50
|
+
if spPr is None:
|
|
51
|
+
spPr = GraphicalProperties()
|
|
52
|
+
self.spPr = spPr
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class DataPoint(Serialisable):
|
|
56
|
+
|
|
57
|
+
tagname = "dPt"
|
|
58
|
+
|
|
59
|
+
idx = NestedInteger()
|
|
60
|
+
invertIfNegative = NestedBool(allow_none=True)
|
|
61
|
+
marker = Typed(expected_type=Marker, allow_none=True)
|
|
62
|
+
bubble3D = NestedBool(allow_none=True)
|
|
63
|
+
explosion = NestedInteger(allow_none=True)
|
|
64
|
+
spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
|
|
65
|
+
graphicalProperties = Alias('spPr')
|
|
66
|
+
pictureOptions = Typed(expected_type=PictureOptions, allow_none=True)
|
|
67
|
+
extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
|
68
|
+
|
|
69
|
+
__elements__ = ('idx', 'invertIfNegative', 'marker', 'bubble3D',
|
|
70
|
+
'explosion', 'spPr', 'pictureOptions')
|
|
71
|
+
|
|
72
|
+
def __init__(self,
|
|
73
|
+
idx=None,
|
|
74
|
+
invertIfNegative=None,
|
|
75
|
+
marker=None,
|
|
76
|
+
bubble3D=None,
|
|
77
|
+
explosion=None,
|
|
78
|
+
spPr=None,
|
|
79
|
+
pictureOptions=None,
|
|
80
|
+
extLst=None,
|
|
81
|
+
):
|
|
82
|
+
self.idx = idx
|
|
83
|
+
self.invertIfNegative = invertIfNegative
|
|
84
|
+
self.marker = marker
|
|
85
|
+
self.bubble3D = bubble3D
|
|
86
|
+
self.explosion = explosion
|
|
87
|
+
if spPr is None:
|
|
88
|
+
spPr = GraphicalProperties()
|
|
89
|
+
self.spPr = spPr
|
|
90
|
+
self.pictureOptions = pictureOptions
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
4
|
+
|
|
5
|
+
from openpyxl.descriptors.nested import (
|
|
6
|
+
NestedBool,
|
|
7
|
+
NestedFloat,
|
|
8
|
+
NestedMinMax,
|
|
9
|
+
NestedNoneSet,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
class PictureOptions(Serialisable):
|
|
13
|
+
|
|
14
|
+
tagname = "pictureOptions"
|
|
15
|
+
|
|
16
|
+
applyToFront = NestedBool(allow_none=True, nested=True)
|
|
17
|
+
applyToSides = NestedBool(allow_none=True, nested=True)
|
|
18
|
+
applyToEnd = NestedBool(allow_none=True, nested=True)
|
|
19
|
+
pictureFormat = NestedNoneSet(values=(['stretch', 'stack', 'stackScale']), nested=True)
|
|
20
|
+
pictureStackUnit = NestedFloat(allow_none=True, nested=True)
|
|
21
|
+
|
|
22
|
+
__elements__ = ('applyToFront', 'applyToSides', 'applyToEnd', 'pictureFormat', 'pictureStackUnit')
|
|
23
|
+
|
|
24
|
+
def __init__(self,
|
|
25
|
+
applyToFront=None,
|
|
26
|
+
applyToSides=None,
|
|
27
|
+
applyToEnd=None,
|
|
28
|
+
pictureFormat=None,
|
|
29
|
+
pictureStackUnit=None,
|
|
30
|
+
):
|
|
31
|
+
self.applyToFront = applyToFront
|
|
32
|
+
self.applyToSides = applyToSides
|
|
33
|
+
self.applyToEnd = applyToEnd
|
|
34
|
+
self.pictureFormat = pictureFormat
|
|
35
|
+
self.pictureStackUnit = pictureStackUnit
|