2021 Commits

Author SHA1 Message Date
Thibault Duplessis e7de5fcbab Merge pull request #387 from lichess-org/unbind-resize-observer
move resize observer to bindDocument to allow unbind on destroy
2026-05-07 20:35:08 +02:00
Thibault Duplessis f9302c78e2 move resize observer to bindDocument to allow unbind on destroy - closes #386 2026-05-07 10:15:54 +02:00
Thibault Duplessis e47565c8d1 Merge pull request #385 from Simek/update-actions-in-workflows
update actions in workflows
2026-03-31 09:56:14 +02:00
Thibault Duplessis c49d0cc3d0 Merge pull request #384 from Simek/switch-lint-stack-to-oxc-tools
switch lint stack to OXC tools
2026-03-31 09:55:37 +02:00
Simek 7ba3acfc15 update actions in workflows 2026-03-31 09:36:45 +02:00
Simek c4cdf48303 switch lint stack to OXC tools 2026-03-31 09:24:07 +02:00
github-actions 4d7e91bb02 10.1.1 v10.1.1 2026-03-27 08:36:26 +00:00
Thibault Duplessis c539de06eb Merge pull request #382 from jshnaidman/fix/webkit-square-visibility
Square node pool visibility: hidden causes rendering artifacts on WebKitGTK
2026-03-27 09:34:03 +01:00
jshnai 1752ae457f fix rendering artifacts on WebKitGTK 2026-03-27 09:31:00 +01:00
Thibault Duplessis 75aa384309 Merge pull request #383 from Simek/bump-dependencies-fix-lint
bump dependencies, fix new lint warnings
2026-03-27 09:29:42 +01:00
Simek 0c9e6b044d bump dependencies, fix new lint warnings 2026-03-25 20:33:02 +01:00
github-actions 638c1a2d2f 10.1.0 v10.1.0 2026-03-07 09:56:25 +00:00
Thibault Duplessis 0d3ac3ea7c Merge pull request #377 from Simek/move-drag-hover-to-js-side
add ability to handle drag hover on JS side
2026-03-07 10:54:11 +01:00
Simek b281ee3773 fix keyHasChanged logic 2026-03-07 09:48:20 +01:00
Simek c4d628bcf7 use data-key instead of class for storing key for jsHover 2026-03-06 13:25:31 +01:00
Thibault Duplessis 332ea03368 extract handleJsHover logic, and avoid computing getKeyAtDomPos most of the time 2026-03-06 11:31:51 +01:00
Simek 7b32423751 make JS-side hover optional, cleanup hover state on invalid dest 2026-03-04 10:37:53 +01:00
Simek e71a3a36eb move handling drag hover to JS side 2026-03-03 14:33:59 +01:00
Trevor Fitzgerald da58b6ec85 fix demo example: Uncaught TypeError: hilite.replace is not a function 2026-02-26 20:23:18 -05:00
github-actions 87a07a82e5 10.0.2 v10.0.2 2026-02-06 10:33:47 +00:00
Thibault Duplessis f9e2ee387f don't create the ghost piece if the mode is view-only 2026-02-06 11:32:12 +01:00
Trevor Fitzgerald c0cec449b7 ci: use node-version 24 required for oidc npm publishing 2026-01-30 19:39:39 -05:00
Trevor Fitzgerald e156146a3f remove npm token for publishing, using oidc auth now 2026-01-28 11:41:34 -05:00
github-actions a2bcfc36c4 10.0.1 v10.0.1 2026-01-20 07:57:43 +00:00
Thibault Duplessis b11de5a2c8 simplify render by removing the existingSquares set 2026-01-20 08:55:56 +01:00
github-actions 586ad1212a 10.0.0 2026-01-19 08:48:22 +00:00
Thibault Duplessis c5037d5389 the final optimization: square node pool
never insert/delete square nodes when there are some available
always reuse and hide when unused

avoids changing classnames
v10.0.0
2026-01-19 09:42:50 +01:00
github-actions 2140c3e0f0 9.10.3 v9.10.3 2026-01-18 22:38:37 +00:00
Thibault Duplessis c7f56947c9 coord color also depends on board orientation 2026-01-18 23:38:00 +01:00
github-actions 66807129c4 9.10.2 v9.10.2 2026-01-18 22:30:58 +00:00
Thibault Duplessis 9904f46e28 Merge branch 'master' of https://github.com/lichess-org/chessground 2026-01-18 23:30:17 +01:00
Thibault Duplessis 8fd8cbc3c0 fix coord orientation 2026-01-18 23:30:15 +01:00
github-actions 7d2a2aa32b 9.10.1 2026-01-18 19:20:29 +00:00
Thibault Duplessis 9f3000b9d5 please the linter v9.10.1 2026-01-18 19:54:29 +01:00
Thibault Duplessis e52b63b436 remove unused import 2026-01-18 19:52:58 +01:00
Thibault Duplessis c05a6560e4 add light/dark classes to coord nodes to simplify CSS selectors v9.10.0 2026-01-18 19:46:13 +01:00
Thibault Duplessis 1d8cae82a7 add missing config typing 2026-01-18 19:43:00 +01:00
Thibault Duplessis 1c18ca50e5 Merge pull request #369 from johndoknjas/selective-arrow-shorten
Only apply shorten for a dest if it has two arrows under 90 degrees from each other
2025-11-21 09:48:47 +01:00
Thibault Duplessis d467d9f51c Merge branch 'master' into selective-arrow-shorten 2025-11-21 09:47:12 +01:00
Thibault Duplessis acf7fe8830 simplify svg rotateAngleSlot signature and implementation 2025-11-21 09:42:08 +01:00
Thibault Duplessis f9f5d7c35a Merge pull request #370 from johndoknjas/update-hash
Update hash when number of angles to dest changes
2025-11-21 09:20:06 +01:00
John Doknjas afa5844d8e Have the number of angles for a shape include the number of angles the dest square has. The reason is to get labels to always update their positioning when appropriate. 2025-11-20 19:51:51 -08:00
John Doknjas 5317af1073 Only apply shorten for a dest if it has two arrows which are less than 90 degrees apart. 2025-11-20 18:20:17 -08:00
github-actions f169fa1975 9.9.0 v9.9.0 2025-11-17 11:08:21 +00:00
Thibault Duplessis 60920b90a0 remove premove MobilityContext.canCastle
as planned in the code comment todo
2025-11-17 12:06:15 +01:00
Thibault Duplessis a064b39cd4 Merge pull request #365 from johndoknjas/remove-premove-trimming
Remove premove trimming
2025-11-17 12:03:17 +01:00
Thibault Duplessis 30df77de46 Merge pull request #367 from johndoknjas/castle-highlights
Last move highlights for rook castle
2025-11-17 12:02:42 +01:00
Thibault Duplessis 62de8b8be3 tweak lastMove castle normalization 2025-11-17 12:02:22 +01:00
Thibault Duplessis 477c65fbdd fix state comment 2025-11-17 12:01:30 +01:00
John Doknjas a1c4f5f6f3 Irrelevant non-functional cleanups. 2025-11-16 23:13:52 -08:00