add doc for the code

This commit is contained in:
Spedon
2023-03-20 22:21:04 +08:00
parent 401d6254db
commit 93c2ef3517

View File

@@ -21,9 +21,10 @@ export const layers: HTMLDivElement[] = [
document.getElementById('layer5') as HTMLDivElement
]
// layers position caching
// top layer position caching
let topLayerPos: number[] = [0, 0]
// set top layer position
export const topLayerPosSet = (): void => {
layerPosSet(topLayerPos[0], topLayerPos[1], layers[4])
}