mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-07-04 23:32:37 +00:00
first commit
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._squarifyratio import SquarifyratioValidator
|
||||
from ._pad import PadValidator
|
||||
from ._packing import PackingValidator
|
||||
from ._flip import FlipValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._squarifyratio.SquarifyratioValidator",
|
||||
"._pad.PadValidator",
|
||||
"._packing.PackingValidator",
|
||||
"._flip.FlipValidator",
|
||||
],
|
||||
)
|
@ -0,0 +1,12 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class FlipValidator(_plotly_utils.basevalidators.FlaglistValidator):
|
||||
def __init__(self, plotly_name="flip", parent_name="treemap.tiling", **kwargs):
|
||||
super(FlipValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "plot"),
|
||||
flags=kwargs.pop("flags", ["x", "y"]),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,15 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class PackingValidator(_plotly_utils.basevalidators.EnumeratedValidator):
|
||||
def __init__(self, plotly_name="packing", parent_name="treemap.tiling", **kwargs):
|
||||
super(PackingValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "plot"),
|
||||
values=kwargs.pop(
|
||||
"values",
|
||||
["squarify", "binary", "dice", "slice", "slice-dice", "dice-slice"],
|
||||
),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,12 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class PadValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(self, plotly_name="pad", parent_name="treemap.tiling", **kwargs):
|
||||
super(PadValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "plot"),
|
||||
min=kwargs.pop("min", 0),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class SquarifyratioValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(
|
||||
self, plotly_name="squarifyratio", parent_name="treemap.tiling", **kwargs
|
||||
):
|
||||
super(SquarifyratioValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "plot"),
|
||||
min=kwargs.pop("min", 1),
|
||||
**kwargs,
|
||||
)
|
Reference in New Issue
Block a user