h2o-lightwave 1.3.3__py3-none-any.whl → 1.4.0__py3-none-any.whl

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.
h2o_lightwave/types.py CHANGED
@@ -8984,12 +8984,18 @@ class GraphicsCard:
8984
8984
  scene: Optional[PackedData] = None,
8985
8985
  width: Optional[str] = None,
8986
8986
  height: Optional[str] = None,
8987
+ image: Optional[str] = None,
8988
+ image_path: Optional[str] = None,
8989
+ image_type: Optional[str] = None,
8987
8990
  commands: Optional[List[Command]] = None,
8988
8991
  ):
8989
8992
  _guard_scalar('GraphicsCard.box', box, (str,), False, False, False)
8990
8993
  _guard_scalar('GraphicsCard.view_box', view_box, (str,), False, False, False)
8991
8994
  _guard_scalar('GraphicsCard.width', width, (str,), False, True, False)
8992
8995
  _guard_scalar('GraphicsCard.height', height, (str,), False, True, False)
8996
+ _guard_scalar('GraphicsCard.image', image, (str,), False, True, False)
8997
+ _guard_scalar('GraphicsCard.image_path', image_path, (str,), False, True, False)
8998
+ _guard_scalar('GraphicsCard.image_type', image_type, (str,), False, True, False)
8993
8999
  _guard_vector('GraphicsCard.commands', commands, (Command,), False, True, False)
8994
9000
  self.box = box
8995
9001
  """A string indicating how to place this component on the page."""
@@ -9003,6 +9009,12 @@ class GraphicsCard:
9003
9009
  """The displayed width of the rectangular viewport. (Not the width of its coordinate system.)"""
9004
9010
  self.height = height
9005
9011
  """The displayed height of the rectangular viewport. (Not the height of its coordinate system.)"""
9012
+ self.image = image
9013
+ """Background image data, base64-encoded."""
9014
+ self.image_path = image_path
9015
+ """The path or URL or data URL of the background image, e.g. `/foo.png` or `http://example.com/foo.png` or `data:image/png;base64,???`."""
9016
+ self.image_type = image_type
9017
+ """The background image MIME subtype. One of `apng`, `bmp`, `gif`, `x-icon`, `jpeg`, `png`, `webp`. Required only if `image` is set."""
9006
9018
  self.commands = commands
9007
9019
  """Contextual menu commands for this component."""
9008
9020
 
@@ -9012,6 +9024,9 @@ class GraphicsCard:
9012
9024
  _guard_scalar('GraphicsCard.view_box', self.view_box, (str,), False, False, False)
9013
9025
  _guard_scalar('GraphicsCard.width', self.width, (str,), False, True, False)
9014
9026
  _guard_scalar('GraphicsCard.height', self.height, (str,), False, True, False)
9027
+ _guard_scalar('GraphicsCard.image', self.image, (str,), False, True, False)
9028
+ _guard_scalar('GraphicsCard.image_path', self.image_path, (str,), False, True, False)
9029
+ _guard_scalar('GraphicsCard.image_type', self.image_type, (str,), False, True, False)
9015
9030
  _guard_vector('GraphicsCard.commands', self.commands, (Command,), False, True, False)
9016
9031
  return _dump(
9017
9032
  view='graphics',
@@ -9021,6 +9036,9 @@ class GraphicsCard:
9021
9036
  scene=self.scene,
9022
9037
  width=self.width,
9023
9038
  height=self.height,
9039
+ image=self.image,
9040
+ image_path=self.image_path,
9041
+ image_type=self.image_type,
9024
9042
  commands=None if self.commands is None else [__e.dump() for __e in self.commands],
9025
9043
  )
9026
9044
 
@@ -9037,6 +9055,12 @@ class GraphicsCard:
9037
9055
  _guard_scalar('GraphicsCard.width', __d_width, (str,), False, True, False)
9038
9056
  __d_height: Any = __d.get('height')
9039
9057
  _guard_scalar('GraphicsCard.height', __d_height, (str,), False, True, False)
9058
+ __d_image: Any = __d.get('image')
9059
+ _guard_scalar('GraphicsCard.image', __d_image, (str,), False, True, False)
9060
+ __d_image_path: Any = __d.get('image_path')
9061
+ _guard_scalar('GraphicsCard.image_path', __d_image_path, (str,), False, True, False)
9062
+ __d_image_type: Any = __d.get('image_type')
9063
+ _guard_scalar('GraphicsCard.image_type', __d_image_type, (str,), False, True, False)
9040
9064
  __d_commands: Any = __d.get('commands')
9041
9065
  _guard_vector('GraphicsCard.commands', __d_commands, (dict,), False, True, False)
9042
9066
  box: str = __d_box
@@ -9045,6 +9069,9 @@ class GraphicsCard:
9045
9069
  scene: Optional[PackedData] = __d_scene
9046
9070
  width: Optional[str] = __d_width
9047
9071
  height: Optional[str] = __d_height
9072
+ image: Optional[str] = __d_image
9073
+ image_path: Optional[str] = __d_image_path
9074
+ image_type: Optional[str] = __d_image_type
9048
9075
  commands: Optional[List[Command]] = None if __d_commands is None else [Command.load(__e) for __e in __d_commands]
9049
9076
  return GraphicsCard(
9050
9077
  box,
@@ -9053,6 +9080,9 @@ class GraphicsCard:
9053
9080
  scene,
9054
9081
  width,
9055
9082
  height,
9083
+ image,
9084
+ image_path,
9085
+ image_type,
9056
9086
  commands,
9057
9087
  )
