aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Layout.mjs
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-10-08 17:33:26 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-10-09 14:52:19 +0800
commit9e62f0371f66cc4f2aa275f958f16a9443b108b7 (patch)
tree41580b2b047eff59dc37b2fe935789d36a0c4654 /src/Layout.mjs
parent551c5c3fbe7163bc78e5159ddbc57967a0299e4e (diff)
chore: apply standardjs with trailing comma
Diffstat (limited to 'src/Layout.mjs')
-rw-r--r--src/Layout.mjs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Layout.mjs b/src/Layout.mjs
index 6bb6282..c5276b4 100644
--- a/src/Layout.mjs
+++ b/src/Layout.mjs
@@ -55,7 +55,7 @@ export class SideBySide extends Layout {
55 55
56 const draggable = new PlainDraggable(bar, { 56 const draggable = new PlainDraggable(bar, {
57 handle, 57 handle,
58 containment: { left: '25%', top: 0, right: '75%', height: 0 } 58 containment: { left: '25%', top: 0, right: '75%', height: 0 },
59 }) 59 })
60 draggable.draggableCursor = 'grab' 60 draggable.draggableCursor = 'grab'
61 61
@@ -110,7 +110,7 @@ export class Overlay extends Layout {
110 addDraggable = element => { 110 addDraggable = element => {
111 // Make sure current element always on top 111 // Make sure current element always on top
112 const siblings = Array.from( 112 const siblings = Array.from(
113 element.parentElement?.querySelectorAll(':scope > *') ?? [] 113 element.parentElement?.querySelectorAll(':scope > *') ?? [],
114 ) 114 )
115 let popTimer = null 115 let popTimer = null
116 element.onmouseover = () => { 116 element.onmouseover = () => {
@@ -135,7 +135,7 @@ export class Overlay extends Layout {
135 top, 135 top,
136 left, 136 left,
137 handle: draggablePart, 137 handle: draggablePart,
138 snap: { x: { step: 20 }, y: { step: 20 } } 138 snap: { x: { step: 20 }, y: { step: 20 } },
139 }) 139 })
140 140
141 // FIXME use pure CSS to hide utils 141 // FIXME use pure CSS to hide utils
@@ -215,7 +215,7 @@ export class Overlay extends Layout {
215 animateRectTransition( 215 animateRectTransition(
216 wrapper, 216 wrapper,
217 { left: originLeft, top: originTop }, 217 { left: originLeft, top: originTop },
218 { resume: true, duration: 300 } 218 { resume: true, duration: 300 },
219 ).finished.finally(() => this.addDraggable(wrapper)) 219 ).finished.finally(() => this.addDraggable(wrapper))
220 220
221 // Trivial case: 221 // Trivial case: