summaryrefslogtreecommitdiff
path: root/src/shadow.js
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-15 11:28:38 +0800
committerEltrac <hi@guhub.cn>2025-09-15 11:28:38 +0800
commitcb1f2a87bd8694b8dfdbe8e0c14fb7ee0da841f3 (patch)
tree8d299e5c5c89d2f7d7b49e3570fb7e45776e2ab8 /src/shadow.js
parent1a4ad3e7dcb9f48047a5eca2826ffd392f23e5ac (diff)
refactor: lightbox ID generation and shadow management
Replaces the async SHA-256 based unique ID generation with a synchronous hashCode method in Utility. Refactors LightBox to manage Shadow instances in a local cache instead of querying the DOM, and removes the static find method from Shadow. Also extracts image link wrapping logic into a helper method for clarity.
Diffstat (limited to 'src/shadow.js')
-rw-r--r--src/shadow.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/shadow.js b/src/shadow.js
index 84eac48..6051cd9 100644
--- a/src/shadow.js
+++ b/src/shadow.js
@@ -39,11 +39,6 @@ export default class Shadow {
});
}
- static find(image) {
- const shadowId = `libo-shadow-${image.id}`;
- return document.getElementById(shadowId);
- }
-
calculateStartsAndFinals() {
// get starting state
this.startingState = {