@tsdraw/react 0.8.2 → 0.8.4
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 +152 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +153 -67
- package/dist/index.js.map +1 -1
- package/dist/tsdraw.css +46 -10
- package/package.json +1 -1
package/dist/tsdraw.css
CHANGED
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
font-family: system-ui, sans-serif;
|
|
26
26
|
background: var(--tsdraw-color-bg);
|
|
27
27
|
overflow: hidden;
|
|
28
|
+
user-select: none;
|
|
29
|
+
-webkit-user-select: none;
|
|
30
|
+
touch-action: none;
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
.tsdraw.tsdraw-darkmode {
|
|
@@ -290,6 +293,7 @@
|
|
|
290
293
|
position: absolute;
|
|
291
294
|
transform-origin: center center;
|
|
292
295
|
pointer-events: none;
|
|
296
|
+
overflow: visible;
|
|
293
297
|
z-index: 91;
|
|
294
298
|
}
|
|
295
299
|
|
|
@@ -304,16 +308,32 @@
|
|
|
304
308
|
|
|
305
309
|
.tsdraw-selection-handle {
|
|
306
310
|
position: absolute;
|
|
307
|
-
width:
|
|
308
|
-
height:
|
|
309
|
-
border:
|
|
310
|
-
background:
|
|
311
|
+
width: 26px;
|
|
312
|
+
height: 26px;
|
|
313
|
+
border: none;
|
|
314
|
+
background: transparent;
|
|
311
315
|
transform: translate(-50%, -50%);
|
|
312
|
-
border-radius: 2px;
|
|
313
316
|
padding: 0;
|
|
317
|
+
margin: 0;
|
|
314
318
|
cursor: nwse-resize;
|
|
315
319
|
z-index: 2;
|
|
316
320
|
pointer-events: auto;
|
|
321
|
+
-webkit-appearance: none;
|
|
322
|
+
appearance: none;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.tsdraw-selection-handle::after {
|
|
326
|
+
content: '';
|
|
327
|
+
position: absolute;
|
|
328
|
+
top: 50%;
|
|
329
|
+
left: 50%;
|
|
330
|
+
width: 10px;
|
|
331
|
+
height: 10px;
|
|
332
|
+
transform: translate(-50%, -50%);
|
|
333
|
+
border: 1px solid #4465e9;
|
|
334
|
+
background: var(--tsdraw-color-handle-fill);
|
|
335
|
+
border-radius: 2px;
|
|
336
|
+
pointer-events: none;
|
|
317
337
|
}
|
|
318
338
|
|
|
319
339
|
.tsdraw-selection-handle--ne,
|
|
@@ -337,16 +357,32 @@
|
|
|
337
357
|
position: absolute;
|
|
338
358
|
left: 50%;
|
|
339
359
|
top: -20px;
|
|
340
|
-
width:
|
|
341
|
-
height:
|
|
342
|
-
border:
|
|
343
|
-
background:
|
|
360
|
+
width: 26px;
|
|
361
|
+
height: 26px;
|
|
362
|
+
border: none;
|
|
363
|
+
background: transparent;
|
|
344
364
|
transform: translate(-50%, -50%);
|
|
345
|
-
border-radius: 2px;
|
|
346
365
|
padding: 0;
|
|
366
|
+
margin: 0;
|
|
347
367
|
cursor: grab;
|
|
348
368
|
z-index: 3;
|
|
349
369
|
pointer-events: auto;
|
|
370
|
+
-webkit-appearance: none;
|
|
371
|
+
appearance: none;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.tsdraw-rotation-handle::after {
|
|
375
|
+
content: '';
|
|
376
|
+
position: absolute;
|
|
377
|
+
top: 50%;
|
|
378
|
+
left: 50%;
|
|
379
|
+
width: 10px;
|
|
380
|
+
height: 10px;
|
|
381
|
+
transform: translate(-50%, -50%);
|
|
382
|
+
border: 1px solid #4465e9;
|
|
383
|
+
background: var(--tsdraw-color-handle-fill);
|
|
384
|
+
border-radius: 50%;
|
|
385
|
+
pointer-events: none;
|
|
350
386
|
}
|
|
351
387
|
|
|
352
388
|
.tsdraw-tool-overlay {
|