Skip to content

cislrpi/io-display

Repository files navigation

@cisl/io-display

Module for @cisl/io that wraps the interface for the display-worker to make it easier to work with.

Installation

npm install @cisl/io-display

Usage

const io = require('@cisl/io');
const { registerDisplayWorker } = require('@cisl/io-display');

io.registerPlugins(registerDisplayWorker);
io.display.openDisplayWorker('main', 'test', content_grid).then((response) => {
  io.display.displayUrl('https://example.com', {
    position: {
      gridLeft: 1,
      gridTop: 1
    },
    widthFactor: 2,
    heightFactor: 2
  });
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published