Commit Graph

934 Commits

Author SHA1 Message Date
yuanchuan dffd83078b Add experimental once function 2023-02-19 12:30:17 +08:00
yuanchuan 787bb390c0 Change cycle shift direction 2023-02-19 09:27:11 +08:00
yuanchuan 54077cb530 0.34.1 2023-02-15 09:38:01 +08:00
yuanchuan f0c6bd2fa5 Fix gap property break and remove redundant styles 2023-02-14 20:58:54 +08:00
yuanchuan 1b69cf9a17 0.34.0 2023-02-14 14:23:56 +08:00
yuanchuan 162b1c7a13 Gerenate new seed only once 2023-02-14 09:43:32 +08:00
yuanchuan f415b9c9e0 Set seed value correctly 2023-02-14 06:30:54 +08:00
yuanchuan c3173271a2 Revert "Fallback contain to overflow"
This reverts commit 768f4bd750.
2023-02-13 20:29:06 +08:00
yuanchuan 768f4bd750 Fallback contain to overflow 2023-02-13 20:27:27 +08:00
yuanchuan d40fd27a94 Add dx and dy distance functions 2023-02-13 20:01:30 +08:00
yuanchuan df4c69ecc1 Fix CSS parser for statement break 2023-02-13 15:38:59 +08:00
yuanchuan 673410119f Enable auto aspect-ratio to cells 2023-02-13 07:58:45 +08:00
yuanchuan f6366ab07c Add gap property 2023-02-12 23:26:29 +08:00
yuanchuan ccff4647da Add rotate, scale and flex options for grid property 2023-02-12 23:18:32 +08:00
yuanchuan 114d7d72f2 Support 0 index value in m function 2023-02-12 10:50:31 +08:00
yuanchuan e97a38c442 Fix parsing function composition 2023-02-12 10:46:18 +08:00
yuanchuan bc6edb5951 Add no-clip keyword for grid property 2023-02-12 09:41:41 +08:00
yuanchuan b7d3405708 Readd contain property for doodle element 2023-02-12 05:55:57 +08:00
yuanchuan 772a561b9e Extend grid property to support aspect-ratio 2023-02-11 22:51:51 +08:00
yuanchuan 21fa24cd3e Extend grid propery to support doodle background color 2023-02-11 20:05:04 +08:00
yuanchuan 57fc20d331 0.33.1 2023-02-08 22:32:16 +08:00
yuanchuan 7978410f4a Fix `@pn` index value inside `@m` function 2023-02-08 22:22:52 +08:00
yuanchuan 1c3d4b8905 Fix svg function detection 2023-02-08 18:38:48 +08:00
yuanchuan 17f7309463 0.33.0 2023-02-04 20:35:03 +08:00
yuanchuan e6cbd41e3a Add SVG playground link 2023-02-04 20:33:30 +08:00
yuanchuan 932bcfadb4 Add expand alias for padding because I can't tell which one is better 2023-02-04 18:35:00 +08:00
yuanchuan 1cc4ed63a9 Ignore invalid viewBox value 2023-02-04 18:02:27 +08:00
yuanchuan db9aa9ffd3 Support padding in SVG viewBox value.
For example:

  svg {
    viewBox: 0 0 1 1 padding .1
  }
2023-02-04 16:41:29 +08:00
yuanchuan dfc6fdd932 Check base to prevent NaN values 2023-01-08 08:44:51 +08:00
yuanchuan 6c783dff4b Add Svg function which returns raw svg code 2023-01-08 08:20:30 +08:00
yuanchuan 5b72fd34d3 Add svg-pattern function 2023-01-08 08:11:58 +08:00
yuanchuan 902a8788cd Do not use `??` operator at the moment.
Fix #110
2023-01-05 22:45:47 +08:00
yuanchuan 792397c033 0.32.1 2023-01-05 06:42:41 +08:00
yuanchuan 1a7a383944 Fix css parser for reading tail function names 2023-01-05 06:05:23 +08:00
yuanchuan 1783e6572d Build grid without DOM object 2022-12-27 21:36:29 +08:00
yuanchuan 277ca2b1a8 0.32.0 2022-12-17 13:42:29 +08:00
yuanchuan a548f2f907 Reduce imports of the exported svg function 2022-12-17 13:02:55 +08:00
yuanchuan fb9e96dcd9 Add `@unicode` function to insert unicode elegantly. 2022-12-17 12:53:42 +08:00
yuanchuan 7393101214 Fix parsing quotes in content 2022-12-17 12:04:00 +08:00
yuanchuan dd38c4dd45 Add shorthand to calc index values
For example:

@i5 === @calc(@i + 5)
@i(*10) === @calc(@i * 10)
@i(-10) === @calc(@i - 10)
@i(/10) === @calc(@i / 10)
@i(%10) === @calc(@i % 10)
@i(%10) === @calc(@i % 10)

@i(10/) === @calc(10 / @i)
@i(10-) === @calc(10 - @i)
2022-12-17 08:47:02 +08:00
yuanchuan 0ae460d6b7 Add `@mirror` and `@Mirror` function 2022-12-16 21:18:08 +08:00
yuanchuan 2e206c48e7 Improve `@cycle` to support comma-separated values 2022-12-13 10:18:18 +08:00
yuanchuan 27a8d2c8be Rebuild grid correctly 2022-12-13 09:21:02 +08:00
yuanchuan 704eebccf9 Fix svg-extended style 2022-12-11 19:25:40 +08:00
yuanchuan 166b53546d Fix bad reverse function implementation 2022-12-11 13:50:43 +08:00
yuanchuan d2e1144c39 0.31.0 2022-12-11 13:11:55 +08:00
yuanchuan 5bab81b8cc Fix function name detection 2022-12-11 13:11:43 +08:00
yuanchuan a31a652fbe Add `@content` property for textnode content 2022-12-11 12:47:24 +08:00
yuanchuan 9b72bf9b30 The `@` symbol can be ommited if the functions are chained together 2022-12-11 10:41:58 +08:00
yuanchuan c01f3b5d29 Patch reverse function to support both SVG path commands and general
arguments
2022-12-11 10:21:16 +08:00