2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 23:45:53 +03:00
|
|
|
Root attribute
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 18:35:50 +03:00
|
|
|
direction: value
|
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
--------------------------------------------------------------------------------
|
2022-12-04 18:35:50 +03:00
|
|
|
|
|
|
|
(source_file
|
2022-12-04 23:45:53 +03:00
|
|
|
(attr_key) (attr_value)
|
2022-12-04 18:35:50 +03:00
|
|
|
)
|
|
|
|
|
2022-12-07 18:52:19 +03:00
|
|
|
================================================================================
|
|
|
|
Block shape attribute
|
|
|
|
================================================================================
|
|
|
|
foo: {
|
|
|
|
shape: oval
|
|
|
|
|
|
|
|
foo.bar.baz: {
|
|
|
|
shape: oval
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(source_file
|
2022-12-07 23:14:25 +03:00
|
|
|
(shape_key)
|
|
|
|
(block
|
2022-12-07 18:52:19 +03:00
|
|
|
(attr_key) (attr_value)
|
2022-12-08 01:15:09 +03:00
|
|
|
(container_key) (dot) (container_key) (dot) (shape_key)
|
2022-12-07 23:14:25 +03:00
|
|
|
(block
|
2022-12-07 18:52:19 +03:00
|
|
|
(attr_key) (attr_value)
|
2022-12-07 23:14:25 +03:00
|
|
|
)
|
|
|
|
)
|
2022-12-07 18:52:19 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 23:45:53 +03:00
|
|
|
Inline shape attribute
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 23:45:53 +03:00
|
|
|
foo.shape: oval
|
2022-12-05 00:26:24 +03:00
|
|
|
foo.bar.baz.shape: oval
|
2022-12-04 23:45:53 +03:00
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
--------------------------------------------------------------------------------
|
2022-12-04 23:45:53 +03:00
|
|
|
|
|
|
|
(source_file
|
2022-12-07 23:14:25 +03:00
|
|
|
(shape_key) (dot) (attr_key) (attr_value)
|
2022-12-08 01:15:09 +03:00
|
|
|
(container_key) (dot) (container_key) (dot) (shape_key) (dot) (attr_key) (attr_value)
|
2022-12-04 23:45:53 +03:00
|
|
|
)
|
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 23:45:53 +03:00
|
|
|
Inline style attribute
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 23:45:53 +03:00
|
|
|
foo.style.opacity: 5
|
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
--------------------------------------------------------------------------------
|
2022-12-04 23:45:53 +03:00
|
|
|
|
|
|
|
(source_file
|
2022-12-07 23:14:25 +03:00
|
|
|
(shape_key) (dot) (attr_key) (dot) (attr_key) (attr_value)
|
2022-12-04 23:45:53 +03:00
|
|
|
)
|
|
|
|
|
2022-12-06 11:57:59 +03:00
|
|
|
================================================================================
|
|
|
|
Block style attributes
|
|
|
|
================================================================================
|
|
|
|
foo.style: {
|
|
|
|
opacity: 5
|
2022-12-06 12:32:50 +03:00
|
|
|
|
2022-12-06 11:57:59 +03:00
|
|
|
fill: red;
|
|
|
|
}
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(source_file
|
2022-12-07 23:14:25 +03:00
|
|
|
(shape_key) (dot) (attr_key)
|
|
|
|
(block
|
|
|
|
(attr_key) (attr_value)
|
|
|
|
(attr_key) (attr_value)
|
2022-12-06 11:57:59 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
================================================================================
|
|
|
|
Inline block style attributes
|
|
|
|
================================================================================
|
|
|
|
foo.style: { opacity: 5; fill: red; }
|
|
|
|
foo.style: { opacity: 5 }
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(source_file
|
2022-12-07 23:14:25 +03:00
|
|
|
(shape_key) (dot) (attr_key)
|
|
|
|
(block
|
|
|
|
(attr_key) (attr_value)
|
|
|
|
(attr_key) (attr_value)
|
2022-12-06 11:57:59 +03:00
|
|
|
)
|
2022-12-07 23:14:25 +03:00
|
|
|
(shape_key) (dot) (attr_key)
|
|
|
|
(block
|
|
|
|
(attr_key) (attr_value)
|
2022-12-06 11:57:59 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2022-12-08 02:04:36 +03:00
|
|
|
================================================================================
|
|
|
|
Color in string
|
|
|
|
================================================================================
|
|
|
|
foo.style.fill: "#ffffff";
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
(shape_key) (dot) (attr_key) (dot) (attr_key) (attr_value (string))
|
|
|
|
)
|
|
|
|
|