@v587d/capital-generation 2.28.0 → 2.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/README.md +5 -4
- 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/tools.js +7 -7
- package/lib/host-version.d.ts +9 -0
- package/lib/host-version.js +57 -0
- 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/runtime-entry.js +8 -0
- 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 +514 -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 +6 -3
- 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,425 @@
|
|
|
1
|
+
# Copyright (c) 2010-2024 openpyxl
|
|
2
|
+
|
|
3
|
+
from openpyxl.descriptors.serialisable import Serialisable
|
|
4
|
+
from openpyxl.descriptors import (
|
|
5
|
+
Alias,
|
|
6
|
+
Bool,
|
|
7
|
+
Integer,
|
|
8
|
+
Set,
|
|
9
|
+
NoneSet,
|
|
10
|
+
Typed,
|
|
11
|
+
MinMax,
|
|
12
|
+
)
|
|
13
|
+
from openpyxl.descriptors.excel import (
|
|
14
|
+
Relation,
|
|
15
|
+
Percentage,
|
|
16
|
+
)
|
|
17
|
+
from openpyxl.descriptors.nested import NestedNoneSet, NestedValue
|
|
18
|
+
from openpyxl.descriptors.sequence import NestedSequence
|
|
19
|
+
from openpyxl.descriptors.excel import ExtensionList as OfficeArtExtensionList
|
|
20
|
+
from openpyxl.xml.constants import DRAWING_NS
|
|
21
|
+
|
|
22
|
+
from .colors import (
|
|
23
|
+
ColorChoice,
|
|
24
|
+
HSLColor,
|
|
25
|
+
SystemColor,
|
|
26
|
+
SchemeColor,
|
|
27
|
+
PRESET_COLORS,
|
|
28
|
+
RGBPercent,
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
from .effect import (
|
|
32
|
+
AlphaBiLevelEffect,
|
|
33
|
+
AlphaCeilingEffect,
|
|
34
|
+
AlphaFloorEffect,
|
|
35
|
+
AlphaInverseEffect,
|
|
36
|
+
AlphaModulateEffect,
|
|
37
|
+
AlphaModulateFixedEffect,
|
|
38
|
+
AlphaReplaceEffect,
|
|
39
|
+
BiLevelEffect,
|
|
40
|
+
BlurEffect,
|
|
41
|
+
ColorChangeEffect,
|
|
42
|
+
ColorReplaceEffect,
|
|
43
|
+
DuotoneEffect,
|
|
44
|
+
FillOverlayEffect,
|
|
45
|
+
GrayscaleEffect,
|
|
46
|
+
HSLEffect,
|
|
47
|
+
LuminanceEffect,
|
|
48
|
+
TintEffect,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
"""
|
|
52
|
+
Fill elements from drawing main schema
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
class PatternFillProperties(Serialisable):
|
|
56
|
+
|
|
57
|
+
tagname = "pattFill"
|
|
58
|
+
namespace = DRAWING_NS
|
|
59
|
+
|
|
60
|
+
prst = NoneSet(values=(['pct5', 'pct10', 'pct20', 'pct25', 'pct30',
|
|
61
|
+
'pct40', 'pct50', 'pct60', 'pct70', 'pct75', 'pct80', 'pct90', 'horz',
|
|
62
|
+
'vert', 'ltHorz', 'ltVert', 'dkHorz', 'dkVert', 'narHorz', 'narVert',
|
|
63
|
+
'dashHorz', 'dashVert', 'cross', 'dnDiag', 'upDiag', 'ltDnDiag',
|
|
64
|
+
'ltUpDiag', 'dkDnDiag', 'dkUpDiag', 'wdDnDiag', 'wdUpDiag', 'dashDnDiag',
|
|
65
|
+
'dashUpDiag', 'diagCross', 'smCheck', 'lgCheck', 'smGrid', 'lgGrid',
|
|
66
|
+
'dotGrid', 'smConfetti', 'lgConfetti', 'horzBrick', 'diagBrick',
|
|
67
|
+
'solidDmnd', 'openDmnd', 'dotDmnd', 'plaid', 'sphere', 'weave', 'divot',
|
|
68
|
+
'shingle', 'wave', 'trellis', 'zigZag']))
|
|
69
|
+
preset = Alias("prst")
|
|
70
|
+
fgClr = Typed(expected_type=ColorChoice, allow_none=True)
|
|
71
|
+
foreground = Alias("fgClr")
|
|
72
|
+
bgClr = Typed(expected_type=ColorChoice, allow_none=True)
|
|
73
|
+
background = Alias("bgClr")
|
|
74
|
+
|
|
75
|
+
__elements__ = ("fgClr", "bgClr")
|
|
76
|
+
|
|
77
|
+
def __init__(self,
|
|
78
|
+
prst=None,
|
|
79
|
+
fgClr=None,
|
|
80
|
+
bgClr=None,
|
|
81
|
+
):
|
|
82
|
+
self.prst = prst
|
|
83
|
+
self.fgClr = fgClr
|
|
84
|
+
self.bgClr = bgClr
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class RelativeRect(Serialisable):
|
|
88
|
+
|
|
89
|
+
tagname = "rect"
|
|
90
|
+
namespace = DRAWING_NS
|
|
91
|
+
|
|
92
|
+
l = Percentage(allow_none=True)
|
|
93
|
+
left = Alias('l')
|
|
94
|
+
t = Percentage(allow_none=True)
|
|
95
|
+
top = Alias('t')
|
|
96
|
+
r = Percentage(allow_none=True)
|
|
97
|
+
right = Alias('r')
|
|
98
|
+
b = Percentage(allow_none=True)
|
|
99
|
+
bottom = Alias('b')
|
|
100
|
+
|
|
101
|
+
def __init__(self,
|
|
102
|
+
l=None,
|
|
103
|
+
t=None,
|
|
104
|
+
r=None,
|
|
105
|
+
b=None,
|
|
106
|
+
):
|
|
107
|
+
self.l = l
|
|
108
|
+
self.t = t
|
|
109
|
+
self.r = r
|
|
110
|
+
self.b = b
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
class StretchInfoProperties(Serialisable):
|
|
114
|
+
|
|
115
|
+
tagname = "stretch"
|
|
116
|
+
namespace = DRAWING_NS
|
|
117
|
+
|
|
118
|
+
fillRect = Typed(expected_type=RelativeRect, allow_none=True)
|
|
119
|
+
|
|
120
|
+
def __init__(self,
|
|
121
|
+
fillRect=RelativeRect(),
|
|
122
|
+
):
|
|
123
|
+
self.fillRect = fillRect
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
class GradientStop(Serialisable):
|
|
127
|
+
|
|
128
|
+
tagname = "gs"
|
|
129
|
+
namespace = DRAWING_NS
|
|
130
|
+
|
|
131
|
+
pos = MinMax(min=0, max=100000, allow_none=True)
|
|
132
|
+
# Color Choice Group
|
|
133
|
+
scrgbClr = Typed(expected_type=RGBPercent, allow_none=True)
|
|
134
|
+
RGBPercent = Alias('scrgbClr')
|
|
135
|
+
srgbClr = NestedValue(expected_type=str, allow_none=True) # needs pattern and can have transform
|
|
136
|
+
RGB = Alias('srgbClr')
|
|
137
|
+
hslClr = Typed(expected_type=HSLColor, allow_none=True)
|
|
138
|
+
sysClr = Typed(expected_type=SystemColor, allow_none=True)
|
|
139
|
+
schemeClr = Typed(expected_type=SchemeColor, allow_none=True)
|
|
140
|
+
prstClr = NestedNoneSet(values=PRESET_COLORS)
|
|
141
|
+
|
|
142
|
+
__elements__ = ('scrgbClr', 'srgbClr', 'hslClr', 'sysClr', 'schemeClr', 'prstClr')
|
|
143
|
+
|
|
144
|
+
def __init__(self,
|
|
145
|
+
pos=None,
|
|
146
|
+
scrgbClr=None,
|
|
147
|
+
srgbClr=None,
|
|
148
|
+
hslClr=None,
|
|
149
|
+
sysClr=None,
|
|
150
|
+
schemeClr=None,
|
|
151
|
+
prstClr=None,
|
|
152
|
+
):
|
|
153
|
+
if pos is None:
|
|
154
|
+
pos = 0
|
|
155
|
+
self.pos = pos
|
|
156
|
+
|
|
157
|
+
self.scrgbClr = scrgbClr
|
|
158
|
+
self.srgbClr = srgbClr
|
|
159
|
+
self.hslClr = hslClr
|
|
160
|
+
self.sysClr = sysClr
|
|
161
|
+
self.schemeClr = schemeClr
|
|
162
|
+
self.prstClr = prstClr
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class LinearShadeProperties(Serialisable):
|
|
166
|
+
|
|
167
|
+
tagname = "lin"
|
|
168
|
+
namespace = DRAWING_NS
|
|
169
|
+
|
|
170
|
+
ang = Integer()
|
|
171
|
+
scaled = Bool(allow_none=True)
|
|
172
|
+
|
|
173
|
+
def __init__(self,
|
|
174
|
+
ang=None,
|
|
175
|
+
scaled=None,
|
|
176
|
+
):
|
|
177
|
+
self.ang = ang
|
|
178
|
+
self.scaled = scaled
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
class PathShadeProperties(Serialisable):
|
|
182
|
+
|
|
183
|
+
tagname = "path"
|
|
184
|
+
namespace = DRAWING_NS
|
|
185
|
+
|
|
186
|
+
path = Set(values=(['shape', 'circle', 'rect']))
|
|
187
|
+
fillToRect = Typed(expected_type=RelativeRect, allow_none=True)
|
|
188
|
+
|
|
189
|
+
def __init__(self,
|
|
190
|
+
path=None,
|
|
191
|
+
fillToRect=None,
|
|
192
|
+
):
|
|
193
|
+
self.path = path
|
|
194
|
+
self.fillToRect = fillToRect
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
class GradientFillProperties(Serialisable):
|
|
198
|
+
|
|
199
|
+
tagname = "gradFill"
|
|
200
|
+
namespace = DRAWING_NS
|
|
201
|
+
|
|
202
|
+
flip = NoneSet(values=(['x', 'y', 'xy']))
|
|
203
|
+
rotWithShape = Bool(allow_none=True)
|
|
204
|
+
|
|
205
|
+
gsLst = NestedSequence(expected_type=GradientStop, count=False)
|
|
206
|
+
stop_list = Alias("gsLst")
|
|
207
|
+
|
|
208
|
+
lin = Typed(expected_type=LinearShadeProperties, allow_none=True)
|
|
209
|
+
linear = Alias("lin")
|
|
210
|
+
path = Typed(expected_type=PathShadeProperties, allow_none=True)
|
|
211
|
+
|
|
212
|
+
tileRect = Typed(expected_type=RelativeRect, allow_none=True)
|
|
213
|
+
|
|
214
|
+
__elements__ = ('gsLst', 'lin', 'path', 'tileRect')
|
|
215
|
+
|
|
216
|
+
def __init__(self,
|
|
217
|
+
flip=None,
|
|
218
|
+
rotWithShape=None,
|
|
219
|
+
gsLst=(),
|
|
220
|
+
lin=None,
|
|
221
|
+
path=None,
|
|
222
|
+
tileRect=None,
|
|
223
|
+
):
|
|
224
|
+
self.flip = flip
|
|
225
|
+
self.rotWithShape = rotWithShape
|
|
226
|
+
self.gsLst = gsLst
|
|
227
|
+
self.lin = lin
|
|
228
|
+
self.path = path
|
|
229
|
+
self.tileRect = tileRect
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
class SolidColorFillProperties(Serialisable):
|
|
233
|
+
|
|
234
|
+
tagname = "solidFill"
|
|
235
|
+
|
|
236
|
+
# uses element group EG_ColorChoice
|
|
237
|
+
scrgbClr = Typed(expected_type=RGBPercent, allow_none=True)
|
|
238
|
+
RGBPercent = Alias('scrgbClr')
|
|
239
|
+
srgbClr = NestedValue(expected_type=str, allow_none=True) # needs pattern and can have transform
|
|
240
|
+
RGB = Alias('srgbClr')
|
|
241
|
+
hslClr = Typed(expected_type=HSLColor, allow_none=True)
|
|
242
|
+
sysClr = Typed(expected_type=SystemColor, allow_none=True)
|
|
243
|
+
schemeClr = Typed(expected_type=SchemeColor, allow_none=True)
|
|
244
|
+
prstClr = NestedNoneSet(values=PRESET_COLORS)
|
|
245
|
+
|
|
246
|
+
__elements__ = ('scrgbClr', 'srgbClr', 'hslClr', 'sysClr', 'schemeClr', 'prstClr')
|
|
247
|
+
|
|
248
|
+
def __init__(self,
|
|
249
|
+
scrgbClr=None,
|
|
250
|
+
srgbClr=None,
|
|
251
|
+
hslClr=None,
|
|
252
|
+
sysClr=None,
|
|
253
|
+
schemeClr=None,
|
|
254
|
+
prstClr=None,
|
|
255
|
+
):
|
|
256
|
+
self.scrgbClr = scrgbClr
|
|
257
|
+
self.srgbClr = srgbClr
|
|
258
|
+
self.hslClr = hslClr
|
|
259
|
+
self.sysClr = sysClr
|
|
260
|
+
self.schemeClr = schemeClr
|
|
261
|
+
self.prstClr = prstClr
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
class Blip(Serialisable):
|
|
265
|
+
|
|
266
|
+
tagname = "blip"
|
|
267
|
+
namespace = DRAWING_NS
|
|
268
|
+
|
|
269
|
+
# Using attribute groupAG_Blob
|
|
270
|
+
cstate = NoneSet(values=(['email', 'screen', 'print', 'hqprint']))
|
|
271
|
+
embed = Relation() # rId
|
|
272
|
+
link = Relation() # hyperlink
|
|
273
|
+
noGrp = Bool(allow_none=True)
|
|
274
|
+
noSelect = Bool(allow_none=True)
|
|
275
|
+
noRot = Bool(allow_none=True)
|
|
276
|
+
noChangeAspect = Bool(allow_none=True)
|
|
277
|
+
noMove = Bool(allow_none=True)
|
|
278
|
+
noResize = Bool(allow_none=True)
|
|
279
|
+
noEditPoints = Bool(allow_none=True)
|
|
280
|
+
noAdjustHandles = Bool(allow_none=True)
|
|
281
|
+
noChangeArrowheads = Bool(allow_none=True)
|
|
282
|
+
noChangeShapeType = Bool(allow_none=True)
|
|
283
|
+
# some elements are choice
|
|
284
|
+
extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
|
|
285
|
+
alphaBiLevel = Typed(expected_type=AlphaBiLevelEffect, allow_none=True)
|
|
286
|
+
alphaCeiling = Typed(expected_type=AlphaCeilingEffect, allow_none=True)
|
|
287
|
+
alphaFloor = Typed(expected_type=AlphaFloorEffect, allow_none=True)
|
|
288
|
+
alphaInv = Typed(expected_type=AlphaInverseEffect, allow_none=True)
|
|
289
|
+
alphaMod = Typed(expected_type=AlphaModulateEffect, allow_none=True)
|
|
290
|
+
alphaModFix = Typed(expected_type=AlphaModulateFixedEffect, allow_none=True)
|
|
291
|
+
alphaRepl = Typed(expected_type=AlphaReplaceEffect, allow_none=True)
|
|
292
|
+
biLevel = Typed(expected_type=BiLevelEffect, allow_none=True)
|
|
293
|
+
blur = Typed(expected_type=BlurEffect, allow_none=True)
|
|
294
|
+
clrChange = Typed(expected_type=ColorChangeEffect, allow_none=True)
|
|
295
|
+
clrRepl = Typed(expected_type=ColorReplaceEffect, allow_none=True)
|
|
296
|
+
duotone = Typed(expected_type=DuotoneEffect, allow_none=True)
|
|
297
|
+
fillOverlay = Typed(expected_type=FillOverlayEffect, allow_none=True)
|
|
298
|
+
grayscl = Typed(expected_type=GrayscaleEffect, allow_none=True)
|
|
299
|
+
hsl = Typed(expected_type=HSLEffect, allow_none=True)
|
|
300
|
+
lum = Typed(expected_type=LuminanceEffect, allow_none=True)
|
|
301
|
+
tint = Typed(expected_type=TintEffect, allow_none=True)
|
|
302
|
+
|
|
303
|
+
__elements__ = ('alphaBiLevel', 'alphaCeiling', 'alphaFloor', 'alphaInv',
|
|
304
|
+
'alphaMod', 'alphaModFix', 'alphaRepl', 'biLevel', 'blur', 'clrChange',
|
|
305
|
+
'clrRepl', 'duotone', 'fillOverlay', 'grayscl', 'hsl', 'lum', 'tint')
|
|
306
|
+
|
|
307
|
+
def __init__(self,
|
|
308
|
+
cstate=None,
|
|
309
|
+
embed=None,
|
|
310
|
+
link=None,
|
|
311
|
+
noGrp=None,
|
|
312
|
+
noSelect=None,
|
|
313
|
+
noRot=None,
|
|
314
|
+
noChangeAspect=None,
|
|
315
|
+
noMove=None,
|
|
316
|
+
noResize=None,
|
|
317
|
+
noEditPoints=None,
|
|
318
|
+
noAdjustHandles=None,
|
|
319
|
+
noChangeArrowheads=None,
|
|
320
|
+
noChangeShapeType=None,
|
|
321
|
+
extLst=None,
|
|
322
|
+
alphaBiLevel=None,
|
|
323
|
+
alphaCeiling=None,
|
|
324
|
+
alphaFloor=None,
|
|
325
|
+
alphaInv=None,
|
|
326
|
+
alphaMod=None,
|
|
327
|
+
alphaModFix=None,
|
|
328
|
+
alphaRepl=None,
|
|
329
|
+
biLevel=None,
|
|
330
|
+
blur=None,
|
|
331
|
+
clrChange=None,
|
|
332
|
+
clrRepl=None,
|
|
333
|
+
duotone=None,
|
|
334
|
+
fillOverlay=None,
|
|
335
|
+
grayscl=None,
|
|
336
|
+
hsl=None,
|
|
337
|
+
lum=None,
|
|
338
|
+
tint=None,
|
|
339
|
+
):
|
|
340
|
+
self.cstate = cstate
|
|
341
|
+
self.embed = embed
|
|
342
|
+
self.link = link
|
|
343
|
+
self.noGrp = noGrp
|
|
344
|
+
self.noSelect = noSelect
|
|
345
|
+
self.noRot = noRot
|
|
346
|
+
self.noChangeAspect = noChangeAspect
|
|
347
|
+
self.noMove = noMove
|
|
348
|
+
self.noResize = noResize
|
|
349
|
+
self.noEditPoints = noEditPoints
|
|
350
|
+
self.noAdjustHandles = noAdjustHandles
|
|
351
|
+
self.noChangeArrowheads = noChangeArrowheads
|
|
352
|
+
self.noChangeShapeType = noChangeShapeType
|
|
353
|
+
self.extLst = extLst
|
|
354
|
+
self.alphaBiLevel = alphaBiLevel
|
|
355
|
+
self.alphaCeiling = alphaCeiling
|
|
356
|
+
self.alphaFloor = alphaFloor
|
|
357
|
+
self.alphaInv = alphaInv
|
|
358
|
+
self.alphaMod = alphaMod
|
|
359
|
+
self.alphaModFix = alphaModFix
|
|
360
|
+
self.alphaRepl = alphaRepl
|
|
361
|
+
self.biLevel = biLevel
|
|
362
|
+
self.blur = blur
|
|
363
|
+
self.clrChange = clrChange
|
|
364
|
+
self.clrRepl = clrRepl
|
|
365
|
+
self.duotone = duotone
|
|
366
|
+
self.fillOverlay = fillOverlay
|
|
367
|
+
self.grayscl = grayscl
|
|
368
|
+
self.hsl = hsl
|
|
369
|
+
self.lum = lum
|
|
370
|
+
self.tint = tint
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
class TileInfoProperties(Serialisable):
|
|
374
|
+
|
|
375
|
+
tx = Integer(allow_none=True)
|
|
376
|
+
ty = Integer(allow_none=True)
|
|
377
|
+
sx = Integer(allow_none=True)
|
|
378
|
+
sy = Integer(allow_none=True)
|
|
379
|
+
flip = NoneSet(values=(['x', 'y', 'xy']))
|
|
380
|
+
algn = Set(values=(['tl', 't', 'tr', 'l', 'ctr', 'r', 'bl', 'b', 'br']))
|
|
381
|
+
|
|
382
|
+
def __init__(self,
|
|
383
|
+
tx=None,
|
|
384
|
+
ty=None,
|
|
385
|
+
sx=None,
|
|
386
|
+
sy=None,
|
|
387
|
+
flip=None,
|
|
388
|
+
algn=None,
|
|
389
|
+
):
|
|
390
|
+
self.tx = tx
|
|
391
|
+
self.ty = ty
|
|
392
|
+
self.sx = sx
|
|
393
|
+
self.sy = sy
|
|
394
|
+
self.flip = flip
|
|
395
|
+
self.algn = algn
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
class BlipFillProperties(Serialisable):
|
|
399
|
+
|
|
400
|
+
tagname = "blipFill"
|
|
401
|
+
|
|
402
|
+
dpi = Integer(allow_none=True)
|
|
403
|
+
rotWithShape = Bool(allow_none=True)
|
|
404
|
+
|
|
405
|
+
blip = Typed(expected_type=Blip, allow_none=True)
|
|
406
|
+
srcRect = Typed(expected_type=RelativeRect, allow_none=True)
|
|
407
|
+
tile = Typed(expected_type=TileInfoProperties, allow_none=True)
|
|
408
|
+
stretch = Typed(expected_type=StretchInfoProperties, allow_none=True)
|
|
409
|
+
|
|
410
|
+
__elements__ = ("blip", "srcRect", "tile", "stretch")
|
|
411
|
+
|
|
412
|
+
def __init__(self,
|
|
413
|
+
dpi=None,
|
|
414
|
+
rotWithShape=None,
|
|
415
|
+
blip=None,
|
|
416
|
+
tile=None,
|
|
417
|
+
stretch=StretchInfoProperties(),
|
|
418
|
+
srcRect=None,
|
|
419
|
+
):
|
|
420
|
+
self.dpi = dpi
|
|
421
|
+
self.rotWithShape = rotWithShape
|
|
422
|
+
self.blip = blip
|
|
423
|
+
self.tile = tile
|
|
424
|
+
self.stretch = stretch
|
|
425
|
+
self.srcRect = srcRect
|