tycho-components 0.2.4-SNAPSHOT-6 → 0.2.4-SNAPSHOT-8

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.
@@ -30,7 +30,7 @@ export default class CytoscapeTreeConverter {
30
30
  if (this.extraInfo && token.attributes) {
31
31
  const attrLines = Object.values(token.attributes)
32
32
  .map((v) => v)
33
- .join('\n');
33
+ .join('<br/>');
34
34
  return `<span class="token-value">${token.v}</span><span class="token-attributes">${attrLines}</span>`;
35
35
  }
36
36
  return `<span class="token-value">${token.v}</span>`;
@@ -41,7 +41,7 @@ const init = ({ selector, tree, dagre = false, stylesheet = defaultStylesheet, w
41
41
  query: 'node',
42
42
  halign: 'center',
43
43
  valign: 'center',
44
- tpl: (data) => `<div class="token-data">${data.label}</div>`,
44
+ tpl: (data) => `<div class="token-data ${data.classes || ''}">${data.label}</div>`,
45
45
  },
46
46
  ]);
47
47
  cy._htmlLabelsApplied = true; // mark as applied
@@ -43,6 +43,13 @@
43
43
 
44
44
  .token-data {
45
45
  text-align: center;
46
+ background-color: transparent;
47
+
48
+ &.highlight {
49
+ background-color: yellow;
50
+ padding: 8px;
51
+ }
52
+
46
53
  .token-value {
47
54
  display: block;
48
55
  font-weight: bolder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.2.4-SNAPSHOT-6",
4
+ "version": "0.2.4-SNAPSHOT-8",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {