@graphty/graph-io 0.3.43 → 0.3.44
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-3Q4TsdTh.js +40 -0
- package/dist/chunks/approximations-3Q4TsdTh.js.map +1 -0
- package/dist/chunks/block-JQiwViEt.js +2777 -0
- package/dist/chunks/block-JQiwViEt.js.map +1 -0
- package/dist/chunks/{choose-DvpbdRuz.js → choose-BemygfH8.js} +3 -2
- package/dist/chunks/{choose-DvpbdRuz.js.map → choose-BemygfH8.js.map} +1 -1
- package/dist/chunks/{constants-fT3E8JYY.js → constants-BFUR_CtU.js} +6 -2
- package/dist/chunks/constants-BFUR_CtU.js.map +1 -0
- package/dist/chunks/convert-BcQ8_jMo.js +59 -0
- package/dist/chunks/convert-BcQ8_jMo.js.map +1 -0
- package/dist/chunks/emit-DCwFLts5.js +3456 -0
- package/dist/chunks/emit-DCwFLts5.js.map +1 -0
- package/dist/chunks/{escape-B62ZGM_a.js → escape-B1rMftd9.js} +43 -20
- package/dist/chunks/escape-B1rMftd9.js.map +1 -0
- package/dist/chunks/{export-rKLeGQMo.js → export-D7IGzTG4.js} +196 -792
- package/dist/chunks/export-D7IGzTG4.js.map +1 -0
- package/dist/chunks/{exporter-BWwEuOPT.js → exporter-BtnqYuuj.js} +22 -12
- package/dist/chunks/exporter-BtnqYuuj.js.map +1 -0
- package/dist/chunks/{exporter-yLxKBvLE.js → exporter-ChPyhBOv.js} +4 -3
- package/dist/chunks/{exporter-yLxKBvLE.js.map → exporter-ChPyhBOv.js.map} +1 -1
- package/dist/chunks/{exporter-8hLNemFk.js → exporter-KEPxYUXD.js} +133 -74
- package/dist/chunks/exporter-KEPxYUXD.js.map +1 -0
- package/dist/chunks/{exporter-RVtXVetw.js → exporter-quPUCBiC.js} +1805 -287
- package/dist/chunks/exporter-quPUCBiC.js.map +1 -0
- package/dist/chunks/format-GDmO6m6Q.js +676 -0
- package/dist/chunks/format-GDmO6m6Q.js.map +1 -0
- package/dist/chunks/generic-BL06jrJf.js +1347 -0
- package/dist/chunks/generic-BL06jrJf.js.map +1 -0
- package/dist/chunks/{importer-WrGRZb0N.js → importer-B7r2owVf.js} +449 -102
- package/dist/chunks/importer-B7r2owVf.js.map +1 -0
- package/dist/chunks/{importer-Ht7LNg8L.js → importer-BFmOP96W.js} +116 -296
- package/dist/chunks/importer-BFmOP96W.js.map +1 -0
- package/dist/chunks/{importer-BbNb7eNg.js → importer-C2nzGhdV.js} +1390 -129
- package/dist/chunks/importer-C2nzGhdV.js.map +1 -0
- package/dist/chunks/{importer-Dz7tI8Sa.js → importer-CbX2_rNF.js} +617 -115
- package/dist/chunks/importer-CbX2_rNF.js.map +1 -0
- package/dist/chunks/{importer-D794XUTe.js → importer-CdzeN6X4.js} +31 -8
- package/dist/chunks/importer-CdzeN6X4.js.map +1 -0
- package/dist/chunks/{importer-xZ-3suY1.js → importer-ChKNC_GN.js} +791 -135
- package/dist/chunks/importer-ChKNC_GN.js.map +1 -0
- package/dist/chunks/{importer-C98dpSH4.js → importer-dwoYpSqb.js} +141 -82
- package/dist/chunks/importer-dwoYpSqb.js.map +1 -0
- package/dist/chunks/index-B9fdNpTA.js +4310 -0
- package/dist/chunks/index-B9fdNpTA.js.map +1 -0
- package/dist/chunks/{json-elements-DKSqpNW1.js → json-elements-C4FwgnH5.js} +123 -32
- package/dist/chunks/json-elements-C4FwgnH5.js.map +1 -0
- package/dist/chunks/lexicon-B-knUi-l.js +508 -0
- package/dist/chunks/lexicon-B-knUi-l.js.map +1 -0
- package/dist/chunks/{ontology-export-CtRXjg_i.js → ontology-export-BSpbY5FL.js} +3 -2
- package/dist/chunks/{ontology-export-CtRXjg_i.js.map → ontology-export-BSpbY5FL.js.map} +1 -1
- package/dist/chunks/{records-Cu4bxYOm.js → records-Nwz_rbNt.js} +2 -2
- package/dist/chunks/{records-Cu4bxYOm.js.map → records-Nwz_rbNt.js.map} +1 -1
- package/dist/chunks/styles-Brt9JMfs.js +690 -0
- package/dist/chunks/styles-Brt9JMfs.js.map +1 -0
- package/dist/chunks/styles-_N-C8S-U.js +2102 -0
- package/dist/chunks/styles-_N-C8S-U.js.map +1 -0
- package/dist/chunks/styles-yed-DAfcIkf7.js +842 -0
- package/dist/chunks/styles-yed-DAfcIkf7.js.map +1 -0
- package/dist/chunks/{text-DHOJXnED.js → text-CgzMqHQb.js} +2 -2
- package/dist/chunks/{text-DHOJXnED.js.map → text-CgzMqHQb.js.map} +1 -1
- package/dist/chunks/units-XMZFIFe1.js +19 -0
- package/dist/chunks/units-XMZFIFe1.js.map +1 -0
- package/dist/csv.js +5 -4
- package/dist/csv.js.map +1 -1
- package/dist/cx.js +1 -1
- package/dist/cx2.js +2 -2
- package/dist/cys.js +1 -1
- package/dist/dot.js +5 -2
- package/dist/dot.js.map +1 -1
- package/dist/gexf.js +292 -412
- package/dist/gexf.js.map +1 -1
- package/dist/gml.js +8 -3031
- package/dist/gml.js.map +1 -1
- package/dist/graph-io.js +354 -240
- package/dist/graph-io.js.map +1 -1
- package/dist/graphml.js +4 -2
- package/dist/graphml.js.map +1 -1
- package/dist/json.js +1 -1
- package/dist/neo4j.js +4 -3
- package/dist/neo4j.js.map +1 -1
- package/dist/obo.js +1 -1
- package/dist/pajek.js +4 -2
- package/dist/positions.d.ts +1 -0
- package/dist/positions.js +427 -0
- package/dist/positions.js.map +1 -0
- package/dist/src/common/codes.d.ts +6 -0
- package/dist/src/common/codes.d.ts.map +1 -1
- package/dist/src/common/codes.js +6 -0
- package/dist/src/common/codes.js.map +1 -1
- package/dist/src/common/escape.d.ts.map +1 -1
- package/dist/src/common/escape.js +4 -2
- package/dist/src/common/escape.js.map +1 -1
- package/dist/src/common/export.d.ts +10 -0
- package/dist/src/common/export.d.ts.map +1 -1
- package/dist/src/common/export.js +123 -100
- package/dist/src/common/export.js.map +1 -1
- package/dist/src/common/input.d.ts.map +1 -1
- package/dist/src/common/input.js +8 -1
- package/dist/src/common/input.js.map +1 -1
- package/dist/src/common/json-elements.d.ts +12 -9
- package/dist/src/common/json-elements.d.ts.map +1 -1
- package/dist/src/common/json-elements.js +160 -37
- package/dist/src/common/json-elements.js.map +1 -1
- package/dist/src/common/notes.d.ts +42 -0
- package/dist/src/common/notes.d.ts.map +1 -0
- package/dist/src/common/notes.js +72 -0
- package/dist/src/common/notes.js.map +1 -0
- package/dist/src/common/report.d.ts +18 -0
- package/dist/src/common/report.d.ts.map +1 -1
- package/dist/src/common/report.js +36 -1
- package/dist/src/common/report.js.map +1 -1
- package/dist/src/common/units.d.ts +24 -0
- package/dist/src/common/units.d.ts.map +1 -0
- package/dist/src/common/units.js +26 -0
- package/dist/src/common/units.js.map +1 -0
- package/dist/src/common/xml.d.ts +18 -0
- package/dist/src/common/xml.d.ts.map +1 -1
- package/dist/src/common/xml.js +42 -5
- package/dist/src/common/xml.js.map +1 -1
- package/dist/src/formats/cx/exporter.d.ts +6 -0
- package/dist/src/formats/cx/exporter.d.ts.map +1 -1
- package/dist/src/formats/cx/exporter.js +71 -8
- package/dist/src/formats/cx/exporter.js.map +1 -1
- package/dist/src/formats/cx/importer.d.ts +5 -2
- package/dist/src/formats/cx/importer.d.ts.map +1 -1
- package/dist/src/formats/cx/importer.js +102 -72
- package/dist/src/formats/cx/importer.js.map +1 -1
- package/dist/src/formats/cx/styles.d.ts +102 -0
- package/dist/src/formats/cx/styles.d.ts.map +1 -0
- package/dist/src/formats/cx/styles.js +225 -0
- package/dist/src/formats/cx/styles.js.map +1 -0
- package/dist/src/formats/cx2/exporter.d.ts +5 -0
- package/dist/src/formats/cx2/exporter.d.ts.map +1 -1
- package/dist/src/formats/cx2/exporter.js +181 -71
- package/dist/src/formats/cx2/exporter.js.map +1 -1
- package/dist/src/formats/cx2/importer.d.ts +4 -1
- package/dist/src/formats/cx2/importer.d.ts.map +1 -1
- package/dist/src/formats/cx2/importer.js +19 -1
- package/dist/src/formats/cx2/importer.js.map +1 -1
- package/dist/src/formats/cx2/styles.d.ts +18 -0
- package/dist/src/formats/cx2/styles.d.ts.map +1 -0
- package/dist/src/formats/cx2/styles.js +24 -0
- package/dist/src/formats/cx2/styles.js.map +1 -0
- package/dist/src/formats/cys/constants.d.ts +2 -0
- package/dist/src/formats/cys/constants.d.ts.map +1 -1
- package/dist/src/formats/cys/constants.js +2 -0
- package/dist/src/formats/cys/constants.js.map +1 -1
- package/dist/src/formats/cys/exporter.d.ts +6 -2
- package/dist/src/formats/cys/exporter.d.ts.map +1 -1
- package/dist/src/formats/cys/exporter.js +215 -53
- package/dist/src/formats/cys/exporter.js.map +1 -1
- package/dist/src/formats/cys/importer.d.ts +2 -1
- package/dist/src/formats/cys/importer.d.ts.map +1 -1
- package/dist/src/formats/cys/importer.js +119 -6
- package/dist/src/formats/cys/importer.js.map +1 -1
- package/dist/src/formats/cys/session.d.ts +2 -0
- package/dist/src/formats/cys/session.d.ts.map +1 -1
- package/dist/src/formats/cys/session.js +5 -0
- package/dist/src/formats/cys/session.js.map +1 -1
- package/dist/src/formats/cys/styles.d.ts +38 -0
- package/dist/src/formats/cys/styles.d.ts.map +1 -0
- package/dist/src/formats/cys/styles.js +213 -0
- package/dist/src/formats/cys/styles.js.map +1 -0
- package/dist/src/formats/cys/tables.d.ts +8 -3
- package/dist/src/formats/cys/tables.d.ts.map +1 -1
- package/dist/src/formats/cys/tables.js +88 -34
- package/dist/src/formats/cys/tables.js.map +1 -1
- package/dist/src/formats/dot/exporter.d.ts +2 -0
- package/dist/src/formats/dot/exporter.d.ts.map +1 -1
- package/dist/src/formats/dot/exporter.js +195 -81
- package/dist/src/formats/dot/exporter.js.map +1 -1
- package/dist/src/formats/dot/importer.d.ts.map +1 -1
- package/dist/src/formats/dot/importer.js +100 -20
- package/dist/src/formats/dot/importer.js.map +1 -1
- package/dist/src/formats/dot/index.d.ts +1 -0
- package/dist/src/formats/dot/index.d.ts.map +1 -1
- package/dist/src/formats/dot/index.js +1 -0
- package/dist/src/formats/dot/index.js.map +1 -1
- package/dist/src/formats/dot/positions.d.ts +14 -0
- package/dist/src/formats/dot/positions.d.ts.map +1 -0
- package/dist/src/formats/dot/positions.js +70 -0
- package/dist/src/formats/dot/positions.js.map +1 -0
- package/dist/src/formats/dot/styles.d.ts +82 -0
- package/dist/src/formats/dot/styles.d.ts.map +1 -0
- package/dist/src/formats/dot/styles.js +1484 -0
- package/dist/src/formats/dot/styles.js.map +1 -0
- package/dist/src/formats/gexf/exporter.d.ts.map +1 -1
- package/dist/src/formats/gexf/exporter.js +20 -5
- package/dist/src/formats/gexf/exporter.js.map +1 -1
- package/dist/src/formats/gexf/importer.d.ts +8 -1
- package/dist/src/formats/gexf/importer.d.ts.map +1 -1
- package/dist/src/formats/gexf/importer.js +251 -131
- package/dist/src/formats/gexf/importer.js.map +1 -1
- package/dist/src/formats/gexf/index.d.ts +8 -0
- package/dist/src/formats/gexf/index.d.ts.map +1 -1
- package/dist/src/formats/gexf/index.js +10 -2
- package/dist/src/formats/gexf/index.js.map +1 -1
- package/dist/src/formats/gexf/schema.d.ts +5 -0
- package/dist/src/formats/gexf/schema.d.ts.map +1 -1
- package/dist/src/formats/gexf/schema.js +5 -0
- package/dist/src/formats/gexf/schema.js.map +1 -1
- package/dist/src/formats/gexf/styles.d.ts +74 -0
- package/dist/src/formats/gexf/styles.d.ts.map +1 -0
- package/dist/src/formats/gexf/styles.js +604 -0
- package/dist/src/formats/gexf/styles.js.map +1 -0
- package/dist/src/formats/gml/exporter.d.ts +1 -5
- package/dist/src/formats/gml/exporter.d.ts.map +1 -1
- package/dist/src/formats/gml/exporter.js +19 -8
- package/dist/src/formats/gml/exporter.js.map +1 -1
- package/dist/src/formats/gml/importer.d.ts.map +1 -1
- package/dist/src/formats/gml/importer.js +4 -0
- package/dist/src/formats/gml/importer.js.map +1 -1
- package/dist/src/formats/gml/index.d.ts +2 -1
- package/dist/src/formats/gml/index.d.ts.map +1 -1
- package/dist/src/formats/gml/index.js +2 -1
- package/dist/src/formats/gml/index.js.map +1 -1
- package/dist/src/formats/gml/positions.d.ts +14 -0
- package/dist/src/formats/gml/positions.d.ts.map +1 -0
- package/dist/src/formats/gml/positions.js +46 -0
- package/dist/src/formats/gml/positions.js.map +1 -0
- package/dist/src/formats/gml/styles.d.ts +59 -0
- package/dist/src/formats/gml/styles.d.ts.map +1 -0
- package/dist/src/formats/gml/styles.js +1056 -0
- package/dist/src/formats/gml/styles.js.map +1 -0
- package/dist/src/formats/gml/syntax.d.ts +11 -0
- package/dist/src/formats/gml/syntax.d.ts.map +1 -1
- package/dist/src/formats/gml/syntax.js +151 -62
- package/dist/src/formats/gml/syntax.js.map +1 -1
- package/dist/src/formats/graphml/constants.d.ts +4 -0
- package/dist/src/formats/graphml/constants.d.ts.map +1 -1
- package/dist/src/formats/graphml/constants.js +5 -1
- package/dist/src/formats/graphml/constants.js.map +1 -1
- package/dist/src/formats/graphml/exporter.d.ts.map +1 -1
- package/dist/src/formats/graphml/exporter.js +133 -65
- package/dist/src/formats/graphml/exporter.js.map +1 -1
- package/dist/src/formats/graphml/importer.d.ts +4 -1
- package/dist/src/formats/graphml/importer.d.ts.map +1 -1
- package/dist/src/formats/graphml/importer.js +100 -44
- package/dist/src/formats/graphml/importer.js.map +1 -1
- package/dist/src/formats/graphml/index.d.ts +1 -0
- package/dist/src/formats/graphml/index.d.ts.map +1 -1
- package/dist/src/formats/graphml/index.js +1 -0
- package/dist/src/formats/graphml/index.js.map +1 -1
- package/dist/src/formats/graphml/styles-plain.d.ts +19 -0
- package/dist/src/formats/graphml/styles-plain.d.ts.map +1 -0
- package/dist/src/formats/graphml/styles-plain.js +187 -0
- package/dist/src/formats/graphml/styles-plain.js.map +1 -0
- package/dist/src/formats/graphml/styles-yed.d.ts +179 -0
- package/dist/src/formats/graphml/styles-yed.d.ts.map +1 -0
- package/dist/src/formats/graphml/styles-yed.js +1086 -0
- package/dist/src/formats/graphml/styles-yed.js.map +1 -0
- package/dist/src/formats/graphml/styles-yfiles3.d.ts +19 -0
- package/dist/src/formats/graphml/styles-yfiles3.d.ts.map +1 -0
- package/dist/src/formats/graphml/styles-yfiles3.js +508 -0
- package/dist/src/formats/graphml/styles-yfiles3.js.map +1 -0
- package/dist/src/formats/graphml/tree.d.ts.map +1 -1
- package/dist/src/formats/graphml/tree.js +34 -19
- package/dist/src/formats/graphml/tree.js.map +1 -1
- package/dist/src/formats/graphml/yfiles.d.ts +16 -2
- package/dist/src/formats/graphml/yfiles.d.ts.map +1 -1
- package/dist/src/formats/graphml/yfiles.js +83 -12
- package/dist/src/formats/graphml/yfiles.js.map +1 -1
- package/dist/src/formats/json/exporter.d.ts +5 -0
- package/dist/src/formats/json/exporter.d.ts.map +1 -1
- package/dist/src/formats/json/exporter.js +68 -25
- package/dist/src/formats/json/exporter.js.map +1 -1
- package/dist/src/formats/json/importer.d.ts +22 -3
- package/dist/src/formats/json/importer.d.ts.map +1 -1
- package/dist/src/formats/json/importer.js +439 -264
- package/dist/src/formats/json/importer.js.map +1 -1
- package/dist/src/formats/json/positions.d.ts +16 -0
- package/dist/src/formats/json/positions.d.ts.map +1 -0
- package/dist/src/formats/json/positions.js +44 -0
- package/dist/src/formats/json/positions.js.map +1 -0
- package/dist/src/formats/json/styles.d.ts +102 -0
- package/dist/src/formats/json/styles.d.ts.map +1 -0
- package/dist/src/formats/json/styles.js +1753 -0
- package/dist/src/formats/json/styles.js.map +1 -0
- package/dist/src/formats/neo4j/exporter.d.ts.map +1 -1
- package/dist/src/formats/neo4j/exporter.js +2 -1
- package/dist/src/formats/neo4j/exporter.js.map +1 -1
- package/dist/src/formats/pajek/exporter.d.ts +2 -0
- package/dist/src/formats/pajek/exporter.d.ts.map +1 -1
- package/dist/src/formats/pajek/exporter.js +142 -76
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/pajek/importer.d.ts +4 -0
- package/dist/src/formats/pajek/importer.d.ts.map +1 -1
- package/dist/src/formats/pajek/importer.js +60 -6
- package/dist/src/formats/pajek/importer.js.map +1 -1
- package/dist/src/formats/pajek/index.d.ts +2 -0
- package/dist/src/formats/pajek/index.d.ts.map +1 -1
- package/dist/src/formats/pajek/index.js +2 -0
- package/dist/src/formats/pajek/index.js.map +1 -1
- package/dist/src/formats/pajek/styles.d.ts +50 -0
- package/dist/src/formats/pajek/styles.d.ts.map +1 -0
- package/dist/src/formats/pajek/styles.js +569 -0
- package/dist/src/formats/pajek/styles.js.map +1 -0
- package/dist/src/formats/pajek/syntax.d.ts +6 -0
- package/dist/src/formats/pajek/syntax.d.ts.map +1 -1
- package/dist/src/formats/pajek/syntax.js +6 -0
- package/dist/src/formats/pajek/syntax.js.map +1 -1
- package/dist/src/formats/xgmml/columns.d.ts.map +1 -1
- package/dist/src/formats/xgmml/columns.js +34 -9
- package/dist/src/formats/xgmml/columns.js.map +1 -1
- package/dist/src/formats/xgmml/constants.d.ts +2 -0
- package/dist/src/formats/xgmml/constants.d.ts.map +1 -1
- package/dist/src/formats/xgmml/constants.js +3 -1
- package/dist/src/formats/xgmml/constants.js.map +1 -1
- package/dist/src/formats/xgmml/document.d.ts +12 -8
- package/dist/src/formats/xgmml/document.d.ts.map +1 -1
- package/dist/src/formats/xgmml/document.js +56 -13
- package/dist/src/formats/xgmml/document.js.map +1 -1
- package/dist/src/formats/xgmml/emit.d.ts.map +1 -1
- package/dist/src/formats/xgmml/emit.js +12 -6
- package/dist/src/formats/xgmml/emit.js.map +1 -1
- package/dist/src/formats/xgmml/exporter.d.ts +3 -1
- package/dist/src/formats/xgmml/exporter.d.ts.map +1 -1
- package/dist/src/formats/xgmml/exporter.js +22 -9
- package/dist/src/formats/xgmml/exporter.js.map +1 -1
- package/dist/src/formats/xgmml/importer.d.ts +2 -1
- package/dist/src/formats/xgmml/importer.d.ts.map +1 -1
- package/dist/src/formats/xgmml/importer.js +31 -24
- package/dist/src/formats/xgmml/importer.js.map +1 -1
- package/dist/src/formats/xgmml/styles.d.ts +104 -0
- package/dist/src/formats/xgmml/styles.d.ts.map +1 -0
- package/dist/src/formats/xgmml/styles.js +310 -0
- package/dist/src/formats/xgmml/styles.js.map +1 -0
- package/dist/src/index.d.ts +9 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +7 -7
- package/dist/src/index.js.map +1 -1
- package/dist/src/positions/codes.d.ts +31 -0
- package/dist/src/positions/codes.d.ts.map +1 -0
- package/dist/src/positions/codes.js +26 -0
- package/dist/src/positions/codes.js.map +1 -0
- package/dist/src/positions/convert.d.ts +58 -0
- package/dist/src/positions/convert.d.ts.map +1 -0
- package/dist/src/positions/convert.js +107 -0
- package/dist/src/positions/convert.js.map +1 -0
- package/dist/src/positions/extract.d.ts +27 -0
- package/dist/src/positions/extract.d.ts.map +1 -0
- package/dist/src/positions/extract.js +526 -0
- package/dist/src/positions/extract.js.map +1 -0
- package/dist/src/positions/index.d.ts +10 -0
- package/dist/src/positions/index.d.ts.map +1 -0
- package/dist/src/positions/index.js +9 -0
- package/dist/src/positions/index.js.map +1 -0
- package/dist/src/positions/types.d.ts +208 -0
- package/dist/src/positions/types.d.ts.map +1 -0
- package/dist/src/positions/types.js +10 -0
- package/dist/src/positions/types.js.map +1 -0
- package/dist/src/registry.d.ts +30 -0
- package/dist/src/registry.d.ts.map +1 -1
- package/dist/src/registry.js +130 -9
- package/dist/src/registry.js.map +1 -1
- package/dist/src/styles/annotations.d.ts +132 -0
- package/dist/src/styles/annotations.d.ts.map +1 -0
- package/dist/src/styles/annotations.js +320 -0
- package/dist/src/styles/annotations.js.map +1 -0
- package/dist/src/styles/budget.d.ts +45 -0
- package/dist/src/styles/budget.d.ts.map +1 -0
- package/dist/src/styles/budget.js +58 -0
- package/dist/src/styles/budget.js.map +1 -0
- package/dist/src/styles/canon/bends.d.ts +32 -0
- package/dist/src/styles/canon/bends.d.ts.map +1 -0
- package/dist/src/styles/canon/bends.js +74 -0
- package/dist/src/styles/canon/bends.js.map +1 -0
- package/dist/src/styles/canon/color-tables.d.ts +22 -0
- package/dist/src/styles/canon/color-tables.d.ts.map +1 -0
- package/dist/src/styles/canon/color-tables.js +369 -0
- package/dist/src/styles/canon/color-tables.js.map +1 -0
- package/dist/src/styles/canon/color.d.ts +66 -0
- package/dist/src/styles/canon/color.d.ts.map +1 -0
- package/dist/src/styles/canon/color.js +548 -0
- package/dist/src/styles/canon/color.js.map +1 -0
- package/dist/src/styles/canon/enums.d.ts +25 -0
- package/dist/src/styles/canon/enums.d.ts.map +1 -0
- package/dist/src/styles/canon/enums.js +187 -0
- package/dist/src/styles/canon/enums.js.map +1 -0
- package/dist/src/styles/canon/graphviz.d.ts +48 -0
- package/dist/src/styles/canon/graphviz.d.ts.map +1 -0
- package/dist/src/styles/canon/graphviz.js +160 -0
- package/dist/src/styles/canon/graphviz.js.map +1 -0
- package/dist/src/styles/canon/index.d.ts +13 -0
- package/dist/src/styles/canon/index.d.ts.map +1 -0
- package/dist/src/styles/canon/index.js +13 -0
- package/dist/src/styles/canon/index.js.map +1 -0
- package/dist/src/styles/canon/number.d.ts +59 -0
- package/dist/src/styles/canon/number.d.ts.map +1 -0
- package/dist/src/styles/canon/number.js +142 -0
- package/dist/src/styles/canon/number.js.map +1 -0
- package/dist/src/styles/canon/site.d.ts +51 -0
- package/dist/src/styles/canon/site.d.ts.map +1 -0
- package/dist/src/styles/canon/site.js +63 -0
- package/dist/src/styles/canon/site.js.map +1 -0
- package/dist/src/styles/canon/text.d.ts +61 -0
- package/dist/src/styles/canon/text.d.ts.map +1 -0
- package/dist/src/styles/canon/text.js +199 -0
- package/dist/src/styles/canon/text.js.map +1 -0
- package/dist/src/styles/codes.d.ts +95 -0
- package/dist/src/styles/codes.d.ts.map +1 -0
- package/dist/src/styles/codes.js +97 -0
- package/dist/src/styles/codes.js.map +1 -0
- package/dist/src/styles/cyjs/cascade.d.ts +134 -0
- package/dist/src/styles/cyjs/cascade.d.ts.map +1 -0
- package/dist/src/styles/cyjs/cascade.js +2252 -0
- package/dist/src/styles/cyjs/cascade.js.map +1 -0
- package/dist/src/styles/cyjs/defaults-table.d.ts +25 -0
- package/dist/src/styles/cyjs/defaults-table.d.ts.map +1 -0
- package/dist/src/styles/cyjs/defaults-table.js +76 -0
- package/dist/src/styles/cyjs/defaults-table.js.map +1 -0
- package/dist/src/styles/cyjs/emit.d.ts +82 -0
- package/dist/src/styles/cyjs/emit.d.ts.map +1 -0
- package/dist/src/styles/cyjs/emit.js +790 -0
- package/dist/src/styles/cyjs/emit.js.map +1 -0
- package/dist/src/styles/cyjs/index.d.ts +13 -0
- package/dist/src/styles/cyjs/index.d.ts.map +1 -0
- package/dist/src/styles/cyjs/index.js +13 -0
- package/dist/src/styles/cyjs/index.js.map +1 -0
- package/dist/src/styles/cyjs/live.d.ts +46 -0
- package/dist/src/styles/cyjs/live.d.ts.map +1 -0
- package/dist/src/styles/cyjs/live.js +108 -0
- package/dist/src/styles/cyjs/live.js.map +1 -0
- package/dist/src/styles/cyjs/mappers.d.ts +147 -0
- package/dist/src/styles/cyjs/mappers.d.ts.map +1 -0
- package/dist/src/styles/cyjs/mappers.js +744 -0
- package/dist/src/styles/cyjs/mappers.js.map +1 -0
- package/dist/src/styles/cyjs/selector.d.ts +113 -0
- package/dist/src/styles/cyjs/selector.d.ts.map +1 -0
- package/dist/src/styles/cyjs/selector.js +611 -0
- package/dist/src/styles/cyjs/selector.js.map +1 -0
- package/dist/src/styles/cyjs/stylesheet-text.d.ts +37 -0
- package/dist/src/styles/cyjs/stylesheet-text.d.ts.map +1 -0
- package/dist/src/styles/cyjs/stylesheet-text.js +181 -0
- package/dist/src/styles/cyjs/stylesheet-text.js.map +1 -0
- package/dist/src/styles/cytoscape/emit.d.ts +125 -0
- package/dist/src/styles/cytoscape/emit.d.ts.map +1 -0
- package/dist/src/styles/cytoscape/emit.js +1025 -0
- package/dist/src/styles/cytoscape/emit.js.map +1 -0
- package/dist/src/styles/cytoscape/index.d.ts +10 -0
- package/dist/src/styles/cytoscape/index.d.ts.map +1 -0
- package/dist/src/styles/cytoscape/index.js +10 -0
- package/dist/src/styles/cytoscape/index.js.map +1 -0
- package/dist/src/styles/cytoscape/lexicon.d.ts +49 -0
- package/dist/src/styles/cytoscape/lexicon.d.ts.map +1 -0
- package/dist/src/styles/cytoscape/lexicon.js +603 -0
- package/dist/src/styles/cytoscape/lexicon.js.map +1 -0
- package/dist/src/styles/cytoscape/mappings.d.ts +171 -0
- package/dist/src/styles/cytoscape/mappings.d.ts.map +1 -0
- package/dist/src/styles/cytoscape/mappings.js +460 -0
- package/dist/src/styles/cytoscape/mappings.js.map +1 -0
- package/dist/src/styles/cytoscape/resolve.d.ts +137 -0
- package/dist/src/styles/cytoscape/resolve.d.ts.map +1 -0
- package/dist/src/styles/cytoscape/resolve.js +381 -0
- package/dist/src/styles/cytoscape/resolve.js.map +1 -0
- package/dist/src/styles/cytoscape/translate.d.ts +50 -0
- package/dist/src/styles/cytoscape/translate.d.ts.map +1 -0
- package/dist/src/styles/cytoscape/translate.js +156 -0
- package/dist/src/styles/cytoscape/translate.js.map +1 -0
- package/dist/src/styles/defaults.d.ts +90 -0
- package/dist/src/styles/defaults.d.ts.map +1 -0
- package/dist/src/styles/defaults.js +414 -0
- package/dist/src/styles/defaults.js.map +1 -0
- package/dist/src/styles/index.d.ts +15 -0
- package/dist/src/styles/index.d.ts.map +1 -0
- package/dist/src/styles/index.js +14 -0
- package/dist/src/styles/index.js.map +1 -0
- package/dist/src/styles/internal.d.ts +17 -0
- package/dist/src/styles/internal.d.ts.map +1 -0
- package/dist/src/styles/internal.js +16 -0
- package/dist/src/styles/internal.js.map +1 -0
- package/dist/src/styles/io/approximations.d.ts +24 -0
- package/dist/src/styles/io/approximations.d.ts.map +1 -0
- package/dist/src/styles/io/approximations.js +51 -0
- package/dist/src/styles/io/approximations.js.map +1 -0
- package/dist/src/styles/io/block.d.ts +166 -0
- package/dist/src/styles/io/block.d.ts.map +1 -0
- package/dist/src/styles/io/block.js +930 -0
- package/dist/src/styles/io/block.js.map +1 -0
- package/dist/src/styles/io/generic.d.ts +88 -0
- package/dist/src/styles/io/generic.d.ts.map +1 -0
- package/dist/src/styles/io/generic.js +516 -0
- package/dist/src/styles/io/generic.js.map +1 -0
- package/dist/src/styles/io/index.d.ts +8 -0
- package/dist/src/styles/io/index.d.ts.map +1 -0
- package/dist/src/styles/io/index.js +7 -0
- package/dist/src/styles/io/index.js.map +1 -0
- package/dist/src/styles/io/writer.d.ts +80 -0
- package/dist/src/styles/io/writer.d.ts.map +1 -0
- package/dist/src/styles/io/writer.js +596 -0
- package/dist/src/styles/io/writer.js.map +1 -0
- package/dist/src/styles/notes.d.ts +47 -0
- package/dist/src/styles/notes.d.ts.map +1 -0
- package/dist/src/styles/notes.js +140 -0
- package/dist/src/styles/notes.js.map +1 -0
- package/dist/src/styles/plan/classes.d.ts +31 -0
- package/dist/src/styles/plan/classes.d.ts.map +1 -0
- package/dist/src/styles/plan/classes.js +139 -0
- package/dist/src/styles/plan/classes.js.map +1 -0
- package/dist/src/styles/plan/continuous.d.ts +32 -0
- package/dist/src/styles/plan/continuous.d.ts.map +1 -0
- package/dist/src/styles/plan/continuous.js +165 -0
- package/dist/src/styles/plan/continuous.js.map +1 -0
- package/dist/src/styles/plan/discrete.d.ts +39 -0
- package/dist/src/styles/plan/discrete.d.ts.map +1 -0
- package/dist/src/styles/plan/discrete.js +127 -0
- package/dist/src/styles/plan/discrete.js.map +1 -0
- package/dist/src/styles/plan/families.d.ts +31 -0
- package/dist/src/styles/plan/families.d.ts.map +1 -0
- package/dist/src/styles/plan/families.js +95 -0
- package/dist/src/styles/plan/families.js.map +1 -0
- package/dist/src/styles/plan/features.d.ts +58 -0
- package/dist/src/styles/plan/features.d.ts.map +1 -0
- package/dist/src/styles/plan/features.js +185 -0
- package/dist/src/styles/plan/features.js.map +1 -0
- package/dist/src/styles/plan/index.d.ts +7 -0
- package/dist/src/styles/plan/index.d.ts.map +1 -0
- package/dist/src/styles/plan/index.js +7 -0
- package/dist/src/styles/plan/index.js.map +1 -0
- package/dist/src/styles/plan/plan.d.ts +71 -0
- package/dist/src/styles/plan/plan.d.ts.map +1 -0
- package/dist/src/styles/plan/plan.js +893 -0
- package/dist/src/styles/plan/plan.js.map +1 -0
- package/dist/src/styles/plan/resolve.d.ts +137 -0
- package/dist/src/styles/plan/resolve.d.ts.map +1 -0
- package/dist/src/styles/plan/resolve.js +587 -0
- package/dist/src/styles/plan/resolve.js.map +1 -0
- package/dist/src/styles/types.d.ts +702 -0
- package/dist/src/styles/types.d.ts.map +1 -0
- package/dist/src/styles/types.js +10 -0
- package/dist/src/styles/types.js.map +1 -0
- package/dist/src/styles/vocabulary.d.ts +41 -0
- package/dist/src/styles/vocabulary.d.ts.map +1 -0
- package/dist/src/styles/vocabulary.js +140 -0
- package/dist/src/styles/vocabulary.js.map +1 -0
- package/dist/src/types.d.ts +64 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/styles.d.ts +1 -0
- package/dist/styles.js +322 -0
- package/dist/styles.js.map +1 -0
- package/dist/xgmml.js +5 -4
- package/dist/xgmml.js.map +1 -1
- package/package.json +13 -2
- package/src/common/codes.ts +7 -0
- package/src/common/escape.ts +5 -2
- package/src/common/export.ts +179 -140
- package/src/common/input.ts +8 -4
- package/src/common/json-elements.ts +169 -38
- package/src/common/notes.ts +94 -0
- package/src/common/report.ts +41 -1
- package/src/common/units.ts +42 -0
- package/src/common/xml.ts +45 -5
- package/src/formats/cx/exporter.ts +95 -11
- package/src/formats/cx/importer.ts +126 -90
- package/src/formats/cx/styles.ts +304 -0
- package/src/formats/cx2/exporter.ts +234 -77
- package/src/formats/cx2/importer.ts +19 -1
- package/src/formats/cx2/styles.ts +29 -0
- package/src/formats/cys/constants.ts +3 -0
- package/src/formats/cys/exporter.ts +246 -60
- package/src/formats/cys/importer.ts +125 -9
- package/src/formats/cys/session.ts +6 -0
- package/src/formats/cys/styles.ts +254 -0
- package/src/formats/cys/tables.ts +117 -48
- package/src/formats/dot/exporter.ts +262 -126
- package/src/formats/dot/importer.ts +111 -20
- package/src/formats/dot/index.ts +1 -0
- package/src/formats/dot/positions.ts +77 -0
- package/src/formats/dot/styles.ts +1741 -0
- package/src/formats/gexf/exporter.ts +27 -11
- package/src/formats/gexf/importer.ts +308 -158
- package/src/formats/gexf/index.ts +10 -0
- package/src/formats/gexf/schema.ts +5 -0
- package/src/formats/gexf/styles.ts +719 -0
- package/src/formats/gml/exporter.ts +33 -14
- package/src/formats/gml/importer.ts +4 -0
- package/src/formats/gml/index.ts +2 -1
- package/src/formats/gml/positions.ts +52 -0
- package/src/formats/gml/styles.ts +1248 -0
- package/src/formats/gml/syntax.ts +173 -62
- package/src/formats/graphml/constants.ts +5 -0
- package/src/formats/graphml/exporter.ts +163 -71
- package/src/formats/graphml/importer.ts +119 -45
- package/src/formats/graphml/index.ts +1 -0
- package/src/formats/graphml/styles-plain.ts +236 -0
- package/src/formats/graphml/styles-yed.ts +1221 -0
- package/src/formats/graphml/styles-yfiles3.ts +573 -0
- package/src/formats/graphml/tree.ts +36 -20
- package/src/formats/graphml/yfiles.ts +89 -13
- package/src/formats/json/exporter.ts +76 -26
- package/src/formats/json/importer.ts +541 -322
- package/src/formats/json/positions.ts +50 -0
- package/src/formats/json/styles.ts +2082 -0
- package/src/formats/neo4j/exporter.ts +2 -1
- package/src/formats/pajek/exporter.ts +195 -106
- package/src/formats/pajek/importer.ts +78 -9
- package/src/formats/pajek/index.ts +2 -0
- package/src/formats/pajek/styles.ts +685 -0
- package/src/formats/pajek/syntax.ts +7 -0
- package/src/formats/xgmml/columns.ts +39 -9
- package/src/formats/xgmml/constants.ts +3 -0
- package/src/formats/xgmml/document.ts +54 -12
- package/src/formats/xgmml/emit.ts +11 -6
- package/src/formats/xgmml/exporter.ts +32 -13
- package/src/formats/xgmml/importer.ts +43 -29
- package/src/formats/xgmml/styles.ts +400 -0
- package/src/index.ts +16 -0
- package/src/positions/codes.ts +32 -0
- package/src/positions/convert.ts +123 -0
- package/src/positions/extract.ts +619 -0
- package/src/positions/index.ts +23 -0
- package/src/positions/types.ts +221 -0
- package/src/registry.ts +179 -8
- package/src/styles/annotations.ts +478 -0
- package/src/styles/budget.ts +60 -0
- package/src/styles/canon/bends.ts +84 -0
- package/src/styles/canon/color-tables.ts +386 -0
- package/src/styles/canon/color.ts +624 -0
- package/src/styles/canon/enums.ts +211 -0
- package/src/styles/canon/graphviz.ts +189 -0
- package/src/styles/canon/index.ts +13 -0
- package/src/styles/canon/number.ts +152 -0
- package/src/styles/canon/site.ts +87 -0
- package/src/styles/canon/text.ts +221 -0
- package/src/styles/codes.ts +104 -0
- package/src/styles/cyjs/cascade.ts +2670 -0
- package/src/styles/cyjs/defaults-table.ts +82 -0
- package/src/styles/cyjs/emit.ts +951 -0
- package/src/styles/cyjs/index.ts +37 -0
- package/src/styles/cyjs/live.ts +147 -0
- package/src/styles/cyjs/mappers.ts +879 -0
- package/src/styles/cyjs/selector.ts +778 -0
- package/src/styles/cyjs/stylesheet-text.ts +214 -0
- package/src/styles/cytoscape/emit.ts +1264 -0
- package/src/styles/cytoscape/index.ts +40 -0
- package/src/styles/cytoscape/lexicon.ts +656 -0
- package/src/styles/cytoscape/mappings.ts +603 -0
- package/src/styles/cytoscape/resolve.ts +521 -0
- package/src/styles/cytoscape/translate.ts +237 -0
- package/src/styles/defaults.ts +504 -0
- package/src/styles/index.ts +57 -0
- package/src/styles/internal.ts +17 -0
- package/src/styles/io/approximations.ts +47 -0
- package/src/styles/io/block.ts +1138 -0
- package/src/styles/io/generic.ts +687 -0
- package/src/styles/io/index.ts +18 -0
- package/src/styles/io/writer.ts +745 -0
- package/src/styles/notes.ts +165 -0
- package/src/styles/plan/classes.ts +166 -0
- package/src/styles/plan/continuous.ts +218 -0
- package/src/styles/plan/discrete.ts +165 -0
- package/src/styles/plan/families.ts +115 -0
- package/src/styles/plan/features.ts +234 -0
- package/src/styles/plan/index.ts +7 -0
- package/src/styles/plan/plan.ts +1129 -0
- package/src/styles/plan/resolve.ts +685 -0
- package/src/styles/types.ts +814 -0
- package/src/styles/vocabulary.ts +172 -0
- package/src/types.ts +76 -1
- package/dist/chunks/constants-fT3E8JYY.js.map +0 -1
- package/dist/chunks/escape-B62ZGM_a.js.map +0 -1
- package/dist/chunks/export-rKLeGQMo.js.map +0 -1
- package/dist/chunks/exporter-8hLNemFk.js.map +0 -1
- package/dist/chunks/exporter-BWwEuOPT.js.map +0 -1
- package/dist/chunks/exporter-RVtXVetw.js.map +0 -1
- package/dist/chunks/importer-BbNb7eNg.js.map +0 -1
- package/dist/chunks/importer-C98dpSH4.js.map +0 -1
- package/dist/chunks/importer-D794XUTe.js.map +0 -1
- package/dist/chunks/importer-Dz7tI8Sa.js.map +0 -1
- package/dist/chunks/importer-Ht7LNg8L.js.map +0 -1
- package/dist/chunks/importer-WrGRZb0N.js.map +0 -1
- package/dist/chunks/importer-xZ-3suY1.js.map +0 -1
- package/dist/chunks/json-elements-DKSqpNW1.js.map +0 -1
package/dist/graph-io.js
CHANGED
|
@@ -1,42 +1,48 @@
|
|
|
1
1
|
import { INVALID_INDEX, GraphFormatError, GraphBuilder } from "@graphty/graph-format";
|
|
2
2
|
import { GraphBuilder as GraphBuilder2, GraphFormatError as GraphFormatError2, INVALID_INDEX as INVALID_INDEX2 } from "@graphty/graph-format";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { Z as ImportReportBuilder, aj as isAbortError, ak as BAD_LINE_CODE, al as messageOf, p as plural, am as UNKNOWN_OPTION_CODE, E as EMPTY_INPUT_CODE, an as ImportError, ao as FETCH_CODE, a5 as STYLES_NOT_IMPORTED_CODE, V as agree, ap as EDGES_MERGED_CODE, aq as SELF_LOOPS_DROPPED_CODE, O as OPTION_IGNORED_CODE, ar as WEIGHT_NOT_FOUND_CODE } from "./chunks/format-GDmO6m6Q.js";
|
|
4
|
+
import { a2, L, J, B, ae, Y, a9, as, C, at, w, au, g, f, e, av, D, a, k, aw, i, o, j, x, ax, q, s, ay, az, ag, a3, H, I, aA, z, y, aB, t, u, aC, W, m, n, M, h, K, G, aD, af, aE, N, aF, F, a6, aG, P, ai, aa, A, R, aH, a4, S, Q, T, aI, b, a8, aJ, aK, aL, a1, ah, U, c, r, l, d, aM, aN, a7, ac, X, v, aO, $, a0, aP, ad, aQ } from "./chunks/format-GDmO6m6Q.js";
|
|
5
|
+
import { g as resolveImportOptions, j as reportSinkOptions, i as reportUnusedOptions, I as IdCoercer, l as DirectionResolver, P as LineReader, h as throwIfAborted, s as parseWeightText, Q as describe, f as chooseGraph, S as normalizeInput, U as foreignKind, V as lockReader, W as abortable } from "./chunks/export-D7IGzTG4.js";
|
|
6
|
+
import { X as X2, Y as Y2, L as L2, Z, _, $ as $2, R as R2, a0 as a02, a1 as a12, c as c2, a as a5, a2 as a22, a3 as a32, y as y2, d as d2, a4 as a42, a5 as a52, e as e2, a6 as a62, k as k2, a7 as a72, O, a8 as a82, a9 as a92, o as o2, aa as aa2, p, ab, ac as ac2, r as r2, G as G2, t as t2 } from "./chunks/export-D7IGzTG4.js";
|
|
7
|
+
import { T as TextCellWriter } from "./chunks/text-CgzMqHQb.js";
|
|
8
|
+
import { W as W2, i as i2, a as a10, p as p2 } from "./chunks/text-CgzMqHQb.js";
|
|
9
|
+
import { C as C2, c as c3, a as a11 } from "./chunks/children-CA4coBi0.js";
|
|
8
10
|
import { c as collectBytes } from "./chunks/writer-DxjgHwSe.js";
|
|
9
|
-
import { D as D2, d as
|
|
11
|
+
import { D as D2, d as d3, e as e3, j as j2, t as t3 } from "./chunks/writer-DxjgHwSe.js";
|
|
10
12
|
import { csvImporter, csvExporter } from "./csv.js";
|
|
11
13
|
import { CSV_CAPABILITIES, CSV_ISSUE, CSV_LOSS } from "./csv.js";
|
|
12
|
-
import { d as cxImporter, c as cxExporter } from "./chunks/importer-
|
|
13
|
-
import { C as C3, a as
|
|
14
|
-
import { c as cx2Exporter } from "./chunks/exporter-
|
|
15
|
-
import { C as C4, a as
|
|
16
|
-
import { c as cx2Importer } from "./chunks/importer-
|
|
17
|
-
import { C as C5 } from "./chunks/importer-
|
|
18
|
-
import { d as cysImporter, c as cysExporter } from "./chunks/importer-
|
|
19
|
-
import { C as C6, a as
|
|
20
|
-
import {
|
|
21
|
-
import { D as D3, a as
|
|
14
|
+
import { d as cxImporter, c as cxExporter } from "./chunks/importer-dwoYpSqb.js";
|
|
15
|
+
import { C as C3, a as a13, b as b2 } from "./chunks/importer-dwoYpSqb.js";
|
|
16
|
+
import { c as cx2Exporter } from "./chunks/exporter-KEPxYUXD.js";
|
|
17
|
+
import { C as C4, a as a14 } from "./chunks/exporter-KEPxYUXD.js";
|
|
18
|
+
import { c as cx2Importer } from "./chunks/importer-CdzeN6X4.js";
|
|
19
|
+
import { C as C5 } from "./chunks/importer-CdzeN6X4.js";
|
|
20
|
+
import { d as cysImporter, c as cysExporter } from "./chunks/importer-B7r2owVf.js";
|
|
21
|
+
import { C as C6, a as a15, b as b3 } from "./chunks/importer-B7r2owVf.js";
|
|
22
|
+
import { c as dotImporter, d as dotExporter } from "./chunks/importer-C2nzGhdV.js";
|
|
23
|
+
import { D as D3, a as a16, b as b4 } from "./chunks/importer-C2nzGhdV.js";
|
|
22
24
|
import { gexfImporter, gexfExporter } from "./gexf.js";
|
|
23
25
|
import { GEXF_1_2_CAPABILITIES, GEXF_ISSUE, GEXF_LOSS } from "./gexf.js";
|
|
24
|
-
import { gmlImporter, gmlExporter } from "./
|
|
25
|
-
import {
|
|
26
|
-
import { a as graphmlImporter, g as graphmlExporter } from "./chunks/importer-
|
|
27
|
-
import { r as rankFormats, S as SNIFF_HEAD_BYTES, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-
|
|
28
|
-
import { G as
|
|
26
|
+
import { p as prepareStyleExport, i as isKeptGraphtyProperty, g as gmlImporter, a as gmlExporter } from "./chunks/index-B9fdNpTA.js";
|
|
27
|
+
import { G as G3, b as b5, c as c4, d as d4 } from "./chunks/index-B9fdNpTA.js";
|
|
28
|
+
import { a as graphmlImporter, g as graphmlExporter } from "./chunks/importer-ChKNC_GN.js";
|
|
29
|
+
import { r as rankFormats, S as SNIFF_HEAD_BYTES, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-quPUCBiC.js";
|
|
30
|
+
import { G as G4, J as J2, a as a17, b as b6, d as d5, g as g2, h as h2, j as j3, f as f2, n as n2, s as s2, i as i3 } from "./chunks/exporter-quPUCBiC.js";
|
|
29
31
|
import { neo4jImporter, neo4jExporter } from "./neo4j.js";
|
|
30
32
|
import { ID_SPACE_COLUMN, LABELS_COLUMN, NEO4J_CAPABILITIES, NEO4J_ISSUE, NEO4J_LOSS, ORIGINAL_ID_COLUMN, TYPE_COLUMN, exportNeo4jFiles } from "./neo4j.js";
|
|
31
|
-
import { c as oboImporter, o as oboExporter } from "./chunks/exporter-
|
|
32
|
-
import { O, a as
|
|
33
|
-
import {
|
|
34
|
-
import { P as P2, a as
|
|
35
|
-
import { x as xgmmlExporter } from "./chunks/exporter-
|
|
36
|
-
import { x as xgmmlImporter } from "./chunks/importer-
|
|
37
|
-
import {
|
|
38
|
-
import { G as
|
|
39
|
-
import {
|
|
33
|
+
import { c as oboImporter, o as oboExporter } from "./chunks/exporter-ChPyhBOv.js";
|
|
34
|
+
import { O as O2, a as a18, b as b7 } from "./chunks/exporter-ChPyhBOv.js";
|
|
35
|
+
import { d as pajekImporter, p as pajekExporter } from "./chunks/importer-CbX2_rNF.js";
|
|
36
|
+
import { P as P2, a as a19, b as b8, c as c5 } from "./chunks/importer-CbX2_rNF.js";
|
|
37
|
+
import { x as xgmmlExporter } from "./chunks/exporter-BtnqYuuj.js";
|
|
38
|
+
import { x as xgmmlImporter } from "./chunks/importer-BFmOP96W.js";
|
|
39
|
+
import { e as extractStyles } from "./chunks/generic-BL06jrJf.js";
|
|
40
|
+
import { G as G5, a as a20 } from "./chunks/constants-BFUR_CtU.js";
|
|
41
|
+
import { G as G6 } from "./chunks/styles-yed-DAfcIkf7.js";
|
|
42
|
+
import { X as X3, a as a21 } from "./chunks/styles-_N-C8S-U.js";
|
|
43
|
+
import { M as M2, d as d6, c as c6, f as f3, h as h3, t as t4, x as x2 } from "./chunks/escape-B1rMftd9.js";
|
|
44
|
+
import { S as S2 } from "./chunks/block-JQiwViEt.js";
|
|
45
|
+
import { j as j4, a as a23 } from "./chunks/styles-Brt9JMfs.js";
|
|
40
46
|
const USED = /* @__PURE__ */ new Set(["ids", "defaultDirected", "weightFrom", "addMissingNodes"]);
|
|
41
47
|
function defineLineFormat(definition) {
|
|
42
48
|
const { format, extensions, mimeTypes = [], directed = false, comment = "#", sniff: sniff2, parseLine } = definition;
|
|
@@ -77,9 +83,9 @@ function defineLineFormat(definition) {
|
|
|
77
83
|
edge: (source, target, attributes2) => {
|
|
78
84
|
const raw = opts.weightFrom === null ? void 0 : attributes2?.[opts.weightFrom];
|
|
79
85
|
const weight = raw === null || raw === void 0 ? void 0 : parseWeightText(String(raw), report);
|
|
80
|
-
const [s3,
|
|
81
|
-
const added = new Set([s3,
|
|
82
|
-
const edge = edges.addEdge(s3,
|
|
86
|
+
const [s3, t5] = [ids.text(source), ids.text(target)];
|
|
87
|
+
const added = new Set([s3, t5].filter((id) => sink.indexOf(id) === INVALID_INDEX)).size;
|
|
88
|
+
const edge = edges.addEdge(s3, t5, kind, weight, { line });
|
|
83
89
|
report.counts.nodes += added;
|
|
84
90
|
report.counts.edges++;
|
|
85
91
|
write("edge", edge, attributes2);
|
|
@@ -174,18 +180,18 @@ function compareSnapshots(expected, actual, options = {}) {
|
|
|
174
180
|
const tolerance = options.tolerance ?? 0;
|
|
175
181
|
const ctx = {
|
|
176
182
|
options,
|
|
177
|
-
diff: (path,
|
|
183
|
+
diff: (path, e4, a24, message) => {
|
|
178
184
|
diffs.push({
|
|
179
185
|
path,
|
|
180
|
-
expected:
|
|
181
|
-
actual:
|
|
182
|
-
message: message ?? `${path}: expected ${show(
|
|
186
|
+
expected: e4,
|
|
187
|
+
actual: a24,
|
|
188
|
+
message: message ?? `${path}: expected ${show(e4)}, got ${show(a24)}`
|
|
183
189
|
});
|
|
184
190
|
if (diffs.length >= limit) {
|
|
185
191
|
throw new LimitReached();
|
|
186
192
|
}
|
|
187
193
|
},
|
|
188
|
-
same: (
|
|
194
|
+
same: (e4, a24) => valuesEqual(e4, a24, tolerance)
|
|
189
195
|
};
|
|
190
196
|
try {
|
|
191
197
|
compareGraphs(expected, actual, ctx);
|
|
@@ -241,9 +247,9 @@ function compareTopology(expected, actual, diff) {
|
|
|
241
247
|
}
|
|
242
248
|
const el = expected.edgeList();
|
|
243
249
|
const al = actual.edgeList();
|
|
244
|
-
for (let
|
|
245
|
-
if (el.src[
|
|
246
|
-
diff(`edge[${
|
|
250
|
+
for (let e4 = 0; e4 < expected.edgeCount; e4++) {
|
|
251
|
+
if (el.src[e4] !== al.src[e4] || el.dst[e4] !== al.dst[e4]) {
|
|
252
|
+
diff(`edge[${e4}]`, `${el.src[e4]}->${el.dst[e4]}`, `${al.src[e4]}->${al.dst[e4]}`);
|
|
247
253
|
}
|
|
248
254
|
}
|
|
249
255
|
}
|
|
@@ -270,23 +276,23 @@ function compareWeights(expected, actual, ctx) {
|
|
|
270
276
|
);
|
|
271
277
|
}
|
|
272
278
|
const ew = expected.edgeList().weights;
|
|
273
|
-
const
|
|
274
|
-
for (let
|
|
275
|
-
const ev = ew === null ? 1 : ew[
|
|
276
|
-
const
|
|
277
|
-
if (!ctx.same(ev,
|
|
278
|
-
ctx.diff(`weight[${
|
|
279
|
+
const aw2 = actual.edgeList().weights;
|
|
280
|
+
for (let e4 = 0; e4 < expected.edgeCount; e4++) {
|
|
281
|
+
const ev = ew === null ? 1 : ew[e4];
|
|
282
|
+
const av2 = aw2 === null ? 1 : aw2[e4];
|
|
283
|
+
if (!ctx.same(ev, av2)) {
|
|
284
|
+
ctx.diff(`weight[${e4}]`, ev, av2);
|
|
279
285
|
}
|
|
280
286
|
}
|
|
281
287
|
}
|
|
282
288
|
function compareExactWeights(edgeCount, expected, actual, ctx) {
|
|
283
|
-
for (let
|
|
284
|
-
const eSet = expected.isSet(
|
|
285
|
-
const aSet = actual.isSet(
|
|
289
|
+
for (let e4 = 0; e4 < edgeCount; e4++) {
|
|
290
|
+
const eSet = expected.isSet(e4);
|
|
291
|
+
const aSet = actual.isSet(e4);
|
|
286
292
|
if (ctx.options.weightExplicitness !== false && eSet !== aSet) {
|
|
287
|
-
ctx.diff(`weightExplicit[${
|
|
288
|
-
} else if (eSet && aSet && !ctx.same(expected.value(
|
|
289
|
-
ctx.diff(`weight[${
|
|
293
|
+
ctx.diff(`weightExplicit[${e4}]`, eSet, aSet);
|
|
294
|
+
} else if (eSet && aSet && !ctx.same(expected.value(e4), actual.value(e4))) {
|
|
295
|
+
ctx.diff(`weight[${e4}]`, expected.value(e4), actual.value(e4));
|
|
290
296
|
}
|
|
291
297
|
}
|
|
292
298
|
}
|
|
@@ -343,36 +349,36 @@ function compareColumn(path, column, other, ctx) {
|
|
|
343
349
|
ctx.diff(`${path}.length`, column.length, other.length);
|
|
344
350
|
return;
|
|
345
351
|
}
|
|
346
|
-
for (let
|
|
347
|
-
const eSet = column.isSet(
|
|
348
|
-
const aSet = other.isSet(
|
|
352
|
+
for (let r3 = 0; r3 < column.length; r3++) {
|
|
353
|
+
const eSet = column.isSet(r3);
|
|
354
|
+
const aSet = other.isSet(r3);
|
|
349
355
|
if (eSet !== aSet) {
|
|
350
|
-
ctx.diff(`${path}[${
|
|
356
|
+
ctx.diff(`${path}[${r3}]`, eSet ? column.value(r3) : void 0, aSet ? other.value(r3) : void 0);
|
|
351
357
|
} else if (eSet) {
|
|
352
|
-
const ev = cellValue(column,
|
|
353
|
-
const
|
|
354
|
-
if (!ctx.same(ev,
|
|
355
|
-
ctx.diff(`${path}[${
|
|
358
|
+
const ev = cellValue(column, r3);
|
|
359
|
+
const av2 = cellValue(other, r3);
|
|
360
|
+
if (!ctx.same(ev, av2)) {
|
|
361
|
+
ctx.diff(`${path}[${r3}]`, ev, av2);
|
|
356
362
|
}
|
|
357
363
|
}
|
|
358
364
|
}
|
|
359
365
|
}
|
|
360
366
|
function compareDeclaration(path, column, other, ctx) {
|
|
361
367
|
const { options, diff } = ctx;
|
|
362
|
-
const
|
|
363
|
-
const
|
|
368
|
+
const e4 = column.meta;
|
|
369
|
+
const a24 = other.meta;
|
|
364
370
|
if (options.dtypes !== false) {
|
|
365
371
|
for (const key of ["dtype", "itemDtype", "components"]) {
|
|
366
|
-
if (
|
|
367
|
-
diff(`${path}.${key}`,
|
|
372
|
+
if (e4[key] !== a24[key]) {
|
|
373
|
+
diff(`${path}.${key}`, e4[key], a24[key]);
|
|
368
374
|
}
|
|
369
375
|
}
|
|
370
376
|
}
|
|
371
|
-
if (options.roles !== false &&
|
|
372
|
-
diff(`${path}.role`,
|
|
377
|
+
if (options.roles !== false && e4.role !== a24.role) {
|
|
378
|
+
diff(`${path}.role`, e4.role, a24.role);
|
|
373
379
|
}
|
|
374
|
-
const eType =
|
|
375
|
-
const aType =
|
|
380
|
+
const eType = e4.origin?.type ?? null;
|
|
381
|
+
const aType = a24.origin?.type ?? null;
|
|
376
382
|
if (options.originType === true && eType !== aType) {
|
|
377
383
|
diff(`${path}.origin.type`, eType, aType);
|
|
378
384
|
}
|
|
@@ -389,38 +395,38 @@ function cellValue(column, row) {
|
|
|
389
395
|
}
|
|
390
396
|
}
|
|
391
397
|
}
|
|
392
|
-
function valuesEqual(
|
|
393
|
-
if (typeof
|
|
394
|
-
if (Object.is(
|
|
398
|
+
function valuesEqual(e4, a24, tolerance) {
|
|
399
|
+
if (typeof e4 === "number" && typeof a24 === "number") {
|
|
400
|
+
if (Object.is(e4, a24)) {
|
|
395
401
|
return true;
|
|
396
402
|
}
|
|
397
|
-
return Number.isFinite(
|
|
403
|
+
return Number.isFinite(e4) && Number.isFinite(a24) && Math.abs(e4 - a24) <= tolerance;
|
|
398
404
|
}
|
|
399
|
-
if (Array.isArray(
|
|
400
|
-
const ea = Array.from(
|
|
401
|
-
if (!(Array.isArray(
|
|
405
|
+
if (Array.isArray(e4) || ArrayBuffer.isView(e4)) {
|
|
406
|
+
const ea = Array.from(e4);
|
|
407
|
+
if (!(Array.isArray(a24) || ArrayBuffer.isView(a24))) {
|
|
402
408
|
return false;
|
|
403
409
|
}
|
|
404
|
-
const
|
|
405
|
-
return ea.length ===
|
|
410
|
+
const aa3 = Array.from(a24);
|
|
411
|
+
return ea.length === aa3.length && ea.every((v2, i4) => valuesEqual(v2, aa3[i4], tolerance));
|
|
406
412
|
}
|
|
407
|
-
if (typeof
|
|
408
|
-
const eo =
|
|
409
|
-
const ao =
|
|
413
|
+
if (typeof e4 === "object" && e4 !== null && typeof a24 === "object" && a24 !== null) {
|
|
414
|
+
const eo = e4;
|
|
415
|
+
const ao = a24;
|
|
410
416
|
const keys = Object.keys(eo);
|
|
411
417
|
if (keys.length !== Object.keys(ao).length) {
|
|
412
418
|
return false;
|
|
413
419
|
}
|
|
414
|
-
return keys.every((
|
|
420
|
+
return keys.every((k3) => Object.hasOwn(ao, k3) && valuesEqual(eo[k3], ao[k3], tolerance));
|
|
415
421
|
}
|
|
416
|
-
return Object.is(
|
|
422
|
+
return Object.is(e4, a24);
|
|
417
423
|
}
|
|
418
|
-
function typedEqual(
|
|
419
|
-
if (
|
|
424
|
+
function typedEqual(a24, b9) {
|
|
425
|
+
if (a24.length !== b9.length) {
|
|
420
426
|
return false;
|
|
421
427
|
}
|
|
422
|
-
for (let i4 = 0; i4 <
|
|
423
|
-
if (
|
|
428
|
+
for (let i4 = 0; i4 < a24.length; i4++) {
|
|
429
|
+
if (a24[i4] !== b9[i4]) {
|
|
424
430
|
return false;
|
|
425
431
|
}
|
|
426
432
|
}
|
|
@@ -439,7 +445,7 @@ function show(v2) {
|
|
|
439
445
|
}
|
|
440
446
|
}
|
|
441
447
|
function describeDiffs(diffs) {
|
|
442
|
-
return diffs.length === 0 ? "no differences" : diffs.map((
|
|
448
|
+
return diffs.length === 0 ? "no differences" : diffs.map((d7) => ` - ${d7.message}`).join("\n");
|
|
443
449
|
}
|
|
444
450
|
const TOO_MANY_EMPTY_CELLS_CODE = "E_TOO_MANY_EMPTY_CELLS";
|
|
445
451
|
const DEFAULT_MAX_EMPTY_CELLS = 2 ** 24;
|
|
@@ -591,6 +597,7 @@ const FUNCTION_OPTIONS = /* @__PURE__ */ new Set([
|
|
|
591
597
|
"sanitizeIds",
|
|
592
598
|
"selfLoops",
|
|
593
599
|
"signal",
|
|
600
|
+
"styles",
|
|
594
601
|
"weightDtype",
|
|
595
602
|
"weightFrom"
|
|
596
603
|
]);
|
|
@@ -600,7 +607,8 @@ const REGISTRY_KEYS = /* @__PURE__ */ new Set([
|
|
|
600
607
|
"mimeType",
|
|
601
608
|
"builder",
|
|
602
609
|
"freeze",
|
|
603
|
-
"maxEmptyCells"
|
|
610
|
+
"maxEmptyCells",
|
|
611
|
+
"styles"
|
|
604
612
|
]);
|
|
605
613
|
class FormatRegistry {
|
|
606
614
|
constructor() {
|
|
@@ -731,7 +739,7 @@ class FormatRegistry {
|
|
|
731
739
|
const { importer } = chosen;
|
|
732
740
|
if ((opts.graphIndex !== void 0 || opts.graphName !== void 0) && importer.importAll !== void 0 && importer.listGraphs === void 0) {
|
|
733
741
|
const all = await this.readAll(chosen, opts);
|
|
734
|
-
const names = all.map((
|
|
742
|
+
const names = all.map((r3) => r3.snapshot.meta.name);
|
|
735
743
|
return all[chooseGraph(names, opts, new ImportReportBuilder(importer.format, 0))];
|
|
736
744
|
}
|
|
737
745
|
let builder;
|
|
@@ -939,7 +947,38 @@ class FormatRegistry {
|
|
|
939
947
|
* @returns the encoded chunks
|
|
940
948
|
*/
|
|
941
949
|
exportGraph(snapshot, format, options) {
|
|
942
|
-
|
|
950
|
+
const styled = this.styled(snapshot, format, options);
|
|
951
|
+
if (styled === null) {
|
|
952
|
+
return this.exporter(format).export(snapshot, options);
|
|
953
|
+
}
|
|
954
|
+
if (styled.refusal !== null) {
|
|
955
|
+
return refuse(styled.refusal);
|
|
956
|
+
}
|
|
957
|
+
return styled.exporter.export(styled.snapshot, styled.options);
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* An export with styles worked out, or null when no styles were given (the export is then exactly as before).
|
|
961
|
+
* @param snapshot - the graph
|
|
962
|
+
* @param format - the format name
|
|
963
|
+
* @param options - the caller's options
|
|
964
|
+
* @returns the exporter, the snapshot and options to hand it, the style losses and any refusal
|
|
965
|
+
*/
|
|
966
|
+
styled(snapshot, format, options) {
|
|
967
|
+
const styles = options?.styles;
|
|
968
|
+
if (styles === void 0 || styles === null) {
|
|
969
|
+
return null;
|
|
970
|
+
}
|
|
971
|
+
const exporter = this.exporter(format);
|
|
972
|
+
const { styles: _given, ...rest } = options;
|
|
973
|
+
const prepared = prepareStyleExport(snapshot, exporter, styles, rest);
|
|
974
|
+
return {
|
|
975
|
+
exporter,
|
|
976
|
+
snapshot: prepared.snapshot,
|
|
977
|
+
options: prepared.input === null ? rest : { ...rest, styles: prepared.input },
|
|
978
|
+
plain: rest,
|
|
979
|
+
notes: prepared.notes,
|
|
980
|
+
refusal: prepared.refusal
|
|
981
|
+
};
|
|
943
982
|
}
|
|
944
983
|
/**
|
|
945
984
|
* Write a snapshot in a format, as one string.
|
|
@@ -949,7 +988,14 @@ class FormatRegistry {
|
|
|
949
988
|
* @returns the whole document
|
|
950
989
|
*/
|
|
951
990
|
async exportGraphToString(snapshot, format, options) {
|
|
952
|
-
|
|
991
|
+
const styled = this.styled(snapshot, format, options);
|
|
992
|
+
if (styled === null) {
|
|
993
|
+
return this.exporter(format).exportToString(snapshot, options);
|
|
994
|
+
}
|
|
995
|
+
if (styled.refusal !== null) {
|
|
996
|
+
throw refusalError(styled.refusal);
|
|
997
|
+
}
|
|
998
|
+
return styled.exporter.exportToString(styled.snapshot, styled.options);
|
|
953
999
|
}
|
|
954
1000
|
/**
|
|
955
1001
|
* Write a snapshot in a format as one buffer of UTF-8 bytes; see the top-level
|
|
@@ -975,7 +1021,7 @@ class FormatRegistry {
|
|
|
975
1021
|
for await (const chunk of this.exportGraph(snapshot, format, options)) {
|
|
976
1022
|
parts.push(chunk);
|
|
977
1023
|
}
|
|
978
|
-
const info = this.listFormats().find((
|
|
1024
|
+
const info = this.listFormats().find((f4) => f4.format === format);
|
|
979
1025
|
return new Blob(parts, { type: info?.mimeTypes[0] ?? "application/octet-stream" });
|
|
980
1026
|
}
|
|
981
1027
|
/**
|
|
@@ -986,7 +1032,22 @@ class FormatRegistry {
|
|
|
986
1032
|
* @returns the loss notes, empty when the export is exact
|
|
987
1033
|
*/
|
|
988
1034
|
checkExport(snapshot, format, options) {
|
|
989
|
-
const
|
|
1035
|
+
const styled = this.styled(snapshot, format, options);
|
|
1036
|
+
let notes;
|
|
1037
|
+
if (styled === null) {
|
|
1038
|
+
notes = this.exporter(format).check(snapshot, options);
|
|
1039
|
+
} else if (styled.refusal === null) {
|
|
1040
|
+
const key = (n3) => `${n3.code}\0${n3.style?.target ?? ""}\0${n3.style?.property ?? ""}`;
|
|
1041
|
+
const reported = new Set(styled.notes.filter((n3) => n3.style !== void 0).map(key));
|
|
1042
|
+
notes = [
|
|
1043
|
+
...styled.exporter.check(styled.snapshot, styled.options).filter(
|
|
1044
|
+
(n3) => n3.style === void 0 || !reported.has(key(n3)) && !isKeptGraphtyProperty(n3, styled.exporter)
|
|
1045
|
+
),
|
|
1046
|
+
...styled.notes
|
|
1047
|
+
];
|
|
1048
|
+
} else {
|
|
1049
|
+
notes = [...styled.exporter.check(snapshot, styled.plain), styled.refusal];
|
|
1050
|
+
}
|
|
990
1051
|
const unknown = this.unknownOptions(options);
|
|
991
1052
|
if (unknown.length === 0) {
|
|
992
1053
|
return notes;
|
|
@@ -1042,7 +1103,7 @@ class FormatRegistry {
|
|
|
1042
1103
|
}
|
|
1043
1104
|
const { filename, ...rest } = options;
|
|
1044
1105
|
const blob = await this.exportGraphToBlob(snapshot, format, rest);
|
|
1045
|
-
const extension = this.listFormats().find((
|
|
1106
|
+
const extension = this.listFormats().find((f4) => f4.format === format)?.extensions[0] ?? `.${format}`;
|
|
1046
1107
|
const href = URL.createObjectURL(blob);
|
|
1047
1108
|
const anchor = document.createElement("a");
|
|
1048
1109
|
anchor.href = href;
|
|
@@ -1067,7 +1128,7 @@ class FormatRegistry {
|
|
|
1067
1128
|
mimeTypes: importer?.mimeTypes ?? exporter?.mimeTypes ?? [],
|
|
1068
1129
|
canImport: importer !== void 0,
|
|
1069
1130
|
canExport: exporter !== void 0,
|
|
1070
|
-
capabilities: exporter
|
|
1131
|
+
capabilities: capabilitiesOf(exporter)
|
|
1071
1132
|
});
|
|
1072
1133
|
});
|
|
1073
1134
|
}
|
|
@@ -1200,16 +1261,25 @@ function result(chosen, builder, report, options) {
|
|
|
1200
1261
|
throw freezeFailure(err, report);
|
|
1201
1262
|
}
|
|
1202
1263
|
const { warnings } = chosen;
|
|
1264
|
+
const wanted = options.styles;
|
|
1265
|
+
let styles;
|
|
1266
|
+
if (wanted !== void 0 && wanted !== false) {
|
|
1267
|
+
styles = extractStyles(chosen.importer, frozen.snapshot, report, {
|
|
1268
|
+
signal: options.signal,
|
|
1269
|
+
toolDefaults: typeof wanted === "object" ? wanted.toolDefaults : void 0
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
const read = styles !== void 0 && chosen.importer.styles !== void 0 ? withoutStylesNotImported(report) : report;
|
|
1203
1273
|
const result2 = {
|
|
1204
1274
|
format: chosen.importer.format,
|
|
1205
1275
|
sniff: chosen.sniff,
|
|
1206
1276
|
snapshot: frozen.snapshot,
|
|
1207
1277
|
report: withFreezeWarnings(
|
|
1208
1278
|
weightNotFound(
|
|
1209
|
-
warnings.length === 0 ?
|
|
1210
|
-
...
|
|
1211
|
-
issues: Object.freeze([...warnings, ...
|
|
1212
|
-
warningCount:
|
|
1279
|
+
warnings.length === 0 ? read : Object.freeze({
|
|
1280
|
+
...read,
|
|
1281
|
+
issues: Object.freeze([...warnings, ...read.issues]),
|
|
1282
|
+
warningCount: read.warningCount + warnings.length
|
|
1213
1283
|
}),
|
|
1214
1284
|
frozen.snapshot,
|
|
1215
1285
|
options.weightFrom
|
|
@@ -1217,9 +1287,40 @@ function result(chosen, builder, report, options) {
|
|
|
1217
1287
|
frozen.report
|
|
1218
1288
|
)
|
|
1219
1289
|
};
|
|
1290
|
+
if (styles !== void 0) {
|
|
1291
|
+
Object.assign(result2, { styles });
|
|
1292
|
+
}
|
|
1220
1293
|
Object.defineProperty(result2, "freeze", { value: frozen.report, enumerable: false });
|
|
1221
1294
|
return Object.freeze(result2);
|
|
1222
1295
|
}
|
|
1296
|
+
function withoutStylesNotImported(report) {
|
|
1297
|
+
const issues = report.issues.filter((i4) => i4.code !== STYLES_NOT_IMPORTED_CODE);
|
|
1298
|
+
if (issues.length === report.issues.length) {
|
|
1299
|
+
return report;
|
|
1300
|
+
}
|
|
1301
|
+
return Object.freeze({
|
|
1302
|
+
...report,
|
|
1303
|
+
issues: Object.freeze(issues),
|
|
1304
|
+
warningCount: report.warningCount - (report.issues.length - issues.length)
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
function refusalError(note) {
|
|
1308
|
+
return new GraphFormatError("E_UNSUPPORTED", note.message, { code: note.code });
|
|
1309
|
+
}
|
|
1310
|
+
function refuse(note) {
|
|
1311
|
+
return {
|
|
1312
|
+
[Symbol.asyncIterator]: () => ({ next: () => Promise.reject(refusalError(note)) })
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
function capabilitiesOf(exporter) {
|
|
1316
|
+
if (exporter === void 0) {
|
|
1317
|
+
return null;
|
|
1318
|
+
}
|
|
1319
|
+
if (exporter.styles === void 0) {
|
|
1320
|
+
return exporter.capabilities;
|
|
1321
|
+
}
|
|
1322
|
+
return Object.freeze({ ...exporter.capabilities, styles: exporter.styles.capabilities });
|
|
1323
|
+
}
|
|
1223
1324
|
function unknownOptionText(name) {
|
|
1224
1325
|
return `option ${JSON.stringify(name)} is not an option of any format or of the load and save functions, so it has no effect; check its spelling`;
|
|
1225
1326
|
}
|
|
@@ -1339,10 +1440,10 @@ async function peekHead(input, bytes, signal) {
|
|
|
1339
1440
|
return { head: joinHead(buffered, bytes), input: replayed, close: () => replayed.close() };
|
|
1340
1441
|
}
|
|
1341
1442
|
function joinHead(chunks, bytes) {
|
|
1342
|
-
if (chunks.every((
|
|
1443
|
+
if (chunks.every((c7) => c7 instanceof Uint8Array)) {
|
|
1343
1444
|
const total = Math.min(
|
|
1344
1445
|
bytes,
|
|
1345
|
-
chunks.reduce((sum,
|
|
1446
|
+
chunks.reduce((sum, c7) => sum + c7.byteLength, 0)
|
|
1346
1447
|
);
|
|
1347
1448
|
const head = new Uint8Array(total);
|
|
1348
1449
|
let offset = 0;
|
|
@@ -1436,172 +1537,184 @@ function readerIterator(stream, signal) {
|
|
|
1436
1537
|
};
|
|
1437
1538
|
}
|
|
1438
1539
|
export {
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1540
|
+
a2 as AMBIGUOUS_GRAPH_NAME_CODE,
|
|
1541
|
+
L as ASPECT_ORDER_CODE,
|
|
1542
|
+
J as BAD_ASPECT_BLOCK_CODE,
|
|
1442
1543
|
B as BAD_DEFAULT_CODE,
|
|
1443
1544
|
BAD_LINE_CODE,
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1545
|
+
ae as BAD_OPTIONS_CODE,
|
|
1546
|
+
Y as BAD_VALUE_CODE,
|
|
1547
|
+
a9 as COLUMN_AS_PROPERTY_VALUE_CODE,
|
|
1548
|
+
as as COLUMN_DROPPED_CODE,
|
|
1448
1549
|
C as COLUMN_RENAMED_CODE,
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1550
|
+
at as COLUMN_RENAMED_LOSS_CODE,
|
|
1551
|
+
w as COLUMN_TYPE_CODE,
|
|
1552
|
+
au as CONTROL_CHARACTER_CODE,
|
|
1553
|
+
g as COUNT_HINT_CODE,
|
|
1554
|
+
f as COUNT_MISMATCH_CODE,
|
|
1454
1555
|
CSV_CAPABILITIES,
|
|
1455
1556
|
CSV_ISSUE,
|
|
1456
1557
|
CSV_LOSS,
|
|
1457
1558
|
C4 as CX2_CAPABILITIES,
|
|
1458
1559
|
C5 as CX2_ISSUE,
|
|
1459
|
-
|
|
1560
|
+
a14 as CX2_LOSS,
|
|
1460
1561
|
C3 as CX_CAPABILITIES,
|
|
1461
|
-
|
|
1462
|
-
|
|
1562
|
+
a13 as CX_ISSUE,
|
|
1563
|
+
b2 as CX_LOSS,
|
|
1463
1564
|
C6 as CYS_CAPABILITIES,
|
|
1464
|
-
|
|
1465
|
-
|
|
1565
|
+
a15 as CYS_ISSUE,
|
|
1566
|
+
b3 as CYS_LOSS,
|
|
1466
1567
|
C2 as ChildrenCsr,
|
|
1467
|
-
|
|
1568
|
+
e as DANGLING_REFERENCE_CODE,
|
|
1468
1569
|
D2 as DEFAULT_CHUNK_BYTES,
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1570
|
+
X2 as DEFAULT_ERROR_LIMIT,
|
|
1571
|
+
Y2 as DIRECTED_COLUMN,
|
|
1572
|
+
av as DIRECTION_DROPPED_CODE,
|
|
1472
1573
|
D as DIRECTION_FORCED_CODE,
|
|
1473
|
-
|
|
1574
|
+
a as DIRECTION_REFUSED_CODE,
|
|
1474
1575
|
D3 as DOT_ISSUE,
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
b4 as
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1576
|
+
a16 as DOT_LOSS,
|
|
1577
|
+
S2 as DOT_STYLE_BLOCK_ATTRIBUTE,
|
|
1578
|
+
b4 as DOT_STYLE_CAPABILITIES,
|
|
1579
|
+
k as DUPLICATE_ATTRIBUTE_CODE,
|
|
1580
|
+
aw as DUPLICATE_EDGE_CODE,
|
|
1581
|
+
i as DUPLICATE_EDGE_ID_CODE,
|
|
1582
|
+
o as DUPLICATE_KEY_CODE,
|
|
1583
|
+
j as DUPLICATE_NODE_CODE,
|
|
1481
1584
|
DirectionResolver,
|
|
1482
1585
|
EDGES_MERGED_CODE,
|
|
1483
|
-
|
|
1484
|
-
|
|
1586
|
+
x as ELEMENT_ISSUE,
|
|
1587
|
+
ax as EMPTY_COLUMN_DROPPED_CODE,
|
|
1485
1588
|
EMPTY_INPUT_CODE,
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1589
|
+
q as ENCODING_CONFLICT_CODE,
|
|
1590
|
+
s as ENCODING_FALLBACK_CODE,
|
|
1591
|
+
ay as EQUATION_AS_TEXT_CODE,
|
|
1489
1592
|
FETCH_CODE,
|
|
1490
|
-
|
|
1593
|
+
az as FOREIGN_FORMAT_CODE,
|
|
1491
1594
|
FormatRegistry,
|
|
1492
1595
|
GEXF_1_2_CAPABILITIES,
|
|
1493
1596
|
GEXF_ISSUE,
|
|
1494
1597
|
GEXF_LOSS,
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1598
|
+
j4 as GEXF_STYLE_CAPABILITIES,
|
|
1599
|
+
G3 as GML_ISSUE,
|
|
1600
|
+
b5 as GML_LOSS,
|
|
1601
|
+
c4 as GML_STYLE_BLOCK_KEY,
|
|
1602
|
+
d4 as GML_STYLE_CAPABILITIES,
|
|
1603
|
+
G5 as GRAPHML_ISSUE,
|
|
1604
|
+
a20 as GRAPHML_LOSS,
|
|
1605
|
+
G6 as GRAPHML_STYLE_CAPABILITIES,
|
|
1606
|
+
a23 as GRAPHTY_XML_NAMESPACE,
|
|
1607
|
+
ag as GRAPH_COLUMN_AS_METADATA_CODE,
|
|
1608
|
+
G4 as GRAPH_FORMATS,
|
|
1609
|
+
a3 as GRAPH_NOT_FOUND_CODE,
|
|
1502
1610
|
GraphBuilder2 as GraphBuilder,
|
|
1503
1611
|
GraphFormatError2 as GraphFormatError,
|
|
1504
1612
|
H as HYPEREDGE_CODE,
|
|
1505
1613
|
I as ID_MERGED_CODE,
|
|
1506
1614
|
ID_SPACE_COLUMN,
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1615
|
+
aA as ID_TEXT_COLLISION_CODE,
|
|
1616
|
+
z as ID_TEXT_TYPE_CODE,
|
|
1617
|
+
y as INPUT_ISSUE,
|
|
1618
|
+
aB as INTEGRAL_F64_CODE,
|
|
1619
|
+
t as INVALID_ENCODING_CODE,
|
|
1512
1620
|
INVALID_INDEX2 as INVALID_INDEX,
|
|
1513
|
-
|
|
1514
|
-
|
|
1621
|
+
u as INVALID_UTF8_CODE,
|
|
1622
|
+
aC as ISSUES_SUPPRESSED_CODE,
|
|
1515
1623
|
IdCoercer,
|
|
1516
1624
|
ImportError,
|
|
1517
1625
|
ImportReportBuilder,
|
|
1518
1626
|
J2 as JSON_DIALECTS,
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1627
|
+
a17 as JSON_ISSUE,
|
|
1628
|
+
b6 as JSON_LOSS,
|
|
1629
|
+
W as JSON_NONSTANDARD_NUMBER_CODE,
|
|
1522
1630
|
LABELS_COLUMN,
|
|
1523
|
-
|
|
1631
|
+
L2 as LOSS,
|
|
1524
1632
|
LineReader,
|
|
1525
|
-
|
|
1526
|
-
|
|
1633
|
+
M2 as MAX_XML_DEPTH,
|
|
1634
|
+
m as MISSING_ENDPOINT_CODE,
|
|
1635
|
+
n as MISSING_ID_CODE,
|
|
1527
1636
|
M as MIXED_DIRECTION_CODE,
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1637
|
+
h as MULTIPLE_GRAPHS_CODE,
|
|
1638
|
+
K as MULTI_ASPECT_FRAGMENT_CODE,
|
|
1639
|
+
G as MUTUAL_AS_UNDIRECTED_CODE,
|
|
1640
|
+
Z as MUTUAL_COLUMN,
|
|
1641
|
+
aD as MUTUAL_EXPANDED_CODE,
|
|
1533
1642
|
NEO4J_CAPABILITIES,
|
|
1534
1643
|
NEO4J_ISSUE,
|
|
1535
1644
|
NEO4J_LOSS,
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1645
|
+
af as NODE_ORDER_CODE,
|
|
1646
|
+
aE as NONFINITE_AS_NULL_CODE,
|
|
1647
|
+
_ as NO_CAPABILITIES,
|
|
1539
1648
|
N as NO_GRAPH_CODE,
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1649
|
+
O2 as OBO_CAPABILITIES,
|
|
1650
|
+
a18 as OBO_ISSUE,
|
|
1651
|
+
b7 as OBO_LOSS,
|
|
1652
|
+
aF as OPTIONS_GAINED_CODE,
|
|
1544
1653
|
OPTION_IGNORED_CODE,
|
|
1545
1654
|
ORIGINAL_ID_COLUMN,
|
|
1546
|
-
|
|
1655
|
+
$2 as PAIR_COLUMN,
|
|
1547
1656
|
P2 as PAJEK_ISSUE,
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1657
|
+
a19 as PAJEK_LOSS,
|
|
1658
|
+
b8 as PAJEK_STYLE_CAPABILITIES,
|
|
1659
|
+
c5 as PAJEK_STYLE_COMMENT,
|
|
1660
|
+
F as PARENTS_DROPPED_CODE,
|
|
1661
|
+
a6 as PARENT_CYCLE_CODE,
|
|
1662
|
+
aG as PARSE_ERROR_CODE,
|
|
1552
1663
|
P as PRECISION_CODE,
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1664
|
+
ai as RELATION_ASSUMED_CODE,
|
|
1665
|
+
R2 as RENAMED_CODE,
|
|
1666
|
+
aa as ROLE_ASSUMED_CODE,
|
|
1667
|
+
A as ROLE_DROPPED_CODE,
|
|
1557
1668
|
R as ROLE_TAKEN_CODE,
|
|
1558
1669
|
SELF_LOOPS_DROPPED_CODE,
|
|
1559
|
-
|
|
1560
|
-
|
|
1670
|
+
aH as SELF_LOOP_CODE,
|
|
1671
|
+
a4 as SINGLE_OBJECT_ASPECT_CODE,
|
|
1561
1672
|
S as SINK_OPTION_CODE,
|
|
1562
1673
|
SNIFF_FAILED_CODE,
|
|
1563
1674
|
SNIFF_HEAD_BYTES,
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1675
|
+
Q as STATUS_FAILED_CODE,
|
|
1676
|
+
T as STATUS_WARNING_CODE,
|
|
1677
|
+
aI as STORAGE_CLASS_CODE,
|
|
1678
|
+
b as STRAY_TEXT_CODE,
|
|
1679
|
+
STYLES_NOT_IMPORTED_CODE,
|
|
1680
|
+
a8 as SYNTAX_CODE,
|
|
1681
|
+
aJ as TEMPORAL_DROPPED_CODE,
|
|
1682
|
+
aK as TEMPORAL_TEXT_DROPPED_CODE,
|
|
1683
|
+
aL as TEXT_INFERRED_CODE,
|
|
1684
|
+
a1 as TOO_LARGE_CODE,
|
|
1685
|
+
ah as TYPEDEF_NODES_CODE,
|
|
1575
1686
|
TYPE_COLUMN,
|
|
1576
1687
|
TextCellWriter,
|
|
1577
1688
|
U as UNKNOWN_ATTR_TYPE_CODE,
|
|
1578
|
-
|
|
1579
|
-
|
|
1689
|
+
c as UNKNOWN_ELEMENT_CODE,
|
|
1690
|
+
r as UNKNOWN_ENCODING_CODE,
|
|
1580
1691
|
UNKNOWN_FORMAT_CODE,
|
|
1581
1692
|
UNKNOWN_OPTION_CODE,
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1693
|
+
l as UNKNOWN_PARENT_CODE,
|
|
1694
|
+
a02 as UNKNOWN_TYPE_CODE,
|
|
1695
|
+
d as UNKNOWN_XML_ATTRIBUTE_CODE,
|
|
1696
|
+
aM as WEIGHTS_DROPPED_CODE,
|
|
1697
|
+
aN as WEIGHT_KEY_CLASH_CODE,
|
|
1587
1698
|
WEIGHT_NOT_FOUND_CODE,
|
|
1588
|
-
|
|
1699
|
+
a7 as WIDENED_CODE,
|
|
1589
1700
|
W2 as WIDENING_UNSUPPORTED_CODE,
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
X as
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1701
|
+
X3 as XGMML_ISSUE,
|
|
1702
|
+
a21 as XGMML_LOSS,
|
|
1703
|
+
ac as XML_ILLEGAL_CHAR_CODE,
|
|
1704
|
+
X as XML_NESTING_CODE,
|
|
1705
|
+
v as XML_SYNTAX_CODE,
|
|
1706
|
+
d6 as XmlNestingError,
|
|
1707
|
+
c6 as XmlSyntaxError,
|
|
1708
|
+
f3 as XmlTokenizer,
|
|
1709
|
+
a12 as canonicalId,
|
|
1710
|
+
c2 as capabilities,
|
|
1711
|
+
a5 as checkCapabilities,
|
|
1599
1712
|
checkExport,
|
|
1600
|
-
|
|
1601
|
-
|
|
1713
|
+
c3 as childrenCsr,
|
|
1714
|
+
a11 as childrenFromColumn,
|
|
1602
1715
|
chooseGraph,
|
|
1603
|
-
|
|
1604
|
-
|
|
1716
|
+
a22 as coerceId,
|
|
1717
|
+
a32 as coerceIdText,
|
|
1605
1718
|
collectBytes,
|
|
1606
1719
|
compareSnapshots,
|
|
1607
1720
|
createRegistry,
|
|
@@ -1613,36 +1726,36 @@ export {
|
|
|
1613
1726
|
cxImporter,
|
|
1614
1727
|
cysExporter,
|
|
1615
1728
|
cysImporter,
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1729
|
+
y2 as declareCompanion,
|
|
1730
|
+
d2 as declareResolved,
|
|
1731
|
+
d3 as decodeChunks,
|
|
1732
|
+
a42 as decodeEntryName,
|
|
1620
1733
|
defineLineFormat,
|
|
1621
1734
|
describeDiffs,
|
|
1622
|
-
|
|
1735
|
+
d5 as dialectCapabilities,
|
|
1623
1736
|
dotExporter,
|
|
1624
1737
|
dotImporter,
|
|
1625
1738
|
downloadGraph,
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1739
|
+
a52 as edgeWeights,
|
|
1740
|
+
e3 as encodeChunks,
|
|
1741
|
+
e2 as explicitWeights,
|
|
1629
1742
|
exportGraph,
|
|
1630
1743
|
exportGraphToBlob,
|
|
1631
1744
|
exportGraphToBytes,
|
|
1632
1745
|
exportGraphToString,
|
|
1633
1746
|
exportNeo4jFiles,
|
|
1634
1747
|
g2 as extensionOf,
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1748
|
+
a62 as forDecodedText,
|
|
1749
|
+
aO as formatDecimal,
|
|
1750
|
+
$ as formatF32,
|
|
1751
|
+
a0 as formatF64,
|
|
1752
|
+
aP as formatGmlReal,
|
|
1753
|
+
ad as formatInteger,
|
|
1641
1754
|
gexfExporter,
|
|
1642
1755
|
gexfImporter,
|
|
1643
1756
|
gmlExporter,
|
|
1644
1757
|
gmlImporter,
|
|
1645
|
-
|
|
1758
|
+
k2 as graphChosen,
|
|
1646
1759
|
graphmlExporter,
|
|
1647
1760
|
graphmlImporter,
|
|
1648
1761
|
h3 as hasIllegalXmlChar,
|
|
@@ -1650,23 +1763,24 @@ export {
|
|
|
1650
1763
|
importAllGraphs,
|
|
1651
1764
|
importGraph,
|
|
1652
1765
|
i2 as inferTextDtype,
|
|
1653
|
-
|
|
1766
|
+
a72 as inputLength,
|
|
1654
1767
|
isAbortError,
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1768
|
+
O as isCanonicalIntegerText,
|
|
1769
|
+
a82 as isImportInput,
|
|
1770
|
+
a92 as isNmtoken,
|
|
1771
|
+
a10 as isNumericText,
|
|
1772
|
+
o2 as isWeightField,
|
|
1660
1773
|
j2 as joinText,
|
|
1661
1774
|
j3 as jsonCapabilities,
|
|
1662
1775
|
jsonExporter,
|
|
1663
1776
|
jsonImporter,
|
|
1664
1777
|
f2 as jsonShapeOf,
|
|
1778
|
+
aQ as keptForStyles,
|
|
1665
1779
|
listFormats,
|
|
1666
1780
|
listGraphs,
|
|
1667
1781
|
loadFromFile,
|
|
1668
1782
|
loadFromUrl,
|
|
1669
|
-
|
|
1783
|
+
aa2 as mangleNmtoken,
|
|
1670
1784
|
neo4jExporter,
|
|
1671
1785
|
neo4jImporter,
|
|
1672
1786
|
n2 as normalizeMimeType,
|
|
@@ -1678,21 +1792,21 @@ export {
|
|
|
1678
1792
|
p2 as parseTextCell,
|
|
1679
1793
|
parseWeightText,
|
|
1680
1794
|
rankFormats,
|
|
1681
|
-
|
|
1682
|
-
|
|
1795
|
+
ab as readText,
|
|
1796
|
+
ac2 as refusedSave,
|
|
1683
1797
|
registry,
|
|
1684
1798
|
reportSinkOptions,
|
|
1685
1799
|
reportUnusedOptions,
|
|
1686
|
-
|
|
1800
|
+
r2 as resolveExportOptions,
|
|
1687
1801
|
resolveImportOptions,
|
|
1688
|
-
|
|
1802
|
+
G2 as sanitizeIds,
|
|
1689
1803
|
sniff,
|
|
1690
1804
|
s2 as sniffFormat,
|
|
1691
1805
|
i3 as sniffJsonDialectHead,
|
|
1692
|
-
|
|
1806
|
+
t2 as textChunks,
|
|
1693
1807
|
throwIfAborted,
|
|
1694
|
-
|
|
1695
|
-
|
|
1808
|
+
t3 as toReadableStream,
|
|
1809
|
+
t4 as tokenizeXml,
|
|
1696
1810
|
xgmmlExporter,
|
|
1697
1811
|
xgmmlImporter,
|
|
1698
1812
|
x2 as xmlIllegalTextNotes
|