update API according to the Cyberiada-GraphML-1.0 standard + write to YED format
This commit is contained in:
@@ -2418,6 +2418,8 @@ static int cyberiada_write_node_title_yed(xmlTextWriterPtr writer, const char* t
|
|||||||
int res;
|
int res;
|
||||||
|
|
||||||
XML_WRITE_OPEN_E_NS_I(writer, GRAPHML_YED_LABELNODE, GRAPHML_YED_NS, indent);
|
XML_WRITE_OPEN_E_NS_I(writer, GRAPHML_YED_LABELNODE, GRAPHML_YED_NS, indent);
|
||||||
|
|
||||||
|
if (*title) {
|
||||||
XML_WRITE_ATTR(writer, "alignment", "center");
|
XML_WRITE_ATTR(writer, "alignment", "center");
|
||||||
XML_WRITE_ATTR(writer, "backgroundColor", "#EBEBEB");
|
XML_WRITE_ATTR(writer, "backgroundColor", "#EBEBEB");
|
||||||
XML_WRITE_ATTR(writer, "fontSize", "15");
|
XML_WRITE_ATTR(writer, "fontSize", "15");
|
||||||
@@ -2434,8 +2436,6 @@ static int cyberiada_write_node_title_yed(xmlTextWriterPtr writer, const char* t
|
|||||||
XML_WRITE_ATTR(writer, "configuration", "com.yworks.entityRelationship.label.name");
|
XML_WRITE_ATTR(writer, "configuration", "com.yworks.entityRelationship.label.name");
|
||||||
XML_WRITE_ATTR(writer, "modelName", "internal");
|
XML_WRITE_ATTR(writer, "modelName", "internal");
|
||||||
XML_WRITE_ATTR(writer, "modelPosition", "t");
|
XML_WRITE_ATTR(writer, "modelPosition", "t");
|
||||||
|
|
||||||
if (*title) {
|
|
||||||
XML_WRITE_TEXT(writer, title);
|
XML_WRITE_TEXT(writer, title);
|
||||||
}
|
}
|
||||||
XML_WRITE_CLOSE_E(writer);
|
XML_WRITE_CLOSE_E(writer);
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ typedef enum {
|
|||||||
/* Allocate the SM structure in memory (for heap usage) */
|
/* Allocate the SM structure in memory (for heap usage) */
|
||||||
CyberiadaSM* cyberiada_create_sm(void);
|
CyberiadaSM* cyberiada_create_sm(void);
|
||||||
|
|
||||||
/* Initialize the SM structure. */
|
/* Initialize the SM structure */
|
||||||
/* Do not use the structure before the initialization! */
|
/* Do not use the structure before the initialization! */
|
||||||
int cyberiada_init_sm(CyberiadaSM* sm);
|
int cyberiada_init_sm(CyberiadaSM* sm);
|
||||||
|
|
||||||
|
|||||||
2
test.c
2
test.c
@@ -43,7 +43,7 @@ const char* commands[] = {
|
|||||||
|
|
||||||
const char* command_descr[] = {
|
const char* command_descr[] = {
|
||||||
"print HSM diagram content to stdout; use -f key to set the scheme format (default - unknown)",
|
"print HSM diagram content to stdout; use -f key to set the scheme format (default - unknown)",
|
||||||
"convert HSM from <format-from> format to <to-format> into the file named <output-file>"
|
"convert HSM from <from-format> to <to-format> into the file named <output-file>"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user