npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@helios-interactive/vue-siskin

v0.0.8

Published

App Simulator using Video and Hotspots for Vue

Downloads

5

Readme

Siskin

App Simulator Vue Plugin using video and hotspots

Siskin is a plugin that provides a Vue component called Scene. This component can render videos with overlayed image hotspots that allow navigating to different timestamps in the video, or away from the component.

The plugin also optionally provides a custom router and vuex store module for convenience in managing the state of many scenes and transitions.

Installation

# install
npm i -S @helios-interactive/vue-siskin

Usage

There are two main ways to use Siskin. Using the Scene component alone or using the provided router and store module.

Scene Component

To use the Scene component:

import Vue from 'vue';
import AppSimulator from '@helios-interactive/vue-siskin';

Vue.use(AppSimulator);

This will register the Scene component with Vue and make it available for use in other components.

In a component file:

<template>
  <scene :scene="scene" />
</template>

<script>
export default {
  name: 'MyComponent',
  data() {
    return {
      scene: {...},
    };
  },
};
</script>

The Scene component expects a scene property that contains data for rendering a vidoe or image with overlayed hotspots.

Example Scene Data:

{
  type: 'video',
  asset: 'intro/intro.mp4',
  position: {
    left: 0,
    top: 0,
  },
  hotspots: [
    {
      width: 100,
      height: 100,
      left: 100,
      top: 100,
      action: 'otherScene'
    },{
      width: 100,
      height: 100,
      left: 300,
      top: 100,
      time: 2,
      action: {
        type: 'continue',
        startTime: 4,
      },
    }
  ],
}

Router and Store Module

To use the additional router functionality and store module inclue the router and store when instantiating the plugin:

import Vue from 'vue';
import AppSimulator from '@helios-interactive/vue-siskin';
import router from './router';
import store from './store';

Vue.use(AppSimulator, { router, store });

This will include an additional SceneRouter component that manages transitions between multiple scenes as well as loading scene data and preloading images for smooth transitions.

<template>
  <scene-router />
</template>