packages feed

typst-0.9: test/typ/visualize/shape-fill-stroke-00.out

--- parse tree ---
[ Code
    "typ/visualize/shape-fill-stroke-00.typ"
    ( line 1 , column 2 )
    (Let
       (BasicBind (Just (Identifier "variant")))
       (FuncCall
          (FieldAccess
             (Ident (Identifier "with")) (Ident (Identifier "rect")))
          [ KeyValArg (Identifier "width") (Literal (Numeric 20.0 Pt))
          , KeyValArg (Identifier "height") (Literal (Numeric 10.0 Pt))
          ]))
, SoftBreak
, Code
    "typ/visualize/shape-fill-stroke-00.typ"
    ( line 2 , column 2 )
    (Let
       (BasicBind (Just (Identifier "items")))
       (For
          (DestructuringBind
             [ Simple (BasicBind (Just (Identifier "i")))
             , Simple (BasicBind (Just (Identifier "item")))
             ])
          (FuncCall
             (FieldAccess
                (Ident (Identifier "enumerate"))
                (Array
                   [ Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg (Identifier "stroke") (Literal None) ])
                   , Reg (FuncCall (Ident (Identifier "variant")) [])
                   , Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg (Identifier "fill") (Literal None) ])
                   , Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg (Identifier "stroke") (Literal (Numeric 2.0 Pt)) ])
                   , Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg (Identifier "stroke") (Ident (Identifier "eastern")) ])
                   , Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg
                              (Identifier "stroke")
                              (Plus (Ident (Identifier "eastern")) (Literal (Numeric 2.0 Pt)))
                          ])
                   , Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg (Identifier "fill") (Ident (Identifier "eastern")) ])
                   , Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg (Identifier "fill") (Ident (Identifier "eastern"))
                          , KeyValArg (Identifier "stroke") (Literal None)
                          ])
                   , Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg (Identifier "fill") (Ident (Identifier "red"))
                          , KeyValArg (Identifier "stroke") (Literal None)
                          ])
                   , Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg (Identifier "fill") (Ident (Identifier "red"))
                          , KeyValArg (Identifier "stroke") (Ident (Identifier "green"))
                          ])
                   , Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg (Identifier "fill") (Ident (Identifier "red"))
                          , KeyValArg
                              (Identifier "stroke")
                              (Plus (Ident (Identifier "black")) (Literal (Numeric 2.0 Pt)))
                          ])
                   , Reg
                       (FuncCall
                          (Ident (Identifier "variant"))
                          [ KeyValArg (Identifier "fill") (Ident (Identifier "red"))
                          , KeyValArg
                              (Identifier "stroke")
                              (Plus (Ident (Identifier "green")) (Literal (Numeric 2.0 Pt)))
                          ])
                   ]))
             [])
          (Block
             (CodeBlock
                [ Array
                    [ Reg
                        (FuncCall
                           (Ident (Identifier "align"))
                           [ NormalArg (Ident (Identifier "horizon"))
                           , BlockArg
                               [ Code
                                   "typ/visualize/shape-fill-stroke-00.typ"
                                   ( line 16 , column 20 )
                                   (Plus (Ident (Identifier "i")) (Literal (Int 1)))
                               , Text "."
                               ]
                           ])
                    , Reg (Ident (Identifier "item"))
                    , Reg (Block (Content []))
                    ]
                ]))))
, ParBreak
, Code
    "typ/visualize/shape-fill-stroke-00.typ"
    ( line 19 , column 2 )
    (FuncCall
       (Ident (Identifier "grid"))
       [ KeyValArg
           (Identifier "columns")
           (Array
              [ Reg (Literal Auto)
              , Reg (Literal Auto)
              , Reg (Literal (Numeric 1.0 Fr))
              , Reg (Literal Auto)
              , Reg (Literal Auto)
              , Reg (Literal (Numeric 0.0 Fr))
              ])
       , KeyValArg (Identifier "gutter") (Literal (Numeric 5.0 Pt))
       , SpreadArg (Ident (Identifier "items"))
       ])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]), 
                 parbreak(), 
                 grid(children: (align(alignment: horizon, 
                                       body: { text(body: [1]), 
                                               text(body: [.]) }), 
                                 rect(height: 10.0pt, 
                                      stroke: none, 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [2]), 
                                               text(body: [.]) }), 
                                 rect(height: 10.0pt, 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [3]), 
                                               text(body: [.]) }), 
                                 rect(fill: none, 
                                      height: 10.0pt, 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [4]), 
                                               text(body: [.]) }), 
                                 rect(height: 10.0pt, 
                                      stroke: 2.0pt, 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [5]), 
                                               text(body: [.]) }), 
                                 rect(height: 10.0pt, 
                                      stroke: rgb(13%,61%,67%,100%), 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [6]), 
                                               text(body: [.]) }), 
                                 rect(height: 10.0pt, 
                                      stroke: (thickness: 2.0pt,
                                               color: rgb(13%,61%,67%,100%)), 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [7]), 
                                               text(body: [.]) }), 
                                 rect(fill: rgb(13%,61%,67%,100%), 
                                      height: 10.0pt, 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [8]), 
                                               text(body: [.]) }), 
                                 rect(fill: rgb(13%,61%,67%,100%), 
                                      height: 10.0pt, 
                                      stroke: none, 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [9]), 
                                               text(body: [.]) }), 
                                 rect(fill: rgb(100%,25%,21%,100%), 
                                      height: 10.0pt, 
                                      stroke: none, 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [10]), 
                                               text(body: [.]) }), 
                                 rect(fill: rgb(100%,25%,21%,100%), 
                                      height: 10.0pt, 
                                      stroke: rgb(18%,80%,25%,100%), 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [11]), 
                                               text(body: [.]) }), 
                                 rect(fill: rgb(100%,25%,21%,100%), 
                                      height: 10.0pt, 
                                      stroke: (thickness: 2.0pt,
                                               color: rgb(0%,0%,0%,100%)), 
                                      width: 20.0pt), 
                                 {  }, 
                                 align(alignment: horizon, 
                                       body: { text(body: [12]), 
                                               text(body: [.]) }), 
                                 rect(fill: rgb(100%,25%,21%,100%), 
                                      height: 10.0pt, 
                                      stroke: (thickness: 2.0pt,
                                               color: rgb(18%,80%,25%,100%)), 
                                      width: 20.0pt), 
                                 {  }), 
                      columns: (auto, 
                                auto, 
                                1.0fr, 
                                auto, 
                                auto, 
                                0.0fr), 
                      gutter: 5.0pt), 
                 parbreak() })