A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
docs: add an easing-curves cheat sheet to the animation guide (en + zh)
yhh69857fa83e34
diff --git a/docs/astro/src/assets/guides/tween-easings.svg b/docs/astro/src/assets/guides/tween-easings.svgnew file mode 100644index 000000000..323a599c2--- /dev/null+++ b/docs/astro/src/assets/guides/tween-easings.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 472 664" width="472" height="664" role="img"><text x="24" y="28" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">Linear</text><rect x="30" y="36" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="30" y1="93.11" x2="138" y2="93.11" stroke="#242833" stroke-width="1"/><line x1="30" y1="52.89" x2="138" y2="52.89" stroke="#242833" stroke-width="1"/><path d="M 30 93.11 L 31.8 92.44 L 33.6 91.77 L 35.4 91.1 L 37.2 90.43 L 39 89.76 L 40.8 89.09 L 42.6 88.42 L 44.4 87.75 L 46.2 87.08 L 48 86.41 L 49.8 85.74 L 51.6 85.07 L 53.4 84.39 L 55.2 83.72 L 57 83.05 L 58.8 82.38 L 60.6 81.71 L 62.4 81.04 L 64.2 80.37 L 66 79.7 L 67.8 79.03 L 69.6 78.36 L 71.4 77.69 L 73.2 77.02 L 75 76.35 L 76.8 75.68 L 78.6 75.01 L 80.4 74.34 L 82.2 73.67 L 84 73 L 85.8 72.33 L 87.6 71.66 L 89.4 70.99 L 91.2 70.32 L 93 69.65 L 94.8 68.98 L 96.6 68.31 L 98.4 67.64 L 100.2 66.97 L 102 66.3 L 103.8 65.63 L 105.6 64.96 L 107.4 64.29 L 109.2 63.62 L 111 62.95 L 112.8 62.28 L 114.6 61.61 L 116.4 60.93 L 118.2 60.26 L 120 59.59 L 121.8 58.92 L 123.6 58.25 L 125.4 57.58 L 127.2 56.91 L 129 56.24 L 130.8 55.57 L 132.6 54.9 L 134.4 54.23 L 136.2 53.56 L 138 52.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="30" cy="93.11" r="2.5" fill="#f0bd4f"/><circle cx="138" cy="52.89" r="2.5" fill="#f0bd4f"/><text x="176" y="28" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">In Quad</text><rect x="182" y="36" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="182" y1="93.11" x2="290" y2="93.11" stroke="#242833" stroke-width="1"/><line x1="182" y1="52.89" x2="290" y2="52.89" stroke="#242833" stroke-width="1"/><path d="M 182 93.11 L 183.8 93.1 L 185.6 93.06 L 187.4 93.01 L 189.2 92.93 L 191 92.83 L 192.8 92.71 L 194.6 92.56 L 196.4 92.39 L 198.2 92.2 L 200 91.99 L 201.8 91.76 L 203.6 91.5 L 205.4 91.22 L 207.2 90.92 L 209 90.6 L 210.8 90.25 L 212.6 89.88 L 214.4 89.49 L 216.2 89.08 L 218 88.64 L 219.8 88.18 L 221.6 87.7 L 223.4 87.2 L 225.2 86.67 L 227 86.13 L 228.8 85.56 L 230.6 84.96 L 232.4 84.35 L 234.2 83.71 L 236 83.05 L 237.8 82.37 L 239.6 81.67 L 241.4 80.94 L 243.2 80.19 L 245 79.42 L 246.8 78.63 L 248.6 77.81 L 250.4 76.98 L 252.2 76.12 L 254 75.23 L 255.8 74.33 L 257.6 73.4 L 259.4 72.45 L 261.2 71.48 L 263 70.49 L 264.8 69.47 L 266.6 68.43 L 268.4 67.37 L 270.2 66.29 L 272 65.18 L 273.8 64.05 L 275.6 62.9 L 277.4 61.73 L 279.2 60.53 L 281 59.31 L 282.8 58.07 L 284.6 56.81 L 286.4 55.53 L 288.2 54.22 L 290 52.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="182" cy="93.11" r="2.5" fill="#f0bd4f"/><circle cx="290" cy="52.89" r="2.5" fill="#f0bd4f"/><text x="328" y="28" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">Out Quad</text><rect x="334" y="36" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="334" y1="93.11" x2="442" y2="93.11" stroke="#242833" stroke-width="1"/><line x1="334" y1="52.89" x2="442" y2="52.89" stroke="#242833" stroke-width="1"/><path d="M 334 93.11 L 335.8 91.78 L 337.6 90.47 L 339.4 89.19 L 341.2 87.93 L 343 86.69 L 344.8 85.47 L 346.6 84.27 L 348.4 83.1 L 350.2 81.95 L 352 80.82 L 353.8 79.71 L 355.6 78.63 L 357.4 77.57 L 359.2 76.53 L 361 75.51 L 362.8 74.52 L 364.6 73.55 L 366.4 72.6 L 368.2 71.67 L 370 70.77 L 371.8 69.88 L 373.6 69.02 L 375.4 68.19 L 377.2 67.37 L 379 66.58 L 380.8 65.81 L 382.6 65.06 L 384.4 64.33 L 386.2 63.63 L 388 62.95 L 389.8 62.29 L 391.6 61.65 L 393.4 61.04 L 395.2 60.44 L 397 59.87 L 398.8 59.33 L 400.6 58.8 L 402.4 58.3 L 404.2 57.82 L 406 57.36 L 407.8 56.92 L 409.6 56.51 L 411.4 56.12 L 413.2 55.75 L 415 55.4 L 416.8 55.08 L 418.6 54.78 L 420.4 54.5 L 422.2 54.24 L 424 54.01 L 425.8 53.8 L 427.6 53.61 L 429.4 53.44 L 431.2 53.29 L 433 53.17 L 434.8 53.07 L 436.6 52.99 L 438.4 52.94 L 440.2 52.9 L 442 52.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="334" cy="93.11" r="2.5" fill="#f0bd4f"/><circle cx="442" cy="52.89" r="2.5" fill="#f0bd4f"/><text x="24" y="158" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">InOut Quad</text><rect x="30" y="166" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="30" y1="223.11" x2="138" y2="223.11" stroke="#242833" stroke-width="1"/><line x1="30" y1="182.89" x2="138" y2="182.89" stroke="#242833" stroke-width="1"/><path d="M 30 223.11 L 31.8 223.09 L 33.6 223.02 L 35.4 222.91 L 37.2 222.75 L 39 222.55 L 40.8 222.3 L 42.6 222.01 L 44.4 221.68 L 46.2 221.3 L 48 220.87 L 49.8 220.41 L 51.6 219.89 L 53.4 219.33 L 55.2 218.73 L 57 218.08 L 58.8 217.39 L 60.6 216.65 L 62.4 215.87 L 64.2 215.04 L 66 214.17 L 67.8 213.26 L 69.6 212.29 L 71.4 211.29 L 73.2 210.24 L 75 209.14 L 76.8 208 L 78.6 206.82 L 80.4 205.59 L 82.2 204.32 L 84 203 L 85.8 201.68 L 87.6 200.41 L 89.4 199.18 L 91.2 198 L 93 196.86 L 94.8 195.76 L 96.6 194.71 L 98.4 193.71 L 100.2 192.74 L 102 191.83 L 103.8 190.96 L 105.6 190.13 L 107.4 189.35 L 109.2 188.61 L 111 187.92 L 112.8 187.27 L 114.6 186.67 L 116.4 186.11 L 118.2 185.59 L 120 185.13 L 121.8 184.7 L 123.6 184.32 L 125.4 183.99 L 127.2 183.7 L 129 183.45 L 130.8 183.25 L 132.6 183.09 L 134.4 182.98 L 136.2 182.91 L 138 182.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="30" cy="223.11" r="2.5" fill="#f0bd4f"/><circle cx="138" cy="182.89" r="2.5" fill="#f0bd4f"/><text x="176" y="158" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">In Cubic</text><rect x="182" y="166" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="182" y1="223.11" x2="290" y2="223.11" stroke="#242833" stroke-width="1"/><line x1="182" y1="182.89" x2="290" y2="182.89" stroke="#242833" stroke-width="1"/><path d="M 182 223.11 L 183.8 223.11 L 185.6 223.11 L 187.4 223.1 L 189.2 223.1 L 191 223.09 L 192.8 223.07 L 194.6 223.04 L 196.4 223.01 L 198.2 222.97 L 200 222.92 L 201.8 222.86 L 203.6 222.79 L 205.4 222.7 L 207.2 222.6 L 209 222.48 L 210.8 222.35 L 212.6 222.19 L 214.4 222.02 L 216.2 221.83 L 218 221.62 L 219.8 221.38 L 221.6 221.13 L 223.4 220.84 L 225.2 220.53 L 227 220.2 L 228.8 219.84 L 230.6 219.44 L 232.4 219.02 L 234.2 218.57 L 236 218.08 L 237.8 217.56 L 239.6 217.01 L 241.4 216.42 L 243.2 215.79 L 245 215.13 L 246.8 214.42 L 248.6 213.68 L 250.4 212.89 L 252.2 212.06 L 254 211.19 L 255.8 210.28 L 257.6 209.31 L 259.4 208.31 L 261.2 207.25 L 263 206.14 L 264.8 204.99 L 266.6 203.78 L 268.4 202.52 L 270.2 201.2 L 272 199.83 L 273.8 198.41 L 275.6 196.93 L 277.4 195.39 L 279.2 193.79 L 281 192.13 L 282.8 190.41 L 284.6 188.63 L 286.4 186.78 L 288.2 184.87 L 290 182.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="182" cy="223.11" r="2.5" fill="#f0bd4f"/><circle cx="290" cy="182.89" r="2.5" fill="#f0bd4f"/><text x="328" y="158" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">Out Cubic</text><rect x="334" y="166" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="334" y1="223.11" x2="442" y2="223.11" stroke="#242833" stroke-width="1"/><line x1="334" y1="182.89" x2="442" y2="182.89" stroke="#242833" stroke-width="1"/><path d="M 334 223.11 L 335.8 221.13 L 337.6 219.22 L 339.4 217.37 L 341.2 215.59 L 343 213.87 L 344.8 212.21 L 346.6 210.61 L 348.4 209.07 L 350.2 207.59 L 352 206.17 L 353.8 204.8 L 355.6 203.48 L 357.4 202.22 L 359.2 201.01 L 361 199.86 L 362.8 198.75 L 364.6 197.69 L 366.4 196.69 L 368.2 195.72 L 370 194.81 L 371.8 193.94 L 373.6 193.11 L 375.4 192.32 L 377.2 191.58 L 379 190.87 L 380.8 190.21 L 382.6 189.58 L 384.4 188.99 L 386.2 188.44 L 388 187.92 L 389.8 187.43 L 391.6 186.98 L 393.4 186.56 L 395.2 186.16 L 397 185.8 L 398.8 185.47 L 400.6 185.16 L 402.4 184.87 L 404.2 184.62 L 406 184.38 L 407.8 184.17 L 409.6 183.98 L 411.4 183.81 L 413.2 183.65 L 415 183.52 L 416.8 183.4 L 418.6 183.3 L 420.4 183.21 L 422.2 183.14 L 424 183.08 L 425.8 183.03 L 427.6 182.99 L 429.4 182.96 L 431.2 182.93 L 433 182.91 L 434.8 182.9 L 436.6 182.9 L 438.4 182.89 L 440.2 182.89 L 442 182.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="334" cy="223.11" r="2.5" fill="#f0bd4f"/><circle cx="442" cy="182.89" r="2.5" fill="#f0bd4f"/><text x="24" y="288" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">InOut Cubic</text><rect x="30" y="296" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="30" y1="353.11" x2="138" y2="353.11" stroke="#242833" stroke-width="1"/><line x1="30" y1="312.89" x2="138" y2="312.89" stroke="#242833" stroke-width="1"/><path d="M 30 353.11 L 31.8 353.11 L 33.6 353.1 L 35.4 353.09 L 37.2 353.06 L 39 353.02 L 40.8 352.95 L 42.6 352.85 L 44.4 352.73 L 46.2 352.57 L 48 352.36 L 49.8 352.12 L 51.6 351.82 L 53.4 351.47 L 55.2 351.07 L 57 350.6 L 58.8 350.06 L 60.6 349.45 L 62.4 348.77 L 64.2 348 L 66 347.15 L 67.8 346.21 L 69.6 345.18 L 71.4 344.05 L 73.2 342.81 L 75 341.47 L 76.8 340.02 L 78.6 338.45 L 80.4 336.76 L 82.2 334.94 L 84 333 L 85.8 331.06 L 87.6 329.24 L 89.4 327.55 L 91.2 325.98 L 93 324.53 L 94.8 323.19 L 96.6 321.95 L 98.4 320.82 L 100.2 319.79 L 102 318.85 L 103.8 318 L 105.6 317.23 L 107.4 316.55 L 109.2 315.94 L 111 315.4 L 112.8 314.93 L 114.6 314.53 L 116.4 314.18 L 118.2 313.88 L 120 313.64 L 121.8 313.43 L 123.6 313.27 L 125.4 313.15 L 127.2 313.05 L 129 312.98 L 130.8 312.94 L 132.6 312.91 L 134.4 312.9 L 136.2 312.89 L 138 312.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="30" cy="353.11" r="2.5" fill="#f0bd4f"/><circle cx="138" cy="312.89" r="2.5" fill="#f0bd4f"/><text x="176" y="288" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">In Back</text><rect x="182" y="296" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="182" y1="353.11" x2="290" y2="353.11" stroke="#242833" stroke-width="1"/><line x1="182" y1="312.89" x2="290" y2="312.89" stroke="#242833" stroke-width="1"/><path d="M 182 353.11 L 183.8 353.13 L 185.6 353.18 L 187.4 353.27 L 189.2 353.38 L 191 353.52 L 192.8 353.68 L 194.6 353.87 L 196.4 354.07 L 198.2 354.28 L 200 354.51 L 201.8 354.74 L 203.6 354.98 L 205.4 355.22 L 207.2 355.45 L 209 355.69 L 210.8 355.91 L 212.6 356.13 L 214.4 356.33 L 216.2 356.52 L 218 356.69 L 219.8 356.83 L 221.6 356.95 L 223.4 357.04 L 225.2 357.1 L 227 357.13 L 228.8 357.12 L 230.6 357.07 L 232.4 356.97 L 234.2 356.83 L 236 356.64 L 237.8 356.39 L 239.6 356.09 L 241.4 355.73 L 243.2 355.31 L 245 354.83 L 246.8 354.28 L 248.6 353.65 L 250.4 352.96 L 252.2 352.18 L 254 351.33 L 255.8 350.4 L 257.6 349.37 L 259.4 348.26 L 261.2 347.06 L 263 345.77 L 264.8 344.37 L 266.6 342.88 L 268.4 341.28 L 270.2 339.57 L 272 337.76 L 273.8 335.83 L 275.6 333.78 L 277.4 331.62 L 279.2 329.33 L 281 326.92 L 282.8 324.38 L 284.6 321.72 L 286.4 318.91 L 288.2 315.97 L 290 312.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="182" cy="353.11" r="2.5" fill="#f0bd4f"/><circle cx="290" cy="312.89" r="2.5" fill="#f0bd4f"/><text x="328" y="288" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">Out Back</text><rect x="334" y="296" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="334" y1="353.11" x2="442" y2="353.11" stroke="#242833" stroke-width="1"/><line x1="334" y1="312.89" x2="442" y2="312.89" stroke="#242833" stroke-width="1"/><path d="M 334 353.11 L 335.8 350.03 L 337.6 347.09 L 339.4 344.28 L 341.2 341.62 L 343 339.08 L 344.8 336.67 L 346.6 334.38 L 348.4 332.22 L 350.2 330.17 L 352 328.24 L 353.8 326.43 L 355.6 324.72 L 357.4 323.12 L 359.2 321.63 L 361 320.23 L 362.8 318.94 L 364.6 317.74 L 366.4 316.63 L 368.2 315.6 L 370 314.67 L 371.8 313.82 L 373.6 313.04 L 375.4 312.35 L 377.2 311.72 L 379 311.17 L 380.8 310.69 L 382.6 310.27 L 384.4 309.91 L 386.2 309.61 L 388 309.36 L 389.8 309.17 L 391.6 309.03 L 393.4 308.93 L 395.2 308.88 L 397 308.87 L 398.8 308.9 L 400.6 308.96 L 402.4 309.05 L 404.2 309.17 L 406 309.31 L 407.8 309.48 L 409.6 309.67 L 411.4 309.87 L 413.2 310.09 L 415 310.31 L 416.8 310.55 L 418.6 310.78 L 420.4 311.02 L 422.2 311.26 L 424 311.49 L 425.8 311.72 L 427.6 311.93 L 429.4 312.13 L 431.2 312.32 L 433 312.48 L 434.8 312.62 L 436.6 312.73 L 438.4 312.82 L 440.2 312.87 L 442 312.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="334" cy="353.11" r="2.5" fill="#f0bd4f"/><circle cx="442" cy="312.89" r="2.5" fill="#f0bd4f"/><text x="24" y="418" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">InOut Back</text><rect x="30" y="426" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="30" y1="483.11" x2="138" y2="483.11" stroke="#242833" stroke-width="1"/><line x1="30" y1="442.89" x2="138" y2="442.89" stroke="#242833" stroke-width="1"/><path d="M 30 483.11 L 31.8 483.16 L 33.6 483.32 L 35.4 483.56 L 37.2 483.86 L 39 484.22 L 40.8 484.62 L 42.6 485.03 L 44.4 485.45 L 46.2 485.85 L 48 486.23 L 49.8 486.56 L 51.6 486.83 L 53.4 487.02 L 55.2 487.13 L 57 487.12 L 58.8 486.98 L 60.6 486.71 L 62.4 486.28 L 64.2 485.67 L 66 484.88 L 67.8 483.88 L 69.6 482.66 L 71.4 481.2 L 73.2 479.49 L 75 477.51 L 76.8 475.24 L 78.6 472.68 L 80.4 469.79 L 82.2 466.57 L 84 463 L 85.8 459.43 L 87.6 456.21 L 89.4 453.32 L 91.2 450.76 L 93 448.49 L 94.8 446.51 L 96.6 444.8 L 98.4 443.34 L 100.2 442.12 L 102 441.12 L 103.8 440.33 L 105.6 439.72 L 107.4 439.29 L 109.2 439.02 L 111 438.88 L 112.8 438.87 L 114.6 438.98 L 116.4 439.17 L 118.2 439.44 L 120 439.77 L 121.8 440.15 L 123.6 440.55 L 125.4 440.97 L 127.2 441.38 L 129 441.78 L 130.8 442.14 L 132.6 442.44 L 134.4 442.68 L 136.2 442.84 L 138 442.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="30" cy="483.11" r="2.5" fill="#f0bd4f"/><circle cx="138" cy="442.89" r="2.5" fill="#f0bd4f"/><text x="176" y="418" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">In Elastic</text><rect x="182" y="426" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="182" y1="483.11" x2="290" y2="483.11" stroke="#242833" stroke-width="1"/><line x1="182" y1="442.89" x2="290" y2="442.89" stroke="#242833" stroke-width="1"/><path d="M 182 483.11 L 183.8 483.12 L 185.6 483.1 L 187.4 483.08 L 189.2 483.06 L 191 483.04 L 192.8 483.03 L 194.6 483.03 L 196.4 483.03 L 198.2 483.05 L 200 483.09 L 201.8 483.13 L 203.6 483.19 L 205.4 483.24 L 207.2 483.29 L 209 483.33 L 210.8 483.34 L 212.6 483.32 L 214.4 483.27 L 216.2 483.17 L 218 483.04 L 219.8 482.89 L 221.6 482.73 L 223.4 482.58 L 225.2 482.48 L 227 482.45 L 228.8 482.5 L 230.6 482.66 L 232.4 482.94 L 234.2 483.3 L 236 483.74 L 237.8 484.19 L 239.6 484.6 L 241.4 484.89 L 243.2 484.98 L 245 484.82 L 246.8 484.37 L 248.6 483.6 L 250.4 482.56 L 252.2 481.33 L 254 480.05 L 255.8 478.9 L 257.6 478.08 L 259.4 477.81 L 261.2 478.26 L 263 479.55 L 264.8 481.72 L 266.6 484.66 L 268.4 488.14 L 270.2 491.75 L 272 495.01 L 273.8 497.33 L 275.6 498.11 L 277.4 496.83 L 279.2 493.16 L 281 487.03 L 282.8 478.71 L 284.6 468.89 L 286.4 458.66 L 288.2 449.44 L 290 442.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="182" cy="483.11" r="2.5" fill="#f0bd4f"/><circle cx="290" cy="442.89" r="2.5" fill="#f0bd4f"/><text x="328" y="418" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">Out Elastic</text><rect x="334" y="426" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="334" y1="483.11" x2="442" y2="483.11" stroke="#242833" stroke-width="1"/><line x1="334" y1="442.89" x2="442" y2="442.89" stroke="#242833" stroke-width="1"/><path d="M 334 483.11 L 335.8 476.56 L 337.6 467.34 L 339.4 457.11 L 341.2 447.29 L 343 438.97 L 344.8 432.84 L 346.6 429.17 L 348.4 427.89 L 350.2 428.67 L 352 430.99 L 353.8 434.25 L 355.6 437.86 L 357.4 441.34 L 359.2 444.28 L 361 446.45 L 362.8 447.74 L 364.6 448.19 L 366.4 447.92 L 368.2 447.1 L 370 445.95 L 371.8 444.67 L 373.6 443.44 L 375.4 442.4 L 377.2 441.63 L 379 441.18 L 380.8 441.02 L 382.6 441.11 L 384.4 441.4 L 386.2 441.81 L 388 442.26 L 389.8 442.7 L 391.6 443.06 L 393.4 443.34 L 395.2 443.5 L 397 443.55 L 398.8 443.52 L 400.6 443.42 L 402.4 443.27 L 404.2 443.11 L 406 442.96 L 407.8 442.83 L 409.6 442.73 L 411.4 442.68 L 413.2 442.66 L 415 442.67 L 416.8 442.71 L 418.6 442.76 L 420.4 442.81 L 422.2 442.87 L 424 442.91 L 425.8 442.95 L 427.6 442.97 L 429.4 442.97 L 431.2 442.97 L 433 442.96 L 434.8 442.94 L 436.6 442.92 L 438.4 442.9 L 440.2 442.88 L 442 442.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="334" cy="483.11" r="2.5" fill="#f0bd4f"/><circle cx="442" cy="442.89" r="2.5" fill="#f0bd4f"/><text x="24" y="548" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">InOut Elastic</text><rect x="30" y="556" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="30" y1="613.11" x2="138" y2="613.11" stroke="#242833" stroke-width="1"/><line x1="30" y1="572.89" x2="138" y2="572.89" stroke="#242833" stroke-width="1"/><path d="M 30 613.11 L 31.8 613.09 L 33.6 613.08 L 35.4 613.07 L 37.2 613.06 L 39 613.07 L 40.8 613.1 L 42.6 613.14 L 44.4 613.19 L 46.2 613.26 L 48 613.31 L 49.8 613.32 L 51.6 613.27 L 53.4 613.13 L 55.2 612.91 L 57 612.63 L 58.8 612.34 L 60.6 612.14 L 62.4 612.15 L 64.2 612.48 L 66 613.22 L 67.8 614.37 L 69.6 615.75 L 71.4 617.07 L 73.2 617.83 L 75 617.46 L 76.8 615.4 L 78.6 611.36 L 80.4 605.54 L 82.2 598.85 L 84 593 L 85.8 587.15 L 87.6 580.46 L 89.4 574.64 L 91.2 570.6 L 93 568.54 L 94.8 568.17 L 96.6 568.93 L 98.4 570.25 L 100.2 571.63 L 102 572.78 L 103.8 573.52 L 105.6 573.85 L 107.4 573.86 L 109.2 573.66 L 111 573.37 L 112.8 573.09 L 114.6 572.87 L 116.4 572.73 L 118.2 572.68 L 120 572.69 L 121.8 572.74 L 123.6 572.81 L 125.4 572.86 L 127.2 572.9 L 129 572.93 L 130.8 572.94 L 132.6 572.93 L 134.4 572.92 L 136.2 572.91 L 138 572.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="30" cy="613.11" r="2.5" fill="#f0bd4f"/><circle cx="138" cy="572.89" r="2.5" fill="#f0bd4f"/><text x="176" y="548" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">Out Bounce</text><rect x="182" y="556" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="182" y1="613.11" x2="290" y2="613.11" stroke="#242833" stroke-width="1"/><line x1="182" y1="572.89" x2="290" y2="572.89" stroke="#242833" stroke-width="1"/><path d="M 182 613.11 L 183.8 613.02 L 185.6 612.77 L 187.4 612.35 L 189.2 611.76 L 191 611 L 192.8 610.07 L 194.6 608.97 L 196.4 607.7 L 198.2 606.27 L 200 604.66 L 201.8 602.89 L 203.6 600.94 L 205.4 598.83 L 207.2 596.55 L 209 594.1 L 210.8 591.48 L 212.6 588.69 L 214.4 585.74 L 216.2 582.61 L 218 579.31 L 219.8 575.85 L 221.6 573.22 L 223.4 574.95 L 225.2 576.51 L 227 577.9 L 228.8 579.12 L 230.6 580.17 L 232.4 581.06 L 234.2 581.77 L 236 582.32 L 237.8 582.69 L 239.6 582.9 L 241.4 582.94 L 243.2 582.81 L 245 582.51 L 246.8 582.04 L 248.6 581.4 L 250.4 580.6 L 252.2 579.62 L 254 578.48 L 255.8 577.16 L 257.6 575.68 L 259.4 574.03 L 261.2 573.22 L 263 573.99 L 264.8 574.6 L 266.6 575.04 L 268.4 575.3 L 270.2 575.4 L 272 575.34 L 273.8 575.1 L 275.6 574.69 L 277.4 574.11 L 279.2 573.37 L 281 573.08 L 282.8 573.38 L 284.6 573.51 L 286.4 573.48 L 288.2 573.27 L 290 572.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="182" cy="613.11" r="2.5" fill="#f0bd4f"/><circle cx="290" cy="572.89" r="2.5" fill="#f0bd4f"/><text x="328" y="548" fill="#cbd0db" font-size="12.5" font-weight="600" text-anchor="start" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif">Step</text><rect x="334" y="556" width="108" height="74" rx="5" fill="#14161c" stroke="#2b2f3a" stroke-width="1"/><line x1="334" y1="613.11" x2="442" y2="613.11" stroke="#242833" stroke-width="1"/><line x1="334" y1="572.89" x2="442" y2="572.89" stroke="#242833" stroke-width="1"/><path d="M 334 613.11 L 335.8 613.11 L 337.6 613.11 L 339.4 613.11 L 341.2 613.11 L 343 613.11 L 344.8 613.11 L 346.6 613.11 L 348.4 613.11 L 350.2 613.11 L 352 613.11 L 353.8 613.11 L 355.6 613.11 L 357.4 613.11 L 359.2 613.11 L 361 613.11 L 362.8 613.11 L 364.6 613.11 L 366.4 613.11 L 368.2 613.11 L 370 613.11 L 371.8 613.11 L 373.6 613.11 L 375.4 613.11 L 377.2 613.11 L 379 613.11 L 380.8 613.11 L 382.6 613.11 L 384.4 613.11 L 386.2 613.11 L 388 613.11 L 389.8 613.11 L 391.6 613.11 L 393.4 613.11 L 395.2 613.11 L 397 613.11 L 398.8 613.11 L 400.6 613.11 L 402.4 613.11 L 404.2 613.11 L 406 613.11 L 407.8 613.11 L 409.6 613.11 L 411.4 613.11 L 413.2 613.11 L 415 613.11 L 416.8 613.11 L 418.6 613.11 L 420.4 613.11 L 422.2 613.11 L 424 613.11 L 425.8 613.11 L 427.6 613.11 L 429.4 613.11 L 431.2 613.11 L 433 613.11 L 434.8 613.11 L 436.6 613.11 L 438.4 613.11 L 440.2 613.11 L 442 572.89 " fill="none" stroke="#5b9cf0" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/><circle cx="334" cy="613.11" r="2.5" fill="#f0bd4f"/><circle cx="442" cy="572.89" r="2.5" fill="#f0bd4f"/></svg>\ No newline at end of filediff --git a/docs/astro/src/content/docs/guides/animation.mdx b/docs/astro/src/content/docs/guides/animation.mdxindex a42f86939..d0be12414 100644--- a/docs/astro/src/content/docs/guides/animation.mdx+++ b/docs/astro/src/content/docs/guides/animation.mdx@@ -185,6 +185,10 @@ const animate = defineSystem([Res(Tween)], (tween) => {(`EaseIn*` / `EaseOut*` / `EaseInOut*`), `EaseOutBounce`, `Step`, and `CubicBezier`— use a custom bezier with the handle's `.bezier(p1x, p1y, p2x, p2y)`.+++*Each easing plotted (progress `t` left→right, eased value bottom→top) — these are the engine's exact curves. `Back` and `Elastic` overshoot past the 0–1 band; `Step` holds until the end.*+### Sequencing & controlThe returned `TweenHandle` chains and controls playback:diff --git a/docs/astro/src/content/docs/zh-cn/guides/animation.mdx b/docs/astro/src/content/docs/zh-cn/guides/animation.mdxindex 56efe99fe..9f7a4c9c5 100644--- a/docs/astro/src/content/docs/zh-cn/guides/animation.mdx+++ b/docs/astro/src/content/docs/zh-cn/guides/animation.mdx@@ -174,6 +174,10 @@ const animate = defineSystem([Res(Tween)], (tween) => {`EaseInOut*`)、`EaseOutBounce`、`Step` 和 `CubicBezier`——自定义贝塞尔用句柄的`.bezier(p1x, p1y, p2x, p2y)`。+++*每条缓动曲线(进度 `t` 从左到右,缓动后的值从下到上)——这就是引擎的精确曲线。`Back` 和 `Elastic` 会冲出 0–1 区间;`Step` 一直保持到末尾才跳变。*+### 序列与控制返回的 `TweenHandle` 可链式串接并控制播放: