@loaders.gl/graphs 5.0.0-beta.1 → 5.0.0-beta.4
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 +3 -1
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/dist/dot-loader-types.cjs +59 -0
- package/dist/dot-loader-types.cjs.map +7 -0
- package/dist/dot-loader-types.js +1 -1
- package/dist/dot-loader.cjs +1 -1
- package/dist/gexf-loader-types.cjs +59 -0
- package/dist/gexf-loader-types.cjs.map +7 -0
- package/dist/gexf-loader-types.js +1 -1
- package/dist/gexf-loader.cjs +1661 -16
- package/dist/gexf-loader.cjs.map +3 -3
- package/dist/graphml-loader-types.cjs +59 -0
- package/dist/graphml-loader-types.cjs.map +7 -0
- package/dist/graphml-loader-types.js +1 -1
- package/dist/graphml-loader.cjs +1643 -10
- package/dist/graphml-loader.cjs.map +3 -3
- package/dist/index.cjs +30 -1927
- package/dist/index.cjs.map +4 -3
- package/dist/lib/parse-gexf.d.ts.map +1 -1
- package/dist/lib/parse-gexf.js +9 -7
- package/dist/lib/parse-gexf.js.map +1 -1
- package/dist/lib/parse-graphml.js +4 -4
- package/dist/lib/parse-graphml.js.map +1 -1
- package/package.json +9 -7
- package/src/lib/parse-gexf.ts +9 -7
- package/src/lib/parse-graphml.ts +5 -5
package/README.md
CHANGED
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @loaders.gl/graphs: sources and credits
|
|
2
2
|
|
|
3
|
-
Graph loaders are developed by vis.gl contributors against DOT, GEXF and GraphML format definitions.
|
|
3
|
+
Graph loaders are developed by vis.gl contributors against DOT, GEXF and GraphML format definitions. The native @loaders.gl/documents parser supplies XML parsing; Apache Arrow supplies columnar tables.
|
|
4
4
|
|
|
5
5
|
## Scope and maintenance
|
|
6
6
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// dist/dot-loader-types.js
|
|
31
|
+
var dot_loader_types_exports = {};
|
|
32
|
+
__export(dot_loader_types_exports, {
|
|
33
|
+
DOTLoader: () => DOTLoader
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(dot_loader_types_exports);
|
|
36
|
+
var VERSION = true ? "5.0.0-beta.4" : "latest";
|
|
37
|
+
async function preload() {
|
|
38
|
+
const { DOTLoaderWithParser } = await import("@loaders.gl/graphs/dot-loader");
|
|
39
|
+
return DOTLoaderWithParser;
|
|
40
|
+
}
|
|
41
|
+
var DOTLoader = {
|
|
42
|
+
name: "DOT",
|
|
43
|
+
id: "dot",
|
|
44
|
+
module: "graphs",
|
|
45
|
+
version: VERSION,
|
|
46
|
+
extensions: ["dot", "gv"],
|
|
47
|
+
mimeTypes: ["text/vnd.graphviz", "text/x-graphviz", "application/vnd.graphviz"],
|
|
48
|
+
text: true,
|
|
49
|
+
worker: false,
|
|
50
|
+
dataType: null,
|
|
51
|
+
batchType: null,
|
|
52
|
+
options: { dot: { shape: "arrow-table" } },
|
|
53
|
+
preload
|
|
54
|
+
};
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
DOTLoader
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=dot-loader-types.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/dot-loader-types.ts"],
|
|
4
|
+
"sourcesContent": ["// loaders.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport type {Loader} from '@loaders.gl/core/loader-utils';\nimport type {DOTOutput} from './dot-types';\nimport type {GraphShape} from './graph-types';\n\n/** Options for selecting the DOT graph output representation. */\nexport type DOTLoaderOptions = {\n /** Format-specific graph options. */\n dot?: {\n /** Representation of each named table; defaults to Arrow. */\n shape?: GraphShape;\n };\n};\n\n// @ts-ignore __VERSION__ is injected by the build.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\n/** Preloads the DOT parser implementation. */\nasync function preload() {\n const {DOTLoaderWithParser} = await import('@loaders.gl/graphs/dot-loader');\n return DOTLoaderWithParser;\n}\n\n/** Metadata-only loader for Graphviz DOT documents. */\nexport const DOTLoader = {\n name: 'DOT',\n id: 'dot',\n module: 'graphs',\n version: VERSION,\n extensions: ['dot', 'gv'],\n mimeTypes: ['text/vnd.graphviz', 'text/x-graphviz', 'application/vnd.graphviz'],\n text: true,\n worker: false,\n dataType: null as unknown as DOTOutput,\n batchType: null as never,\n options: {dot: {shape: 'arrow-table'}},\n preload\n} as const satisfies Loader<DOTOutput, never, DOTLoaderOptions>;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AAkBA,IAAM,UAAU,OAAoC,iBAAe;AAGnE,eAAe,UAAO;AACpB,QAAM,EAAC,oBAAmB,IAAI,MAAM,OAAO,+BAA+B;AAC1E,SAAO;AACT;AAGO,IAAM,YAAY;EACvB,MAAM;EACN,IAAI;EACJ,QAAQ;EACR,SAAS;EACT,YAAY,CAAC,OAAO,IAAI;EACxB,WAAW,CAAC,qBAAqB,mBAAmB,0BAA0B;EAC9E,MAAM;EACN,QAAQ;EACR,UAAU;EACV,WAAW;EACX,SAAS,EAAC,KAAK,EAAC,OAAO,cAAa,EAAC;EACrC;;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/dot-loader-types.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
// @ts-ignore __VERSION__ is injected by the build.
|
|
5
|
-
const VERSION = typeof "5.0.0-beta.
|
|
5
|
+
const VERSION = typeof "5.0.0-beta.4" !== 'undefined' ? "5.0.0-beta.4" : 'latest';
|
|
6
6
|
/** Preloads the DOT parser implementation. */
|
|
7
7
|
async function preload() {
|
|
8
8
|
const { DOTLoaderWithParser } = await import('@loaders.gl/graphs/dot-loader');
|
package/dist/dot-loader.cjs
CHANGED
|
@@ -1218,7 +1218,7 @@ __export(dot_loader_exports2, {
|
|
|
1218
1218
|
module.exports = __toCommonJS(dot_loader_exports2);
|
|
1219
1219
|
|
|
1220
1220
|
// dist/dot-loader-types.js
|
|
1221
|
-
var VERSION2 = true ? "5.0.0-beta.
|
|
1221
|
+
var VERSION2 = true ? "5.0.0-beta.4" : "latest";
|
|
1222
1222
|
async function preload2() {
|
|
1223
1223
|
const { DOTLoaderWithParser: DOTLoaderWithParser3 } = await Promise.resolve().then(() => (init_dot_loader(), dot_loader_exports));
|
|
1224
1224
|
return DOTLoaderWithParser3;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// dist/gexf-loader-types.js
|
|
31
|
+
var gexf_loader_types_exports = {};
|
|
32
|
+
__export(gexf_loader_types_exports, {
|
|
33
|
+
GEXFLoader: () => GEXFLoader
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(gexf_loader_types_exports);
|
|
36
|
+
var VERSION = true ? "5.0.0-beta.4" : "latest";
|
|
37
|
+
async function preload() {
|
|
38
|
+
const { GEXFLoaderWithParser } = await import("@loaders.gl/graphs/gexf-loader");
|
|
39
|
+
return GEXFLoaderWithParser;
|
|
40
|
+
}
|
|
41
|
+
var GEXFLoader = {
|
|
42
|
+
name: "GEXF",
|
|
43
|
+
id: "gexf",
|
|
44
|
+
module: "graphs",
|
|
45
|
+
version: VERSION,
|
|
46
|
+
extensions: ["gexf"],
|
|
47
|
+
mimeTypes: ["application/gexf+xml"],
|
|
48
|
+
text: true,
|
|
49
|
+
worker: false,
|
|
50
|
+
dataType: null,
|
|
51
|
+
batchType: null,
|
|
52
|
+
options: { gexf: { shape: "arrow-table" } },
|
|
53
|
+
preload
|
|
54
|
+
};
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
GEXFLoader
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=gexf-loader-types.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/gexf-loader-types.ts"],
|
|
4
|
+
"sourcesContent": ["// loaders.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport type {Loader} from '@loaders.gl/core/loader-utils';\nimport type {GraphShape} from './graph-types';\nimport type {GEXFOutput} from './gexf-types';\n\n/** Options for selecting the GEXF graph output representation. */\nexport type GEXFLoaderOptions = {\n /** GEXF-specific graph options. */\n gexf?: {\n /** Representation of each named table; defaults to Arrow. */\n shape?: GraphShape;\n };\n};\n\n// @ts-ignore __VERSION__ is injected by the build.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\n/** Preloads the GEXF parser implementation. */\nasync function preload() {\n const {GEXFLoaderWithParser} = await import('@loaders.gl/graphs/gexf-loader');\n return GEXFLoaderWithParser;\n}\n\n/** Metadata-only loader for static GEXF 1.2 and 1.3 documents. */\nexport const GEXFLoader = {\n name: 'GEXF',\n id: 'gexf',\n module: 'graphs',\n version: VERSION,\n extensions: ['gexf'],\n mimeTypes: ['application/gexf+xml'],\n text: true,\n worker: false,\n dataType: null as unknown as GEXFOutput,\n batchType: null as never,\n options: {gexf: {shape: 'arrow-table'}},\n preload\n} as const satisfies Loader<GEXFOutput, never, GEXFLoaderOptions>;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AAkBA,IAAM,UAAU,OAAoC,iBAAe;AAGnE,eAAe,UAAO;AACpB,QAAM,EAAC,qBAAoB,IAAI,MAAM,OAAO,gCAAgC;AAC5E,SAAO;AACT;AAGO,IAAM,aAAa;EACxB,MAAM;EACN,IAAI;EACJ,QAAQ;EACR,SAAS;EACT,YAAY,CAAC,MAAM;EACnB,WAAW,CAAC,sBAAsB;EAClC,MAAM;EACN,QAAQ;EACR,UAAU;EACV,WAAW;EACX,SAAS,EAAC,MAAM,EAAC,OAAO,cAAa,EAAC;EACtC;;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
// @ts-ignore __VERSION__ is injected by the build.
|
|
5
|
-
const VERSION = typeof "5.0.0-beta.
|
|
5
|
+
const VERSION = typeof "5.0.0-beta.4" !== 'undefined' ? "5.0.0-beta.4" : 'latest';
|
|
6
6
|
/** Preloads the GEXF parser implementation. */
|
|
7
7
|
async function preload() {
|
|
8
8
|
const { GEXFLoaderWithParser } = await import('@loaders.gl/graphs/gexf-loader');
|