9058
9088
 
h2o_lightwave/ui.py CHANGED
@@ -3121,6 +3121,9 @@ def graphics_card(
3121
3121
  scene: Optional[PackedData] = None,
3122
3122
  width: Optional[str] = None,
3123
3123
  height: Optional[str] = None,
3124
+ image: Optional[str] = None,
3125
+ image_path: Optional[str] = None,
3126
+ image_type: Optional[str] = None,
3124
3127
  commands: Optional[List[Command]] = None,
3125
3128
  ) -> GraphicsCard:
3126
3129
  """Create a card for displaying vector graphics.
@@ -3132,6 +3135,9 @@ def graphics_card(
3132
3135
  scene: Foreground layer for rendering dynamic SVG elements.
3133
3136
  width: The displayed width of the rectangular viewport. (Not the width of its coordinate system.)
3134
3137
  height: The displayed height of the rectangular viewport. (Not the height of its coordinate system.)
3138
+ image: Background image data, base64-encoded.
3139
+ image_path: The path or URL or data URL of the background image, e.g. `/foo.png` or `http://example.com/foo.png` or `data:image/png;base64,???`.
3140
+ image_type: The background image MIME subtype. One of `apng`, `bmp`, `gif`, `x-icon`, `jpeg`, `png`, `webp`. Required only if `image` is set.
3135
3141
  commands: Contextual menu commands for this component.
3136
3142
  Returns:
3137
3143
  A `h2o_wave.types.GraphicsCard` instance.
@@ -3143,6 +3149,9 @@ def graphics_card(
3143
3149
  scene,
3144
3150
  width,
3145
3151
  height,
3152
+ image,
3153
+ image_path,
3154
+ image_type,
3146
3155
  commands,
3147
3156
  )
3148
3157
 
h2o_lightwave/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '1.3.3'
1
+ __version__ = '1.4.0'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: h2o_lightwave
3
- Version: 1.3.3
3
+ Version: 1.4.0
4
4
  Summary: H2O Wave Python driver for integration with arbitrary python web frameworks.
5
5
  Project-URL: Homepage, https://wave.h2o.ai/
6
6
  Project-URL: Documentation, https://wave.h2o.ai/
@@ -26,7 +26,7 @@ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
26
26
  Classifier: Topic :: Software Development :: Widget Sets
27
27
  Requires-Python: >=3.8
28
28
  Provides-Extra: web
29
- Requires-Dist: h2o-lightwave-web==1.3.3; extra == 'web'
29
+ Requires-Dist: h2o-lightwave-web==1.4.0; extra == 'web'
30
30
  Description-Content-Type: text/markdown
31
31
 
32
32
  # H2O Lightwave
@@ -4,11 +4,11 @@ h2o_lightwave/graphics.py,sha256=HLYrX-lwsMKbyLmy2ClG5L46DA2_hSCEPTsv0gPVoyg,258
4
4
  h2o_lightwave/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  h2o_lightwave/routing.py,sha256=de8GVfUAb6bwFXtsWj6NXmjMVGELknlZb03F-R4ManY,10592
6
6
  h2o_lightwave/server.py,sha256=5O55D6LHbX7Xw9mfMhe6ZxHH-fJpOetc5WKQJtDtySU,3850
7
- h2o_lightwave/types.py,sha256=8VCKbNBGmEQRc_dZjY73LUl416CEqEteq1jkmRuptZo,657819
8
- h2o_lightwave/ui.py,sha256=d4ndxFHdm37lIYqcy_8KZ_p-e7FhPN-iD_4e9ck-Nwo,171748
7
+ h2o_lightwave/types.py,sha256=BJ0fQaay4OydjNtgdfhfBV7OeIVcIf-C5tVvJ7C0b8Y,659661
8
+ h2o_lightwave/ui.py,sha256=oAeKO5Ec128Eo9s4Mtdv1E0QgQv2_O2pRkQ3Sb8oBe8,172281
9
9
  h2o_lightwave/ui_ext.py,sha256=zx_2Ec2-p_ztm8brfVaVF0fTQWVDrb_YxcGfVb-wA10,2325
10
- h2o_lightwave/version.py,sha256=C4ekB5VKlNF5Vfk1Qjf_RP40Ok7LNQJuYsDXeywuHbo,22
11
- h2o_lightwave-1.3.3.dist-info/METADATA,sha256=VNo16lZ_qWGJ3J2WZ49HnAJglpKH1ZOmX4F-KBa-aR8,6323
12
- h2o_lightwave-1.3.3.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
13
- h2o_lightwave-1.3.3.dist-info/licenses/LICENSE,sha256=hpuFayniDwysSKD0tHGELH2KJDVyhUrKS29torRIpqY,53
14
- h2o_lightwave-1.3.3.dist-info/RECORD,,
10
+ h2o_lightwave/version.py,sha256=EyMGX1ADFzN6XVXHWbJUtKPONYKeFkvWoKIFPDDB2I8,22
11
+ h2o_lightwave-1.4.0.dist-info/METADATA,sha256=ENOtnrcoX1hqUum7UuIdlk3kkSomzppubF_GLTa-1o8,6323
12
+ h2o_lightwave-1.4.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
13
+ h2o_lightwave-1.4.0.dist-info/licenses/LICENSE,sha256=hpuFayniDwysSKD0tHGELH2KJDVyhUrKS29torRIpqY,53
14
+ h2o_lightwave-1.4.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.24.2
2
+ Generator: hatchling 1.25.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any