Closed x-roocky closed 5 years ago
Thank you for the kind words!
.shudan-random_{n}
classes are for custom styling. For example if you have several images of a white stone (maybe with different patterns), you can use those classes to randomize your stone appearance. Shudan's default theme doesn't use it, but for example this Sabaki theme does..shudan-animate
triggers the stone animation. You can try it out in the demo by activating 'Fuzzy stone placement' and 'Animate stone placement', and clicking on the board. You'll see that the stones will slide into place. After the animation is done, we remove the .shudan-animate
class so animation cannot be triggered accidentally.BoundedGoban
, we want to calculate vertexSize
from maxWidth
and maxHeight
, so the Goban component size won't exceed maxWidth
and maxHeight
. I can't reproduce the behavior you're describing in Sabaki Web; the board is the correct size without me needing to resize the window.谢谢你的解答。
其中问题2,animate落子滑动效果,为什么要在一段时间(200ms)后取消呢?不取消有问题吗?
I don't remember the exact details... You can try it without removing .shudan-animate
and see if you can encounter any issues.
On another note, please look at the license for Shudan. Since you're using Shudan code in your project, you should adhere to its conditions: You have to have a copy of my license in your repository. Of course you can license your modifications under a different license.
Sabaki是极好的项目,Shudan够美的棋盘,谢谢你这么好的作品。
我已用Vue.js重写了Shudan: https://github.com/roocky-lab/vue-shudan 中间有一些技术细节,请教一下:
shudan-random_${random}
,没有发现相关CSS,这是为什么功能预留?@yishn