update API according to the Cyberiada-GraphML-1.0 standard + write to YED format
This commit is contained in:
@@ -2418,24 +2418,24 @@ static int cyberiada_write_node_title_yed(xmlTextWriterPtr writer, const char* t
|
||||
int res;
|
||||
|
||||
XML_WRITE_OPEN_E_NS_I(writer, GRAPHML_YED_LABELNODE, GRAPHML_YED_NS, indent);
|
||||
XML_WRITE_ATTR(writer, "alignment", "center");
|
||||
XML_WRITE_ATTR(writer, "backgroundColor", "#EBEBEB");
|
||||
XML_WRITE_ATTR(writer, "fontSize", "15");
|
||||
XML_WRITE_ATTR(writer, "fontStyle", "bold");
|
||||
XML_WRITE_ATTR(writer, "textColor", "#000000");
|
||||
XML_WRITE_ATTR(writer, "xml:space", "preserve");
|
||||
XML_WRITE_ATTR(writer, "hasLineColor", "false");
|
||||
XML_WRITE_ATTR(writer, "visible", "true");
|
||||
XML_WRITE_ATTR(writer, "horizontalTextPosition", "center");
|
||||
XML_WRITE_ATTR(writer, "verticalTextPosition", "top");
|
||||
XML_WRITE_ATTR(writer, "autoSizePolicy", "node_width");
|
||||
XML_WRITE_ATTR(writer, "y", "0");
|
||||
XML_WRITE_ATTR(writer, "height", "20");
|
||||
XML_WRITE_ATTR(writer, "configuration", "com.yworks.entityRelationship.label.name");
|
||||
XML_WRITE_ATTR(writer, "modelName", "internal");
|
||||
XML_WRITE_ATTR(writer, "modelPosition", "t");
|
||||
|
||||
|
||||
if (*title) {
|
||||
XML_WRITE_ATTR(writer, "alignment", "center");
|
||||
XML_WRITE_ATTR(writer, "backgroundColor", "#EBEBEB");
|
||||
XML_WRITE_ATTR(writer, "fontSize", "15");
|
||||
XML_WRITE_ATTR(writer, "fontStyle", "bold");
|
||||
XML_WRITE_ATTR(writer, "textColor", "#000000");
|
||||
XML_WRITE_ATTR(writer, "xml:space", "preserve");
|
||||
XML_WRITE_ATTR(writer, "hasLineColor", "false");
|
||||
XML_WRITE_ATTR(writer, "visible", "true");
|
||||
XML_WRITE_ATTR(writer, "horizontalTextPosition", "center");
|
||||
XML_WRITE_ATTR(writer, "verticalTextPosition", "top");
|
||||
XML_WRITE_ATTR(writer, "autoSizePolicy", "node_width");
|
||||
XML_WRITE_ATTR(writer, "y", "0");
|
||||
XML_WRITE_ATTR(writer, "height", "20");
|
||||
XML_WRITE_ATTR(writer, "configuration", "com.yworks.entityRelationship.label.name");
|
||||
XML_WRITE_ATTR(writer, "modelName", "internal");
|
||||
XML_WRITE_ATTR(writer, "modelPosition", "t");
|
||||
XML_WRITE_TEXT(writer, title);
|
||||
}
|
||||
XML_WRITE_CLOSE_E(writer);
|
||||
|
||||
@@ -189,7 +189,7 @@ typedef enum {
|
||||
/* Allocate the SM structure in memory (for heap usage) */
|
||||
CyberiadaSM* cyberiada_create_sm(void);
|
||||
|
||||
/* Initialize the SM structure. */
|
||||
/* Initialize the SM structure */
|
||||
/* Do not use the structure before the initialization! */
|
||||
int cyberiada_init_sm(CyberiadaSM* sm);
|
||||
|
||||
|
||||
2
test.c
2
test.c
@@ -43,7 +43,7 @@ const char* commands[] = {
|
||||
|
||||
const char* command_descr[] = {
|
||||
"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