polly-graph 0.1.15 → 0.2.1
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/dist/index.cjs +7342 -6263
- package/dist/index.css +3 -125
- package/dist/index.d.cts +1200 -364
- package/dist/index.d.ts +1200 -364
- package/dist/index.js +7306 -6258
- package/package.json +7 -2
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* src/styles/graph-controls.css */
|
|
1
|
+
/* src/v2/styles/graph-controls.css */
|
|
2
2
|
.pg-controls {
|
|
3
3
|
position: absolute;
|
|
4
4
|
display: flex;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
fill: none;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
/* src/styles/graph-legends.css */
|
|
70
|
+
/* src/v2/styles/graph-legends.css */
|
|
71
71
|
.pg-legend {
|
|
72
72
|
position: absolute;
|
|
73
73
|
pointer-events: auto;
|
|
@@ -199,126 +199,4 @@
|
|
|
199
199
|
visibility: hidden;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
/* src/styles/
|
|
203
|
-
:root {
|
|
204
|
-
--dark-bg: color-mix(in srgb, #808080, #000000 20%);
|
|
205
|
-
}
|
|
206
|
-
.graph-tooltip {
|
|
207
|
-
position: absolute;
|
|
208
|
-
pointer-events: none;
|
|
209
|
-
z-index: 1000;
|
|
210
|
-
width: fit-content;
|
|
211
|
-
max-width: 280px;
|
|
212
|
-
border-radius: 0.375rem;
|
|
213
|
-
background: var(--dark-bg);
|
|
214
|
-
color: #f8fafc;
|
|
215
|
-
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
216
|
-
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
|
|
217
|
-
font-family:
|
|
218
|
-
"Inter",
|
|
219
|
-
-apple-system,
|
|
220
|
-
BlinkMacSystemFont,
|
|
221
|
-
"Segoe UI",
|
|
222
|
-
sans-serif;
|
|
223
|
-
font-size: 10px;
|
|
224
|
-
line-height: 1.5;
|
|
225
|
-
opacity: 0;
|
|
226
|
-
transform: translateY(4px);
|
|
227
|
-
transition: opacity 120ms ease, transform 120ms ease;
|
|
228
|
-
}
|
|
229
|
-
.graph-tooltip--visible {
|
|
230
|
-
opacity: 1;
|
|
231
|
-
transform: translateY(0);
|
|
232
|
-
}
|
|
233
|
-
.graph-tooltip__content {
|
|
234
|
-
position: relative;
|
|
235
|
-
z-index: 2;
|
|
236
|
-
padding: 0.375rem 0.5rem;
|
|
237
|
-
word-wrap: break-word;
|
|
238
|
-
overflow-wrap: break-word;
|
|
239
|
-
}
|
|
240
|
-
.graph-tooltip__arrow {
|
|
241
|
-
position: absolute;
|
|
242
|
-
width: 0.625rem;
|
|
243
|
-
height: 0.625rem;
|
|
244
|
-
background: var(--dark-bg);
|
|
245
|
-
transform: rotate(45deg);
|
|
246
|
-
z-index: 1;
|
|
247
|
-
}
|
|
248
|
-
.graph-tooltip__arrow--top {
|
|
249
|
-
left: 50%;
|
|
250
|
-
bottom: -6px;
|
|
251
|
-
transform: translateX(-50%) rotate(45deg);
|
|
252
|
-
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
|
253
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
254
|
-
}
|
|
255
|
-
.graph-tooltip__arrow--bottom {
|
|
256
|
-
left: 50%;
|
|
257
|
-
top: -6px;
|
|
258
|
-
transform: translateX(-50%) rotate(45deg);
|
|
259
|
-
border-left: 1px solid rgba(255, 255, 255, 0.08);
|
|
260
|
-
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
261
|
-
}
|
|
262
|
-
.graph-tooltip__arrow--left {
|
|
263
|
-
top: 50%;
|
|
264
|
-
right: -6px;
|
|
265
|
-
transform: translateY(-50%) rotate(45deg);
|
|
266
|
-
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
267
|
-
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
|
268
|
-
}
|
|
269
|
-
.graph-tooltip__arrow--right {
|
|
270
|
-
top: 50%;
|
|
271
|
-
left: -6px;
|
|
272
|
-
transform: translateY(-50%) rotate(45deg);
|
|
273
|
-
border-left: 1px solid rgba(255, 255, 255, 0.08);
|
|
274
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
275
|
-
}
|
|
276
|
-
.graph-tooltip__type {
|
|
277
|
-
font-size: 9px;
|
|
278
|
-
font-weight: 600;
|
|
279
|
-
color: #94a3b8;
|
|
280
|
-
text-transform: uppercase;
|
|
281
|
-
letter-spacing: 0.04em;
|
|
282
|
-
}
|
|
283
|
-
.graph-tooltip__label {
|
|
284
|
-
margin-top: 4px;
|
|
285
|
-
font-size: 11px;
|
|
286
|
-
font-weight: 600;
|
|
287
|
-
line-height: 1.4;
|
|
288
|
-
color: #ffffff;
|
|
289
|
-
word-wrap: break-word;
|
|
290
|
-
overflow-wrap: break-word;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/* src/styles/graph.css */
|
|
294
|
-
.pg-root {
|
|
295
|
-
position: relative;
|
|
296
|
-
overflow: hidden;
|
|
297
|
-
width: 100%;
|
|
298
|
-
height: 100%;
|
|
299
|
-
}
|
|
300
|
-
.pg-canvas {
|
|
301
|
-
display: block;
|
|
302
|
-
width: 100%;
|
|
303
|
-
height: 100%;
|
|
304
|
-
cursor: grab;
|
|
305
|
-
}
|
|
306
|
-
.pg-canvas:active {
|
|
307
|
-
cursor: grabbing;
|
|
308
|
-
}
|
|
309
|
-
.pg-overlay {
|
|
310
|
-
position: absolute;
|
|
311
|
-
inset: 0;
|
|
312
|
-
pointer-events: none;
|
|
313
|
-
z-index: 10;
|
|
314
|
-
}
|
|
315
|
-
.pg-layer-nodes circle {
|
|
316
|
-
cursor: pointer;
|
|
317
|
-
transition: r 0.2s ease, stroke-width 0.2s ease;
|
|
318
|
-
}
|
|
319
|
-
.pg-layer-links line {
|
|
320
|
-
cursor: pointer;
|
|
321
|
-
transition: stroke-opacity 0.2s ease;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/* src/styles/main.css */
|
|
202
|
+
/* src/v2/styles/main.css */
|