vite-plugin-ai-annotator 1.3.3 → 1.3.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/annotator-toolbar.js +15 -9
- package/package.json +1 -1
|
@@ -6745,13 +6745,14 @@
|
|
|
6745
6745
|
hoverKeyframesStyleElement = document.createElement("style");
|
|
6746
6746
|
hoverKeyframesStyleElement.id = "annotator-hover-keyframes";
|
|
6747
6747
|
hoverKeyframesStyleElement.textContent = `
|
|
6748
|
-
@keyframes hover-
|
|
6749
|
-
0
|
|
6750
|
-
|
|
6748
|
+
@keyframes hover-marching-ants {
|
|
6749
|
+
0% { background-position: 0 0, 100% 100%, 0 100%, 100% 0; }
|
|
6750
|
+
100% { background-position: 20px 0, calc(100% - 20px) 100%, 0 calc(100% - 20px), 100% 20px; }
|
|
6751
6751
|
}
|
|
6752
6752
|
`;
|
|
6753
6753
|
document.head.appendChild(hoverKeyframesStyleElement);
|
|
6754
6754
|
}
|
|
6755
|
+
const color = "#A855F7";
|
|
6755
6756
|
const overlay = document.createElement("div");
|
|
6756
6757
|
overlay.className = "annotator-hover-overlay";
|
|
6757
6758
|
const rect = element.getBoundingClientRect();
|
|
@@ -6761,12 +6762,16 @@
|
|
|
6761
6762
|
top: ${rect.top}px;
|
|
6762
6763
|
width: ${rect.width}px;
|
|
6763
6764
|
height: ${rect.height}px;
|
|
6764
|
-
border: 2px solid #00FFFF;
|
|
6765
6765
|
box-sizing: border-box;
|
|
6766
6766
|
pointer-events: none;
|
|
6767
6767
|
z-index: ${Z_INDEX.HOVER_OVERLAY};
|
|
6768
|
-
|
|
6769
|
-
|
|
6768
|
+
border-radius: 4px;
|
|
6769
|
+
background:
|
|
6770
|
+
linear-gradient(90deg, ${color} 50%, transparent 50%) repeat-x top left / 10px 2px,
|
|
6771
|
+
linear-gradient(90deg, ${color} 50%, transparent 50%) repeat-x bottom left / 10px 2px,
|
|
6772
|
+
linear-gradient(0deg, ${color} 50%, transparent 50%) repeat-y top left / 2px 10px,
|
|
6773
|
+
linear-gradient(0deg, ${color} 50%, transparent 50%) repeat-y top right / 2px 10px;
|
|
6774
|
+
animation: hover-marching-ants 0.4s linear infinite;
|
|
6770
6775
|
`;
|
|
6771
6776
|
document.body.appendChild(overlay);
|
|
6772
6777
|
return overlay;
|
|
@@ -6796,11 +6801,12 @@
|
|
|
6796
6801
|
overlay.className = "annotator-ignore";
|
|
6797
6802
|
overlay.style.cssText = `
|
|
6798
6803
|
position: fixed;
|
|
6799
|
-
border: 2px dashed #
|
|
6800
|
-
background: rgba(
|
|
6804
|
+
border: 2px dashed #A855F7;
|
|
6805
|
+
background: rgba(168, 85, 247, 0.1);
|
|
6801
6806
|
pointer-events: none;
|
|
6802
6807
|
z-index: ${Z_INDEX.HOVER_OVERLAY};
|
|
6803
|
-
|
|
6808
|
+
border-radius: 4px;
|
|
6809
|
+
box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
|
|
6804
6810
|
`;
|
|
6805
6811
|
document.body.appendChild(overlay);
|
|
6806
6812
|
return overlay;
|
package/package.json
CHANGED