Skip to content

Commit 1abfc19

Browse files
committed
switch to hsl
1 parent ac642f1 commit 1abfc19

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/sidebar/services/frame-sync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export function formatAnnot(ann) {
1919
for (let i = 0; i < s.length; i++) {
2020
h = (Math.imul(31, h) + s.charCodeAt(i)) | 0;
2121
}
22-
23-
return `#${Math.abs(h).toString(16).padStart(6, '0').substr(0, 6)}`;
22+
return `hsl(${Math.abs(h) % 360}, 100%, 85%)`;
23+
// return `#${Math.abs(h).toString(16).padStart(6, '0').substr(0, 6)}`;
2424
}
2525
return {
2626
tag: ann.$tag,

src/sidebar/store/modules/annotations.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ function initializeAnnotation(annotation, tag) {
8686
$anchorTimeout: false,
8787
$tag: annotation.$tag || tag,
8888
$orphan: orphan,
89-
$user: annotation.user,
9089
});
9190
}
9291

0 commit comments

Comments
 (0)