1.18.0 • Published 5 years ago

@pencil.js/navigation v1.18.0

Weekly downloads
16
License
MIT
Repository
github
Last release
5 years ago

Navigation

Navigation helper to switch from Scene to Scene.

Installation

npm install @pencil.js/navigation

Examples

import * as Navigation from "@pencil.js/navigation";

Navigation.prepareScenes({
    // The first scene on the set is going to be the default one
    home: (scene) => {
        // Build your scene here ...
        // If you want to change scene call a new change event
        scene.fire(new BaseEvent(Scene.event.change, "other"));
    },
    other: (scene) => {
        // Build your scene here ...
    },
});

const currentScene = Navigation.getCurrentScene();

Documentation

Go check the full documentation.

1.18.0

5 years ago

1.17.0

5 years ago

1.16.0

5 years ago

1.15.0

5 years ago

1.14.0

6 years ago

1.13.1

6 years ago

1.13.0

6 years ago

1.12.0

6 years ago

1.11.0

6 years ago

1.10.3

6 years ago

1.10.2

6 years ago

1.10.1

6 years ago

1.10.0

6 years ago