mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 09:20:03 +02:00
spelling: node
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -17,7 +17,7 @@ export const solidStateFill = (color: string) => {
|
||||
|
||||
export const compileStyles = (node: Node) => {
|
||||
// node.cssCompiledStyles is an array of strings in the form of 'key: value' where key is the css property and value is the value
|
||||
// the array is the styles of node node from the classes it is using
|
||||
// the array is the styles of node from the classes it is using
|
||||
// node.cssStyles is an array of styles directly set on the node
|
||||
// concat the arrays and remove duplicates such that the values from node.cssStyles are used if there are duplicates
|
||||
const stylesMap = styles2Map([...(node.cssCompiledStyles || []), ...(node.cssStyles || [])]);
|
||||
|
Reference in New Issue
Block a user