1.2.3 • Published 9 months ago

@nebula.js/sn-text v1.2.3

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

sn-text

A text chart supernova aimed to be used in nebula.js.

import { embed } from '@nebula.js/stardust';
import text from '@nebula.js/sn-text';

// 'app' is an enigma app model
const embeddable = embed(app, {
  types: [{ // register the text chart
    name: 'text',
    load: () => Promise.resolve(text);
  }]
});

embeddable.render({
  element,
  type: 'text',
  properties: {
    text: "{\"root\":{\"children\":[{\"children\":[{\"detail\":0,\"format\":0,\"mode\":\"normal\",\"style\":\"\",\"text\":\"This is some text\",\"type\":\"text\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"paragraph\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"root\",\"version\":1}}"
  }
});

Requirements

Requires @nebula.js/stardust version >=3.0.0.

Installing

If you use npm: npm install @nebula.js/sn-text. You can also load through the script tag directly from any of the CDNs that supports NPM packages, for example: unpkg.

Release

To trigger a release, manually run the build workflow on a release branch and set release to true. For more info on actions / github workflows see: https://github.com/qlik-oss/sn-gh-workflows/

1.2.3

9 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago