@tsdraw/react 0.8.1 → 0.8.3

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/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: 10px;
308
- height: 10px;
309
- border: 1px solid #4465e9;
310
- background: var(--tsdraw-color-handle-fill);
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: 10px;
341
- height: 10px;
342
- border: 1px solid #4465e9;
343
- background: var(--tsdraw-color-handle-fill);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsdraw/react",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "description": "@tsdraw/react - React components and hooks for tsdraw",
5
5
  "repository": {
6
6
  "type": "git",