@nteract/mythic-windowing
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

@nteract/mythic-windowing

This package implements a windowing system based on electron, using the myths framework.

Installation

$ yarn add @nteract/mythic-windowing
$ npm install --save @nteract/mythic-windowing

Usage

Initialize the package by including the windowing package in your store:

import { windowing, setWindowingBackend, electronBackend } from "@nteract/mythic-windowing";
import { makeConfigureStore } from "@nteract/myths";

export const configureStore = makeConfigureStore({
  packages: [windowing],
});

store.dispatch(setWindowingBackend.create(electronBackend));

const electronReady$ = new Observable((observer) => {
  (app as any).on("ready", launchInfo => observer.next(launchInfo));
});

electronReady$
  .subscribe(
    () => store.dispatch(
      showWindow.create({
        id: "splash",
        kind: "splash",
        width: 565,
        height: 233,
        path: join(__dirname, "..", "static", "splash.html"),
      })
    ),
    (err) => console.error(err),
    () => store.dispatch(
      closeWindow.create("splash")
    ),
  );

API

TBD

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:mythic-windowing label.

License

BSD-3-Clause

Readme

Keywords

Package Sidebar

Install

npm i @nteract/mythic-windowing

Weekly Downloads

1

Version

0.1.7

License

BSD-3-Clause

Unpacked Size

704 kB

Total Files

33

Last publish

Collaborators

  • hydrosquall
  • benabel
  • alexandercbooth
  • benrussert
  • mpacer
  • theengineear
  • yuvipanda
  • rgbkrk
  • lgeiger
  • ivanov
  • captainsafia
  • peggyrayzis
  • jdetle
  • hasch
  • willingc
  • stormpython
  • crystalline-cat
  • emeeks