@graphty/graph-io 0.3.40 → 0.3.42
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/README.md +2 -0
- package/dist/chunks/{children-CL3Cy0ez.js → children-CA4coBi0.js} +36 -27
- package/dist/chunks/children-CA4coBi0.js.map +1 -0
- package/dist/chunks/{choose-CS3fvGT1.js → choose-DvpbdRuz.js} +2 -2
- package/dist/chunks/{choose-CS3fvGT1.js.map → choose-DvpbdRuz.js.map} +1 -1
- package/dist/chunks/{constants-DqKZT6cH.js → constants-fT3E8JYY.js} +2 -2
- package/dist/chunks/{constants-DqKZT6cH.js.map → constants-fT3E8JYY.js.map} +1 -1
- package/dist/chunks/{escape-BJRLd3vJ.js → escape-B62ZGM_a.js} +2 -2
- package/dist/chunks/{escape-BJRLd3vJ.js.map → escape-B62ZGM_a.js.map} +1 -1
- package/dist/chunks/{export-B-aVCwyG.js → export-rKLeGQMo.js} +404 -243
- package/dist/chunks/export-rKLeGQMo.js.map +1 -0
- package/dist/chunks/{exporter-6ocL_9x_.js → exporter-8hLNemFk.js} +4 -4
- package/dist/chunks/{exporter-6ocL_9x_.js.map → exporter-8hLNemFk.js.map} +1 -1
- package/dist/chunks/{exporter-BVXnV9-9.js → exporter-BWwEuOPT.js} +29 -17
- package/dist/chunks/exporter-BWwEuOPT.js.map +1 -0
- package/dist/chunks/{exporter-Bcp-l4Bo.js → exporter-CpRyHZ3H.js} +574 -475
- package/dist/chunks/exporter-CpRyHZ3H.js.map +1 -0
- package/dist/chunks/{exporter-SFYkDzD0.js → exporter-yLxKBvLE.js} +23 -20
- package/dist/chunks/{exporter-SFYkDzD0.js.map → exporter-yLxKBvLE.js.map} +1 -1
- package/dist/chunks/{importer-DcKB97kW.js → importer-BbNb7eNg.js} +111 -71
- package/dist/chunks/importer-BbNb7eNg.js.map +1 -0
- package/dist/chunks/{importer-D_srHyj6.js → importer-C98dpSH4.js} +5 -5
- package/dist/chunks/{importer-D_srHyj6.js.map → importer-C98dpSH4.js.map} +1 -1
- package/dist/chunks/{importer-BJlGAOht.js → importer-D794XUTe.js} +3 -3
- package/dist/chunks/{importer-BJlGAOht.js.map → importer-D794XUTe.js.map} +1 -1
- package/dist/chunks/{importer-AjwOJrn2.js → importer-Dz7tI8Sa.js} +202 -181
- package/dist/chunks/importer-Dz7tI8Sa.js.map +1 -0
- package/dist/chunks/{importer-DEp_fYjf.js → importer-Ht7LNg8L.js} +92 -64
- package/dist/chunks/importer-Ht7LNg8L.js.map +1 -0
- package/dist/chunks/{importer-CPqnIY8m.js → importer-WrGRZb0N.js} +42 -29
- package/dist/chunks/importer-WrGRZb0N.js.map +1 -0
- package/dist/chunks/{importer-BpuS3J8C.js → importer-xZ-3suY1.js} +74 -61
- package/dist/chunks/importer-xZ-3suY1.js.map +1 -0
- package/dist/chunks/{json-elements-DpO6AXIc.js → json-elements-DKSqpNW1.js} +3 -3
- package/dist/chunks/{json-elements-DpO6AXIc.js.map → json-elements-DKSqpNW1.js.map} +1 -1
- package/dist/chunks/{ontology-export-50L9DOV4.js → ontology-export-CtRXjg_i.js} +2 -2
- package/dist/chunks/{ontology-export-50L9DOV4.js.map → ontology-export-CtRXjg_i.js.map} +1 -1
- package/dist/chunks/{records-r3SFHz11.js → records-Cu4bxYOm.js} +69 -36
- package/dist/chunks/records-Cu4bxYOm.js.map +1 -0
- package/dist/chunks/{text-Bjfa1xYL.js → text-DHOJXnED.js} +20 -11
- package/dist/chunks/text-DHOJXnED.js.map +1 -0
- package/dist/csv.js +323 -241
- 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 +1 -1
- package/dist/gexf.js +195 -97
- package/dist/gexf.js.map +1 -1
- package/dist/gml.js +170 -149
- package/dist/gml.js.map +1 -1
- package/dist/graph-io.js +27 -27
- package/dist/graphml.js +2 -2
- package/dist/json.js +1 -1
- package/dist/neo4j.js +103 -65
- package/dist/neo4j.js.map +1 -1
- package/dist/obo.js +1 -1
- package/dist/pajek.js +1 -1
- package/dist/src/children.d.ts.map +1 -1
- package/dist/src/children.js +50 -27
- package/dist/src/children.js.map +1 -1
- package/dist/src/common/attributes.d.ts.map +1 -1
- package/dist/src/common/attributes.js +86 -42
- package/dist/src/common/attributes.js.map +1 -1
- package/dist/src/common/input.d.ts.map +1 -1
- package/dist/src/common/input.js +358 -184
- package/dist/src/common/input.js.map +1 -1
- package/dist/src/common/lists.js +30 -15
- package/dist/src/common/lists.js.map +1 -1
- package/dist/src/common/text.d.ts +7 -0
- package/dist/src/common/text.d.ts.map +1 -1
- package/dist/src/common/text.js +15 -7
- package/dist/src/common/text.js.map +1 -1
- package/dist/src/common/zip.d.ts.map +1 -1
- package/dist/src/common/zip.js +36 -19
- package/dist/src/common/zip.js.map +1 -1
- package/dist/src/formats/csv/exporter.d.ts.map +1 -1
- package/dist/src/formats/csv/exporter.js +288 -146
- package/dist/src/formats/csv/exporter.js.map +1 -1
- package/dist/src/formats/csv/importer.d.ts.map +1 -1
- package/dist/src/formats/csv/importer.js +129 -80
- package/dist/src/formats/csv/importer.js.map +1 -1
- package/dist/src/formats/csv/records.d.ts.map +1 -1
- package/dist/src/formats/csv/records.js +78 -36
- package/dist/src/formats/csv/records.js.map +1 -1
- package/dist/src/formats/cys/tables.d.ts.map +1 -1
- package/dist/src/formats/cys/tables.js +11 -8
- package/dist/src/formats/cys/tables.js.map +1 -1
- package/dist/src/formats/dot/tokenizer.d.ts +39 -0
- package/dist/src/formats/dot/tokenizer.d.ts.map +1 -1
- package/dist/src/formats/dot/tokenizer.js +112 -66
- package/dist/src/formats/dot/tokenizer.js.map +1 -1
- package/dist/src/formats/gexf/exporter.d.ts.map +1 -1
- package/dist/src/formats/gexf/exporter.js +65 -37
- package/dist/src/formats/gexf/exporter.js.map +1 -1
- package/dist/src/formats/gexf/importer.d.ts.map +1 -1
- package/dist/src/formats/gexf/importer.js +138 -50
- package/dist/src/formats/gexf/importer.js.map +1 -1
- package/dist/src/formats/gml/exporter.d.ts.map +1 -1
- package/dist/src/formats/gml/exporter.js +51 -35
- 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 +103 -58
- package/dist/src/formats/gml/importer.js.map +1 -1
- package/dist/src/formats/gml/syntax.d.ts.map +1 -1
- package/dist/src/formats/gml/syntax.js +17 -8
- package/dist/src/formats/gml/syntax.js.map +1 -1
- package/dist/src/formats/graphml/exporter.d.ts.map +1 -1
- package/dist/src/formats/graphml/exporter.js +34 -24
- package/dist/src/formats/graphml/exporter.js.map +1 -1
- package/dist/src/formats/graphml/importer.d.ts.map +1 -1
- package/dist/src/formats/graphml/importer.js +17 -13
- package/dist/src/formats/graphml/importer.js.map +1 -1
- package/dist/src/formats/graphml/tree.js +23 -14
- package/dist/src/formats/graphml/tree.js.map +1 -1
- package/dist/src/formats/graphml/yfiles.d.ts.map +1 -1
- package/dist/src/formats/graphml/yfiles.js +22 -10
- package/dist/src/formats/graphml/yfiles.js.map +1 -1
- package/dist/src/formats/json/dialect.d.ts.map +1 -1
- package/dist/src/formats/json/dialect.js +54 -20
- package/dist/src/formats/json/dialect.js.map +1 -1
- package/dist/src/formats/json/exporter.d.ts.map +1 -1
- package/dist/src/formats/json/exporter.js +38 -21
- package/dist/src/formats/json/exporter.js.map +1 -1
- package/dist/src/formats/json/importer.d.ts.map +1 -1
- package/dist/src/formats/json/importer.js +536 -343
- package/dist/src/formats/json/importer.js.map +1 -1
- package/dist/src/formats/json/obographs.js +29 -17
- package/dist/src/formats/json/obographs.js.map +1 -1
- package/dist/src/formats/neo4j/exporter.d.ts.map +1 -1
- package/dist/src/formats/neo4j/exporter.js +73 -43
- package/dist/src/formats/neo4j/exporter.js.map +1 -1
- package/dist/src/formats/neo4j/header.d.ts.map +1 -1
- package/dist/src/formats/neo4j/header.js +37 -16
- package/dist/src/formats/neo4j/header.js.map +1 -1
- package/dist/src/formats/neo4j/importer.d.ts.map +1 -1
- package/dist/src/formats/neo4j/importer.js +21 -11
- package/dist/src/formats/neo4j/importer.js.map +1 -1
- package/dist/src/formats/obo/exporter.d.ts.map +1 -1
- package/dist/src/formats/obo/exporter.js +18 -7
- package/dist/src/formats/obo/exporter.js.map +1 -1
- package/dist/src/formats/pajek/exporter.d.ts.map +1 -1
- package/dist/src/formats/pajek/exporter.js +142 -73
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/pajek/importer.d.ts.map +1 -1
- package/dist/src/formats/pajek/importer.js +26 -15
- package/dist/src/formats/pajek/importer.js.map +1 -1
- package/dist/src/formats/pajek/syntax.d.ts.map +1 -1
- package/dist/src/formats/pajek/syntax.js +85 -58
- package/dist/src/formats/pajek/syntax.js.map +1 -1
- package/dist/src/formats/xgmml/emit.d.ts +7 -0
- package/dist/src/formats/xgmml/emit.d.ts.map +1 -1
- package/dist/src/formats/xgmml/emit.js +79 -40
- package/dist/src/formats/xgmml/emit.js.map +1 -1
- package/dist/src/formats/xgmml/exporter.d.ts.map +1 -1
- package/dist/src/formats/xgmml/exporter.js +38 -12
- package/dist/src/formats/xgmml/exporter.js.map +1 -1
- package/dist/src/formats/xgmml/importer.d.ts.map +1 -1
- package/dist/src/formats/xgmml/importer.js +38 -18
- package/dist/src/formats/xgmml/importer.js.map +1 -1
- package/dist/src/sniff.js +109 -57
- package/dist/src/sniff.js.map +1 -1
- package/dist/xgmml.js +2 -2
- package/package.json +2 -2
- package/src/children.ts +54 -27
- package/src/common/attributes.ts +118 -49
- package/src/common/input.ts +439 -197
- package/src/common/lists.ts +29 -15
- package/src/common/text.ts +24 -15
- package/src/common/zip.ts +47 -18
- package/src/formats/csv/exporter.ts +377 -175
- package/src/formats/csv/importer.ts +155 -84
- package/src/formats/csv/records.ts +90 -35
- package/src/formats/cys/tables.ts +11 -10
- package/src/formats/dot/tokenizer.ts +118 -68
- package/src/formats/gexf/exporter.ts +67 -36
- package/src/formats/gexf/importer.ts +173 -63
- package/src/formats/gml/exporter.ts +78 -82
- package/src/formats/gml/importer.ts +119 -68
- package/src/formats/gml/syntax.ts +18 -8
- package/src/formats/graphml/exporter.ts +44 -24
- package/src/formats/graphml/importer.ts +18 -11
- package/src/formats/graphml/tree.ts +22 -12
- package/src/formats/graphml/yfiles.ts +23 -10
- package/src/formats/json/dialect.ts +61 -22
- package/src/formats/json/exporter.ts +40 -21
- package/src/formats/json/importer.ts +701 -385
- package/src/formats/json/obographs.ts +35 -15
- package/src/formats/neo4j/exporter.ts +79 -41
- package/src/formats/neo4j/header.ts +50 -16
- package/src/formats/neo4j/importer.ts +21 -10
- package/src/formats/obo/exporter.ts +34 -17
- package/src/formats/pajek/exporter.ts +180 -117
- package/src/formats/pajek/importer.ts +27 -15
- package/src/formats/pajek/syntax.ts +99 -58
- package/src/formats/xgmml/emit.ts +88 -40
- package/src/formats/xgmml/exporter.ts +40 -12
- package/src/formats/xgmml/importer.ts +45 -23
- package/src/sniff.ts +115 -59
- package/dist/chunks/children-CL3Cy0ez.js.map +0 -1
- package/dist/chunks/export-B-aVCwyG.js.map +0 -1
- package/dist/chunks/exporter-BVXnV9-9.js.map +0 -1
- package/dist/chunks/exporter-Bcp-l4Bo.js.map +0 -1
- package/dist/chunks/importer-AjwOJrn2.js.map +0 -1
- package/dist/chunks/importer-BpuS3J8C.js.map +0 -1
- package/dist/chunks/importer-CPqnIY8m.js.map +0 -1
- package/dist/chunks/importer-DEp_fYjf.js.map +0 -1
- package/dist/chunks/importer-DcKB97kW.js.map +0 -1
- package/dist/chunks/records-r3SFHz11.js.map +0 -1
- package/dist/chunks/text-Bjfa1xYL.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { GraphFormatError, INVALID_INDEX } from "@graphty/graph-format";
|
|
2
|
-
import { ae as AMBIGUOUS_GRAPH_NAME_CODE, af as GRAPH_NOT_FOUND_CODE, l as MULTIPLE_GRAPHS_CODE, N as NO_GRAPH_CODE, E as EMPTY_INPUT_CODE, i as DANGLING_REFERENCE_CODE, ah as STYLES_NOT_IMPORTED_CODE, ad as TOO_LARGE_CODE, w as UNKNOWN_ENCODING_CODE, x as ENCODING_FALLBACK_CODE, F as ELEMENT_ISSUE, G as INPUT_ISSUE, bs as decodeEntryName, am as throwIfAborted, c as capabilities, L as LOSS, r as resolveExportOptions, a as checkCapabilities, p as pairFolding, b as plural, $ as agree, e as explicitWeights, aF as formatDecimal, ab as formatF64, aa as formatF32, ac as DictHeuristic, b$ as readBytes, a8 as ImportReportBuilder, a4 as textChunks, aS as ImportError, ao as reportSinkOptions, an as reportUnusedOptions, a7 as chooseGraph, ap as graphChosen, al as resolveImportOptions, c0 as elementCount, ar as IdCoercer, a1 as declareResolved } from "./export-
|
|
3
|
-
import { h as hasIllegalXmlChar, e as escapeXmlAttribute, o as quoteCsvCell, t as tokenizeXml, f as xmlDeclaredEncoding, X as XmlSyntaxError } from "./escape-
|
|
4
|
-
import { O as ORIGINAL_ID_ATTRIBUTE } from "./constants-
|
|
5
|
-
import { X as XGMML_ISSUE, Z as Z_COLUMN, b as XLINK_NAMESPACE, C as CY_NAMESPACE, c as XGMML_NAMESPACE, G as GRAPHICS_COLUMN, E as EDGE_ID_COLUMN, P as POSITION_COLUMN,
|
|
6
|
-
import { C as CsvRecordReader } from "./records-
|
|
2
|
+
import { ae as AMBIGUOUS_GRAPH_NAME_CODE, af as GRAPH_NOT_FOUND_CODE, l as MULTIPLE_GRAPHS_CODE, N as NO_GRAPH_CODE, E as EMPTY_INPUT_CODE, i as DANGLING_REFERENCE_CODE, ah as STYLES_NOT_IMPORTED_CODE, ad as TOO_LARGE_CODE, w as UNKNOWN_ENCODING_CODE, x as ENCODING_FALLBACK_CODE, F as ELEMENT_ISSUE, G as INPUT_ISSUE, bs as decodeEntryName, am as throwIfAborted, c as capabilities, L as LOSS, r as resolveExportOptions, a as checkCapabilities, p as pairFolding, b as plural, $ as agree, e as explicitWeights, aF as formatDecimal, ab as formatF64, aa as formatF32, ac as DictHeuristic, b$ as readBytes, a8 as ImportReportBuilder, a4 as textChunks, aS as ImportError, ao as reportSinkOptions, an as reportUnusedOptions, a7 as chooseGraph, ap as graphChosen, al as resolveImportOptions, c0 as elementCount, ar as IdCoercer, a1 as declareResolved } from "./export-rKLeGQMo.js";
|
|
3
|
+
import { h as hasIllegalXmlChar, e as escapeXmlAttribute, o as quoteCsvCell, t as tokenizeXml, f as xmlDeclaredEncoding, X as XmlSyntaxError } from "./escape-B62ZGM_a.js";
|
|
4
|
+
import { O as ORIGINAL_ID_ATTRIBUTE } from "./constants-fT3E8JYY.js";
|
|
5
|
+
import { X as XGMML_ISSUE, Z as Z_COLUMN, b as XLINK_NAMESPACE, C as CY_NAMESPACE, c as XGMML_NAMESPACE, G as GRAPHICS_COLUMN, E as EDGE_ID_COLUMN, P as POSITION_COLUMN, e as PARENT_COLUMN, f as PARENTS_COLUMN, S as SUBGRAPH_COLUMN, N as NESTED_NETWORK_COLUMN, g as NETWORK_POINTER_COLUMN, h as NETWORKS_COLUMN, r as resolveSettings, m as membersOf, k as XgmmlEmitter, l as isCyTrue, p as parseXgmml, n as dialectOf, i as XGMML_ORIGIN_NAMESPACE, o as parseCoordinate } from "./importer-Ht7LNg8L.js";
|
|
6
|
+
import { C as CsvRecordReader } from "./records-Cu4bxYOm.js";
|
|
7
7
|
const FORMAT = "cys";
|
|
8
8
|
const EXTENSIONS = Object.freeze([".cys"]);
|
|
9
9
|
const MIME_TYPES = Object.freeze(["application/zip"]);
|
|
@@ -111,30 +111,41 @@ const METHOD_NAMES = {
|
|
|
111
111
|
function startsLikeZip(bytes) {
|
|
112
112
|
return bytes.byteLength >= 4 && bytes[0] === 80 && bytes[1] === 75 && bytes[2] === 3 && bytes[3] === 4;
|
|
113
113
|
}
|
|
114
|
+
function readEndRecord(view, eocd) {
|
|
115
|
+
const locator = eocd - ZIP64_LOCATOR_SIZE;
|
|
116
|
+
if (locator >= 0 && view.getUint32(locator, true) === ZIP64_LOCATOR_SIGNATURE) {
|
|
117
|
+
const record = zip64EndRecord(view, locator);
|
|
118
|
+
return {
|
|
119
|
+
disk: view.getUint32(record + 16, true),
|
|
120
|
+
directoryDisk: view.getUint32(record + 20, true),
|
|
121
|
+
count: readU64(view, record + 32),
|
|
122
|
+
directorySize: readU64(view, record + 40),
|
|
123
|
+
directoryOffset: readU64(view, record + 48),
|
|
124
|
+
directoryEnd: record
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
const count = view.getUint16(eocd + 10, true);
|
|
128
|
+
const directorySize = view.getUint32(eocd + 12, true);
|
|
129
|
+
const directoryOffset = view.getUint32(eocd + 16, true);
|
|
130
|
+
if (count === U16_MAX || directorySize === U32_MAX || directoryOffset === U32_MAX) {
|
|
131
|
+
throw new ZipError("corrupt", "the end record needs a zip64 record the archive does not have");
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
disk: view.getUint16(eocd + 4, true),
|
|
135
|
+
directoryDisk: view.getUint16(eocd + 6, true),
|
|
136
|
+
count,
|
|
137
|
+
directorySize,
|
|
138
|
+
directoryOffset,
|
|
139
|
+
directoryEnd: eocd
|
|
140
|
+
};
|
|
141
|
+
}
|
|
114
142
|
function readZipDirectory(bytes) {
|
|
115
143
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
116
144
|
const eocd = findEndRecord(bytes, view);
|
|
117
145
|
if (eocd < 0) {
|
|
118
146
|
throw startsLikeZip(bytes) ? new ZipError("corrupt", "the archive has no end of central directory record (truncated?)") : new ZipError("not-zip", "the input is not a zip archive");
|
|
119
147
|
}
|
|
120
|
-
|
|
121
|
-
let directoryDisk = view.getUint16(eocd + 6, true);
|
|
122
|
-
let count = view.getUint16(eocd + 10, true);
|
|
123
|
-
let directorySize = view.getUint32(eocd + 12, true);
|
|
124
|
-
let directoryOffset = view.getUint32(eocd + 16, true);
|
|
125
|
-
let directoryEnd = eocd;
|
|
126
|
-
const locator = eocd - ZIP64_LOCATOR_SIZE;
|
|
127
|
-
if (locator >= 0 && view.getUint32(locator, true) === ZIP64_LOCATOR_SIGNATURE) {
|
|
128
|
-
const record = zip64EndRecord(view, locator);
|
|
129
|
-
disk = view.getUint32(record + 16, true);
|
|
130
|
-
directoryDisk = view.getUint32(record + 20, true);
|
|
131
|
-
count = readU64(view, record + 32);
|
|
132
|
-
directorySize = readU64(view, record + 40);
|
|
133
|
-
directoryOffset = readU64(view, record + 48);
|
|
134
|
-
directoryEnd = record;
|
|
135
|
-
} else if (count === U16_MAX || directorySize === U32_MAX || directoryOffset === U32_MAX) {
|
|
136
|
-
throw new ZipError("corrupt", "the end record needs a zip64 record the archive does not have");
|
|
137
|
-
}
|
|
148
|
+
const { disk, directoryDisk, count, directorySize, directoryOffset, directoryEnd } = readEndRecord(view, eocd);
|
|
138
149
|
if (disk !== 0 || directoryDisk !== 0) {
|
|
139
150
|
throw new ZipError("unsupported", "a split (multi-disk) archive cannot be read");
|
|
140
151
|
}
|
|
@@ -1751,24 +1762,25 @@ function tableError(report, entry, reason) {
|
|
|
1751
1762
|
return null;
|
|
1752
1763
|
}
|
|
1753
1764
|
function cellAtt(column, text, line, namespace, hidden) {
|
|
1765
|
+
const cell = { line, namespace, hidden };
|
|
1754
1766
|
if (text.startsWith("=")) {
|
|
1755
|
-
return att(column.name, column.list ? "List" : column.type, null, text,
|
|
1767
|
+
return att(column.name, column.list ? "List" : column.type, null, text, true, cell);
|
|
1756
1768
|
}
|
|
1757
1769
|
if (!column.list) {
|
|
1758
1770
|
if (text.length === 0 && column.type !== "String") {
|
|
1759
1771
|
return null;
|
|
1760
1772
|
}
|
|
1761
|
-
return att(column.name, column.type, null, text,
|
|
1773
|
+
return att(column.name, column.type, null, text, false, cell);
|
|
1762
1774
|
}
|
|
1763
1775
|
if (text.length === 0 && column.type !== "String") {
|
|
1764
1776
|
return null;
|
|
1765
1777
|
}
|
|
1766
|
-
const list = att(column.name, "List", column.type, null,
|
|
1778
|
+
const list = att(column.name, "List", column.type, null, false, cell);
|
|
1767
1779
|
for (const item of javaSplitLines(text)) {
|
|
1768
1780
|
if (item.length === 0 && column.type !== "String") {
|
|
1769
1781
|
continue;
|
|
1770
1782
|
}
|
|
1771
|
-
list.children.push(att(column.name, column.type, null, item,
|
|
1783
|
+
list.children.push(att(column.name, column.type, null, item, false, cell));
|
|
1772
1784
|
}
|
|
1773
1785
|
return list;
|
|
1774
1786
|
}
|
|
@@ -1782,7 +1794,8 @@ function javaSplitLines(text) {
|
|
|
1782
1794
|
}
|
|
1783
1795
|
return items;
|
|
1784
1796
|
}
|
|
1785
|
-
function att(name, cyType, elementType, value,
|
|
1797
|
+
function att(name, cyType, elementType, value, equation, cell) {
|
|
1798
|
+
const { line, namespace, hidden } = cell;
|
|
1786
1799
|
return {
|
|
1787
1800
|
name,
|
|
1788
1801
|
type: null,
|
|
@@ -2809,4 +2822,4 @@ export {
|
|
|
2809
2822
|
cysExporter as c,
|
|
2810
2823
|
cysImporter as d
|
|
2811
2824
|
};
|
|
2812
|
-
//# sourceMappingURL=importer-
|
|
2825
|
+
//# sourceMappingURL=importer-WrGRZb0N.js.map
|