@gram-data/d3-gram
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -66,6 +66,5 @@ 'use strict'; | ||
var status = 'TBD'; | ||
exports.MISSING_ID = MISSING_ID; | ||
exports.d3Gram = d3Gram; | ||
exports.default = d3Gram; | ||
exports.edgeToD3 = edgeToD3; | ||
@@ -76,3 +75,2 @@ exports.isGramNodeDatum = isGramNodeDatum; | ||
exports.nodeToD3 = nodeToD3; | ||
exports.status = status; | ||
//# sourceMappingURL=d3-gram.cjs.development.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@gram-data/gram-parse"),e=require("@gram-data/gram-ops"),t=require("@gram-data/gram-ast"),n="__missing_id__",a=function(r,e,t){return{id:r||n,labels:e||[],record:t||{}}},d=function(r,e,t,a,d){return{id:t||n,labels:a||[],record:d||{},source:r,target:e}},i=function(r){return t.isGramNode(r)?a(r.id,r.labels,r.record):a("random")},o=function(r){return d(function(r){return"left"===r.kind?r.children[1].id||n:r.children[0].id||n}(r),function(r){return"left"===r.kind?r.children[0].id||n:r.children[1].id||n}(r),r.id,r.labels,r.record)};exports.MISSING_ID=n,exports.d3Gram=function(t){var n=r.toAST(t);return{nodes:e.nodes(n).map(i),links:n.children.reduce((function(r,t){return r.concat(e.edges(t).map(o))}),[]),paths:[]}},exports.edgeToD3=o,exports.isGramNodeDatum=function(r){return void 0!==r.id},exports.makeGramLinkDatum=d,exports.makeGramNodeDatum=a,exports.nodeToD3=i,exports.status="TBD"; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@gram-data/gram-parse"),e=require("@gram-data/gram-ops"),t=require("@gram-data/gram-ast"),n="__missing_id__",d=function(r,e,t){return{id:r||n,labels:e||[],record:t||{}}},a=function(r,e,t,d,a){return{id:t||n,labels:d||[],record:a||{},source:r,target:e}},i=function(t){var n=r.toAST(t);return{nodes:e.nodes(n).map(o),links:n.children.reduce((function(r,t){return r.concat(e.edges(t).map(u))}),[]),paths:[]}},o=function(r){return t.isGramNode(r)?d(r.id,r.labels,r.record):d("random")},u=function(r){return a(function(r){return"left"===r.kind?r.children[1].id||n:r.children[0].id||n}(r),function(r){return"left"===r.kind?r.children[0].id||n:r.children[1].id||n}(r),r.id,r.labels,r.record)};exports.MISSING_ID=n,exports.d3Gram=i,exports.default=i,exports.edgeToD3=u,exports.isGramNodeDatum=function(r){return void 0!==r.id},exports.makeGramLinkDatum=a,exports.makeGramNodeDatum=d,exports.nodeToD3=o; | ||
//# sourceMappingURL=d3-gram.cjs.production.min.js.map |
@@ -62,5 +62,4 @@ import { toAST } from '@gram-data/gram-parse'; | ||
var status = 'TBD'; | ||
export { MISSING_ID, d3Gram, edgeToD3, isGramNodeDatum, makeGramLinkDatum, makeGramNodeDatum, nodeToD3, status }; | ||
export default d3Gram; | ||
export { MISSING_ID, d3Gram, edgeToD3, isGramNodeDatum, makeGramLinkDatum, makeGramNodeDatum, nodeToD3 }; | ||
//# sourceMappingURL=d3-gram.esm.js.map |
@@ -64,6 +64,5 @@ (function (global, factory) { | ||
var status = 'TBD'; | ||
exports.MISSING_ID = MISSING_ID; | ||
exports.d3Gram = d3Gram; | ||
exports.default = d3Gram; | ||
exports.edgeToD3 = edgeToD3; | ||
@@ -74,3 +73,2 @@ exports.isGramNodeDatum = isGramNodeDatum; | ||
exports.nodeToD3 = nodeToD3; | ||
exports.status = status; | ||
@@ -77,0 +75,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@gram-data/gram-parse"),require("@gram-data/gram-ops"),require("@gram-data/gram-ast")):"function"==typeof define&&define.amd?define(["exports","@gram-data/gram-parse","@gram-data/gram-ops","@gram-data/gram-ast"],r):r((e=e||self)["@gram-data/d3-gram"]={},e.gramParse,e.gramOps,e.gramAst)}(this,(function(e,r,a,t){"use strict";var n="__missing_id__",d=function(e,r,a){return{id:e||n,labels:r||[],record:a||{}}},i=function(e,r,a,t,d){return{id:a||n,labels:t||[],record:d||{},source:e,target:r}},o=function(e){return t.isGramNode(e)?d(e.id,e.labels,e.record):d("random")},u=function(e){return i(function(e){return"left"===e.kind?e.children[1].id||n:e.children[0].id||n}(e),function(e){return"left"===e.kind?e.children[0].id||n:e.children[1].id||n}(e),e.id,e.labels,e.record)};e.MISSING_ID=n,e.d3Gram=function(e){var t=r.toAST(e);return{nodes:a.nodes(t).map(o),links:t.children.reduce((function(e,r){return e.concat(a.edges(r).map(u))}),[]),paths:[]}},e.edgeToD3=u,e.isGramNodeDatum=function(e){return void 0!==e.id},e.makeGramLinkDatum=i,e.makeGramNodeDatum=d,e.nodeToD3=o,e.status="TBD",Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@gram-data/gram-parse"),require("@gram-data/gram-ops"),require("@gram-data/gram-ast")):"function"==typeof define&&define.amd?define(["exports","@gram-data/gram-parse","@gram-data/gram-ops","@gram-data/gram-ast"],r):r((e=e||self)["@gram-data/d3-gram"]={},e.gramParse,e.gramOps,e.gramAst)}(this,(function(e,r,a,n){"use strict";var t="__missing_id__",d=function(e,r,a){return{id:e||t,labels:r||[],record:a||{}}},i=function(e,r,a,n,d){return{id:a||t,labels:n||[],record:d||{},source:e,target:r}},o=function(e){var n=r.toAST(e);return{nodes:a.nodes(n).map(u),links:n.children.reduce((function(e,r){return e.concat(a.edges(r).map(m))}),[]),paths:[]}},u=function(e){return n.isGramNode(e)?d(e.id,e.labels,e.record):d("random")},m=function(e){return i(function(e){return"left"===e.kind?e.children[1].id||t:e.children[0].id||t}(e),function(e){return"left"===e.kind?e.children[0].id||t:e.children[1].id||t}(e),e.id,e.labels,e.record)};e.MISSING_ID=t,e.d3Gram=o,e.default=o,e.edgeToD3=m,e.isGramNodeDatum=function(e){return void 0!==e.id},e.makeGramLinkDatum=i,e.makeGramNodeDatum=d,e.nodeToD3=u,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=d3-gram.umd.production.min.js.map |
@@ -0,3 +1,4 @@ | ||
import { d3Gram } from './d3-gram'; | ||
export * from './d3-gram'; | ||
export * from './gram-d3-types'; | ||
export declare const status = "TBD"; | ||
export default d3Gram; |
@@ -15,3 +15,3 @@ { | ||
}, | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"author": "Andreas Kollegger", | ||
@@ -18,0 +18,0 @@ "license": "MIT", |
@@ -0,4 +1,6 @@ | ||
import { d3Gram } from './d3-gram'; | ||
export * from './d3-gram'; | ||
export * from './gram-d3-types'; | ||
export const status = 'TBD'; | ||
export default d3Gram; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43011