Skip to content

Commit

Permalink
fix unused import and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Nov 10, 2023
1 parent b376ad1 commit 1837f5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions nanopub-display/src/cytoscape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nanopub-display/src/nanopub-display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
6 changes: 3 additions & 3 deletions nanopub-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You can instantiate the `Nanopub` object using various approaches:

```typescript
import {Nanopub} from '@nanopub/utils'

const rdfString = `@prefix this: <http://purl.org/np/RAHtkscyyyJDLvWRuINckQrn5rbHzQKvwakNVC3fmRzGX> .
@prefix sub: <http://purl.org/np/RAHtkscyyyJDLvWRuINckQrn5rbHzQKvwakNVC3fmRzGX#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand Down Expand Up @@ -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)
```

Expand All @@ -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
```

Expand Down

0 comments on commit 1837f5f

Please sign in to comment.