saltfish 0.3.9 → 0.3.11
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.
|
@@ -6610,23 +6610,44 @@ class CursorManager {
|
|
|
6610
6610
|
will-change: transform;
|
|
6611
6611
|
transform: var(--sf-cursor-transform, translate(0, 0));
|
|
6612
6612
|
opacity: var(--sf-cursor-opacity, 1);
|
|
6613
|
+
/* Defensive styles to prevent host page CSS interference */
|
|
6614
|
+
margin: 0;
|
|
6615
|
+
padding: 0;
|
|
6616
|
+
border: 0;
|
|
6617
|
+
box-sizing: content-box;
|
|
6618
|
+
line-height: 0;
|
|
6619
|
+
font-size: 0;
|
|
6620
|
+
vertical-align: baseline;
|
|
6621
|
+
overflow: visible;
|
|
6613
6622
|
}
|
|
6614
6623
|
|
|
6615
6624
|
.sf-cursor--visible {
|
|
6616
6625
|
display: block;
|
|
6617
6626
|
}
|
|
6618
6627
|
|
|
6628
|
+
.sf-cursor svg {
|
|
6629
|
+
display: block;
|
|
6630
|
+
width: 100%;
|
|
6631
|
+
height: 100%;
|
|
6632
|
+
margin: 0;
|
|
6633
|
+
padding: 0;
|
|
6634
|
+
border: 0;
|
|
6635
|
+
}
|
|
6636
|
+
|
|
6619
6637
|
.sf-selection {
|
|
6620
6638
|
position: fixed;
|
|
6621
6639
|
pointer-events: none;
|
|
6622
6640
|
display: none;
|
|
6623
6641
|
z-index: 9999998;
|
|
6642
|
+
top: 0;
|
|
6643
|
+
left: 0;
|
|
6624
6644
|
border: 2px solid var(--sf-selection-color, #ff7614);
|
|
6625
6645
|
background: var(--sf-selection-bg-color, rgba(255, 118, 20, 0.1));
|
|
6626
|
-
left: var(--sf-selection-left, 0);
|
|
6627
|
-
top: var(--sf-selection-top, 0);
|
|
6628
6646
|
width: var(--sf-selection-width, 0);
|
|
6629
6647
|
height: var(--sf-selection-height, 0);
|
|
6648
|
+
transform: var(--sf-selection-transform, translate(0, 0));
|
|
6649
|
+
will-change: transform;
|
|
6650
|
+
box-sizing: border-box;
|
|
6630
6651
|
}
|
|
6631
6652
|
|
|
6632
6653
|
.sf-selection--visible {
|
|
@@ -6707,8 +6728,7 @@ class CursorManager {
|
|
|
6707
6728
|
const top = Math.floor(targetRect.top - padding);
|
|
6708
6729
|
const width = Math.ceil(targetRect.width + padding * 2);
|
|
6709
6730
|
const height = Math.ceil(targetRect.height + padding * 2);
|
|
6710
|
-
this.selectionElement.style.setProperty("--sf-selection-
|
|
6711
|
-
this.selectionElement.style.setProperty("--sf-selection-top", `${top}px`);
|
|
6731
|
+
this.selectionElement.style.setProperty("--sf-selection-transform", `translate(${left}px, ${top}px)`);
|
|
6712
6732
|
this.selectionElement.style.setProperty("--sf-selection-width", `${width}px`);
|
|
6713
6733
|
this.selectionElement.style.setProperty("--sf-selection-height", `${height}px`);
|
|
6714
6734
|
this.dragStartX = left;
|
|
@@ -6938,8 +6958,7 @@ class CursorManager {
|
|
|
6938
6958
|
this.dragStartY,
|
|
6939
6959
|
currentY - this.SELECTION_VERTICAL_OFFSET
|
|
6940
6960
|
));
|
|
6941
|
-
this.selectionElement.style.setProperty("--sf-selection-
|
|
6942
|
-
this.selectionElement.style.setProperty("--sf-selection-top", `${top}px`);
|
|
6961
|
+
this.selectionElement.style.setProperty("--sf-selection-transform", `translate(${left}px, ${top}px)`);
|
|
6943
6962
|
this.selectionElement.style.setProperty("--sf-selection-width", `${width}px`);
|
|
6944
6963
|
this.selectionElement.style.setProperty("--sf-selection-height", `${height}px`);
|
|
6945
6964
|
this.selectionElement.classList.add("sf-selection--visible");
|
|
@@ -7001,8 +7020,7 @@ class CursorManager {
|
|
|
7001
7020
|
this.cursor.style.setProperty("--sf-cursor-opacity", "0.9");
|
|
7002
7021
|
}
|
|
7003
7022
|
if (this.selectionElement) {
|
|
7004
|
-
this.selectionElement.style.setProperty("--sf-selection-
|
|
7005
|
-
this.selectionElement.style.setProperty("--sf-selection-top", `${this.dragStartY}px`);
|
|
7023
|
+
this.selectionElement.style.setProperty("--sf-selection-transform", `translate(${this.dragStartX}px, ${this.dragStartY}px)`);
|
|
7006
7024
|
this.selectionElement.style.setProperty("--sf-selection-width", "0px");
|
|
7007
7025
|
this.selectionElement.style.setProperty("--sf-selection-height", "0px");
|
|
7008
7026
|
this.selectionElement.classList.add("sf-selection--visible");
|
|
@@ -11225,7 +11243,7 @@ const SaltfishPlayer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
11225
11243
|
__proto__: null,
|
|
11226
11244
|
SaltfishPlayer
|
|
11227
11245
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11228
|
-
const version = "0.3.
|
|
11246
|
+
const version = "0.3.11";
|
|
11229
11247
|
const packageJson = {
|
|
11230
11248
|
version
|
|
11231
11249
|
};
|