Dmitriy Pleshevskiy
be8db7ca48
![image](/attachments/5bf879cc-b94c-414e-b69b-92cbc018671e) Co-authored-by: Dmitriy Pleshevskiy <dmitriy@ideascup.me> Reviewed-on: #1
229 lines
7 KiB
Text
229 lines
7 KiB
Text
================================================================================
|
|
Root attribute
|
|
================================================================================
|
|
direction: value
|
|
|
|
shape: oval
|
|
label: ten
|
|
constraint: utehu
|
|
icon: huell
|
|
opacity: 1
|
|
fill: red
|
|
stroke: red
|
|
stroke-width: 5
|
|
stroke-dash: 4
|
|
border-radius: 1
|
|
font-color: red
|
|
shadow: true
|
|
multiple: true
|
|
animated: true
|
|
link: https://to
|
|
near: abc
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(attribute (attr_key) (attr_value))
|
|
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
(attribute (attr_key (reserved)) (attr_value))
|
|
)
|
|
|
|
================================================================================
|
|
Style attribute
|
|
================================================================================
|
|
foo.style.opacity: 5
|
|
foo.style.fill: red
|
|
foo.style.stroke: red
|
|
foo.style.stroke-width: 5
|
|
foo.style.stroke-dash: 4
|
|
foo.style.border-radius: 1
|
|
foo.style.font-color: red
|
|
foo.style.shadow: true
|
|
foo.style.multiple: true
|
|
foo.style.animated: true
|
|
foo.style.link: https://to
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
(shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value))))
|
|
)
|
|
|
|
================================================================================
|
|
Block style attributes
|
|
================================================================================
|
|
foo.style: {
|
|
opacity: 5
|
|
fill: red
|
|
stroke: red
|
|
stroke-width: 5
|
|
stroke-dash: 4
|
|
border-radius: 1
|
|
font-color: red
|
|
shadow: true
|
|
multiple: true
|
|
animated: true
|
|
link: https://to
|
|
}
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(shape
|
|
(shape_key) (dot)
|
|
(attribute
|
|
(attr_key)
|
|
(block
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
)
|
|
)
|
|
)
|
|
)
|
|
|
|
================================================================================
|
|
Container attributes
|
|
================================================================================
|
|
foo: {
|
|
shape: oval
|
|
label: Baz
|
|
constraint: primary-key
|
|
icon: pathto
|
|
width: 100
|
|
height: 200
|
|
}
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(container
|
|
(container_key)
|
|
(block
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
)
|
|
)
|
|
)
|
|
|
|
================================================================================
|
|
Container style attributes
|
|
================================================================================
|
|
foo: {
|
|
style.opacity: 5
|
|
style.fill: red
|
|
style.stroke: red
|
|
style.stroke-width: 5
|
|
style.stroke-dash: 4
|
|
style.border-radius: 1
|
|
style.font-color: red
|
|
style.shadow: true
|
|
style.multiple: true
|
|
style.animated: true
|
|
style.link: https://to
|
|
}
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(container
|
|
(container_key)
|
|
(block
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
(attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))
|
|
)
|
|
)
|
|
)
|
|
|
|
================================================================================
|
|
Block style attributes inside a container
|
|
================================================================================
|
|
foo: {
|
|
style: {
|
|
opacity: 5
|
|
fill: red
|
|
stroke: red
|
|
stroke-width: 5
|
|
stroke-dash: 4
|
|
border-radius: 1
|
|
font-color: red
|
|
shadow: true
|
|
multiple: true
|
|
animated: true
|
|
link: https://to
|
|
}
|
|
}
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(container
|
|
(container_key)
|
|
(block
|
|
(attribute
|
|
(attr_key)
|
|
(block
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
(attribute (attr_key) (attr_value))
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
|