mkdocs-topoviewer 0.1.0__tar.gz
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.
- mkdocs_topoviewer-0.1.0/.gitignore +17 -0
- mkdocs_topoviewer-0.1.0/LICENSE +201 -0
- mkdocs_topoviewer-0.1.0/MANIFEST.in +1 -0
- mkdocs_topoviewer-0.1.0/PKG-INFO +132 -0
- mkdocs_topoviewer-0.1.0/README.md +110 -0
- mkdocs_topoviewer-0.1.0/mkdocs_topoviewer/__init__.py +5 -0
- mkdocs_topoviewer-0.1.0/mkdocs_topoviewer/assets/topoviewer-embed.css +2 -0
- mkdocs_topoviewer-0.1.0/mkdocs_topoviewer/assets/topoviewer-embed.iife.js +56 -0
- mkdocs_topoviewer-0.1.0/mkdocs_topoviewer/assets/topoviewer-mkdocs.css +119 -0
- mkdocs_topoviewer-0.1.0/mkdocs_topoviewer/plugin.py +168 -0
- mkdocs_topoviewer-0.1.0/pyproject.toml +53 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
node_modules/
|
|
2
|
+
packages/*/node_modules/
|
|
3
|
+
packages/*/dist/
|
|
4
|
+
packages/*/test-results/
|
|
5
|
+
packages/*/playwright-report/
|
|
6
|
+
packages/*/build/
|
|
7
|
+
packages/*/*.egg-info/
|
|
8
|
+
.artifacts/
|
|
9
|
+
.donotpush/
|
|
10
|
+
.venv*/
|
|
11
|
+
site/
|
|
12
|
+
.DS_Store
|
|
13
|
+
__pycache__/
|
|
14
|
+
topoviewer-changes.patch
|
|
15
|
+
docs/assets/topoviewer-yaml-to-graph-demo.gif
|
|
16
|
+
docs/assets/topoviewer-yaml-to-graph-demo.mp4
|
|
17
|
+
docs/assets/topoviewer-yaml-to-graph-demo.png
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
recursive-include mkdocs_topoviewer/assets *
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mkdocs-topoviewer
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: MkDocs plugin for embedding TopoViewer declarative topology diagrams.
|
|
5
|
+
Project-URL: Homepage, https://github.com/asadarafat/topoviewer
|
|
6
|
+
Project-URL: Repository, https://github.com/asadarafat/topoviewer
|
|
7
|
+
Project-URL: Issues, https://github.com/asadarafat/topoviewer/issues
|
|
8
|
+
Author: Asad Arafat
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: diagram,mkdocs,network,topology,topoviewer
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Plugins
|
|
14
|
+
Classifier: Framework :: MkDocs
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Topic :: Documentation
|
|
18
|
+
Requires-Python: >=3.9
|
|
19
|
+
Requires-Dist: mkdocs<2,>=1.5
|
|
20
|
+
Requires-Dist: pyyaml>=6.0
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
|
|
23
|
+
# mkdocs-topoviewer
|
|
24
|
+
|
|
25
|
+
**Support status:** Supported
|
|
26
|
+
|
|
27
|
+
`mkdocs-topoviewer` is the MkDocs plugin wrapper for TopoViewer. It lets MkDocs users install TopoViewer with pip and embed declarative topology diagrams with a fenced Markdown block.
|
|
28
|
+
|
|
29
|
+
This package is licensed under Apache-2.0, like TopoViewer. It is publish-shaped for intentional public Python package releases, while private/customer-specific material should stay in separate packages or private indexes.
|
|
30
|
+
|
|
31
|
+
## Repository Boundary
|
|
32
|
+
|
|
33
|
+
This package is intentionally separate from the npm renderer package, but both packages are intended to live in one monorepo:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
topoviewer/
|
|
37
|
+
package.json # npm workspace orchestrator
|
|
38
|
+
packages/
|
|
39
|
+
topoviewer/ # npm package: topoviewer
|
|
40
|
+
mkdocs-topoviewer/ # Python package: mkdocs-topoviewer
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The renderer package owns the React component, compiler, schemas, and browser bundle. This package owns only the MkDocs integration: fenced-block parsing, page-relative reference resolution, asset injection, and packaging the approved browser bundle for Python users.
|
|
44
|
+
|
|
45
|
+
The dependency direction is one way: build TopoViewer first, then vendor its browser-ready embed assets into this package. MkDocs users should not need npm, Vite, React, or TypeScript in their documentation build pipeline.
|
|
46
|
+
|
|
47
|
+
## Install
|
|
48
|
+
|
|
49
|
+
Target install after package publication:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
pip install mkdocs-topoviewer
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Local development install:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
pip install -e packages/mkdocs-topoviewer
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Private distribution should use an approved package index:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pip install --index-url https://<private-index>/simple mkdocs-topoviewer
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Configure
|
|
68
|
+
|
|
69
|
+
```yaml
|
|
70
|
+
plugins:
|
|
71
|
+
- search
|
|
72
|
+
- topoviewer
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Optional plugin config:
|
|
76
|
+
|
|
77
|
+
```yaml
|
|
78
|
+
plugins:
|
|
79
|
+
- topoviewer:
|
|
80
|
+
asset_path: assets/topoviewer
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Use
|
|
84
|
+
|
|
85
|
+
````markdown
|
|
86
|
+
```topoviewer
|
|
87
|
+
topology: ./topoviewer-topo.yaml
|
|
88
|
+
stylesheet: ./topoviewer-style.yaml
|
|
89
|
+
height: 640px
|
|
90
|
+
title: MV network SR-TE service path
|
|
91
|
+
controls: true
|
|
92
|
+
controlsOpen: false
|
|
93
|
+
```
|
|
94
|
+
````
|
|
95
|
+
|
|
96
|
+
The plugin resolves `topology` and `stylesheet` relative to the Markdown page.
|
|
97
|
+
|
|
98
|
+
## What The Plugin Ships
|
|
99
|
+
|
|
100
|
+
The Python package vendors the browser-ready TopoViewer bundle:
|
|
101
|
+
|
|
102
|
+
- `topoviewer-embed.iife.js`
|
|
103
|
+
- `topoviewer-embed.css`
|
|
104
|
+
- `topoviewer-mkdocs.css`
|
|
105
|
+
|
|
106
|
+
MkDocs receives those files as generated site assets. Projects using the plugin do not need to run npm or copy assets manually.
|
|
107
|
+
|
|
108
|
+
## Development
|
|
109
|
+
|
|
110
|
+
When the TopoViewer browser bundle changes, refresh the vendored assets from the npm package:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
cd ../topoviewer
|
|
114
|
+
npm run build
|
|
115
|
+
npm run sync:mkdocs
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
When changing only this Python plugin, work from this package root:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
python -m pip install -e .
|
|
122
|
+
python -m build
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The plugin package should remain independently buildable and publishable. Do not import source files from `../topoviewer`; use only the vendored browser assets under `mkdocs_topoviewer/assets/`.
|
|
126
|
+
|
|
127
|
+
## Release Model
|
|
128
|
+
|
|
129
|
+
- `mkdocs-topoviewer` is the MkDocs wrapper for the stable TopoViewer browser bundle.
|
|
130
|
+
- Public plugin releases should contain stable behavior, docs, schemas, and vendored assets.
|
|
131
|
+
- Internal preview builds should use approved private package indexes.
|
|
132
|
+
- Customer-specific templates, private assets, or proprietary importers belong in separate private packages, not in this generic plugin.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# mkdocs-topoviewer
|
|
2
|
+
|
|
3
|
+
**Support status:** Supported
|
|
4
|
+
|
|
5
|
+
`mkdocs-topoviewer` is the MkDocs plugin wrapper for TopoViewer. It lets MkDocs users install TopoViewer with pip and embed declarative topology diagrams with a fenced Markdown block.
|
|
6
|
+
|
|
7
|
+
This package is licensed under Apache-2.0, like TopoViewer. It is publish-shaped for intentional public Python package releases, while private/customer-specific material should stay in separate packages or private indexes.
|
|
8
|
+
|
|
9
|
+
## Repository Boundary
|
|
10
|
+
|
|
11
|
+
This package is intentionally separate from the npm renderer package, but both packages are intended to live in one monorepo:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
topoviewer/
|
|
15
|
+
package.json # npm workspace orchestrator
|
|
16
|
+
packages/
|
|
17
|
+
topoviewer/ # npm package: topoviewer
|
|
18
|
+
mkdocs-topoviewer/ # Python package: mkdocs-topoviewer
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The renderer package owns the React component, compiler, schemas, and browser bundle. This package owns only the MkDocs integration: fenced-block parsing, page-relative reference resolution, asset injection, and packaging the approved browser bundle for Python users.
|
|
22
|
+
|
|
23
|
+
The dependency direction is one way: build TopoViewer first, then vendor its browser-ready embed assets into this package. MkDocs users should not need npm, Vite, React, or TypeScript in their documentation build pipeline.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
Target install after package publication:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pip install mkdocs-topoviewer
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Local development install:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install -e packages/mkdocs-topoviewer
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Private distribution should use an approved package index:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install --index-url https://<private-index>/simple mkdocs-topoviewer
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Configure
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
plugins:
|
|
49
|
+
- search
|
|
50
|
+
- topoviewer
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Optional plugin config:
|
|
54
|
+
|
|
55
|
+
```yaml
|
|
56
|
+
plugins:
|
|
57
|
+
- topoviewer:
|
|
58
|
+
asset_path: assets/topoviewer
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Use
|
|
62
|
+
|
|
63
|
+
````markdown
|
|
64
|
+
```topoviewer
|
|
65
|
+
topology: ./topoviewer-topo.yaml
|
|
66
|
+
stylesheet: ./topoviewer-style.yaml
|
|
67
|
+
height: 640px
|
|
68
|
+
title: MV network SR-TE service path
|
|
69
|
+
controls: true
|
|
70
|
+
controlsOpen: false
|
|
71
|
+
```
|
|
72
|
+
````
|
|
73
|
+
|
|
74
|
+
The plugin resolves `topology` and `stylesheet` relative to the Markdown page.
|
|
75
|
+
|
|
76
|
+
## What The Plugin Ships
|
|
77
|
+
|
|
78
|
+
The Python package vendors the browser-ready TopoViewer bundle:
|
|
79
|
+
|
|
80
|
+
- `topoviewer-embed.iife.js`
|
|
81
|
+
- `topoviewer-embed.css`
|
|
82
|
+
- `topoviewer-mkdocs.css`
|
|
83
|
+
|
|
84
|
+
MkDocs receives those files as generated site assets. Projects using the plugin do not need to run npm or copy assets manually.
|
|
85
|
+
|
|
86
|
+
## Development
|
|
87
|
+
|
|
88
|
+
When the TopoViewer browser bundle changes, refresh the vendored assets from the npm package:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
cd ../topoviewer
|
|
92
|
+
npm run build
|
|
93
|
+
npm run sync:mkdocs
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
When changing only this Python plugin, work from this package root:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
python -m pip install -e .
|
|
100
|
+
python -m build
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The plugin package should remain independently buildable and publishable. Do not import source files from `../topoviewer`; use only the vendored browser assets under `mkdocs_topoviewer/assets/`.
|
|
104
|
+
|
|
105
|
+
## Release Model
|
|
106
|
+
|
|
107
|
+
- `mkdocs-topoviewer` is the MkDocs wrapper for the stable TopoViewer browser bundle.
|
|
108
|
+
- Public plugin releases should contain stable behavior, docs, schemas, and vendored assets.
|
|
109
|
+
- Internal preview builds should use approved private package indexes.
|
|
110
|
+
- Customer-specific templates, private assets, or proprietary importers belong in separate private packages, not in this generic plugin.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.react-flow{--xy-edge-stroke-default:#b1b1b7;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#555;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#ffffff80;--xy-minimap-background-color-default:#fff;--xy-minimap-mask-background-color-default:#f0f0f099;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#e2e2e2;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:transparent;--xy-background-pattern-dots-color-default:#91919a;--xy-background-pattern-lines-color-default:#eee;--xy-background-pattern-cross-color-default:#e2e2e2;background-color:var(--xy-background-color,var(--xy-background-color-default));--xy-node-color-default:inherit;--xy-node-border-default:1px solid #1a192b;--xy-node-background-color-default:#fff;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #00000014;--xy-node-boxshadow-selected-default:0 0 0 .5px #1a192b;--xy-node-border-radius-default:3px;--xy-handle-background-color-default:#1a192b;--xy-handle-border-color-default:#fff;--xy-selection-background-color-default:#0059dc14;--xy-selection-border-default:1px dotted #0059dccc;--xy-controls-button-background-color-default:#fefefe;--xy-controls-button-background-color-hover-default:#f4f4f4;--xy-controls-button-color-default:inherit;--xy-controls-button-color-hover-default:inherit;--xy-controls-button-border-color-default:#eee;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#fff;--xy-edge-label-color-default:inherit;--xy-resize-background-color-default:#3367d9;direction:ltr}.react-flow.dark{--xy-edge-stroke-default:#3e3e3e;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#727272;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#96969640;--xy-minimap-background-color-default:#141414;--xy-minimap-mask-background-color-default:#3c3c3c99;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#2b2b2b;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:#141414;--xy-background-pattern-dots-color-default:#777;--xy-background-pattern-lines-color-default:#777;--xy-background-pattern-cross-color-default:#777;--xy-node-color-default:#f8f8f8;--xy-node-border-default:1px solid #3c3c3c;--xy-node-background-color-default:#1e1e1e;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #ffffff14;--xy-node-boxshadow-selected-default:0 0 0 .5px #999;--xy-handle-background-color-default:#bebebe;--xy-handle-border-color-default:#1e1e1e;--xy-selection-background-color-default:#c8c8dc14;--xy-selection-border-default:1px dotted #c8c8dccc;--xy-controls-button-background-color-default:#2b2b2b;--xy-controls-button-background-color-hover-default:#3e3e3e;--xy-controls-button-color-default:#f8f8f8;--xy-controls-button-color-hover-default:#fff;--xy-controls-button-border-color-default:#5b5b5b;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#141414;--xy-edge-label-color-default:#f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props,var(--xy-background-color,var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width,var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke,var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width,var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{pointer-events:none;position:absolute;overflow:visible}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected,var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}svg.react-flow__connectionline{z-index:1001;position:absolute;overflow:visible}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default;position:absolute}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background-color:var(--xy-handle-background-color,var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color,var(--xy-handle-border-color-default));border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:0;left:50%;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{z-index:5;margin:15px;position:absolute}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px)translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px)translateY(-50%)}.react-flow__attribution{background:var(--xy-attribution-background-color,var(--xy-attribution-background-color-default));margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__viewport-portal{-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__minimap{background:var(--xy-minimap-background-color-props,var(--xy-minimap-background-color,var(--xy-minimap-background-color-default)))}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var(--xy-minimap-mask-background-color-props,var(--xy-minimap-mask-background-color,var(--xy-minimap-mask-background-color-default)));stroke:var(--xy-minimap-mask-stroke-color-props,var(--xy-minimap-mask-stroke-color,var(--xy-minimap-mask-stroke-color-default)));stroke-width:var(--xy-minimap-mask-stroke-width-props,var(--xy-minimap-mask-stroke-width,var(--xy-minimap-mask-stroke-width-default)))}.react-flow__minimap-node{fill:var(--xy-minimap-node-background-color-props,var(--xy-minimap-node-background-color,var(--xy-minimap-node-background-color-default)));stroke:var(--xy-minimap-node-stroke-color-props,var(--xy-minimap-node-stroke-color,var(--xy-minimap-node-stroke-color-default)));stroke-width:var(--xy-minimap-node-stroke-width-props,var(--xy-minimap-node-stroke-width,var(--xy-minimap-node-stroke-width-default)))}.react-flow__background-pattern.dots{fill:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-dots-color-default)))}.react-flow__background-pattern.lines{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-lines-color-default)))}.react-flow__background-pattern.cross{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-cross-color-default)))}.react-flow__controls{box-shadow:var(--xy-controls-box-shadow,var(--xy-controls-box-shadow-default));flex-direction:column;display:flex}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{background:var(--xy-controls-button-background-color,var(--xy-controls-button-background-color-default));border:none;border-bottom:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)));width:26px;height:26px;color:var(--xy-controls-button-color-props,var(--xy-controls-button-color,var(--xy-controls-button-color-default)));cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:4px;display:flex}.react-flow__controls-button svg{fill:currentColor;width:100%;max-width:12px;max-height:12px}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{border-radius:var(--xy-node-border-radius,var(--xy-node-border-radius-default));width:150px;color:var(--xy-node-color,var(--xy-node-color-default));text-align:center;border:var(--xy-node-border,var(--xy-node-border-default));background-color:var(--xy-node-background-color,var(--xy-node-background-color-default));padding:10px;font-size:12px}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover,var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected,var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color,var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color,var(--xy-selection-background-color-default));border:var(--xy-selection-border,var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var(--xy-controls-button-background-color-hover-props,var(--xy-controls-button-background-color-hover,var(--xy-controls-button-background-color-hover-default)));color:var(--xy-controls-button-color-hover-props,var(--xy-controls-button-color-hover,var(--xy-controls-button-color-hover-default)))}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)))}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{background-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border:1px solid #fff;border-radius:1px;width:5px;height:5px;translate:-50% -50%}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border-style:solid;border-width:0}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color,var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color,var(--xy-edge-label-color-default))}:root{--topoviewer-bg:#0b1118;--topoviewer-bg-radial-a:#2d8be829;--topoviewer-bg-radial-b:#53b66d14;--topoviewer-bg-end:#0b1017;--topoviewer-fg:#e7edf4;--topoviewer-fg-strong:#edf4ff;--topoviewer-fg-muted:#9db2cf;--topoviewer-panel-bg:#0d141df5;--topoviewer-surface-bg:#111820db;--topoviewer-chip-bg:#16202cdb;--topoviewer-chip-hover-bg:#2d8be847;--topoviewer-button-bg:#293b4db8;--topoviewer-border:#788faa47;--topoviewer-border-strong:#788faa57;--topoviewer-accent:#3da1ff;--topoviewer-edge-default:#2d8be8c7;--topoviewer-region-label-bg:var(--topoviewer-surface-bg);--topoviewer-region-label-fg:var(--topoviewer-fg-strong);--topoviewer-edge-label-bg:#111820db;--topoviewer-edge-label-border:#2d3846;--topoviewer-node-shadow:0 1px 4px #00000042;--topoviewer-panel-shadow:0 14px 34px #0000005c;--topoviewer-label-shadow:0 8px 18px #0000005c}.topoviewer-parity-theme{--topoviewer-bg:#0b1118;--topoviewer-bg-radial-a:#1976d214;--topoviewer-bg-radial-b:#4caf500f;--topoviewer-bg-end:#0b1118;--topoviewer-fg:#e7edf4;--topoviewer-fg-strong:#f8fafc;--topoviewer-fg-muted:#9db2cf;--topoviewer-panel-bg:#111827f0;--topoviewer-surface-bg:#0f172ae6;--topoviewer-chip-bg:#1e293be6;--topoviewer-chip-hover-bg:#42a5f52e;--topoviewer-button-bg:#1e293be0;--topoviewer-border:#94a3b847;--topoviewer-border-strong:#94a3b861;--topoviewer-accent:#42a5f5;--topoviewer-edge-default:#42a5f5c7;--topoviewer-region-label-bg:#111827f0;--topoviewer-region-label-fg:#f8fafc;--topoviewer-edge-label-bg:#111827eb;--topoviewer-edge-label-border:#94a3b85c;--topoviewer-node-shadow:0 1px 4px #00000042;--topoviewer-panel-shadow:0 14px 34px #00000047;--topoviewer-label-shadow:0 8px 18px #00000052;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.topoviewer{letter-spacing:0;background:radial-gradient(circle at 30% 20%, var(--topoviewer-bg-radial-a), transparent 28%), radial-gradient(circle at 76% 72%, var(--topoviewer-bg-radial-b), transparent 30%), linear-gradient(135deg, var(--topoviewer-bg) 0%, var(--topoviewer-bg) 52%, var(--topoviewer-bg-end) 100%);width:100%;height:100%;min-height:420px;color:var(--topoviewer-fg);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px;line-height:1}.topoviewer,.topoviewer *,.topoviewer :before,.topoviewer :after{box-sizing:border-box}.topoviewer .topoviewer-node-icon>.topoviewer-node-geometry,.topoviewer .topoviewer-shape>.topoviewer-shape-geometry,.topoviewer .react-flow__edge .topoviewer-edge-paint-layer{aspect-ratio:auto;vertical-align:baseline;width:100%;min-width:0;max-width:none;height:100%;min-height:0;max-height:none;display:block}.topoviewer .react-flow__edge .topoviewer-edge-paint-layer{width:1px;height:1px}.topoviewer .topoviewer-node-icon-content>.topoviewer-node-icon-image{aspect-ratio:auto;object-fit:contain;object-position:center;vertical-align:baseline;width:100%;min-width:0;max-width:none;height:100%;min-height:0;max-height:none;display:block}.topoviewer-embed-shell{background:var(--topoviewer-bg);flex-direction:column;width:100%;height:100%;min-height:420px;display:flex}.topoviewer-embed-controls{border:1px solid var(--topoviewer-border);background:var(--topoviewer-panel-bg);box-shadow:var(--topoviewer-panel-shadow);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:10px;gap:8px;padding:10px 12px;display:grid}.topoviewer-embed-control-group{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.topoviewer-embed-control-label{color:var(--topoviewer-fg-muted);letter-spacing:.08em;text-transform:uppercase;font-size:10px;font-weight:760}.topoviewer-embed-check{color:var(--topoviewer-fg);border:1px solid var(--topoviewer-border);background:var(--topoviewer-chip-bg);-webkit-user-select:none;user-select:none;border-radius:999px;align-items:center;gap:5px;padding:4px 8px;font-size:11px;line-height:1;display:inline-flex}.topoviewer-embed-check input{width:12px;height:12px;accent-color:var(--topoviewer-accent);margin:0}.topoviewer-embed-controls button{color:var(--topoviewer-fg-strong);border:1px solid var(--topoviewer-border-strong);background:var(--topoviewer-button-bg);cursor:pointer;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:680;line-height:1}.topoviewer-embed-controls button:hover{background:var(--topoviewer-chip-hover-bg)}.topoviewer-embed-viewport{flex:auto;min-height:0;position:relative}.topoviewer-embed-controls-overlay{z-index:12;pointer-events:none;position:absolute;top:12px;left:12px;right:62px}.topoviewer-embed-controls-overlay .topoviewer-embed-controls{pointer-events:auto}.topoviewer .react-flow{--xy-background-color:transparent;--xy-edge-stroke-default:var(--topoviewer-edge-default);--xy-node-background-color-default:transparent;color:var(--topoviewer-fg)}.topoviewer-node{box-sizing:border-box;width:82px;min-height:60px;color:var(--topoviewer-fg);box-shadow:none;cursor:grab;background:0 0;border:0;align-content:start;justify-items:center;gap:3px;padding:0;display:grid;position:relative}.topoviewer-node *{cursor:inherit}.topoviewer-node:focus-visible .topoviewer-node-icon{outline:0}.topoviewer-node:focus-visible .topoviewer-node-geometry{filter:drop-shadow(0 0 #f8fafc)drop-shadow(0 0 5px #f8fafcd1)}.react-flow__node.dragging .topoviewer-node{cursor:grabbing}.topoviewer-node-icon{color:#fff;width:34px;height:34px;box-shadow:none;background:0 0;border:0;place-items:center;font-size:12px;font-weight:900;display:grid;position:relative}.topoviewer-node-geometry{pointer-events:none;filter:drop-shadow(0 1px 3px #00000042);width:100%;height:100%;display:block;position:absolute;inset:0;overflow:visible}.topoviewer-node-geometry-shape{vector-effect:non-scaling-stroke}.topoviewer-node-geometry-outline,.topoviewer-node-geometry-underlay{vector-effect:non-scaling-stroke;pointer-events:none}.topoviewer-node-geometry-stroke-overlay{z-index:2}.topoviewer-node-icon-content{z-index:1;box-sizing:border-box;letter-spacing:0;text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;place-content:center;place-items:center;width:62%;height:62%;font-family:inherit;line-height:1;display:grid;position:relative;overflow:hidden}.topoviewer-node-icon-image{object-fit:contain;object-position:center;pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;display:block}.topoviewer-node-label{z-index:2;box-sizing:border-box;max-width:100%;color:var(--topoviewer-fg-strong);letter-spacing:0;text-align:center;overflow-wrap:anywhere;transform:translate(var(--topoviewer-node-label-x-offset,0), var(--topoviewer-node-label-y-offset,0));border-style:solid;border-width:0;border-radius:3px;justify-content:center;align-items:center;font-size:10px;font-weight:620;line-height:1.1;display:inline-flex;position:relative}.topoviewer-node-label-position-top .topoviewer-node-label{transform:translate(-50%, calc(-100% - 4px)) translate(var(--topoviewer-node-label-x-offset,0), var(--topoviewer-node-label-y-offset,0));position:absolute;top:0;left:50%}.topoviewer-node-label-position-left .topoviewer-node-label,.topoviewer-node-label-position-right .topoviewer-node-label,.topoviewer-node-label-position-center .topoviewer-node-label{position:absolute}.topoviewer-node-label-position-left .topoviewer-node-label{top:calc(var(--topoviewer-node-icon-height,34px) / 2);right:calc(50% + (var(--topoviewer-node-icon-width,34px) / 2) + 8px);transform:translateY(-50%) translate(var(--topoviewer-node-label-x-offset,0), var(--topoviewer-node-label-y-offset,0))}.topoviewer-node-label-position-right .topoviewer-node-label{top:calc(var(--topoviewer-node-icon-height,34px) / 2);left:calc(50% + (var(--topoviewer-node-icon-width,34px) / 2) + 8px);transform:translateY(-50%) translate(var(--topoviewer-node-label-x-offset,0), var(--topoviewer-node-label-y-offset,0))}.topoviewer-node-label-position-center .topoviewer-node-label{top:calc(var(--topoviewer-node-icon-height,34px) / 2);transform:translate(-50%, -50%) translate(var(--topoviewer-node-label-x-offset,0), var(--topoviewer-node-label-y-offset,0));left:50%}.topoviewer-node-label-zoom-suppressed .topoviewer-node-label{display:none}.topoviewer-node-parent{border:1px solid var(--topoviewer-border-strong);background:color-mix(in srgb, var(--topoviewer-surface-bg) 74%, transparent);box-shadow:var(--topoviewer-node-shadow);border-radius:16px;align-content:start;padding:10px 12px 14px}.topoviewer-node-parent .topoviewer-node-label{margin-top:1px}.topoviewer-node-child{align-content:center}.topoviewer-node-label p{margin:0}.topoviewer-node-label strong{font-weight:850}.topoviewer-node-label em{font-style:italic}.topoviewer-node-label u{text-underline-offset:2px}.topoviewer-node-label s{opacity:.82}.topoviewer-node-label code{background:color-mix(in srgb, var(--topoviewer-panel) 84%, transparent);border-radius:3px;padding:0 2px;font-size:.92em}.topoviewer-node-label img{vertical-align:middle;max-width:100%;max-height:18px}.topoviewer-label-overlay{pointer-events:none}.topoviewer-node-meta{max-width:max(var(--topoviewer-node-icon-width,34px), 11rem);color:var(--topoviewer-fg-muted);letter-spacing:0;text-align:center;overflow-wrap:anywhere;font-size:8px;line-height:1.2}.topoviewer-node-badge{z-index:3;color:#0f172a;letter-spacing:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;box-sizing:border-box;background:#f8fafc;border:1px solid #0f172a29;border-radius:999px;min-width:16px;max-width:44px;min-height:16px;padding:2px 5px;font-size:9px;font-weight:850;line-height:1.1;position:absolute;overflow:hidden;box-shadow:0 2px 7px #0f172a33}.topoviewer-node-badge[data-badge-position=topLeft]{top:-7px;left:-7px}.topoviewer-node-badge[data-badge-position=topRight]{top:-7px;right:-7px}.topoviewer-node-badge[data-badge-position=bottomLeft]{bottom:-7px;left:-7px}.topoviewer-node-badge[data-badge-position=bottomRight]{bottom:-7px;right:-7px}.topoviewer-node-status{z-index:3;border:2px solid var(--topoviewer-panel-bg);pointer-events:none;box-sizing:border-box;border-radius:999px;width:10px;height:10px;position:absolute;box-shadow:0 2px 7px #0f172a3d}.topoviewer-node-status[data-status-placement=topLeft]{top:1px;left:1px}.topoviewer-node-status[data-status-placement=topRight]{top:1px;right:1px}.topoviewer-node-status[data-status-placement=bottomLeft]{bottom:1px;left:1px}.topoviewer-node-status[data-status-placement=bottomRight]{bottom:1px;right:1px}.topoviewer-node-status[data-status-placement=center]{top:50%;left:50%;transform:translate(-50%,-50%)}.topoviewer-node-attention-focused .topoviewer-node-icon{box-shadow:none}.topoviewer-node-attention-focused .topoviewer-node-geometry{filter:drop-shadow(0 0 #60a5fa47)drop-shadow(0 0 10px #60a5fa8f)drop-shadow(0 1px 3px #00000042)}.topoviewer-node-attention-related .topoviewer-node-icon{box-shadow:none}.topoviewer-node-attention-related .topoviewer-node-geometry{filter:drop-shadow(0 0 #68d39138)drop-shadow(0 0 8px #68d39161)drop-shadow(0 1px 3px #00000042)}.topoviewer-node-attention-dimmed,.topoviewer-node-attention-suppressed{filter:saturate(.74)}.topoviewer-node-attention-aggregate .topoviewer-node-icon,.topoviewer-node-label-priority-aggregate .topoviewer-node-icon{border-radius:8px;width:42px!important;height:30px!important}.topoviewer-node-label-priority-low .topoviewer-node-meta,.topoviewer-node-label-priority-hidden .topoviewer-node-label,.topoviewer-node-label-priority-hidden .topoviewer-node-meta,.topoviewer-label-density-minimal .topoviewer-node-label-priority-low .topoviewer-node-label,.topoviewer-label-density-minimal .topoviewer-node-label-priority-low .topoviewer-node-meta,.topoviewer-label-density-minimal .topoviewer-node-label-priority-medium .topoviewer-node-meta,.topoviewer-label-density-minimal .topoviewer-label-overlay[data-label-priority=low],.topoviewer-label-density-minimal .topoviewer-label-overlay[data-label-priority=medium],.topoviewer-label-density-minimal .topoviewer-edge-label[data-label-priority=low],.topoviewer-label-density-minimal .topoviewer-edge-label[data-label-priority=medium]{display:none}.topoviewer-label-density-dense .topoviewer-node-label-priority-low .topoviewer-node-meta,.topoviewer-label-density-dense .topoviewer-edge-label[data-label-priority=low],.topoviewer-label-density-dense .topoviewer-edge-label[data-label-priority=medium]{display:block}.topoviewer-region{border:1px solid var(--topoviewer-region-stroke,#37a9d86b);background:var(--topoviewer-region-fill,#4cc9f01f);cursor:grab;border-radius:4px;width:100%;height:100%}.react-flow__node-region.dragging .topoviewer-region{cursor:grabbing}.topoviewer-region-label{border:1px solid var(--topoviewer-border);color:var(--topoviewer-region-label-fg);background:var(--topoviewer-region-label-bg);letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;border-radius:3px;padding:4px 7px;font-size:10px;font-weight:720;line-height:1.5;position:absolute;top:12px;left:18px}.topoviewer-shape{box-sizing:border-box;cursor:grab;background:0 0;border:0;width:100%;height:100%;position:relative;overflow:visible}.react-flow__node.dragging .topoviewer-shape{cursor:grabbing}.topoviewer-shape-geometry{pointer-events:none;width:100%;height:100%;display:block;overflow:visible}.topoviewer-callout{color:#101820;box-sizing:border-box;cursor:grab;background:#d3f2fff0;border:2px solid #54c9f5b8;border-radius:5px;width:100%;min-height:100%;overflow:hidden;box-shadow:0 0 12px #54c9f56b}.react-flow__node.dragging .topoviewer-callout{cursor:grabbing}.topoviewer-callout-title{color:#050a12;background:#bce8fae0;padding:9px 14px;font-size:18px;font-weight:850;line-height:1.15}.topoviewer-callout-body{color:#111827;margin:0;padding:12px 18px 14px;font-size:14px;line-height:1.24}.topoviewer-callout-body p,.topoviewer-callout-body ul,.topoviewer-callout-body ol,.topoviewer-callout-body h3,.topoviewer-callout-body h4,.topoviewer-callout-body h5,.topoviewer-callout-body h6{margin:0}.topoviewer-callout-body p+p,.topoviewer-callout-body p+ul,.topoviewer-callout-body p+ol,.topoviewer-callout-body ul+p,.topoviewer-callout-body ol+p,.topoviewer-callout-body h3+p,.topoviewer-callout-body h4+p,.topoviewer-callout-body h5+p,.topoviewer-callout-body h6+p{margin-top:8px}.topoviewer-callout-body ul,.topoviewer-callout-body ol{padding-left:18px}.topoviewer-callout-body code{background:#0f172a1a;border-radius:3px;padding:1px 4px;font-size:.92em}.topoviewer-callout-body img{border-radius:6px;max-width:100%;height:auto;margin:8px auto 0;display:block}.topoviewer-callout-body li+li{margin-top:5px}.topoviewer-pin{opacity:0;pointer-events:none;width:1px;height:1px}.topoviewer-edge-label{z-index:40;color:var(--topoviewer-fg-strong);background:var(--topoviewer-edge-label-bg);border:1px solid var(--topoviewer-edge-label-border);letter-spacing:0;box-shadow:var(--topoviewer-label-shadow);border-radius:3px;padding:3px 6px;font-size:10px;font-weight:650;line-height:1.5}.topoviewer-edge-paint-layer{z-index:8;pointer-events:none;width:1px;height:1px;position:absolute;top:0;left:0;overflow:visible}.topoviewer .react-flow__edgelabel-renderer{z-index:40}.topoviewer .react-flow__viewport-portal{z-index:60}.topoviewer-edge-visible-path{fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.topoviewer-edge-attention-focused{filter:drop-shadow(0 0 5px #60a5fac2)}.topoviewer-edge-attention-related{filter:drop-shadow(0 0 4px #68d39175)}.topoviewer-edge-aggregate{filter:drop-shadow(0 0 5px #8b5cf647)}.topoviewer-edge-attention-dimmed,.topoviewer-edge-attention-suppressed{stroke-opacity:.36}.topoviewer-edge-label[data-label-priority=hidden]{display:none}.topoviewer-edge-pipe-border,.topoviewer-edge-pipe-fill,.topoviewer-edge-line-outline,.topoviewer-edge-lane,.topoviewer-edge-direction-outline,.topoviewer-edge-direction-stroke{fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.topoviewer-edge-direction-selected .topoviewer-edge-direction-stroke{filter:drop-shadow(0 0 5px #60a5fac2)}.topoviewer-edge-direction-parent-hover .topoviewer-edge-direction-stroke{filter:drop-shadow(0 0 3px #60a5fa94)}.topoviewer-edge-direction-hit-target{pointer-events:stroke}.topoviewer-edge-pipe-border,.topoviewer-edge-lane-stub{stroke-linecap:round}.topoviewer .react-flow__handle{opacity:0;pointer-events:none;border:0;width:1px;min-width:1px;height:1px;min-height:1px}.topoviewer-reactflow-controls{border:1px solid var(--topoviewer-border-strong);background:var(--topoviewer-surface-bg);box-shadow:var(--topoviewer-panel-shadow);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:8px;overflow:hidden}.topoviewer-reactflow-controls .react-flow__controls-button{border-bottom-color:var(--topoviewer-border);width:34px;height:34px;color:var(--topoviewer-fg-strong);background:var(--topoviewer-panel-bg);padding:0;line-height:1}.topoviewer-reactflow-controls .react-flow__controls-button:hover{background:var(--topoviewer-chip-hover-bg)}.topoviewer-reactflow-controls .topoviewer-controls-toggle.is-open{color:var(--topoviewer-accent);background:var(--topoviewer-chip-hover-bg)}.topoviewer-reactflow-controls .react-flow__controls-button svg{aspect-ratio:auto;fill:currentColor;stroke:currentColor;width:15px;min-width:0;max-width:none;height:15px;min-height:0;max-height:none}@media (prefers-reduced-motion:reduce){.topoviewer,.topoviewer *,.topoviewer :before,.topoviewer :after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}
|
|
2
|
+
/*$vite$:1*/
|