tycho-components 0.2.6-SNAPSHOT-3 → 0.2.6-SNAPSHOT-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.
@@ -24,6 +24,18 @@ const defaultStylesheet = [
24
24
  cursor: 'pointer',
25
25
  },
26
26
  },
27
+ {
28
+ selector: 'node.chunk',
29
+ style: {
30
+ content: 'data(label)',
31
+ },
32
+ },
33
+ {
34
+ selector: 'node.empty',
35
+ style: {
36
+ content: 'data(label)',
37
+ },
38
+ },
27
39
  {
28
40
  selector: 'node.highlight',
29
41
  style: {
@@ -17,6 +17,7 @@ export default class CytoscapeTreeConverter {
17
17
  data: n.data,
18
18
  position: n.position,
19
19
  id: n.id,
20
+ classes: n.data.token ? 'token' : 'chunk',
20
21
  })),
21
22
  edges: tree.edges,
22
23
  root: {
@@ -10,5 +10,6 @@ type NodeCalculation = {
10
10
  position?: Position;
11
11
  parent?: NodeCalculation;
12
12
  children?: NodeCalculation[];
13
+ classes?: string;
13
14
  };
14
15
  export default NodeCalculation;
@@ -35,7 +35,7 @@ const init = ({ selector, tree, dagre = false, stylesheet = defaultStylesheet, w
35
35
  });
36
36
  cy.ready(() => {
37
37
  if (!cy._htmlLabelsApplied) {
38
- const nodesToLabel = cy.nodes().not('.eh-handle');
38
+ const nodesToLabel = cy.nodes('.token');
39
39
  // @ts-ignore (no types)
40
40
  cy.nodeHtmlLabel([
41
41
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.2.6-SNAPSHOT-3",
4
+ "version": "0.2.6-SNAPSHOT-4",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {