diff --git a/nanopub-display/src/cytoscape.ts b/nanopub-display/src/cytoscape.ts index 4307246..67a47de 100644 --- a/nanopub-display/src/cytoscape.ts +++ b/nanopub-display/src/cytoscape.ts @@ -267,7 +267,7 @@ export const cyLayouts = { // - "draft" only applies spectral layout // - "default" improves the quality with incremental layout (fast cooling rate) // - "proof" improves the quality with incremental layout (slow cooling rate) - quality: "default", + quality: 'default', // Use random node positions at beginning of layout // if this is set to false, then quality option must be "proof" randomize: true, @@ -289,7 +289,7 @@ export const cyLayouts = { // Whether to pack disconnected components - cytoscape-layout-utilities extension should be registered and initialized packComponents: false, // Layout step - all, transformed, enforced, cose - for debug purpose only - step: "all", + step: 'all', // False for random, true for greedy sampling samplingType: true, // Sample size to construct distance matrix @@ -334,7 +334,7 @@ export const cyLayouts = { alignmentConstraint: undefined, // Place two nodes relatively in vertical/horizontal direction // [{top: 'n1', bottom: 'n2', gap: 100}, {left: 'n3', right: 'n4', gap: 75}, {...}] - relativePlacementConstraint: undefined, + relativePlacementConstraint: undefined /* layout event callbacks */ // ready: () => {}, // on layoutready // stop: () => {} // on layoutstop @@ -390,7 +390,7 @@ export const cyLayouts = { gravityRange: 3.8, // Initial cooling factor for incremental layout initialEnergyOnIncremental: 0.5 - }, + } // 'dagre': { // name: 'dagre', // // dagre algo options, uses default value on undefined diff --git a/nanopub-display/src/nanopub-display.ts b/nanopub-display/src/nanopub-display.ts index 828fbb3..f7c215b 100644 --- a/nanopub-display/src/nanopub-display.ts +++ b/nanopub-display/src/nanopub-display.ts @@ -6,7 +6,7 @@ import {styleMap} from 'lit/directives/style-map.js' import {Parser, Quad} from 'n3' import {NanopubWriter} from './n3-writer' -import {Nanopub} from '@nanopub/utils' +// import {Nanopub} from '@nanopub/utils' import './nanopub-status-icon' const npColor = { diff --git a/nanopub-utils/README.md b/nanopub-utils/README.md index 9a8e583..2ef53e5 100644 --- a/nanopub-utils/README.md +++ b/nanopub-utils/README.md @@ -39,7 +39,7 @@ You can instantiate the `Nanopub` object using various approaches: ```typescript import {Nanopub} from '@nanopub/utils' - + const rdfString = `@prefix this: . @prefix sub: . @prefix rdf: . @@ -69,7 +69,7 @@ You can instantiate the `Nanopub` object using various approaches: this: prov:generatedAtTime "2023-02-21T11:15:07.732162"^^xsd:dateTime ; prov:wasAttributedTo orcid:0000-0002-1501-1082 . }` - + const np = await Nanopub.parse(rdfString) ``` @@ -89,7 +89,7 @@ You can instantiate the `Nanopub` object using various approaches: ```typescript import {Nanopub} from '@nanopub/utils' - + const np = new Nanopub(rdfString) // string or Store ```