forked from Botts-Innovative-Research/OSHConnect-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyling.py
More file actions
37 lines (29 loc) · 903 Bytes
/
styling.py
File metadata and controls
37 lines (29 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# ==============================================================================
# Copyright (c) 2024 Botts Innovative Research, Inc.
# Date: 2024/6/26
# Author: Ian Patterson
# Contact Email: ian@botts-inc.com
# ==============================================================================
from typing import Callable
from pydantic import BaseModel
class VisualizationDataLayer(BaseModel):
"""
Represents the data portion of a particular visualization as well as its state information.
"""
name: str
description: str
datasource_id: list[str]
visible: bool
timestamp: float
_get_timestamp: Callable
on_left_click: Callable
on_right_click: Callable
on_hover: Callable
_id: str
_type: str
_filter: dict
_datasources_to_fn: Callable
_no_datasources_fn: Callable
class Styling:
def __init__(self):
pass