Commit Graph

20 Commits

Author SHA1 Message Date
Spedon
44a8d0c544 change function name 2023-03-28 18:37:25 +08:00
Spedon
9a6f141533 optimize reused code fragments 2023-03-28 17:00:14 +08:00
Spedon
42a8bb8bc8 fix the bug of transition not working when changing from display none to block 2023-03-26 23:32:12 +08:00
Spedon
7262a43fae move pushIndex function to utils.ts 2023-03-24 17:17:57 +08:00
Spedon
e897561afa initial version of transition toward image elements 2023-03-24 16:11:00 +08:00
Spedon
56fd85e875 set the layer 0 as stack top 2023-03-21 12:00:22 +08:00
Spedon
bedc7c7691 remove unused part for createImgElement 2023-03-20 22:25:39 +08:00
Spedon
401d6254db dump layerPosSet, now FIFO can handle most part of position passing 2023-03-20 22:18:43 +08:00
Spedon
023aa36c3f components update 2023-03-20 21:58:34 +08:00
Spedon
1e74555d86 dev 2023-03-20 20:19:37 +08:00
Spedon
944af06dc4 now position of div is changed by translate instead of left/top 2023-03-16 21:42:28 +08:00
Spedon
9b5b5a758a get device type 2023-03-16 00:07:23 +08:00
Spedon
81477f0ed8 add lazyload background 2023-03-14 23:31:20 +08:00
Spedon
72760e6388 make the return value of the calcImageIndex function more robust 2023-03-14 11:16:11 +08:00
Spedon
8aa97b2c06 now img index calculation is a standalone function in utils.ts 2023-03-14 11:05:41 +08:00
Spedon
9a7281f6da now creation of image element can be achieved by createImgElement function in utils.ts 2023-03-14 02:02:56 +08:00
Spedon
38d1a8ab38 move all interfaces to utils.ts 2023-03-14 01:57:56 +08:00
Spedon
f1820a851c add comments to the code 2023-03-14 01:49:35 +08:00
Spedon
c8e6ab505b move footerUpdate function to overlay.ts and combine it with recenter function 2023-03-14 01:31:35 +08:00
Spedon
211e2fd4fb transition from javascript to typescript 2023-03-14 01:01:23 +08:00