@graphty/graph-io 0.3.47 → 0.3.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{approximations-wWjCRzKj.js → approximations-Bzn3L-je.js} +2 -2
- package/dist/chunks/{approximations-wWjCRzKj.js.map → approximations-Bzn3L-je.js.map} +1 -1
- package/dist/chunks/bends-BGXjv_U4.js +129 -0
- package/dist/chunks/bends-BGXjv_U4.js.map +1 -0
- package/dist/chunks/{block-DiGq58c3.js → block-iptrlMBb.js} +947 -134
- package/dist/chunks/block-iptrlMBb.js.map +1 -0
- package/dist/chunks/choose-CczZJaX_.js +717 -0
- package/dist/chunks/choose-CczZJaX_.js.map +1 -0
- package/dist/chunks/codes-BE2xir2k.js +157 -0
- package/dist/chunks/codes-BE2xir2k.js.map +1 -0
- package/dist/chunks/{constants-BKwqelYD.js → constants-CKkYLPtt.js} +2 -2
- package/dist/chunks/{constants-BKwqelYD.js.map → constants-CKkYLPtt.js.map} +1 -1
- package/dist/chunks/context-C3p0RQxR.js +664 -0
- package/dist/chunks/context-C3p0RQxR.js.map +1 -0
- package/dist/chunks/{convert-BcQ8_jMo.js → convert-Ct2zelbQ.js} +7 -2
- package/dist/chunks/convert-Ct2zelbQ.js.map +1 -0
- package/dist/chunks/credentials-DXHx7nwR.js +349 -0
- package/dist/chunks/credentials-DXHx7nwR.js.map +1 -0
- package/dist/chunks/cx-export-Bt6NoqTQ.js +259 -0
- package/dist/chunks/cx-export-Bt6NoqTQ.js.map +1 -0
- package/dist/chunks/descriptor-B28U25x4.js +60 -0
- package/dist/chunks/descriptor-B28U25x4.js.map +1 -0
- package/dist/chunks/descriptor-C-YDhtsn.js +48 -0
- package/dist/chunks/descriptor-C-YDhtsn.js.map +1 -0
- package/dist/chunks/descriptor-DLA5kINx.js +142 -0
- package/dist/chunks/descriptor-DLA5kINx.js.map +1 -0
- package/dist/chunks/{emit-CwU8cUmG.js → emit-BwHQkZle.js} +1690 -103
- package/dist/chunks/emit-BwHQkZle.js.map +1 -0
- package/dist/chunks/{escape-CgzxiYPg.js → escape-CuCIzNMB.js} +12 -12
- package/dist/chunks/{escape-CgzxiYPg.js.map → escape-CuCIzNMB.js.map} +1 -1
- package/dist/chunks/{export-BvqAXCKh.js → export-Cha4dRFz.js} +48 -1780
- package/dist/chunks/export-Cha4dRFz.js.map +1 -0
- package/dist/chunks/{exporter--Mk9gXCJ.js → exporter-BP6otMO6.js} +6 -4
- package/dist/chunks/{exporter--Mk9gXCJ.js.map → exporter-BP6otMO6.js.map} +1 -1
- package/dist/chunks/{exporter-CrDWIyiq.js → exporter-D2CETOMK.js} +1222 -154
- package/dist/chunks/exporter-D2CETOMK.js.map +1 -0
- package/dist/chunks/{exporter-DndFlGSa.js → exporter-D9yMtocA.js} +7 -6
- package/dist/chunks/{exporter-DndFlGSa.js.map → exporter-D9yMtocA.js.map} +1 -1
- package/dist/chunks/exporter-_jrBTnos.js +1009 -0
- package/dist/chunks/exporter-_jrBTnos.js.map +1 -0
- package/dist/chunks/{exporter-CJgfhF-l.js → exporter-nDfxIK5D.js} +9 -7
- package/dist/chunks/{exporter-CJgfhF-l.js.map → exporter-nDfxIK5D.js.map} +1 -1
- package/dist/chunks/format-BXiAb-1h.js +408 -0
- package/dist/chunks/format-BXiAb-1h.js.map +1 -0
- package/dist/chunks/{generic-Dq1ntt9q.js → generic-ymWCETAJ.js} +387 -31
- package/dist/chunks/generic-ymWCETAJ.js.map +1 -0
- package/dist/chunks/{importer-CMmeMWlC.js → importer-B92x1xY5.js} +15 -263
- package/dist/chunks/importer-B92x1xY5.js.map +1 -0
- package/dist/chunks/{importer-DiZRmOQG.js → importer-CT9mJ1nn.js} +328 -90
- package/dist/chunks/importer-CT9mJ1nn.js.map +1 -0
- package/dist/chunks/{importer-COTK9Tsl.js → importer-DaLTjbds.js} +116 -1099
- package/dist/chunks/importer-DaLTjbds.js.map +1 -0
- package/dist/chunks/{importer-iFYPEKaJ.js → importer-GREKMdIf.js} +28 -16
- package/dist/chunks/importer-GREKMdIf.js.map +1 -0
- package/dist/chunks/{importer-BSvfrX_h.js → importer-PqaaKKnY.js} +23 -1016
- package/dist/chunks/importer-PqaaKKnY.js.map +1 -0
- package/dist/chunks/{importer-yh_aBCU6.js → importer-Vn5QvmmJ.js} +66 -12
- package/dist/chunks/importer-Vn5QvmmJ.js.map +1 -0
- package/dist/chunks/{importer-e6LGpqHB.js → importer-vRq4h3j5.js} +1470 -354
- package/dist/chunks/importer-vRq4h3j5.js.map +1 -0
- package/dist/chunks/input-CAxt_aV-.js +1397 -0
- package/dist/chunks/input-CAxt_aV-.js.map +1 -0
- package/dist/chunks/{json-elements-DJZRZ6jd.js → json-elements-Cq76WjnZ.js} +4 -4
- package/dist/chunks/{json-elements-DJZRZ6jd.js.map → json-elements-Cq76WjnZ.js.map} +1 -1
- package/dist/chunks/{lexicon-CT69Kd87.js → lexicon-Clf4QIyl.js} +299 -77
- package/dist/chunks/lexicon-Clf4QIyl.js.map +1 -0
- package/dist/chunks/{ontology-export-G4MqRdux.js → ontology-export-OMo91mb0.js} +4 -3
- package/dist/chunks/{ontology-export-G4MqRdux.js.map → ontology-export-OMo91mb0.js.map} +1 -1
- package/dist/chunks/{records-CiaWZrFH.js → records-NJiYvekn.js} +2 -2
- package/dist/chunks/{records-CiaWZrFH.js.map → records-NJiYvekn.js.map} +1 -1
- package/dist/chunks/{format-BpQBx8MZ.js → report-CwMfYa9J.js} +70 -127
- package/dist/chunks/report-CwMfYa9J.js.map +1 -0
- package/dist/chunks/round-trip-Zm3_ivgq.js +79 -0
- package/dist/chunks/round-trip-Zm3_ivgq.js.map +1 -0
- package/dist/chunks/sigv4-EokFic1V.js +247 -0
- package/dist/chunks/sigv4-EokFic1V.js.map +1 -0
- package/dist/chunks/{styles-BQnsga7p.js → styles-CCs214_3.js} +1300 -168
- package/dist/chunks/styles-CCs214_3.js.map +1 -0
- package/dist/chunks/styles-Cm62yyQX.js +2812 -0
- package/dist/chunks/styles-Cm62yyQX.js.map +1 -0
- package/dist/chunks/styles-DPQQIig4.js +1928 -0
- package/dist/chunks/styles-DPQQIig4.js.map +1 -0
- package/dist/chunks/styles-yed-UMFdNqze.js +1213 -0
- package/dist/chunks/styles-yed-UMFdNqze.js.map +1 -0
- package/dist/chunks/{text-CzJNFOS9.js → text-ystE2bYi.js} +2 -2
- package/dist/chunks/{text-CzJNFOS9.js.map → text-ystE2bYi.js.map} +1 -1
- package/dist/csv.js +7 -5
- package/dist/csv.js.map +1 -1
- package/dist/cx.js +5 -4
- package/dist/cx.js.map +1 -1
- package/dist/cx2.js +2 -2
- package/dist/cys.js +1 -1
- package/dist/dot.js +5 -4
- package/dist/dot.js.map +1 -1
- package/dist/gexf.js +42 -10
- package/dist/gexf.js.map +1 -1
- package/dist/gml.js +850 -193
- package/dist/gml.js.map +1 -1
- package/dist/graph-io.js +1189 -220
- package/dist/graph-io.js.map +1 -1
- package/dist/graphml.js +3 -3
- package/dist/json.js +3 -2
- package/dist/neo4j.js +6 -4
- package/dist/neo4j.js.map +1 -1
- package/dist/obo.js +1 -1
- package/dist/pajek.js +1 -1
- package/dist/positions.js +45 -3
- package/dist/positions.js.map +1 -1
- package/dist/sources-cypher.d.ts +1 -0
- package/dist/sources-cypher.js +1351 -0
- package/dist/sources-cypher.js.map +1 -0
- package/dist/sources-ndex.d.ts +1 -0
- package/dist/sources-ndex.js +278 -0
- package/dist/sources-ndex.js.map +1 -0
- package/dist/sources-rest.d.ts +1 -0
- package/dist/sources-rest.js +1377 -0
- package/dist/sources-rest.js.map +1 -0
- package/dist/sources-sparql.d.ts +1 -0
- package/dist/sources-sparql.js +405 -0
- package/dist/sources-sparql.js.map +1 -0
- package/dist/src/common/report.d.ts +6 -3
- package/dist/src/common/report.d.ts.map +1 -1
- package/dist/src/common/report.js +15 -9
- package/dist/src/common/report.js.map +1 -1
- package/dist/src/formats/cx/importer.d.ts.map +1 -1
- package/dist/src/formats/cx/importer.js +5 -1
- package/dist/src/formats/cx/importer.js.map +1 -1
- package/dist/src/formats/cx/styles.d.ts +24 -1
- package/dist/src/formats/cx/styles.d.ts.map +1 -1
- package/dist/src/formats/cx/styles.js +118 -11
- package/dist/src/formats/cx/styles.js.map +1 -1
- package/dist/src/formats/cx2/importer.d.ts.map +1 -1
- package/dist/src/formats/cx2/importer.js +1 -0
- package/dist/src/formats/cx2/importer.js.map +1 -1
- package/dist/src/formats/cx2/styles.d.ts.map +1 -1
- package/dist/src/formats/cx2/styles.js +3 -1
- package/dist/src/formats/cx2/styles.js.map +1 -1
- package/dist/src/formats/cys/importer.d.ts.map +1 -1
- package/dist/src/formats/cys/importer.js +1 -0
- package/dist/src/formats/cys/importer.js.map +1 -1
- package/dist/src/formats/cys/styles.d.ts +2 -0
- package/dist/src/formats/cys/styles.d.ts.map +1 -1
- package/dist/src/formats/cys/styles.js +15 -7
- package/dist/src/formats/cys/styles.js.map +1 -1
- package/dist/src/formats/dot/drawing.d.ts +98 -0
- package/dist/src/formats/dot/drawing.d.ts.map +1 -0
- package/dist/src/formats/dot/drawing.js +734 -0
- package/dist/src/formats/dot/drawing.js.map +1 -0
- package/dist/src/formats/dot/importer.d.ts.map +1 -1
- package/dist/src/formats/dot/importer.js +108 -31
- package/dist/src/formats/dot/importer.js.map +1 -1
- package/dist/src/formats/dot/label-places.d.ts +34 -0
- package/dist/src/formats/dot/label-places.d.ts.map +1 -0
- package/dist/src/formats/dot/label-places.js +179 -0
- package/dist/src/formats/dot/label-places.js.map +1 -0
- package/dist/src/formats/dot/record.d.ts +50 -0
- package/dist/src/formats/dot/record.d.ts.map +1 -0
- package/dist/src/formats/dot/record.js +275 -0
- package/dist/src/formats/dot/record.js.map +1 -0
- package/dist/src/formats/dot/styles.d.ts +62 -2
- package/dist/src/formats/dot/styles.d.ts.map +1 -1
- package/dist/src/formats/dot/styles.js +1457 -120
- package/dist/src/formats/dot/styles.js.map +1 -1
- package/dist/src/formats/gexf/dialog-metrics.d.ts +15 -0
- package/dist/src/formats/gexf/dialog-metrics.d.ts.map +1 -0
- package/dist/src/formats/gexf/dialog-metrics.js +59 -0
- package/dist/src/formats/gexf/dialog-metrics.js.map +1 -0
- package/dist/src/formats/gexf/importer.d.ts +7 -0
- package/dist/src/formats/gexf/importer.d.ts.map +1 -1
- package/dist/src/formats/gexf/importer.js +41 -5
- package/dist/src/formats/gexf/importer.js.map +1 -1
- package/dist/src/formats/gexf/preview.d.ts +77 -0
- package/dist/src/formats/gexf/preview.d.ts.map +1 -0
- package/dist/src/formats/gexf/preview.js +191 -0
- package/dist/src/formats/gexf/preview.js.map +1 -0
- package/dist/src/formats/gexf/schema.d.ts.map +1 -1
- package/dist/src/formats/gexf/schema.js +2 -1
- package/dist/src/formats/gexf/schema.js.map +1 -1
- package/dist/src/formats/gexf/styles.d.ts +60 -16
- package/dist/src/formats/gexf/styles.d.ts.map +1 -1
- package/dist/src/formats/gexf/styles.js +883 -131
- package/dist/src/formats/gexf/styles.js.map +1 -1
- package/dist/src/formats/gml/importer.d.ts +5 -2
- package/dist/src/formats/gml/importer.d.ts.map +1 -1
- package/dist/src/formats/gml/importer.js +258 -71
- package/dist/src/formats/gml/importer.js.map +1 -1
- package/dist/src/formats/gml/index.d.ts +1 -1
- package/dist/src/formats/gml/index.d.ts.map +1 -1
- package/dist/src/formats/gml/index.js +1 -1
- package/dist/src/formats/gml/index.js.map +1 -1
- package/dist/src/formats/gml/positions.d.ts +7 -0
- package/dist/src/formats/gml/positions.d.ts.map +1 -1
- package/dist/src/formats/gml/positions.js +29 -7
- package/dist/src/formats/gml/positions.js.map +1 -1
- package/dist/src/formats/gml/styles.d.ts.map +1 -1
- package/dist/src/formats/gml/styles.js +756 -103
- package/dist/src/formats/gml/styles.js.map +1 -1
- package/dist/src/formats/graphml/styles-plain.d.ts.map +1 -1
- package/dist/src/formats/graphml/styles-plain.js +8 -12
- package/dist/src/formats/graphml/styles-plain.js.map +1 -1
- package/dist/src/formats/graphml/styles-yed.d.ts +21 -15
- package/dist/src/formats/graphml/styles-yed.d.ts.map +1 -1
- package/dist/src/formats/graphml/styles-yed.js +749 -148
- package/dist/src/formats/graphml/styles-yed.js.map +1 -1
- package/dist/src/formats/graphml/styles-yfiles3.d.ts +1 -1
- package/dist/src/formats/graphml/styles-yfiles3.d.ts.map +1 -1
- package/dist/src/formats/graphml/styles-yfiles3.js +429 -64
- package/dist/src/formats/graphml/styles-yfiles3.js.map +1 -1
- package/dist/src/formats/graphml/yfiles.d.ts +3 -3
- package/dist/src/formats/graphml/yfiles.d.ts.map +1 -1
- package/dist/src/formats/graphml/yfiles.js +16 -6
- package/dist/src/formats/graphml/yfiles.js.map +1 -1
- package/dist/src/formats/json/dialect.d.ts +3 -2
- package/dist/src/formats/json/dialect.d.ts.map +1 -1
- package/dist/src/formats/json/dialect.js +39 -5
- package/dist/src/formats/json/dialect.js.map +1 -1
- package/dist/src/formats/json/importer.d.ts +13 -2
- package/dist/src/formats/json/importer.d.ts.map +1 -1
- package/dist/src/formats/json/importer.js +42 -6
- package/dist/src/formats/json/importer.js.map +1 -1
- package/dist/src/formats/json/index.d.ts +1 -1
- package/dist/src/formats/json/index.d.ts.map +1 -1
- package/dist/src/formats/json/index.js +1 -1
- package/dist/src/formats/json/index.js.map +1 -1
- package/dist/src/formats/json/positions.d.ts +5 -2
- package/dist/src/formats/json/positions.d.ts.map +1 -1
- package/dist/src/formats/json/positions.js +20 -4
- package/dist/src/formats/json/positions.js.map +1 -1
- package/dist/src/formats/json/styles.d.ts +12 -1
- package/dist/src/formats/json/styles.d.ts.map +1 -1
- package/dist/src/formats/json/styles.js +1755 -136
- package/dist/src/formats/json/styles.js.map +1 -1
- package/dist/src/formats/pajek/draw.d.ts +96 -0
- package/dist/src/formats/pajek/draw.d.ts.map +1 -0
- package/dist/src/formats/pajek/draw.js +372 -0
- package/dist/src/formats/pajek/draw.js.map +1 -0
- package/dist/src/formats/pajek/exporter.d.ts.map +1 -1
- package/dist/src/formats/pajek/exporter.js +70 -51
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/pajek/importer.d.ts +9 -0
- package/dist/src/formats/pajek/importer.d.ts.map +1 -1
- package/dist/src/formats/pajek/importer.js +233 -102
- package/dist/src/formats/pajek/importer.js.map +1 -1
- package/dist/src/formats/pajek/index.d.ts +1 -0
- package/dist/src/formats/pajek/index.d.ts.map +1 -1
- package/dist/src/formats/pajek/index.js.map +1 -1
- package/dist/src/formats/pajek/styles.d.ts +15 -7
- package/dist/src/formats/pajek/styles.d.ts.map +1 -1
- package/dist/src/formats/pajek/styles.js +1279 -114
- package/dist/src/formats/pajek/styles.js.map +1 -1
- package/dist/src/formats/pajek/syntax.d.ts +10 -1
- package/dist/src/formats/pajek/syntax.d.ts.map +1 -1
- package/dist/src/formats/pajek/syntax.js +26 -2
- package/dist/src/formats/pajek/syntax.js.map +1 -1
- package/dist/src/formats/xgmml/emit.d.ts +1 -0
- package/dist/src/formats/xgmml/emit.d.ts.map +1 -1
- package/dist/src/formats/xgmml/emit.js +65 -5
- package/dist/src/formats/xgmml/emit.js.map +1 -1
- package/dist/src/formats/xgmml/styles.d.ts +23 -3
- package/dist/src/formats/xgmml/styles.d.ts.map +1 -1
- package/dist/src/formats/xgmml/styles.js +278 -60
- package/dist/src/formats/xgmml/styles.js.map +1 -1
- package/dist/src/index.d.ts +10 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +11 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/positions/convert.d.ts.map +1 -1
- package/dist/src/positions/convert.js +11 -1
- package/dist/src/positions/convert.js.map +1 -1
- package/dist/src/positions/extract.d.ts.map +1 -1
- package/dist/src/positions/extract.js +53 -1
- package/dist/src/positions/extract.js.map +1 -1
- package/dist/src/positions/index.d.ts +1 -1
- package/dist/src/positions/index.d.ts.map +1 -1
- package/dist/src/positions/types.d.ts +59 -0
- package/dist/src/positions/types.d.ts.map +1 -1
- package/dist/src/registry.d.ts +173 -1
- package/dist/src/registry.d.ts.map +1 -1
- package/dist/src/registry.js +196 -1
- package/dist/src/registry.js.map +1 -1
- package/dist/src/sources/builtins.d.ts +11 -0
- package/dist/src/sources/builtins.d.ts.map +1 -0
- package/dist/src/sources/builtins.js +53 -0
- package/dist/src/sources/builtins.js.map +1 -0
- package/dist/src/sources/codes.d.ts +230 -0
- package/dist/src/sources/codes.d.ts.map +1 -0
- package/dist/src/sources/codes.js +58 -0
- package/dist/src/sources/codes.js.map +1 -0
- package/dist/src/sources/context.d.ts +112 -0
- package/dist/src/sources/context.d.ts.map +1 -0
- package/dist/src/sources/context.js +740 -0
- package/dist/src/sources/context.js.map +1 -0
- package/dist/src/sources/credentials.d.ts +179 -0
- package/dist/src/sources/credentials.d.ts.map +1 -0
- package/dist/src/sources/credentials.js +301 -0
- package/dist/src/sources/credentials.js.map +1 -0
- package/dist/src/sources/cypher/descriptor.d.ts +21 -0
- package/dist/src/sources/cypher/descriptor.d.ts.map +1 -0
- package/dist/src/sources/cypher/descriptor.js +124 -0
- package/dist/src/sources/cypher/descriptor.js.map +1 -0
- package/dist/src/sources/cypher/flatten.d.ts +72 -0
- package/dist/src/sources/cypher/flatten.d.ts.map +1 -0
- package/dist/src/sources/cypher/flatten.js +279 -0
- package/dist/src/sources/cypher/flatten.js.map +1 -0
- package/dist/src/sources/cypher/index.d.ts +33 -0
- package/dist/src/sources/cypher/index.d.ts.map +1 -0
- package/dist/src/sources/cypher/index.js +511 -0
- package/dist/src/sources/cypher/index.js.map +1 -0
- package/dist/src/sources/cypher/params.d.ts +40 -0
- package/dist/src/sources/cypher/params.d.ts.map +1 -0
- package/dist/src/sources/cypher/params.js +6 -0
- package/dist/src/sources/cypher/params.js.map +1 -0
- package/dist/src/sources/cypher/profiles.d.ts +44 -0
- package/dist/src/sources/cypher/profiles.d.ts.map +1 -0
- package/dist/src/sources/cypher/profiles.js +61 -0
- package/dist/src/sources/cypher/profiles.js.map +1 -0
- package/dist/src/sources/cypher/query-builder.d.ts +123 -0
- package/dist/src/sources/cypher/query-builder.d.ts.map +1 -0
- package/dist/src/sources/cypher/query-builder.js +267 -0
- package/dist/src/sources/cypher/query-builder.js.map +1 -0
- package/dist/src/sources/cypher/transports/bolt.d.ts +21 -0
- package/dist/src/sources/cypher/transports/bolt.d.ts.map +1 -0
- package/dist/src/sources/cypher/transports/bolt.js +185 -0
- package/dist/src/sources/cypher/transports/bolt.js.map +1 -0
- package/dist/src/sources/cypher/transports/neptune-analytics.d.ts +15 -0
- package/dist/src/sources/cypher/transports/neptune-analytics.d.ts.map +1 -0
- package/dist/src/sources/cypher/transports/neptune-analytics.js +38 -0
- package/dist/src/sources/cypher/transports/neptune-analytics.js.map +1 -0
- package/dist/src/sources/cypher/transports/neptune-https.d.ts +31 -0
- package/dist/src/sources/cypher/transports/neptune-https.d.ts.map +1 -0
- package/dist/src/sources/cypher/transports/neptune-https.js +104 -0
- package/dist/src/sources/cypher/transports/neptune-https.js.map +1 -0
- package/dist/src/sources/cypher/transports/query-api.d.ts +14 -0
- package/dist/src/sources/cypher/transports/query-api.d.ts.map +1 -0
- package/dist/src/sources/cypher/transports/query-api.js +80 -0
- package/dist/src/sources/cypher/transports/query-api.js.map +1 -0
- package/dist/src/sources/cypher/transports/transport.d.ts +78 -0
- package/dist/src/sources/cypher/transports/transport.d.ts.map +1 -0
- package/dist/src/sources/cypher/transports/transport.js +77 -0
- package/dist/src/sources/cypher/transports/transport.js.map +1 -0
- package/dist/src/sources/cypher/types-map.d.ts +91 -0
- package/dist/src/sources/cypher/types-map.d.ts.map +1 -0
- package/dist/src/sources/cypher/types-map.js +306 -0
- package/dist/src/sources/cypher/types-map.js.map +1 -0
- package/dist/src/sources/define.d.ts +47 -0
- package/dist/src/sources/define.d.ts.map +1 -0
- package/dist/src/sources/define.js +173 -0
- package/dist/src/sources/define.js.map +1 -0
- package/dist/src/sources/fail.d.ts +33 -0
- package/dist/src/sources/fail.d.ts.map +1 -0
- package/dist/src/sources/fail.js +49 -0
- package/dist/src/sources/fail.js.map +1 -0
- package/dist/src/sources/ids.d.ts +69 -0
- package/dist/src/sources/ids.d.ts.map +1 -0
- package/dist/src/sources/ids.js +69 -0
- package/dist/src/sources/ids.js.map +1 -0
- package/dist/src/sources/ndex/client.d.ts +31 -0
- package/dist/src/sources/ndex/client.d.ts.map +1 -0
- package/dist/src/sources/ndex/client.js +90 -0
- package/dist/src/sources/ndex/client.js.map +1 -0
- package/dist/src/sources/ndex/descriptor.d.ts +10 -0
- package/dist/src/sources/ndex/descriptor.d.ts.map +1 -0
- package/dist/src/sources/ndex/descriptor.js +55 -0
- package/dist/src/sources/ndex/descriptor.js.map +1 -0
- package/dist/src/sources/ndex/expand.d.ts +20 -0
- package/dist/src/sources/ndex/expand.d.ts.map +1 -0
- package/dist/src/sources/ndex/expand.js +87 -0
- package/dist/src/sources/ndex/expand.js.map +1 -0
- package/dist/src/sources/ndex/index.d.ts +25 -0
- package/dist/src/sources/ndex/index.d.ts.map +1 -0
- package/dist/src/sources/ndex/index.js +191 -0
- package/dist/src/sources/ndex/index.js.map +1 -0
- package/dist/src/sources/ndex/params.d.ts +17 -0
- package/dist/src/sources/ndex/params.d.ts.map +1 -0
- package/dist/src/sources/ndex/params.js +6 -0
- package/dist/src/sources/ndex/params.js.map +1 -0
- package/dist/src/sources/ndex/share-url.d.ts +40 -0
- package/dist/src/sources/ndex/share-url.d.ts.map +1 -0
- package/dist/src/sources/ndex/share-url.js +64 -0
- package/dist/src/sources/ndex/share-url.js.map +1 -0
- package/dist/src/sources/params.d.ts +31 -0
- package/dist/src/sources/params.d.ts.map +1 -0
- package/dist/src/sources/params.js +6 -0
- package/dist/src/sources/params.js.map +1 -0
- package/dist/src/sources/registry.d.ts +118 -0
- package/dist/src/sources/registry.d.ts.map +1 -0
- package/dist/src/sources/registry.js +193 -0
- package/dist/src/sources/registry.js.map +1 -0
- package/dist/src/sources/rest/descriptor.d.ts +16 -0
- package/dist/src/sources/rest/descriptor.d.ts.map +1 -0
- package/dist/src/sources/rest/descriptor.js +76 -0
- package/dist/src/sources/rest/descriptor.js.map +1 -0
- package/dist/src/sources/rest/index.d.ts +14 -0
- package/dist/src/sources/rest/index.d.ts.map +1 -0
- package/dist/src/sources/rest/index.js +13 -0
- package/dist/src/sources/rest/index.js.map +1 -0
- package/dist/src/sources/rest/mapping.d.ts +30 -0
- package/dist/src/sources/rest/mapping.d.ts.map +1 -0
- package/dist/src/sources/rest/mapping.js +362 -0
- package/dist/src/sources/rest/mapping.js.map +1 -0
- package/dist/src/sources/rest/openalex.d.ts +27 -0
- package/dist/src/sources/rest/openalex.d.ts.map +1 -0
- package/dist/src/sources/rest/openalex.js +269 -0
- package/dist/src/sources/rest/openalex.js.map +1 -0
- package/dist/src/sources/rest/paging.d.ts +53 -0
- package/dist/src/sources/rest/paging.d.ts.map +1 -0
- package/dist/src/sources/rest/paging.js +138 -0
- package/dist/src/sources/rest/paging.js.map +1 -0
- package/dist/src/sources/rest/params.d.ts +216 -0
- package/dist/src/sources/rest/params.d.ts.map +1 -0
- package/dist/src/sources/rest/params.js +7 -0
- package/dist/src/sources/rest/params.js.map +1 -0
- package/dist/src/sources/rest/records.d.ts +41 -0
- package/dist/src/sources/rest/records.d.ts.map +1 -0
- package/dist/src/sources/rest/records.js +240 -0
- package/dist/src/sources/rest/records.js.map +1 -0
- package/dist/src/sources/rest/samples/deps-dev.d.ts +10 -0
- package/dist/src/sources/rest/samples/deps-dev.d.ts.map +1 -0
- package/dist/src/sources/rest/samples/deps-dev.js +47 -0
- package/dist/src/sources/rest/samples/deps-dev.js.map +1 -0
- package/dist/src/sources/rest/samples/string.d.ts +9 -0
- package/dist/src/sources/rest/samples/string.d.ts.map +1 -0
- package/dist/src/sources/rest/samples/string.js +42 -0
- package/dist/src/sources/rest/samples/string.js.map +1 -0
- package/dist/src/sources/rest/selectors.d.ts +41 -0
- package/dist/src/sources/rest/selectors.d.ts.map +1 -0
- package/dist/src/sources/rest/selectors.js +81 -0
- package/dist/src/sources/rest/selectors.js.map +1 -0
- package/dist/src/sources/rest/source.d.ts +67 -0
- package/dist/src/sources/rest/source.d.ts.map +1 -0
- package/dist/src/sources/rest/source.js +650 -0
- package/dist/src/sources/rest/source.js.map +1 -0
- package/dist/src/sources/rest/templates.d.ts +38 -0
- package/dist/src/sources/rest/templates.d.ts.map +1 -0
- package/dist/src/sources/rest/templates.js +125 -0
- package/dist/src/sources/rest/templates.js.map +1 -0
- package/dist/src/sources/run.d.ts +93 -0
- package/dist/src/sources/run.d.ts.map +1 -0
- package/dist/src/sources/run.js +673 -0
- package/dist/src/sources/run.js.map +1 -0
- package/dist/src/sources/sha256.d.ts +12 -0
- package/dist/src/sources/sha256.d.ts.map +1 -0
- package/dist/src/sources/sha256.js +95 -0
- package/dist/src/sources/sha256.js.map +1 -0
- package/dist/src/sources/sigv4.d.ts +26 -0
- package/dist/src/sources/sigv4.d.ts.map +1 -0
- package/dist/src/sources/sigv4.js +184 -0
- package/dist/src/sources/sigv4.js.map +1 -0
- package/dist/src/sources/sparql/descriptor.d.ts +10 -0
- package/dist/src/sources/sparql/descriptor.d.ts.map +1 -0
- package/dist/src/sources/sparql/descriptor.js +64 -0
- package/dist/src/sources/sparql/descriptor.js.map +1 -0
- package/dist/src/sources/sparql/index.d.ts +28 -0
- package/dist/src/sources/sparql/index.d.ts.map +1 -0
- package/dist/src/sources/sparql/index.js +314 -0
- package/dist/src/sources/sparql/index.js.map +1 -0
- package/dist/src/sources/sparql/ntriples.d.ts +69 -0
- package/dist/src/sources/sparql/ntriples.d.ts.map +1 -0
- package/dist/src/sources/sparql/ntriples.js +180 -0
- package/dist/src/sources/sparql/ntriples.js.map +1 -0
- package/dist/src/sources/sparql/params.d.ts +27 -0
- package/dist/src/sources/sparql/params.d.ts.map +1 -0
- package/dist/src/sources/sparql/params.js +5 -0
- package/dist/src/sources/sparql/params.js.map +1 -0
- package/dist/src/sources/sparql/query.d.ts +72 -0
- package/dist/src/sources/sparql/query.d.ts.map +1 -0
- package/dist/src/sources/sparql/query.js +113 -0
- package/dist/src/sources/sparql/query.js.map +1 -0
- package/dist/src/sources/testing.d.ts +96 -0
- package/dist/src/sources/testing.d.ts.map +1 -0
- package/dist/src/sources/testing.js +138 -0
- package/dist/src/sources/testing.js.map +1 -0
- package/dist/src/sources/types.d.ts +696 -0
- package/dist/src/sources/types.d.ts.map +1 -0
- package/dist/src/sources/types.js +10 -0
- package/dist/src/sources/types.js.map +1 -0
- package/dist/src/styles/annotations.d.ts +61 -5
- package/dist/src/styles/annotations.d.ts.map +1 -1
- package/dist/src/styles/annotations.js +130 -22
- package/dist/src/styles/annotations.js.map +1 -1
- package/dist/src/styles/canon/bends.d.ts +46 -0
- package/dist/src/styles/canon/bends.d.ts.map +1 -1
- package/dist/src/styles/canon/bends.js +123 -0
- package/dist/src/styles/canon/bends.js.map +1 -1
- package/dist/src/styles/canon/color-tables.d.ts +6 -1
- package/dist/src/styles/canon/color-tables.d.ts.map +1 -1
- package/dist/src/styles/canon/color-tables.js +10 -4
- package/dist/src/styles/canon/color-tables.js.map +1 -1
- package/dist/src/styles/canon/color.d.ts +3 -1
- package/dist/src/styles/canon/color.d.ts.map +1 -1
- package/dist/src/styles/canon/color.js +103 -3
- package/dist/src/styles/canon/color.js.map +1 -1
- package/dist/src/styles/canon/enums.d.ts +2 -2
- package/dist/src/styles/canon/enums.d.ts.map +1 -1
- package/dist/src/styles/canon/enums.js +82 -7
- package/dist/src/styles/canon/enums.js.map +1 -1
- package/dist/src/styles/canon/graphviz.d.ts +12 -3
- package/dist/src/styles/canon/graphviz.d.ts.map +1 -1
- package/dist/src/styles/canon/graphviz.js +57 -9
- package/dist/src/styles/canon/graphviz.js.map +1 -1
- package/dist/src/styles/canon/number.d.ts +8 -0
- package/dist/src/styles/canon/number.d.ts.map +1 -1
- package/dist/src/styles/canon/number.js +18 -0
- package/dist/src/styles/canon/number.js.map +1 -1
- package/dist/src/styles/canon/text.d.ts +29 -2
- package/dist/src/styles/canon/text.d.ts.map +1 -1
- package/dist/src/styles/canon/text.js +156 -16
- package/dist/src/styles/canon/text.js.map +1 -1
- package/dist/src/styles/codes.d.ts +2 -0
- package/dist/src/styles/codes.d.ts.map +1 -1
- package/dist/src/styles/codes.js +2 -0
- package/dist/src/styles/codes.js.map +1 -1
- package/dist/src/styles/cyjs/cascade.d.ts.map +1 -1
- package/dist/src/styles/cyjs/cascade.js +1037 -35
- package/dist/src/styles/cyjs/cascade.js.map +1 -1
- package/dist/src/styles/cyjs/defaults-table.d.ts.map +1 -1
- package/dist/src/styles/cyjs/defaults-table.js +5 -0
- package/dist/src/styles/cyjs/defaults-table.js.map +1 -1
- package/dist/src/styles/cyjs/emit.d.ts.map +1 -1
- package/dist/src/styles/cyjs/emit.js +216 -12
- package/dist/src/styles/cyjs/emit.js.map +1 -1
- package/dist/src/styles/cyjs/face.d.ts +20 -0
- package/dist/src/styles/cyjs/face.d.ts.map +1 -0
- package/dist/src/styles/cyjs/face.js +332 -0
- package/dist/src/styles/cyjs/face.js.map +1 -0
- package/dist/src/styles/cyjs/mappers.d.ts +48 -2
- package/dist/src/styles/cyjs/mappers.d.ts.map +1 -1
- package/dist/src/styles/cyjs/mappers.js +463 -26
- package/dist/src/styles/cyjs/mappers.js.map +1 -1
- package/dist/src/styles/cyjs/routes.d.ts +53 -0
- package/dist/src/styles/cyjs/routes.d.ts.map +1 -0
- package/dist/src/styles/cyjs/routes.js +360 -0
- package/dist/src/styles/cyjs/routes.js.map +1 -0
- package/dist/src/styles/cytoscape/charts.d.ts +23 -0
- package/dist/src/styles/cytoscape/charts.d.ts.map +1 -0
- package/dist/src/styles/cytoscape/charts.js +560 -0
- package/dist/src/styles/cytoscape/charts.js.map +1 -0
- package/dist/src/styles/cytoscape/emit.d.ts.map +1 -1
- package/dist/src/styles/cytoscape/emit.js +204 -44
- package/dist/src/styles/cytoscape/emit.js.map +1 -1
- package/dist/src/styles/cytoscape/lexicon.d.ts +97 -3
- package/dist/src/styles/cytoscape/lexicon.d.ts.map +1 -1
- package/dist/src/styles/cytoscape/lexicon.js +413 -79
- package/dist/src/styles/cytoscape/lexicon.js.map +1 -1
- package/dist/src/styles/cytoscape/mappings.d.ts +30 -0
- package/dist/src/styles/cytoscape/mappings.d.ts.map +1 -1
- package/dist/src/styles/cytoscape/mappings.js +92 -0
- package/dist/src/styles/cytoscape/mappings.js.map +1 -1
- package/dist/src/styles/cytoscape/resolve.d.ts +46 -3
- package/dist/src/styles/cytoscape/resolve.d.ts.map +1 -1
- package/dist/src/styles/cytoscape/resolve.js +632 -22
- package/dist/src/styles/cytoscape/resolve.js.map +1 -1
- package/dist/src/styles/cytoscape/translate.d.ts.map +1 -1
- package/dist/src/styles/cytoscape/translate.js +10 -10
- package/dist/src/styles/cytoscape/translate.js.map +1 -1
- package/dist/src/styles/defaults.d.ts +50 -0
- package/dist/src/styles/defaults.d.ts.map +1 -1
- package/dist/src/styles/defaults.js +315 -37
- package/dist/src/styles/defaults.js.map +1 -1
- package/dist/src/styles/index.d.ts +4 -3
- package/dist/src/styles/index.d.ts.map +1 -1
- package/dist/src/styles/index.js +3 -2
- package/dist/src/styles/index.js.map +1 -1
- package/dist/src/styles/internal.d.ts +1 -0
- package/dist/src/styles/internal.d.ts.map +1 -1
- package/dist/src/styles/internal.js +1 -0
- package/dist/src/styles/internal.js.map +1 -1
- package/dist/src/styles/io/block.d.ts.map +1 -1
- package/dist/src/styles/io/block.js +9 -0
- package/dist/src/styles/io/block.js.map +1 -1
- package/dist/src/styles/io/generic.d.ts.map +1 -1
- package/dist/src/styles/io/generic.js +56 -16
- package/dist/src/styles/io/generic.js.map +1 -1
- package/dist/src/styles/io/round-trip.d.ts +56 -0
- package/dist/src/styles/io/round-trip.d.ts.map +1 -0
- package/dist/src/styles/io/round-trip.js +138 -0
- package/dist/src/styles/io/round-trip.js.map +1 -0
- package/dist/src/styles/io/writer.d.ts.map +1 -1
- package/dist/src/styles/io/writer.js +13 -4
- package/dist/src/styles/io/writer.js.map +1 -1
- package/dist/src/styles/notes.d.ts.map +1 -1
- package/dist/src/styles/notes.js +1 -0
- package/dist/src/styles/notes.js.map +1 -1
- package/dist/src/styles/plan/features.d.ts +1 -1
- package/dist/src/styles/plan/features.d.ts.map +1 -1
- package/dist/src/styles/plan/features.js +22 -2
- package/dist/src/styles/plan/features.js.map +1 -1
- package/dist/src/styles/plan/index.d.ts +1 -1
- package/dist/src/styles/plan/index.d.ts.map +1 -1
- package/dist/src/styles/plan/index.js +1 -1
- package/dist/src/styles/plan/index.js.map +1 -1
- package/dist/src/styles/plan/plan.d.ts.map +1 -1
- package/dist/src/styles/plan/plan.js +61 -4
- package/dist/src/styles/plan/plan.js.map +1 -1
- package/dist/src/styles/plan/resolve.d.ts +13 -1
- package/dist/src/styles/plan/resolve.d.ts.map +1 -1
- package/dist/src/styles/plan/resolve.js +53 -6
- package/dist/src/styles/plan/resolve.js.map +1 -1
- package/dist/src/styles/slots.d.ts +14 -0
- package/dist/src/styles/slots.d.ts.map +1 -0
- package/dist/src/styles/slots.js +20 -0
- package/dist/src/styles/slots.js.map +1 -0
- package/dist/src/styles/types.d.ts +638 -5
- package/dist/src/styles/types.d.ts.map +1 -1
- package/dist/src/styles/vocabulary.d.ts +3 -2
- package/dist/src/styles/vocabulary.d.ts.map +1 -1
- package/dist/src/styles/vocabulary.js +218 -1
- package/dist/src/styles/vocabulary.js.map +1 -1
- package/dist/src/types.d.ts +19 -5
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/styles.js +29 -238
- package/dist/styles.js.map +1 -1
- package/dist/xgmml.js +3 -3
- package/docs/samples/people.json +6 -0
- package/package.json +53 -8
- package/src/common/report.ts +27 -7
- package/src/formats/cx/importer.ts +6 -1
- package/src/formats/cx/styles.ts +144 -9
- package/src/formats/cx2/importer.ts +1 -0
- package/src/formats/cx2/styles.ts +3 -1
- package/src/formats/cys/importer.ts +1 -0
- package/src/formats/cys/styles.ts +27 -5
- package/src/formats/dot/drawing.ts +799 -0
- package/src/formats/dot/importer.ts +120 -35
- package/src/formats/dot/label-places.ts +228 -0
- package/src/formats/dot/record.ts +336 -0
- package/src/formats/dot/styles.ts +1657 -154
- package/src/formats/gexf/dialog-metrics.ts +61 -0
- package/src/formats/gexf/importer.ts +50 -5
- package/src/formats/gexf/preview.ts +217 -0
- package/src/formats/gexf/schema.ts +2 -1
- package/src/formats/gexf/styles.ts +1144 -142
- package/src/formats/gml/importer.ts +291 -76
- package/src/formats/gml/index.ts +1 -1
- package/src/formats/gml/positions.ts +29 -7
- package/src/formats/gml/styles.ts +854 -111
- package/src/formats/graphml/styles-plain.ts +8 -23
- package/src/formats/graphml/styles-yed.ts +821 -159
- package/src/formats/graphml/styles-yfiles3.ts +485 -63
- package/src/formats/graphml/yfiles.ts +19 -6
- package/src/formats/json/dialect.ts +41 -5
- package/src/formats/json/importer.ts +59 -7
- package/src/formats/json/index.ts +1 -0
- package/src/formats/json/positions.ts +22 -5
- package/src/formats/json/styles.ts +2041 -185
- package/src/formats/pajek/draw.ts +458 -0
- package/src/formats/pajek/exporter.ts +81 -49
- package/src/formats/pajek/importer.ts +278 -103
- package/src/formats/pajek/index.ts +1 -0
- package/src/formats/pajek/styles.ts +1382 -133
- package/src/formats/pajek/syntax.ts +27 -2
- package/src/formats/xgmml/emit.ts +73 -5
- package/src/formats/xgmml/styles.ts +331 -71
- package/src/index.ts +94 -0
- package/src/positions/convert.ts +12 -1
- package/src/positions/extract.ts +55 -1
- package/src/positions/index.ts +1 -0
- package/src/positions/types.ts +60 -0
- package/src/registry.ts +326 -1
- package/src/sources/builtins.ts +63 -0
- package/src/sources/codes.ts +235 -0
- package/src/sources/context.ts +894 -0
- package/src/sources/credentials.ts +409 -0
- package/src/sources/cypher/descriptor.ts +131 -0
- package/src/sources/cypher/flatten.ts +323 -0
- package/src/sources/cypher/index.ts +628 -0
- package/src/sources/cypher/params.ts +41 -0
- package/src/sources/cypher/profiles.ts +78 -0
- package/src/sources/cypher/query-builder.ts +327 -0
- package/src/sources/cypher/transports/bolt.ts +228 -0
- package/src/sources/cypher/transports/neptune-analytics.ts +41 -0
- package/src/sources/cypher/transports/neptune-https.ts +122 -0
- package/src/sources/cypher/transports/query-api.ts +100 -0
- package/src/sources/cypher/transports/transport.ts +139 -0
- package/src/sources/cypher/types-map.ts +418 -0
- package/src/sources/define.ts +195 -0
- package/src/sources/fail.ts +70 -0
- package/src/sources/ids.ts +80 -0
- package/src/sources/ndex/client.ts +102 -0
- package/src/sources/ndex/descriptor.ts +64 -0
- package/src/sources/ndex/expand.ts +100 -0
- package/src/sources/ndex/index.ts +235 -0
- package/src/sources/ndex/params.ts +17 -0
- package/src/sources/ndex/share-url.ts +84 -0
- package/src/sources/params.ts +32 -0
- package/src/sources/registry.ts +325 -0
- package/src/sources/rest/descriptor.ts +79 -0
- package/src/sources/rest/index.ts +22 -0
- package/src/sources/rest/mapping.ts +401 -0
- package/src/sources/rest/openalex.ts +288 -0
- package/src/sources/rest/paging.ts +180 -0
- package/src/sources/rest/params.ts +243 -0
- package/src/sources/rest/records.ts +289 -0
- package/src/sources/rest/samples/deps-dev.ts +49 -0
- package/src/sources/rest/samples/string.ts +44 -0
- package/src/sources/rest/selectors.ts +91 -0
- package/src/sources/rest/source.ts +776 -0
- package/src/sources/rest/templates.ts +151 -0
- package/src/sources/run.ts +793 -0
- package/src/sources/sha256.ts +99 -0
- package/src/sources/sigv4.ts +209 -0
- package/src/sources/sparql/descriptor.ts +67 -0
- package/src/sources/sparql/index.ts +356 -0
- package/src/sources/sparql/ntriples.ts +219 -0
- package/src/sources/sparql/params.ts +28 -0
- package/src/sources/sparql/query.ts +162 -0
- package/src/sources/testing.ts +210 -0
- package/src/sources/types.ts +776 -0
- package/src/styles/annotations.ts +201 -27
- package/src/styles/canon/bends.ts +137 -0
- package/src/styles/canon/color-tables.ts +10 -4
- package/src/styles/canon/color.ts +105 -3
- package/src/styles/canon/enums.ts +99 -8
- package/src/styles/canon/graphviz.ts +71 -10
- package/src/styles/canon/number.ts +19 -0
- package/src/styles/canon/text.ts +187 -16
- package/src/styles/codes.ts +2 -0
- package/src/styles/cyjs/cascade.ts +1193 -38
- package/src/styles/cyjs/defaults-table.ts +5 -0
- package/src/styles/cyjs/emit.ts +247 -16
- package/src/styles/cyjs/face.ts +372 -0
- package/src/styles/cyjs/mappers.ts +498 -28
- package/src/styles/cyjs/routes.ts +432 -0
- package/src/styles/cytoscape/charts.ts +684 -0
- package/src/styles/cytoscape/emit.ts +220 -44
- package/src/styles/cytoscape/lexicon.ts +459 -80
- package/src/styles/cytoscape/mappings.ts +108 -0
- package/src/styles/cytoscape/resolve.ts +763 -23
- package/src/styles/cytoscape/translate.ts +11 -11
- package/src/styles/defaults.ts +436 -38
- package/src/styles/index.ts +5 -0
- package/src/styles/internal.ts +1 -0
- package/src/styles/io/block.ts +10 -0
- package/src/styles/io/generic.ts +79 -23
- package/src/styles/io/round-trip.ts +202 -0
- package/src/styles/io/writer.ts +14 -4
- package/src/styles/notes.ts +1 -0
- package/src/styles/plan/features.ts +23 -2
- package/src/styles/plan/index.ts +1 -1
- package/src/styles/plan/plan.ts +69 -5
- package/src/styles/plan/resolve.ts +61 -6
- package/src/styles/slots.ts +25 -0
- package/src/styles/types.ts +658 -4
- package/src/styles/vocabulary.ts +226 -3
- package/src/types.ts +19 -5
- package/dist/chunks/block-DiGq58c3.js.map +0 -1
- package/dist/chunks/choose--jM0yYCo.js +0 -57
- package/dist/chunks/choose--jM0yYCo.js.map +0 -1
- package/dist/chunks/convert-BcQ8_jMo.js.map +0 -1
- package/dist/chunks/emit-CwU8cUmG.js.map +0 -1
- package/dist/chunks/export-BvqAXCKh.js.map +0 -1
- package/dist/chunks/exporter-CrDWIyiq.js.map +0 -1
- package/dist/chunks/format-BpQBx8MZ.js.map +0 -1
- package/dist/chunks/generic-Dq1ntt9q.js.map +0 -1
- package/dist/chunks/importer-BSvfrX_h.js.map +0 -1
- package/dist/chunks/importer-CMmeMWlC.js.map +0 -1
- package/dist/chunks/importer-COTK9Tsl.js.map +0 -1
- package/dist/chunks/importer-DiZRmOQG.js.map +0 -1
- package/dist/chunks/importer-e6LGpqHB.js.map +0 -1
- package/dist/chunks/importer-iFYPEKaJ.js.map +0 -1
- package/dist/chunks/importer-yh_aBCU6.js.map +0 -1
- package/dist/chunks/lexicon-CT69Kd87.js.map +0 -1
- package/dist/chunks/styles-BQnsga7p.js.map +0 -1
- package/dist/chunks/styles-D3fRphrO.js +0 -690
- package/dist/chunks/styles-D3fRphrO.js.map +0 -1
- package/dist/chunks/styles-yed-BF5x3_Y5.js +0 -842
- package/dist/chunks/styles-yed-BF5x3_Y5.js.map +0 -1
- package/dist/chunks/writer-DMKvthQE.js +0 -448
- package/dist/chunks/writer-DMKvthQE.js.map +0 -1
|
@@ -0,0 +1,1213 @@
|
|
|
1
|
+
import { t as toNeutral, a as toFilePositions } from "./convert-Ct2zelbQ.js";
|
|
2
|
+
import { n as nodeOffsetsToPoints, b as bendsToPoints, f as flattenCubic, a as flattenQuadSpline, c as canonNodeOffsets, d as canonBends } from "./bends-BGXjv_U4.js";
|
|
3
|
+
import { p as plainCell, c as canonNumber, a as canonEnum, n as noteAt, b as STYLE_ISSUE, d as canonColor, e as colorOpacity, M as MAX_STYLE_VALUE_LENGTH, f as canonText, g as canonSigned, h as StyleNotes } from "./block-iptrlMBb.js";
|
|
4
|
+
import { J as JAVA_MONO, a as JAVA_SERIF, b as JAVA_SANS, j as javaFamily } from "./lexicon-Clf4QIyl.js";
|
|
5
|
+
import { S as StyleApproximations } from "./approximations-Bzn3L-je.js";
|
|
6
|
+
import { e as elementValues, t as takeFromBlock } from "./round-trip-Zm3_ivgq.js";
|
|
7
|
+
function isTree(value) {
|
|
8
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9
|
+
}
|
|
10
|
+
function localOf(name) {
|
|
11
|
+
const colon = name.indexOf(":");
|
|
12
|
+
return colon < 0 ? name : name.slice(colon + 1);
|
|
13
|
+
}
|
|
14
|
+
function treeChildren(node, local) {
|
|
15
|
+
const out = [];
|
|
16
|
+
if (!isTree(node)) {
|
|
17
|
+
return out;
|
|
18
|
+
}
|
|
19
|
+
for (const key of Object.keys(node)) {
|
|
20
|
+
if (key.startsWith("@_") || key === "#text" || localOf(key) !== local) {
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
const value = node[key];
|
|
24
|
+
if (Array.isArray(value)) {
|
|
25
|
+
for (const item of value) {
|
|
26
|
+
out.push(item);
|
|
27
|
+
}
|
|
28
|
+
} else {
|
|
29
|
+
out.push(value);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return out;
|
|
33
|
+
}
|
|
34
|
+
function treeChild(node, local) {
|
|
35
|
+
if (!isTree(node)) {
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
for (const key of Object.keys(node)) {
|
|
39
|
+
if (!key.startsWith("@_") && key !== "#text" && localOf(key) === local) {
|
|
40
|
+
const value = node[key];
|
|
41
|
+
return Array.isArray(value) ? value[0] : value;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return void 0;
|
|
45
|
+
}
|
|
46
|
+
function treeAttr(node, name) {
|
|
47
|
+
if (!isTree(node) || !Object.hasOwn(node, `@_${name}`)) {
|
|
48
|
+
return void 0;
|
|
49
|
+
}
|
|
50
|
+
const value = node[`@_${name}`];
|
|
51
|
+
return typeof value === "string" ? value : void 0;
|
|
52
|
+
}
|
|
53
|
+
function treeText(node) {
|
|
54
|
+
if (typeof node === "string") {
|
|
55
|
+
return node;
|
|
56
|
+
}
|
|
57
|
+
if (isTree(node) && Object.hasOwn(node, "#text")) {
|
|
58
|
+
const text = node["#text"];
|
|
59
|
+
return typeof text === "string" ? text : null;
|
|
60
|
+
}
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
function treeColumns(table) {
|
|
64
|
+
const out = [];
|
|
65
|
+
for (const col of table) {
|
|
66
|
+
if (col.dtype === "json" && col.meta.origin?.namespace === "yfiles") {
|
|
67
|
+
out.push(col.meta.name);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return out;
|
|
71
|
+
}
|
|
72
|
+
function yfilesColumns(table) {
|
|
73
|
+
const out = [];
|
|
74
|
+
for (const col of table) {
|
|
75
|
+
if (col.meta.origin?.namespace === "yfiles") {
|
|
76
|
+
out.push(col.meta.name);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return out;
|
|
80
|
+
}
|
|
81
|
+
const NODE_REALIZERS = /* @__PURE__ */ new Set([
|
|
82
|
+
"ShapeNode",
|
|
83
|
+
"GenericNode",
|
|
84
|
+
"GroupNode",
|
|
85
|
+
"GenericGroupNode",
|
|
86
|
+
"SVGNode",
|
|
87
|
+
"ImageNode",
|
|
88
|
+
"TableNode",
|
|
89
|
+
"UMLClassNode",
|
|
90
|
+
"UMLNoteNode",
|
|
91
|
+
"ProxyAutoBoundsNode"
|
|
92
|
+
]);
|
|
93
|
+
const EDGE_REALIZERS = /* @__PURE__ */ new Set([
|
|
94
|
+
"PolyLineEdge",
|
|
95
|
+
"ArcEdge",
|
|
96
|
+
"BezierEdge",
|
|
97
|
+
"QuadCurveEdge",
|
|
98
|
+
"SplineEdge",
|
|
99
|
+
"GenericEdge"
|
|
100
|
+
]);
|
|
101
|
+
function realizerOf(tree, names) {
|
|
102
|
+
if (!isTree(tree)) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
for (const key of Object.keys(tree)) {
|
|
106
|
+
const type = localOf(key);
|
|
107
|
+
if (key.startsWith("@_") || !names.has(type)) {
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
const value = tree[key];
|
|
111
|
+
const r = Array.isArray(value) ? value[0] : value;
|
|
112
|
+
return type === "ProxyAutoBoundsNode" ? activeRealizer(r) : { type, r };
|
|
113
|
+
}
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
function activeRealizer(proxy) {
|
|
117
|
+
const realizers = treeChild(proxy, "Realizers");
|
|
118
|
+
const all = [];
|
|
119
|
+
if (isTree(realizers)) {
|
|
120
|
+
for (const k of Object.keys(realizers).filter((key) => !key.startsWith("@_") && key !== "#text")) {
|
|
121
|
+
for (const item of treeChildren(realizers, localOf(k))) {
|
|
122
|
+
all.push({ type: localOf(k), r: item });
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
const active = Number(treeAttr(realizers, "active") ?? "0");
|
|
127
|
+
return all[Number.isInteger(active) && active >= 0 && active < all.length ? active : 0] ?? null;
|
|
128
|
+
}
|
|
129
|
+
function arcPoints(cx, cy, rx, ry, from, to, steps = 12) {
|
|
130
|
+
return Array.from({ length: steps + 1 }, (_, i) => {
|
|
131
|
+
const t = from + (to - from) * i / steps;
|
|
132
|
+
return pointText(cx + rx * Math.cos(t), cy + ry * Math.sin(t));
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
function wavePoints(y0, amp, x0, x1) {
|
|
136
|
+
const steps = 16;
|
|
137
|
+
return Array.from({ length: steps + 1 }, (_, i) => {
|
|
138
|
+
const x = x0 + (x1 - x0) * i / steps;
|
|
139
|
+
return pointText(x, y0 + amp * Math.sin(Math.PI * x));
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function pointText(x, y) {
|
|
143
|
+
const r = (v) => String(Math.round(v * 1e3) / 1e3 + 0);
|
|
144
|
+
return `${r(x)},${r(y)}`;
|
|
145
|
+
}
|
|
146
|
+
const HALF_PI = Math.PI / 2;
|
|
147
|
+
const CLOUD = Array.from({ length: 72 }, (_, i) => {
|
|
148
|
+
const t = 2 * Math.PI * i / 72;
|
|
149
|
+
const r = 0.86 + 0.14 * Math.abs(Math.cos(4 * t));
|
|
150
|
+
return pointText(r * Math.cos(t), r * Math.sin(t));
|
|
151
|
+
}).join(" ");
|
|
152
|
+
const STADIUM = [
|
|
153
|
+
...arcPoints(0.5, 0, 0.5, 1, -HALF_PI, HALF_PI),
|
|
154
|
+
...arcPoints(-0.5, 0, 0.5, 1, HALF_PI, 3 * HALF_PI)
|
|
155
|
+
].join(" ");
|
|
156
|
+
const YED_CONFIGURATIONS = /* @__PURE__ */ new Map([
|
|
157
|
+
["flowchart.process", { shape: "rectangle" }],
|
|
158
|
+
["flowchart.predefinedprocess", { shape: "rectangle" }],
|
|
159
|
+
["flowchart.internalstorage", { shape: "rectangle" }],
|
|
160
|
+
["flowchart.decision", { shape: "diamond" }],
|
|
161
|
+
["flowchart.terminator", { shape: "round-rectangle" }],
|
|
162
|
+
["flowchart.start1", { shape: "ellipse" }],
|
|
163
|
+
["flowchart.start2", { shape: "ellipse" }],
|
|
164
|
+
["flowchart.onpagereference", { shape: "ellipse" }],
|
|
165
|
+
["flowchart.sequentialdata", { shape: "ellipse" }],
|
|
166
|
+
["flowchart.data", { shape: "parallelogram" }],
|
|
167
|
+
["flowchart.preparation", { shape: "hexagon" }],
|
|
168
|
+
["flowchart.database", { shape: "other:database" }],
|
|
169
|
+
["flowchart.looplimit", { shape: "polygon", points: "-1,-1 1,-1 1,0.5 0.8,1 -0.8,1 -1,0.5" }],
|
|
170
|
+
["flowchart.looplimitend", { shape: "polygon", points: "-1,1 -1,-0.5 -0.8,-1 0.8,-1 1,-0.5 1,1" }],
|
|
171
|
+
["flowchart.manualinput", { shape: "polygon", points: "-1,-1 1,-1 1,1 -1,0.4" }],
|
|
172
|
+
["flowchart.card", { shape: "polygon", points: "-1,-1 1,-1 1,1 -0.6,1 -1,0.6" }],
|
|
173
|
+
["flowchart.manualoperation", { shape: "polygon", points: "-1,1 -0.7,-1 0.7,-1 1,1" }],
|
|
174
|
+
["flowchart.offpagereference", { shape: "polygon", points: "-1,1 -1,0 0,-1 1,0 1,1" }],
|
|
175
|
+
["flowchart.usermessage", { shape: "polygon", points: "-1,1 -1,-1 0.6,-1 1,0 0.6,1" }],
|
|
176
|
+
["flowchart.networkmessage", { shape: "polygon", points: "-1,1 -0.6,0 -1,-1 1,-1 1,1" }],
|
|
177
|
+
["flowchart.document", { shape: "polygon", points: ["-1,1", ...wavePoints(-0.75, 0.2, -1, 1), "1,1"].join(" ") }],
|
|
178
|
+
[
|
|
179
|
+
"flowchart.papertype",
|
|
180
|
+
{
|
|
181
|
+
shape: "polygon",
|
|
182
|
+
points: [...wavePoints(-0.8, 0.2, -1, 1), ...wavePoints(0.8, 0.2, 1, -1)].join(" ")
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
[
|
|
186
|
+
"flowchart.delay",
|
|
187
|
+
{ shape: "polygon", points: ["-1,-1", ...arcPoints(0, 0, 1, 1, -HALF_PI, HALF_PI), "-1,1"].join(" ") }
|
|
188
|
+
],
|
|
189
|
+
[
|
|
190
|
+
"flowchart.display",
|
|
191
|
+
{
|
|
192
|
+
shape: "polygon",
|
|
193
|
+
points: ["-1,0", "-0.6,-1", ...arcPoints(0.6, 0, 0.4, 1, -HALF_PI, HALF_PI), "-0.6,1"].join(" ")
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
[
|
|
197
|
+
"flowchart.storeddata",
|
|
198
|
+
{
|
|
199
|
+
shape: "polygon",
|
|
200
|
+
points: [
|
|
201
|
+
...arcPoints(1, 0, -0.2, 1, -HALF_PI, HALF_PI),
|
|
202
|
+
...arcPoints(-0.8, 0, 0.2, 1, HALF_PI, 3 * HALF_PI)
|
|
203
|
+
].join(" ")
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
[
|
|
207
|
+
"flowchart.directdata",
|
|
208
|
+
{
|
|
209
|
+
shape: "polygon",
|
|
210
|
+
points: [
|
|
211
|
+
...arcPoints(0.8, 0, 0.2, 1, -HALF_PI, HALF_PI),
|
|
212
|
+
...arcPoints(-0.8, 0, 0.2, 1, HALF_PI, 3 * HALF_PI)
|
|
213
|
+
].join(" ")
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
["flowchart.cloud", { shape: "polygon", points: CLOUD }],
|
|
217
|
+
["entityrelationship.relationship", { shape: "diamond" }],
|
|
218
|
+
["entityrelationship.attribute", { shape: "ellipse" }],
|
|
219
|
+
["bpmn.conversation", { shape: "hexagon" }],
|
|
220
|
+
["sbgn.unspecifiedentity", { shape: "ellipse" }],
|
|
221
|
+
["sbgn.simplechemical", { shape: "ellipse" }],
|
|
222
|
+
["sbgn.emptyset", { shape: "ellipse" }],
|
|
223
|
+
["sbgn.operator", { shape: "ellipse" }],
|
|
224
|
+
["sbgn.macromolecule", { shape: "round-rectangle" }],
|
|
225
|
+
["sbgn.phenotype", { shape: "hexagon" }],
|
|
226
|
+
["sbgn.process", { shape: "rectangle" }],
|
|
227
|
+
["sbgn.submap", { shape: "rectangle" }],
|
|
228
|
+
["sbgn.unitofinformation", { shape: "rectangle" }],
|
|
229
|
+
["sbgn.statevariable", { shape: "polygon", points: STADIUM }],
|
|
230
|
+
["sbgn.tag", { shape: "polygon", points: "-1,1 -1,-1 0.6,-1 1,0 0.6,1" }]
|
|
231
|
+
]);
|
|
232
|
+
function configurationOutline(configuration) {
|
|
233
|
+
const key = configuration.slice(0, MAX_STYLE_VALUE_LENGTH).toLowerCase().replace(/^com\.yworks\./, "").replace(/\.withshadow$/, "");
|
|
234
|
+
return YED_CONFIGURATIONS.get(key) ?? null;
|
|
235
|
+
}
|
|
236
|
+
const GENERIC_SHAPES = [
|
|
237
|
+
// yEd's BPMN and entity-relationship palettes: a task is a rounded box, an event a circle, a
|
|
238
|
+
// gateway a diamond, an attribute an ellipse
|
|
239
|
+
["bpmn.activity", "round-rectangle"],
|
|
240
|
+
["bpmn.event", "ellipse"],
|
|
241
|
+
["bpmn.gateway", "diamond"],
|
|
242
|
+
["entityrelationship.attribute", "ellipse"],
|
|
243
|
+
["ellipse", "ellipse"],
|
|
244
|
+
["circle", "ellipse"],
|
|
245
|
+
["oval", "ellipse"],
|
|
246
|
+
["diamond", "diamond"],
|
|
247
|
+
["decision", "diamond"],
|
|
248
|
+
["hexagon", "hexagon"],
|
|
249
|
+
["octagon", "octagon"],
|
|
250
|
+
["triangle", "triangle"],
|
|
251
|
+
["rect", "rectangle"],
|
|
252
|
+
["process", "rectangle"],
|
|
253
|
+
["box", "rectangle"]
|
|
254
|
+
];
|
|
255
|
+
const YED_POSITIONS = /* @__PURE__ */ new Map([
|
|
256
|
+
["c", "center"],
|
|
257
|
+
["t", "top"],
|
|
258
|
+
["b", "bottom"],
|
|
259
|
+
["l", "left"],
|
|
260
|
+
["r", "right"],
|
|
261
|
+
["tl", "top-left"],
|
|
262
|
+
["tr", "top-right"],
|
|
263
|
+
["bl", "bottom-left"],
|
|
264
|
+
["br", "bottom-right"],
|
|
265
|
+
["n", "top"],
|
|
266
|
+
["s", "bottom"],
|
|
267
|
+
["e", "right"],
|
|
268
|
+
["w", "left"],
|
|
269
|
+
["nw", "top-left"],
|
|
270
|
+
["ne", "top-right"],
|
|
271
|
+
["sw", "bottom-left"],
|
|
272
|
+
["se", "bottom-right"]
|
|
273
|
+
]);
|
|
274
|
+
const FONT_STYLES = /* @__PURE__ */ new Map([
|
|
275
|
+
["plain", ["normal", false]],
|
|
276
|
+
["bold", ["bold", false]],
|
|
277
|
+
["italic", ["normal", true]],
|
|
278
|
+
["bolditalic", ["bold", true]]
|
|
279
|
+
]);
|
|
280
|
+
function readColor(raw, property, opacity, put, at) {
|
|
281
|
+
const c = canonColor(raw, "yed", at(property));
|
|
282
|
+
if (c === null) {
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
put(property, c.color);
|
|
286
|
+
const alpha = colorOpacity(c, null, at(property), opacity !== null);
|
|
287
|
+
if (opacity !== null) {
|
|
288
|
+
put(opacity, alpha);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
function readLabels(labels, node, put, at, geometry) {
|
|
292
|
+
let label = void 0;
|
|
293
|
+
let text = "";
|
|
294
|
+
let extra = 0;
|
|
295
|
+
for (const l of labels) {
|
|
296
|
+
const t = treeText(l)?.trim() ?? "";
|
|
297
|
+
if (t.length === 0 || treeAttr(l, "visible") === "false" || treeAttr(l, "hasText") === "false") {
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
if (label === void 0) {
|
|
301
|
+
label = l;
|
|
302
|
+
text = t;
|
|
303
|
+
} else {
|
|
304
|
+
extra++;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
if (label === void 0) {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
if (extra > 0) {
|
|
311
|
+
noteAt(at("label"), STYLE_ISSUE.EXTRA_LABELS, `${String(extra + 1)} labels`);
|
|
312
|
+
}
|
|
313
|
+
put("label", canonText(text, at("label")));
|
|
314
|
+
readLabelLook(label, node, put, at, geometry);
|
|
315
|
+
}
|
|
316
|
+
function readLabelLook(label, node, put, at, geometry) {
|
|
317
|
+
readColor(treeAttr(label, "textColor"), "labelColor", null, put, at);
|
|
318
|
+
if (treeAttr(label, "hasBackgroundColor") !== "false") {
|
|
319
|
+
readColor(treeAttr(label, "backgroundColor"), "labelBackground", null, put, at);
|
|
320
|
+
}
|
|
321
|
+
if (treeAttr(label, "hasLineColor") !== "false" && treeAttr(label, "lineColor") !== void 0) {
|
|
322
|
+
readColor(treeAttr(label, "lineColor"), "labelBorderColor", null, put, at);
|
|
323
|
+
put("labelBorderWidth", 1);
|
|
324
|
+
}
|
|
325
|
+
put("labelSize", canonNumber(treeAttr(label, "fontSize"), at("labelSize")));
|
|
326
|
+
const font = canonText(treeAttr(label, "fontFamily"), at("labelFont"));
|
|
327
|
+
put("labelFont", font === null ? null : javaFamily(font));
|
|
328
|
+
const style = treeAttr(label, "fontStyle");
|
|
329
|
+
if (style !== void 0) {
|
|
330
|
+
const known = FONT_STYLES.get(style.trim().toLowerCase());
|
|
331
|
+
if (known === void 0) {
|
|
332
|
+
noteAt(at("labelWeight"), STYLE_ISSUE.UNKNOWN_VALUE, style.slice(0, MAX_STYLE_VALUE_LENGTH));
|
|
333
|
+
} else {
|
|
334
|
+
put("labelWeight", known[0]);
|
|
335
|
+
put("labelItalic", known[1]);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
readRotation(label, put, at);
|
|
339
|
+
if (node) {
|
|
340
|
+
const position = nodeLabelPosition(label, geometry, at);
|
|
341
|
+
put("labelPosition", position);
|
|
342
|
+
readInsideInset(label, geometry, position, put);
|
|
343
|
+
readOutsideOffset(label, geometry, position, put);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
function readRotation(label, put, at) {
|
|
347
|
+
const angle = canonSigned(treeAttr(label, "rotationAngle"), at("labelRotation"));
|
|
348
|
+
if (angle === null) {
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
const turn = (angle % 360 + 360) % 360;
|
|
352
|
+
put("labelRotation", turn === 0 ? null : turn);
|
|
353
|
+
}
|
|
354
|
+
function readOutsideOffset(label, geometry, position, put) {
|
|
355
|
+
const model = treeAttr(label, "modelName");
|
|
356
|
+
const free = position === "center" && model !== void 0 && model !== "internal";
|
|
357
|
+
if (position === null || position.startsWith("inside-") || position === "center" && !free) {
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
if (Number(treeAttr(label, "rotationAngle") ?? 0) % 360 !== 0) {
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
const num = (o, k) => Number(treeAttr(o, k) ?? Number.NaN);
|
|
364
|
+
const [x, y, w, h] = ["x", "y", "width", "height"].map((k) => num(label, k));
|
|
365
|
+
const [nw, nh] = [num(geometry, "width"), num(geometry, "height")];
|
|
366
|
+
if (![x, y, w, h, nw, nh].every(Number.isFinite)) {
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
const signed = (value) => {
|
|
370
|
+
const r = Math.round(value * 1e3) / 1e3;
|
|
371
|
+
return r === 0 ? null : r;
|
|
372
|
+
};
|
|
373
|
+
const offset = (lo, size, extent, before, after) => {
|
|
374
|
+
if (before) {
|
|
375
|
+
return signed(lo + size);
|
|
376
|
+
}
|
|
377
|
+
return after ? signed(lo - extent) : signed(lo + size / 2 - extent / 2);
|
|
378
|
+
};
|
|
379
|
+
put("labelOffsetX", offset(x, w, nw, position.includes("left"), position.includes("right")));
|
|
380
|
+
put("labelOffsetY", offset(y, h, nh, position.includes("top"), position.includes("bottom")));
|
|
381
|
+
}
|
|
382
|
+
function readInsideInset(label, geometry, position, put) {
|
|
383
|
+
const sized = treeAttr(label, "autoSizePolicy")?.startsWith("node_") === true;
|
|
384
|
+
if (position?.startsWith("inside-") !== true || sized) {
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
const num = (o, k) => Number(treeAttr(o, k) ?? Number.NaN);
|
|
388
|
+
const [x, y, w, h] = ["x", "y", "width", "height"].map((k) => num(label, k));
|
|
389
|
+
const [nw, nh] = [num(geometry, "width"), num(geometry, "height")];
|
|
390
|
+
const inset = (value) => Number.isFinite(value) && value > 0 ? Math.round(value * 1e3) / 1e3 : null;
|
|
391
|
+
if (position.includes("left")) {
|
|
392
|
+
put("labelOffsetX", inset(x));
|
|
393
|
+
} else if (position.includes("right")) {
|
|
394
|
+
const gap = inset(nw - x - w);
|
|
395
|
+
put("labelOffsetX", gap === null ? null : -gap);
|
|
396
|
+
}
|
|
397
|
+
if (position.includes("top")) {
|
|
398
|
+
put("labelOffsetY", inset(y));
|
|
399
|
+
} else if (position.includes("bottom")) {
|
|
400
|
+
const gap = inset(nh - y - h);
|
|
401
|
+
put("labelOffsetY", gap === null ? null : -gap);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
function nodeLabelPosition(label, geometry, at) {
|
|
405
|
+
const outside = boxPosition(label, geometry);
|
|
406
|
+
if (outside !== null && outside !== "center") {
|
|
407
|
+
return outside;
|
|
408
|
+
}
|
|
409
|
+
const position = treeAttr(label, "modelPosition");
|
|
410
|
+
const model = treeAttr(label, "modelName");
|
|
411
|
+
if (model === "internal") {
|
|
412
|
+
return insidePosition(label, position);
|
|
413
|
+
}
|
|
414
|
+
if (model === "custom") {
|
|
415
|
+
return customPosition(label, outside, at);
|
|
416
|
+
}
|
|
417
|
+
if (outside !== null || position === void 0) {
|
|
418
|
+
return outside;
|
|
419
|
+
}
|
|
420
|
+
const known = YED_POSITIONS.get(position.trim().toLowerCase());
|
|
421
|
+
if (known === void 0) {
|
|
422
|
+
noteAt(at("labelPosition"), STYLE_ISSUE.UNKNOWN_VALUE, position.slice(0, MAX_STYLE_VALUE_LENGTH));
|
|
423
|
+
}
|
|
424
|
+
return known ?? null;
|
|
425
|
+
}
|
|
426
|
+
function customPosition(label, outside, at) {
|
|
427
|
+
const smart = treeChild(treeChild(label, "ModelParameter"), "SmartNodeLabelModelParameter");
|
|
428
|
+
if (smart === void 0) {
|
|
429
|
+
noteAt(at("labelPosition"), STYLE_ISSUE.UNKNOWN_VALUE, "custom");
|
|
430
|
+
return outside;
|
|
431
|
+
}
|
|
432
|
+
return outside ?? smartPosition(smart);
|
|
433
|
+
}
|
|
434
|
+
function smartPosition(smart) {
|
|
435
|
+
const ratio = (name) => {
|
|
436
|
+
const n = Number(treeAttr(smart, name));
|
|
437
|
+
return Number.isFinite(n) ? n : 0;
|
|
438
|
+
};
|
|
439
|
+
const h = sideOf(ratio("nodeRatioX"), "left", "right");
|
|
440
|
+
const v = sideOf(ratio("nodeRatioY"), "top", "bottom");
|
|
441
|
+
if (v === "top" && h === "" && ratio("labelRatioY") <= 0) {
|
|
442
|
+
return "inside-top";
|
|
443
|
+
}
|
|
444
|
+
if (v === "" || h === "") {
|
|
445
|
+
return v + h || "center";
|
|
446
|
+
}
|
|
447
|
+
return `${v}-${h}`;
|
|
448
|
+
}
|
|
449
|
+
function sideOf(ratio, low, high) {
|
|
450
|
+
if (ratio < 0) {
|
|
451
|
+
return low;
|
|
452
|
+
}
|
|
453
|
+
return ratio > 0 ? high : "";
|
|
454
|
+
}
|
|
455
|
+
function boxPosition(label, geometry) {
|
|
456
|
+
const num = (o, k) => Number(treeAttr(o, k) ?? Number.NaN);
|
|
457
|
+
const [x, y, w, h] = ["x", "y", "width", "height"].map((k) => num(label, k));
|
|
458
|
+
const [nw, nh] = [num(geometry, "width"), num(geometry, "height")];
|
|
459
|
+
if (![x, y, w, h, nw, nh].every(Number.isFinite)) {
|
|
460
|
+
return null;
|
|
461
|
+
}
|
|
462
|
+
const side = (lo, size, extent) => {
|
|
463
|
+
if (lo + size <= 0) {
|
|
464
|
+
return -1;
|
|
465
|
+
}
|
|
466
|
+
return lo >= extent ? 1 : 0;
|
|
467
|
+
};
|
|
468
|
+
return BOX_POSITIONS[side(y, h, nh) + 1][side(x, w, nw) + 1];
|
|
469
|
+
}
|
|
470
|
+
function insidePosition(label, position) {
|
|
471
|
+
const inside = INTERNAL_POSITIONS.get((position ?? "c").trim().toLowerCase()) ?? "center";
|
|
472
|
+
const align = treeAttr(label, "alignment");
|
|
473
|
+
const across = treeAttr(label, "autoSizePolicy") === "node_width" && (align === "left" || align === "right");
|
|
474
|
+
return across && (inside === "inside-top" || inside === "inside-bottom") ? `${inside}-${align}` : inside;
|
|
475
|
+
}
|
|
476
|
+
const INTERNAL_POSITIONS = /* @__PURE__ */ new Map([
|
|
477
|
+
["c", "center"],
|
|
478
|
+
["t", "inside-top"],
|
|
479
|
+
["b", "inside-bottom"],
|
|
480
|
+
["l", "inside-left"],
|
|
481
|
+
["r", "inside-right"],
|
|
482
|
+
["tl", "inside-top-left"],
|
|
483
|
+
["tr", "inside-top-right"],
|
|
484
|
+
["bl", "inside-bottom-left"],
|
|
485
|
+
["br", "inside-bottom-right"]
|
|
486
|
+
]);
|
|
487
|
+
const BOX_POSITIONS = [
|
|
488
|
+
["top-left", "top", "top-right"],
|
|
489
|
+
["left", "center", "right"],
|
|
490
|
+
["bottom-left", "bottom", "bottom-right"]
|
|
491
|
+
];
|
|
492
|
+
function realizerShape(real, at) {
|
|
493
|
+
const shape = treeChild(real.r, "Shape");
|
|
494
|
+
if (shape !== void 0) {
|
|
495
|
+
return canonEnum("shape", treeAttr(shape, "type"), "yed", at("shape"));
|
|
496
|
+
}
|
|
497
|
+
if (real.type === "ShapeNode" || real.type === "GroupNode" || real.type === "GenericGroupNode") {
|
|
498
|
+
return null;
|
|
499
|
+
}
|
|
500
|
+
if (real.type === "TableNode") {
|
|
501
|
+
return canonEnum("shape", "rectangle", "yed", at("shape"));
|
|
502
|
+
}
|
|
503
|
+
if (real.type === "GenericNode") {
|
|
504
|
+
const conf = treeAttr(real.r, "configuration") ?? "";
|
|
505
|
+
const known = configurationOutline(conf);
|
|
506
|
+
if (known !== null) {
|
|
507
|
+
return known.shape;
|
|
508
|
+
}
|
|
509
|
+
const lower = conf.slice(0, MAX_STYLE_VALUE_LENGTH).toLowerCase();
|
|
510
|
+
for (const [word, value] of GENERIC_SHAPES) {
|
|
511
|
+
if (lower.includes(word)) {
|
|
512
|
+
return value;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
if (lower.length === 0) {
|
|
516
|
+
return null;
|
|
517
|
+
}
|
|
518
|
+
noteAt(at("shape"), STYLE_ISSUE.UNKNOWN_VALUE, lower);
|
|
519
|
+
return `other:${lower}`;
|
|
520
|
+
}
|
|
521
|
+
noteAt(at("shape"), STYLE_ISSUE.UNKNOWN_VALUE, real.type);
|
|
522
|
+
return `other:${real.type}`;
|
|
523
|
+
}
|
|
524
|
+
const YED_GRADIENT_ANGLE = 45;
|
|
525
|
+
function readFill(real, put, at) {
|
|
526
|
+
const fill = treeChild(real.r, "Fill");
|
|
527
|
+
if (fill === void 0) {
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
if (treeAttr(fill, "hasColor") === "false" || treeAttr(fill, "transparent") === "true") {
|
|
531
|
+
noteAt(at("fill"), STYLE_ISSUE.NO_FILL, "transparent");
|
|
532
|
+
put("fillOpacity", 0);
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
readColor(treeAttr(fill, "color"), "fill", "fillOpacity", put, at);
|
|
536
|
+
const second = canonColor(treeAttr(fill, "color2"), "yed", at("fillGradient"));
|
|
537
|
+
if (second !== null) {
|
|
538
|
+
put("fillGradient", second.color);
|
|
539
|
+
put("fillGradientAngle", YED_GRADIENT_ANGLE);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
function tableColor(real, name, at) {
|
|
543
|
+
const props = treeChildren(treeChild(real.r, "StyleProperties"), "Property");
|
|
544
|
+
const prop = props.find((p) => treeAttr(p, "name") === name);
|
|
545
|
+
return prop === void 0 ? null : canonColor(treeAttr(prop, "value"), "yed", at("stripeColors"))?.color ?? null;
|
|
546
|
+
}
|
|
547
|
+
function readTable(real, put, at) {
|
|
548
|
+
const table = treeChild(real.r, "Table");
|
|
549
|
+
const rows = treeChildren(treeChild(table, "Rows"), "Row");
|
|
550
|
+
const columns = treeChildren(treeChild(table, "Columns"), "Column");
|
|
551
|
+
const across = columns.length > 1 && rows.length <= 1;
|
|
552
|
+
const lanes = (across ? columns : rows).map((l) => Number(treeAttr(l, across ? "width" : "height")));
|
|
553
|
+
const insets = treeChild(table, "Insets");
|
|
554
|
+
const inset = (side) => Math.max(0, Number(treeAttr(insets, side) ?? 0) || 0);
|
|
555
|
+
const [head, tail] = across ? [inset("left"), inset("right")] : [inset("top"), inset("bottom")];
|
|
556
|
+
const sizes = [head, ...lanes, tail];
|
|
557
|
+
const total = sizes.reduce((a, b) => a + b, 0);
|
|
558
|
+
if (lanes.length === 0 || !sizes.every(Number.isFinite) || total <= 0) {
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
561
|
+
const fill = canonColor(treeAttr(treeChild(real.r, "Fill"), "color"), "yed", at("stripeColors"))?.color ?? "#ffffff";
|
|
562
|
+
const main = tableColor(real, "yed.table.lane.color.main", at) ?? fill;
|
|
563
|
+
const alternating = tableColor(real, "yed.table.lane.color.alternating", at) ?? main;
|
|
564
|
+
const header = tableColor(real, "yed.table.header.color.main", at) ?? fill;
|
|
565
|
+
const bands = [[head, header], ...lanes.map((size, i) => [size, i % 2 === 0 ? main : alternating]), [tail, fill]].filter(([size]) => size > 0);
|
|
566
|
+
put("stripeColors", bands.map(([, color]) => color).join(" "));
|
|
567
|
+
put("stripeSizes", bands.map(([size]) => String(Number((size / total).toFixed(6)))).join(" "));
|
|
568
|
+
if (across) {
|
|
569
|
+
put("stripeDirection", "right");
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
function yedResources(snapshot) {
|
|
573
|
+
const out = /* @__PURE__ */ new Map();
|
|
574
|
+
for (const col of snapshot.graph) {
|
|
575
|
+
if (col.dtype !== "json" || col.meta.origin?.namespace !== "yfiles") {
|
|
576
|
+
continue;
|
|
577
|
+
}
|
|
578
|
+
addYedResources(plainCell(snapshot.graph.value(col.meta.name, 0)), out);
|
|
579
|
+
}
|
|
580
|
+
return out;
|
|
581
|
+
}
|
|
582
|
+
function addYedResources(root, out) {
|
|
583
|
+
for (const resources of treeChildren(root, "Resources")) {
|
|
584
|
+
for (const r of treeChildren(resources, "Resource")) {
|
|
585
|
+
const id = treeAttr(r, "id");
|
|
586
|
+
const url = id === void 0 || out.has(id) ? null : yedResourceUrl(r);
|
|
587
|
+
if (id !== void 0 && url !== null) {
|
|
588
|
+
out.set(id, url);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
function yedResourceUrl(r) {
|
|
594
|
+
const text = treeText(r)?.trim() ?? "";
|
|
595
|
+
if (text === "") {
|
|
596
|
+
return null;
|
|
597
|
+
}
|
|
598
|
+
const type = treeAttr(r, "type") ?? "";
|
|
599
|
+
if (type.endsWith("BufferedImage")) {
|
|
600
|
+
return `data:image/png;base64,${text.replaceAll(/\s+/g, "")}`;
|
|
601
|
+
}
|
|
602
|
+
if (text.includes("<svg")) {
|
|
603
|
+
return `data:image/svg+xml;utf8,${encodeURIComponent(text)}`;
|
|
604
|
+
}
|
|
605
|
+
return null;
|
|
606
|
+
}
|
|
607
|
+
function readPicture(real, resources, put) {
|
|
608
|
+
const ref = real.type === "ImageNode" ? treeAttr(treeChild(real.r, "Image"), "refid") : treeAttr(treeChild(treeChild(real.r, "SVGModel"), "SVGContent"), "refid");
|
|
609
|
+
const src = ref === void 0 ? void 0 : resources.get(ref);
|
|
610
|
+
if (src === void 0) {
|
|
611
|
+
return;
|
|
612
|
+
}
|
|
613
|
+
put("image", src);
|
|
614
|
+
put("imageFit", "fill");
|
|
615
|
+
put("imageClip", "none");
|
|
616
|
+
}
|
|
617
|
+
function readNode(real, put, at, resources) {
|
|
618
|
+
const { r } = real;
|
|
619
|
+
readFill(real, put, at);
|
|
620
|
+
const border = treeChild(r, "BorderStyle");
|
|
621
|
+
if (border !== void 0) {
|
|
622
|
+
if (treeAttr(border, "hasColor") === "false") {
|
|
623
|
+
put("borderWidth", 0);
|
|
624
|
+
} else {
|
|
625
|
+
readColor(treeAttr(border, "color"), "borderColor", null, put, at);
|
|
626
|
+
put("borderWidth", canonNumber(treeAttr(border, "width"), at("borderWidth")));
|
|
627
|
+
}
|
|
628
|
+
put("borderStyle", canonEnum("borderStyle", treeAttr(border, "type"), "yed", at("borderStyle")));
|
|
629
|
+
}
|
|
630
|
+
const geometry = treeChild(r, "Geometry");
|
|
631
|
+
put("width", canonNumber(treeAttr(geometry, "width"), at("width")));
|
|
632
|
+
put("height", canonNumber(treeAttr(geometry, "height"), at("height")));
|
|
633
|
+
put("shape", realizerShape(real, at));
|
|
634
|
+
const points = real.type === "GenericNode" ? configurationOutline(treeAttr(r, "configuration") ?? "")?.points : void 0;
|
|
635
|
+
if (points !== void 0) {
|
|
636
|
+
put("shapePoints", points);
|
|
637
|
+
}
|
|
638
|
+
if (real.type === "TableNode") {
|
|
639
|
+
readTable(real, put, at);
|
|
640
|
+
}
|
|
641
|
+
if (resources !== void 0 && (real.type === "ImageNode" || real.type === "SVGNode")) {
|
|
642
|
+
readPicture(real, resources, put);
|
|
643
|
+
}
|
|
644
|
+
readLabels(treeChildren(r, "NodeLabel"), true, put, at, geometry);
|
|
645
|
+
}
|
|
646
|
+
function readEdge(real, put, at) {
|
|
647
|
+
const { r } = real;
|
|
648
|
+
const line = treeChild(r, "LineStyle");
|
|
649
|
+
if (line !== void 0) {
|
|
650
|
+
readColor(treeAttr(line, "color"), "color", "opacity", put, at);
|
|
651
|
+
put("width", canonNumber(treeAttr(line, "width"), at("width")));
|
|
652
|
+
put("lineStyle", canonEnum("lineStyle", treeAttr(line, "type"), "yed", at("lineStyle")));
|
|
653
|
+
}
|
|
654
|
+
const arrows = treeChild(r, "Arrows");
|
|
655
|
+
if (arrows !== void 0) {
|
|
656
|
+
put("sourceArrow", canonEnum("arrow", treeAttr(arrows, "source"), "yed", at("sourceArrow")));
|
|
657
|
+
put("targetArrow", canonEnum("arrow", treeAttr(arrows, "target"), "yed", at("targetArrow")));
|
|
658
|
+
}
|
|
659
|
+
put("curved", edgeCurved(real));
|
|
660
|
+
if (real.type === "ArcEdge") {
|
|
661
|
+
put("bendCurve", "arc");
|
|
662
|
+
}
|
|
663
|
+
readLabels(treeChildren(r, "EdgeLabel"), false, put, at);
|
|
664
|
+
}
|
|
665
|
+
function edgeCurved(real) {
|
|
666
|
+
if (real.type === "ArcEdge") {
|
|
667
|
+
return true;
|
|
668
|
+
}
|
|
669
|
+
const points = treeChildren(treeChild(real.r, "Path"), "Point").length;
|
|
670
|
+
if (real.type === "QuadCurveEdge") {
|
|
671
|
+
return false;
|
|
672
|
+
}
|
|
673
|
+
if (real.type === "BezierEdge") {
|
|
674
|
+
return points > 0 && (points + 1) % 3 !== 0;
|
|
675
|
+
}
|
|
676
|
+
const bent = points > 0;
|
|
677
|
+
if (real.type !== "PolyLineEdge" && real.type !== "GenericEdge") {
|
|
678
|
+
return bent;
|
|
679
|
+
}
|
|
680
|
+
const smoothed = treeAttr(treeChild(real.r, "BendStyle"), "smoothed");
|
|
681
|
+
return smoothed === void 0 ? null : smoothed === "true" && bent;
|
|
682
|
+
}
|
|
683
|
+
function readEdgeRoute(real, nodes, source, target, put) {
|
|
684
|
+
const path = treeChild(real.r, "Path");
|
|
685
|
+
const at = (k) => [nodes[4 * k], nodes[4 * k + 1]];
|
|
686
|
+
const size = (k) => [nodes[4 * k + 2], nodes[4 * k + 3]];
|
|
687
|
+
const offset = (key) => Number(treeAttr(path, key) ?? 0) || 0;
|
|
688
|
+
const ends = [
|
|
689
|
+
[at(source)[0] + offset("sx"), at(source)[1] + offset("sy")],
|
|
690
|
+
[at(target)[0] + offset("tx"), at(target)[1] + offset("ty")]
|
|
691
|
+
];
|
|
692
|
+
const port = (k, end) => end[0] === at(k)[0] && end[1] === at(k)[1] ? null : canonNodeOffsets(at(k), size(k), [end], true);
|
|
693
|
+
put("sourcePort", port(source, ends[0]));
|
|
694
|
+
put("targetPort", port(target, ends[1]));
|
|
695
|
+
let points = treeChildren(path, "Point").map((p) => [
|
|
696
|
+
Number(treeAttr(p, "x")),
|
|
697
|
+
Number(treeAttr(p, "y"))
|
|
698
|
+
]);
|
|
699
|
+
if (points.length > 0 && (real.type === "BezierEdge" || real.type === "QuadCurveEdge")) {
|
|
700
|
+
const controls = [ends[0], ...points, ends[1]];
|
|
701
|
+
const curve = real.type === "BezierEdge" ? flattenCubic(controls) : flattenQuadSpline(controls, Number(treeAttr(real.r, "straightness") ?? YED_STRAIGHTNESS));
|
|
702
|
+
points = (curve ?? controls).slice(1, -1);
|
|
703
|
+
}
|
|
704
|
+
put(
|
|
705
|
+
"bends",
|
|
706
|
+
source === target ? canonNodeOffsets(at(source), size(source), points, true) : canonBends(at(source), at(target), points, true)
|
|
707
|
+
);
|
|
708
|
+
}
|
|
709
|
+
const YED_STRAIGHTNESS = 0.1;
|
|
710
|
+
function valueColumns(n) {
|
|
711
|
+
const values = /* @__PURE__ */ Object.create(null);
|
|
712
|
+
return {
|
|
713
|
+
values,
|
|
714
|
+
put(i, property, value) {
|
|
715
|
+
if (value !== null) {
|
|
716
|
+
values[property] ??= new Array(n).fill(null);
|
|
717
|
+
values[property][i] = value;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
function readYedStyles(snapshot, notes, budget) {
|
|
723
|
+
let found = false;
|
|
724
|
+
const resources = yedResources(snapshot);
|
|
725
|
+
const boxes = new Float64Array(4 * snapshot.nodeCount).fill(Number.NaN);
|
|
726
|
+
const read = (target) => {
|
|
727
|
+
const table = target === "node" ? snapshot.nodes : snapshot.edges;
|
|
728
|
+
const n = target === "node" ? snapshot.nodeCount : snapshot.edgeCount;
|
|
729
|
+
const names = target === "node" ? NODE_REALIZERS : EDGE_REALIZERS;
|
|
730
|
+
const columns = treeColumns(table);
|
|
731
|
+
const out = valueColumns(n);
|
|
732
|
+
if (columns.length === 0) {
|
|
733
|
+
return out.values;
|
|
734
|
+
}
|
|
735
|
+
for (let i = 0; i < n; i++) {
|
|
736
|
+
budget.spend(target, columns.length);
|
|
737
|
+
let real = null;
|
|
738
|
+
for (let c = 0; c < columns.length && real === null; c++) {
|
|
739
|
+
real = realizerOf(plainCell(table.value(columns[c], i)), names);
|
|
740
|
+
}
|
|
741
|
+
if (real === null) {
|
|
742
|
+
continue;
|
|
743
|
+
}
|
|
744
|
+
found = true;
|
|
745
|
+
const at = (property) => ({ notes, target, property, element: i, budget });
|
|
746
|
+
const put = (property, value) => {
|
|
747
|
+
out.put(i, property, value);
|
|
748
|
+
};
|
|
749
|
+
if (target === "node") {
|
|
750
|
+
readNode(real, put, at, resources);
|
|
751
|
+
const geometry = treeChild(real.r, "Geometry");
|
|
752
|
+
const [w, h] = [Number(treeAttr(geometry, "width")), Number(treeAttr(geometry, "height"))];
|
|
753
|
+
boxes.set(
|
|
754
|
+
[Number(treeAttr(geometry, "x")) + w / 2, Number(treeAttr(geometry, "y")) + h / 2, w, h],
|
|
755
|
+
4 * i
|
|
756
|
+
);
|
|
757
|
+
} else {
|
|
758
|
+
readEdge(real, put, at);
|
|
759
|
+
readEdgeRoute(real, boxes, snapshot.edgeSource(i), snapshot.edgeTarget(i), put);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
return out.values;
|
|
763
|
+
};
|
|
764
|
+
const node = read("node");
|
|
765
|
+
const edge = read("edge");
|
|
766
|
+
return found ? { node, edge } : null;
|
|
767
|
+
}
|
|
768
|
+
const GRAPHML_STYLE_CAPABILITIES = Object.freeze({
|
|
769
|
+
tool: "yed",
|
|
770
|
+
node: Object.freeze([
|
|
771
|
+
"fill",
|
|
772
|
+
"fillOpacity",
|
|
773
|
+
"fillGradient",
|
|
774
|
+
"fillGradientAngle",
|
|
775
|
+
"borderColor",
|
|
776
|
+
"borderWidth",
|
|
777
|
+
"borderStyle",
|
|
778
|
+
"shape",
|
|
779
|
+
"width",
|
|
780
|
+
"height",
|
|
781
|
+
"label",
|
|
782
|
+
"labelColor",
|
|
783
|
+
"labelSize",
|
|
784
|
+
"labelFont",
|
|
785
|
+
"labelWeight",
|
|
786
|
+
"labelItalic",
|
|
787
|
+
"labelPosition"
|
|
788
|
+
]),
|
|
789
|
+
edge: Object.freeze([
|
|
790
|
+
"color",
|
|
791
|
+
"opacity",
|
|
792
|
+
"width",
|
|
793
|
+
"lineStyle",
|
|
794
|
+
"sourceArrow",
|
|
795
|
+
"targetArrow",
|
|
796
|
+
"curved",
|
|
797
|
+
"bends",
|
|
798
|
+
"sourcePort",
|
|
799
|
+
"targetPort",
|
|
800
|
+
"label",
|
|
801
|
+
"labelColor",
|
|
802
|
+
"labelSize",
|
|
803
|
+
"labelFont",
|
|
804
|
+
"labelWeight",
|
|
805
|
+
"labelItalic"
|
|
806
|
+
]),
|
|
807
|
+
block: "attributes"
|
|
808
|
+
});
|
|
809
|
+
const YED_SHAPES = /* @__PURE__ */ new Map([
|
|
810
|
+
["ellipse", "ellipse"],
|
|
811
|
+
["rectangle", "rectangle"],
|
|
812
|
+
["round-rectangle", "roundrectangle"],
|
|
813
|
+
["triangle", "triangle"],
|
|
814
|
+
["diamond", "diamond"],
|
|
815
|
+
["hexagon", "hexagon"],
|
|
816
|
+
["octagon", "octagon"],
|
|
817
|
+
["parallelogram", "parallelogram"],
|
|
818
|
+
["trapezoid", "trapezoid"],
|
|
819
|
+
["star", "star5"]
|
|
820
|
+
]);
|
|
821
|
+
const YED_LINES = /* @__PURE__ */ new Map([
|
|
822
|
+
["solid", "line"],
|
|
823
|
+
["dashed", "dashed"],
|
|
824
|
+
["dotted", "dotted"],
|
|
825
|
+
["dash-dot", "dashed_dotted"]
|
|
826
|
+
]);
|
|
827
|
+
const YED_ARROWS = /* @__PURE__ */ new Map([
|
|
828
|
+
["none", "none"],
|
|
829
|
+
["triangle", "standard"],
|
|
830
|
+
["triangle-open", "white_delta"],
|
|
831
|
+
["vee", "concave"],
|
|
832
|
+
["tee", "t_shape"],
|
|
833
|
+
["diamond", "diamond"],
|
|
834
|
+
["diamond-open", "white_diamond"],
|
|
835
|
+
["circle", "circle"],
|
|
836
|
+
["circle-open", "white_circle"],
|
|
837
|
+
["square", "skewed_dash"],
|
|
838
|
+
["crow", "crows_foot_many"]
|
|
839
|
+
]);
|
|
840
|
+
const INTERNAL_MODEL_POSITIONS = new Map(
|
|
841
|
+
[...INTERNAL_POSITIONS].map(([model, position]) => [position, model])
|
|
842
|
+
);
|
|
843
|
+
const YED_MODEL_POSITIONS = /* @__PURE__ */ new Map([
|
|
844
|
+
["top", "n"],
|
|
845
|
+
["bottom", "s"],
|
|
846
|
+
["left", "w"],
|
|
847
|
+
["right", "e"],
|
|
848
|
+
["top-left", "nw"],
|
|
849
|
+
["top-right", "ne"],
|
|
850
|
+
["bottom-left", "sw"],
|
|
851
|
+
["bottom-right", "se"]
|
|
852
|
+
]);
|
|
853
|
+
function yedValue(table, value, nearest) {
|
|
854
|
+
const exact = table.get(value);
|
|
855
|
+
if (exact !== void 0) {
|
|
856
|
+
return { value: exact, exact: true };
|
|
857
|
+
}
|
|
858
|
+
return value.startsWith("other:") ? { value: value.slice(6), exact: true } : { value: nearest, exact: false };
|
|
859
|
+
}
|
|
860
|
+
function yedColor(color, opacity) {
|
|
861
|
+
const hex = color.toUpperCase();
|
|
862
|
+
if (typeof opacity !== "number" || opacity >= 1) {
|
|
863
|
+
return hex;
|
|
864
|
+
}
|
|
865
|
+
return hex + Math.round(Math.max(0, opacity) * 255).toString(16).toUpperCase().padStart(2, "0");
|
|
866
|
+
}
|
|
867
|
+
function yedSpelled(table, value, nearest, property, approximate) {
|
|
868
|
+
const w = yedValue(table, value, nearest);
|
|
869
|
+
if (!w.exact) {
|
|
870
|
+
approximate(property, value);
|
|
871
|
+
}
|
|
872
|
+
return w.value;
|
|
873
|
+
}
|
|
874
|
+
const JAVA_LOGICAL = {
|
|
875
|
+
[JAVA_SANS]: "Dialog",
|
|
876
|
+
[JAVA_SERIF]: "Serif",
|
|
877
|
+
[JAVA_MONO]: "Monospaced"
|
|
878
|
+
};
|
|
879
|
+
function yedFontName(family) {
|
|
880
|
+
return Object.hasOwn(JAVA_LOGICAL, family) ? JAVA_LOGICAL[family] : family.split(",")[0].trim();
|
|
881
|
+
}
|
|
882
|
+
function labelFontTree(get) {
|
|
883
|
+
const label = {};
|
|
884
|
+
const font = get("labelFont");
|
|
885
|
+
if (typeof font === "string") {
|
|
886
|
+
label["@_fontFamily"] = yedFontName(font);
|
|
887
|
+
}
|
|
888
|
+
const size = get("labelSize");
|
|
889
|
+
if (typeof size === "number") {
|
|
890
|
+
label["@_fontSize"] = String(size);
|
|
891
|
+
}
|
|
892
|
+
const weight = get("labelWeight");
|
|
893
|
+
const italic = get("labelItalic");
|
|
894
|
+
if (weight !== null || italic !== null) {
|
|
895
|
+
const style = (weight === "bold" ? "bold" : "") + (italic === true ? "italic" : "");
|
|
896
|
+
label["@_fontStyle"] = style.length === 0 ? "plain" : style;
|
|
897
|
+
}
|
|
898
|
+
return label;
|
|
899
|
+
}
|
|
900
|
+
function labelTree(get, node, approximate) {
|
|
901
|
+
const text = get("label");
|
|
902
|
+
if (typeof text !== "string" || text.trim().length === 0) {
|
|
903
|
+
return null;
|
|
904
|
+
}
|
|
905
|
+
const label = labelFontTree(get);
|
|
906
|
+
const color = get("labelColor");
|
|
907
|
+
if (typeof color === "string") {
|
|
908
|
+
label["@_textColor"] = color.toUpperCase();
|
|
909
|
+
}
|
|
910
|
+
const position = node ? get("labelPosition") : null;
|
|
911
|
+
if (typeof position === "string") {
|
|
912
|
+
const inside = INTERNAL_MODEL_POSITIONS.get(position);
|
|
913
|
+
const outside = YED_MODEL_POSITIONS.get(position);
|
|
914
|
+
if (inside === void 0 && outside === void 0) {
|
|
915
|
+
approximate("labelPosition", position);
|
|
916
|
+
}
|
|
917
|
+
label["@_modelName"] = outside === void 0 ? "internal" : "eight_pos";
|
|
918
|
+
label["@_modelPosition"] = outside ?? inside ?? "c";
|
|
919
|
+
}
|
|
920
|
+
label["#text"] = text;
|
|
921
|
+
return label;
|
|
922
|
+
}
|
|
923
|
+
function shapeNodeTree(get, at, approximate) {
|
|
924
|
+
const node = {};
|
|
925
|
+
node["y:Geometry"] = geometryTree(get, at);
|
|
926
|
+
const fill = get("fill");
|
|
927
|
+
const fillOpacity = get("fillOpacity");
|
|
928
|
+
if (typeof fill === "string") {
|
|
929
|
+
node["y:Fill"] = { "@_color": yedColor(fill, fillOpacity), "@_transparent": "false" };
|
|
930
|
+
const second = get("fillGradient");
|
|
931
|
+
if (typeof second === "string") {
|
|
932
|
+
node["y:Fill"]["@_color2"] = second.toUpperCase();
|
|
933
|
+
const angle = get("fillGradientAngle");
|
|
934
|
+
if (angle !== YED_GRADIENT_ANGLE) {
|
|
935
|
+
approximate("fillGradientAngle", angle ?? 0);
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
} else if (fillOpacity === 0) {
|
|
939
|
+
node["y:Fill"] = { "@_hasColor": "false", "@_transparent": "false" };
|
|
940
|
+
}
|
|
941
|
+
const border = lineTree(get, ["borderColor", "borderWidth", "borderStyle"], approximate);
|
|
942
|
+
if (border !== null) {
|
|
943
|
+
node["y:BorderStyle"] = border;
|
|
944
|
+
}
|
|
945
|
+
const label = labelTree(get, true, approximate);
|
|
946
|
+
if (label !== null) {
|
|
947
|
+
node["y:NodeLabel"] = label;
|
|
948
|
+
}
|
|
949
|
+
const shape = get("shape");
|
|
950
|
+
if (typeof shape === "string") {
|
|
951
|
+
node["y:Shape"] = {
|
|
952
|
+
"@_type": yedSpelled(YED_SHAPES, shape, shape === "vee" ? "triangle" : "rectangle", "shape", approximate)
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
return { "y:ShapeNode": node };
|
|
956
|
+
}
|
|
957
|
+
function geometryTree(get, at) {
|
|
958
|
+
const geometry = {};
|
|
959
|
+
const height = get("height");
|
|
960
|
+
const width = get("width");
|
|
961
|
+
if (typeof height === "number") {
|
|
962
|
+
geometry["@_height"] = String(height);
|
|
963
|
+
}
|
|
964
|
+
if (typeof width === "number") {
|
|
965
|
+
geometry["@_width"] = String(width);
|
|
966
|
+
}
|
|
967
|
+
if (at !== null) {
|
|
968
|
+
geometry["@_x"] = at[0];
|
|
969
|
+
geometry["@_y"] = at[1];
|
|
970
|
+
}
|
|
971
|
+
return geometry;
|
|
972
|
+
}
|
|
973
|
+
function lineTree(get, properties, approximate, opacity) {
|
|
974
|
+
const [colorKey, widthKey, styleKey] = properties;
|
|
975
|
+
const color = get(colorKey);
|
|
976
|
+
const width = get(widthKey);
|
|
977
|
+
const style = get(styleKey);
|
|
978
|
+
if (color === null && width === null && style === null) {
|
|
979
|
+
return null;
|
|
980
|
+
}
|
|
981
|
+
const line = {};
|
|
982
|
+
if (typeof color === "string") {
|
|
983
|
+
line["@_color"] = opacity === void 0 ? color.toUpperCase() : yedColor(color, opacity);
|
|
984
|
+
}
|
|
985
|
+
if (typeof style === "string") {
|
|
986
|
+
const nearest = styleKey === "lineStyle" && style === "long-dash" ? "dashed" : "line";
|
|
987
|
+
line["@_type"] = yedSpelled(YED_LINES, style, nearest, styleKey, approximate);
|
|
988
|
+
}
|
|
989
|
+
if (typeof width === "number") {
|
|
990
|
+
line["@_width"] = String(width);
|
|
991
|
+
}
|
|
992
|
+
return line;
|
|
993
|
+
}
|
|
994
|
+
function polyLineEdgeTree(get, path, approximate) {
|
|
995
|
+
const edge = {};
|
|
996
|
+
if (path !== void 0) {
|
|
997
|
+
edge["y:Path"] = path;
|
|
998
|
+
}
|
|
999
|
+
const line = lineTree(get, ["color", "width", "lineStyle"], approximate, get("opacity"));
|
|
1000
|
+
if (line !== null) {
|
|
1001
|
+
edge["y:LineStyle"] = line;
|
|
1002
|
+
}
|
|
1003
|
+
const source = get("sourceArrow");
|
|
1004
|
+
const target = get("targetArrow");
|
|
1005
|
+
if (source !== null || target !== null) {
|
|
1006
|
+
const arrow = (property, value) => typeof value === "string" ? yedSpelled(YED_ARROWS, value, "standard", property, approximate) : "none";
|
|
1007
|
+
edge["y:Arrows"] = { "@_source": arrow("sourceArrow", source), "@_target": arrow("targetArrow", target) };
|
|
1008
|
+
}
|
|
1009
|
+
const label = labelTree(get, false, approximate);
|
|
1010
|
+
if (label !== null) {
|
|
1011
|
+
edge["y:EdgeLabel"] = label;
|
|
1012
|
+
}
|
|
1013
|
+
const curved = get("curved");
|
|
1014
|
+
if (typeof curved === "boolean") {
|
|
1015
|
+
edge["y:BendStyle"] = { "@_smoothed": String(curved) };
|
|
1016
|
+
}
|
|
1017
|
+
return { "y:PolyLineEdge": edge };
|
|
1018
|
+
}
|
|
1019
|
+
function exactFromBlock(snapshot, text, read) {
|
|
1020
|
+
const notes = new StyleNotes();
|
|
1021
|
+
takeFromBlock(snapshot, text, "graphml", (target) => ({
|
|
1022
|
+
values: read[target],
|
|
1023
|
+
properties: GRAPHML_STYLE_CAPABILITIES[target],
|
|
1024
|
+
writes: GRAPHML_STYLE_CAPABILITIES[target],
|
|
1025
|
+
readBack: (_i, want) => {
|
|
1026
|
+
const back = writtenAndReadBack(target, want, notes);
|
|
1027
|
+
return back === null ? null : (property) => back.get(property) ?? null;
|
|
1028
|
+
}
|
|
1029
|
+
}));
|
|
1030
|
+
}
|
|
1031
|
+
function writtenAndReadBack(target, want, notes) {
|
|
1032
|
+
const ignore = () => void 0;
|
|
1033
|
+
const tree = target === "node" ? shapeNodeTree(want, null, ignore) : polyLineEdgeTree(want, void 0, ignore);
|
|
1034
|
+
const real = realizerOf(tree, target === "node" ? NODE_REALIZERS : EDGE_REALIZERS);
|
|
1035
|
+
if (real === null) {
|
|
1036
|
+
return null;
|
|
1037
|
+
}
|
|
1038
|
+
const back = /* @__PURE__ */ new Map();
|
|
1039
|
+
const at = (property) => ({ notes, target, property });
|
|
1040
|
+
const put = (property, value) => {
|
|
1041
|
+
if (value !== null) {
|
|
1042
|
+
back.set(property, value);
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
if (target === "node") {
|
|
1046
|
+
readNode(real, put, at);
|
|
1047
|
+
} else {
|
|
1048
|
+
readEdge(real, put, at);
|
|
1049
|
+
}
|
|
1050
|
+
return back;
|
|
1051
|
+
}
|
|
1052
|
+
const GRAPHICS_TYPES = { node: "nodegraphics", edge: "edgegraphics" };
|
|
1053
|
+
function keptPosition(table, columns, i) {
|
|
1054
|
+
for (const name of columns) {
|
|
1055
|
+
const tree = plainCell(table.value(name, i));
|
|
1056
|
+
const real = realizerOf(tree, NODE_REALIZERS);
|
|
1057
|
+
const geometry = real === null ? treeChild(tree, "RectD") : treeChild(real.r, "Geometry");
|
|
1058
|
+
const x = treeAttr(geometry, real === null ? "X" : "x");
|
|
1059
|
+
const y = treeAttr(geometry, real === null ? "Y" : "y");
|
|
1060
|
+
if (x !== void 0 && y !== void 0) {
|
|
1061
|
+
return [x, y];
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
return null;
|
|
1065
|
+
}
|
|
1066
|
+
function columnPosition(snapshot, i, get) {
|
|
1067
|
+
const column = snapshot.nodes.byRole("position");
|
|
1068
|
+
if (column === null || column.meta.components < 2 || !column.isSet(i)) {
|
|
1069
|
+
return null;
|
|
1070
|
+
}
|
|
1071
|
+
const v = column.value(i);
|
|
1072
|
+
const width = get("width");
|
|
1073
|
+
const height = get("height");
|
|
1074
|
+
const size = [typeof width === "number" ? width : 0, typeof height === "number" ? height : 0];
|
|
1075
|
+
const p = [v[0], v[1], 0];
|
|
1076
|
+
toNeutral(p, column.meta.extra ?? {}, size, false);
|
|
1077
|
+
const [x, y] = toFilePositions(Float64Array.from(p), YED_SPELLING, {
|
|
1078
|
+
width: Float64Array.of(size[0]),
|
|
1079
|
+
height: Float64Array.of(size[1])
|
|
1080
|
+
});
|
|
1081
|
+
return Number.isFinite(x) && Number.isFinite(y) ? [String(x), String(y)] : null;
|
|
1082
|
+
}
|
|
1083
|
+
const YED_SPELLING = { yAxis: "down", anchor: "top-left" };
|
|
1084
|
+
function keptPath(table, columns, e) {
|
|
1085
|
+
for (const name of columns) {
|
|
1086
|
+
const real = realizerOf(plainCell(table.value(name, e)), EDGE_REALIZERS);
|
|
1087
|
+
const path = real === null ? void 0 : treeChild(real.r, "Path");
|
|
1088
|
+
if (path !== void 0) {
|
|
1089
|
+
return path;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
return void 0;
|
|
1093
|
+
}
|
|
1094
|
+
function pathWithRoute(kept, get, ends, loop) {
|
|
1095
|
+
const bends = get("bends");
|
|
1096
|
+
const [[c0, size0], [c1]] = ends;
|
|
1097
|
+
let points = null;
|
|
1098
|
+
if (typeof bends === "string") {
|
|
1099
|
+
points = loop ? nodeOffsetsToPoints(c0, size0, bends) : bendsToPoints(c0, c1, bends);
|
|
1100
|
+
}
|
|
1101
|
+
const ports = ["sourcePort", "targetPort"].map((property, k) => {
|
|
1102
|
+
const value = get(property);
|
|
1103
|
+
const [center, size] = ends[k];
|
|
1104
|
+
const at = typeof value === "string" ? nodeOffsetsToPoints(center, size, value) : null;
|
|
1105
|
+
return at === null ? null : [at[0][0] - center[0], at[0][1] - center[1]];
|
|
1106
|
+
});
|
|
1107
|
+
if (points === null && ports.every((p) => p === null)) {
|
|
1108
|
+
return kept;
|
|
1109
|
+
}
|
|
1110
|
+
const path = {};
|
|
1111
|
+
["sx", "sy", "tx", "ty"].forEach((key, k) => {
|
|
1112
|
+
const port = ports[k >> 1];
|
|
1113
|
+
path[`@_${key}`] = port === null ? treeAttr(kept, key) ?? "0.0" : String(port[k & 1]);
|
|
1114
|
+
});
|
|
1115
|
+
const written = points ?? treeChildren(kept, "Point").map((q) => [Number(treeAttr(q, "x")), Number(treeAttr(q, "y"))]);
|
|
1116
|
+
path["y:Point"] = written.map(([x, y]) => ({ "@_x": String(x), "@_y": String(y) }));
|
|
1117
|
+
return path;
|
|
1118
|
+
}
|
|
1119
|
+
function freeName(table, base) {
|
|
1120
|
+
let name = base;
|
|
1121
|
+
let k = 2;
|
|
1122
|
+
while (table.has(name)) {
|
|
1123
|
+
name = `${base}#${String(k)}`;
|
|
1124
|
+
k++;
|
|
1125
|
+
}
|
|
1126
|
+
return name;
|
|
1127
|
+
}
|
|
1128
|
+
function graphmlStyledExport(snapshot, input) {
|
|
1129
|
+
if (input === void 0) {
|
|
1130
|
+
return null;
|
|
1131
|
+
}
|
|
1132
|
+
const approximated = new StyleApproximations();
|
|
1133
|
+
const approximateFor = (target) => (property, value) => {
|
|
1134
|
+
approximated.add(target, property, value);
|
|
1135
|
+
};
|
|
1136
|
+
const picture = (target, property) => input.picture(target, property);
|
|
1137
|
+
const nodeColumns = treeColumns(snapshot.nodes);
|
|
1138
|
+
const edgeColumns = treeColumns(snapshot.edges);
|
|
1139
|
+
const getNode = elementValues(picture, "node", GRAPHML_STYLE_CAPABILITIES.node);
|
|
1140
|
+
const getEdge = elementValues(picture, "edge", GRAPHML_STYLE_CAPABILITIES.edge);
|
|
1141
|
+
const nodeTrees = [];
|
|
1142
|
+
for (let i = 0; i < snapshot.nodeCount; i++) {
|
|
1143
|
+
const get = getNode(i);
|
|
1144
|
+
const at = keptPosition(snapshot.nodes, nodeColumns, i) ?? columnPosition(snapshot, i, get);
|
|
1145
|
+
nodeTrees.push(shapeNodeTree(get, at, approximateFor("node")));
|
|
1146
|
+
}
|
|
1147
|
+
const boxes = nodeTrees.map((tree) => {
|
|
1148
|
+
const geometry = treeChild(treeChild(tree, "ShapeNode"), "Geometry");
|
|
1149
|
+
const at = (k) => Number(treeAttr(geometry, k) ?? Number.NaN);
|
|
1150
|
+
return [
|
|
1151
|
+
[at("x") + at("width") / 2, at("y") + at("height") / 2],
|
|
1152
|
+
[at("width"), at("height")]
|
|
1153
|
+
];
|
|
1154
|
+
});
|
|
1155
|
+
const edgeTrees = [];
|
|
1156
|
+
for (let e = 0; e < snapshot.edgeCount; e++) {
|
|
1157
|
+
const get = getEdge(e);
|
|
1158
|
+
const [source, target] = [snapshot.edgeSource(e), snapshot.edgeTarget(e)];
|
|
1159
|
+
const path = pathWithRoute(
|
|
1160
|
+
keptPath(snapshot.edges, edgeColumns, e),
|
|
1161
|
+
get,
|
|
1162
|
+
[boxes[source], boxes[target]],
|
|
1163
|
+
source === target
|
|
1164
|
+
);
|
|
1165
|
+
edgeTrees.push(polyLineEdgeTree(get, path, approximateFor("edge")));
|
|
1166
|
+
}
|
|
1167
|
+
const out = snapshot.withColumns();
|
|
1168
|
+
for (const [table, trees, target] of [
|
|
1169
|
+
[out.nodes, nodeTrees, "node"],
|
|
1170
|
+
[out.edges, edgeTrees, "edge"]
|
|
1171
|
+
]) {
|
|
1172
|
+
for (const name2 of yfilesColumns(table)) {
|
|
1173
|
+
table.remove(name2);
|
|
1174
|
+
}
|
|
1175
|
+
const name = freeName(table, GRAPHICS_TYPES[target]);
|
|
1176
|
+
table.set(name, trees, {
|
|
1177
|
+
dtype: "json",
|
|
1178
|
+
nullable: true,
|
|
1179
|
+
origin: { format: "graphml", id: null, title: null, type: GRAPHICS_TYPES[target], namespace: "yfiles" }
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
const yfiles3 = [...out.graph].filter(
|
|
1183
|
+
(col) => col.meta.origin?.namespace === "yfiles" && (col.meta.origin.type ?? "").includes("://")
|
|
1184
|
+
);
|
|
1185
|
+
for (const col of yfiles3) {
|
|
1186
|
+
out.graph.remove(col.meta.name);
|
|
1187
|
+
}
|
|
1188
|
+
return { snapshot: out, notes: approximated.notes("yEd") };
|
|
1189
|
+
}
|
|
1190
|
+
export {
|
|
1191
|
+
FONT_STYLES as F,
|
|
1192
|
+
GRAPHML_STYLE_CAPABILITIES as G,
|
|
1193
|
+
YED_SHAPES as Y,
|
|
1194
|
+
yedColor as a,
|
|
1195
|
+
yedSpelled as b,
|
|
1196
|
+
yedFontName as c,
|
|
1197
|
+
YED_LINES as d,
|
|
1198
|
+
configurationOutline as e,
|
|
1199
|
+
YED_ARROWS as f,
|
|
1200
|
+
graphmlStyledExport as g,
|
|
1201
|
+
treeAttr as h,
|
|
1202
|
+
isTree as i,
|
|
1203
|
+
treeChild as j,
|
|
1204
|
+
treeText as k,
|
|
1205
|
+
localOf as l,
|
|
1206
|
+
yfilesColumns as m,
|
|
1207
|
+
exactFromBlock as n,
|
|
1208
|
+
readYedStyles as r,
|
|
1209
|
+
treeChildren as t,
|
|
1210
|
+
valueColumns as v,
|
|
1211
|
+
yedValue as y
|
|
1212
|
+
};
|
|
1213
|
+
//# sourceMappingURL=styles-yed-UMFdNqze.js.map
|