feffery_utils_components 0.2.0-rc10 → 0.2.0-rc11
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/DESCRIPTION +1 -1
- package/NAMESPACE +1 -0
- package/Project.toml +1 -1
- package/README.md +1 -1
- package/feffery_utils_components/FefferyDiv.py +1 -1
- package/feffery_utils_components/FefferyDom2Image.py +68 -0
- package/feffery_utils_components/__init__.py +2 -1
- package/feffery_utils_components/_imports_.py +2 -0
- package/feffery_utils_components/alias.py +2 -0
- package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
- package/feffery_utils_components/async-feffery_animated_3d_background_three.js +2 -2
- package/feffery_utils_components/async-feffery_animated_image.js +1 -1
- package/feffery_utils_components/async-feffery_aplayer.js +1 -1
- package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
- package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
- package/feffery_utils_components/async-feffery_captcha.js +1 -1
- package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
- package/feffery_utils_components/async-feffery_dom2image.js +4 -0
- package/feffery_utils_components/async-feffery_dom2image.js.LICENSE.txt +1 -0
- package/feffery_utils_components/async-feffery_dplayer.js +1 -1
- package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
- package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
- package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
- package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
- package/feffery_utils_components/async-feffery_grid.js +1 -1
- package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
- package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
- package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
- package/feffery_utils_components/async-feffery_markdown_editor.js +2 -2
- package/feffery_utils_components/async-feffery_motion.js +1 -1
- package/feffery_utils_components/async-feffery_music_player.js +1 -1
- package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
- package/feffery_utils_components/async-feffery_resizable.js +1 -1
- package/feffery_utils_components/async-feffery_rich_text_editor.js +2 -2
- package/feffery_utils_components/async-feffery_rnd.js +1 -1
- package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
- package/feffery_utils_components/async-feffery_shortcut_panel.js +1 -1
- package/feffery_utils_components/async-feffery_sortable.js +1 -1
- package/feffery_utils_components/async-feffery_word_preview.js +1 -1
- package/feffery_utils_components/async-fuc-shared.js +2 -2
- package/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/feffery_utils_components/metadata.json +110 -1
- package/feffery_utils_components/package-info.json +2 -1
- package/package.json +2 -1
- package/src/lib/components/FefferyDiv.react.js +3 -1
- package/src/lib/components/FefferyDom2Image.react.js +88 -0
- package/src/lib/fragments/FefferyDom2Image.react.js +59 -0
- package/src/lib/index.js +3 -1
- package/usage.py +50 -24
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
package/README.md
CHANGED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyDom2Image(Component):
|
|
7
|
+
"""A FefferyDom2Image component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional):
|
|
13
|
+
组件id.
|
|
14
|
+
|
|
15
|
+
- key (string; optional):
|
|
16
|
+
强制刷新用.
|
|
17
|
+
|
|
18
|
+
- loading_state (dict; optional)
|
|
19
|
+
|
|
20
|
+
`loading_state` is a dict with keys:
|
|
21
|
+
|
|
22
|
+
- component_name (string; optional):
|
|
23
|
+
Holds the name of the component that is loading.
|
|
24
|
+
|
|
25
|
+
- is_loading (boolean; optional):
|
|
26
|
+
Determines if the component is loading or not.
|
|
27
|
+
|
|
28
|
+
- prop_name (string; optional):
|
|
29
|
+
Holds which property is loading.
|
|
30
|
+
|
|
31
|
+
- scale (number; default 1):
|
|
32
|
+
精度缩放比例,默认为1.
|
|
33
|
+
|
|
34
|
+
- screenshotResult (dict; optional):
|
|
35
|
+
监听最近一次元素转图片的结果数据.
|
|
36
|
+
|
|
37
|
+
`screenshotResult` is a dict with keys:
|
|
38
|
+
|
|
39
|
+
- dataUrl (string; optional):
|
|
40
|
+
若本次转换成功,则记录转换后的图片dataUrl信息.
|
|
41
|
+
|
|
42
|
+
- selector (string; optional):
|
|
43
|
+
记录本次转换结果对应的选择器.
|
|
44
|
+
|
|
45
|
+
- status (a value equal to: 'success', 'failed'; optional):
|
|
46
|
+
记录本次转换任务的执行状态,可选的有'success'、'failed'.
|
|
47
|
+
|
|
48
|
+
- timestamp (number; optional):
|
|
49
|
+
对应当前任务完成的时间戳.
|
|
50
|
+
|
|
51
|
+
- targetSelector (string; optional):
|
|
52
|
+
设置目标元素选择器,每次执行转换操作后都会重置为空值."""
|
|
53
|
+
_children_props = []
|
|
54
|
+
_base_nodes = ['children']
|
|
55
|
+
_namespace = 'feffery_utils_components'
|
|
56
|
+
_type = 'FefferyDom2Image'
|
|
57
|
+
@_explicitize_args
|
|
58
|
+
def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, targetSelector=Component.UNDEFINED, scale=Component.UNDEFINED, screenshotResult=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
59
|
+
self._prop_names = ['id', 'key', 'loading_state', 'scale', 'screenshotResult', 'targetSelector']
|
|
60
|
+
self._valid_wildcard_attributes = []
|
|
61
|
+
self.available_properties = ['id', 'key', 'loading_state', 'scale', 'screenshotResult', 'targetSelector']
|
|
62
|
+
self.available_wildcard_properties = []
|
|
63
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
64
|
+
_locals = locals()
|
|
65
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
66
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
67
|
+
|
|
68
|
+
super(FefferyDom2Image, self).__init__(**args)
|
|
@@ -33,6 +33,7 @@ from .FefferyCountDown import FefferyCountDown
|
|
|
33
33
|
from .FefferyCountUp import FefferyCountUp
|
|
34
34
|
from .FefferyCssVar import FefferyCssVar
|
|
35
35
|
from .FefferyDiv import FefferyDiv
|
|
36
|
+
from .FefferyDom2Image import FefferyDom2Image
|
|
36
37
|
from .FefferyEmojiPicker import FefferyEmojiPicker
|
|
37
38
|
from .FefferyExecuteJs import FefferyExecuteJs
|
|
38
39
|
from .FefferyExternalCss import FefferyExternalCss
|
|
@@ -138,6 +139,7 @@ __all__ = [
|
|
|
138
139
|
"FefferyCountUp",
|
|
139
140
|
"FefferyCssVar",
|
|
140
141
|
"FefferyDiv",
|
|
142
|
+
"FefferyDom2Image",
|
|
141
143
|
"FefferyEmojiPicker",
|
|
142
144
|
"FefferyExecuteJs",
|
|
143
145
|
"FefferyExternalCss",
|
|
@@ -33,6 +33,7 @@ from .FefferyCountDown import FefferyCountDown as CountDown
|
|
|
33
33
|
from .FefferyCountUp import FefferyCountUp as CountUp
|
|
34
34
|
from .FefferyCssVar import FefferyCssVar as CssVar
|
|
35
35
|
from .FefferyDiv import FefferyDiv as Div
|
|
36
|
+
from .FefferyDom2Image import FefferyDom2Image as Dom2Image
|
|
36
37
|
from .FefferyEmojiPicker import FefferyEmojiPicker as EmojiPicker
|
|
37
38
|
from .FefferyExecuteJs import FefferyExecuteJs as ExecuteJs
|
|
38
39
|
from .FefferyExternalCss import FefferyExternalCss as ExternalCss
|
|
@@ -138,6 +139,7 @@ __all__ = [
|
|
|
138
139
|
"CountUp",
|
|
139
140
|
"CssVar",
|
|
140
141
|
"Div",
|
|
142
|
+
"Dom2Image",
|
|
141
143
|
"EmojiPicker",
|
|
142
144
|
"ExecuteJs",
|
|
143
145
|
"ExternalCss",
|