How to use the keypress.js.Listener function in keypress

To help you get started, we’ve selected a few keypress examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ghoranyi / docker-intuition-backend / vizceral / src / components / trafficFlow.jsx View on Github external
import Vizceral from 'vizceral-react';
require('vizceral-react/dist/vizceral.css');

import Breadcrumbs from './breadcrumbs';
import DisplayOptions from './displayOptions';
import FilterControls from './filterControls';
import NodeDetails from './nodeDetails';
import LoadingCover from './loadingCover';
import Locator from './locator';
import OptionsPanel from './optionsPanel';
import UpdateStatus from './updateStatus';

import filterActions from './filterActions';
import filterStore from './filterStore';

const listener = new keypress.Listener();

// Start TWEEN updates for sparklines and loading screen fading out
import TWEEN from 'tween.js';
function animate (time) {
  requestAnimationFrame(animate);
  TWEEN.update(time);
}
requestAnimationFrame(animate);

const panelWidth = 400;


class TrafficFlow extends React.Component {
  constructor (props) {
    super(props);
    this.state = {
github mjhd-devlion / promviz-front / src / components / trafficFlow.jsx View on Github external
import LoadingCover from './loadingCover';
import Locator from './locator';
import OptionsPanel from './optionsPanel';
import CustomVizceral from './customVizceral';
import ReplayClock from './replayClock';
import ServerStatus from './serverStatus';

import filterActions from './filterActions';
import filterStore from './filterStore';

import trafficActions from './trafficActions';
import trafficStore from './trafficStore';

import AppConstants from '../appConstants';

const listener = new keypress.Listener();

const hasOwnPropFunc = Object.prototype.hasOwnProperty;

function animate (time) {
  requestAnimationFrame(animate);
  TWEEN.update(time);
}
requestAnimationFrame(animate);

const panelWidth = 400;

class TrafficFlow extends React.Component {
  static defaultProps = {
    interval: 10 * 1000,
    maxReplayOffset: 12 * 60 * 60
  }
github CyberReboot / vent / vent / extras / vizceral / src / components / trafficFlow.jsx View on Github external
import './trafficFlow.css';
import Breadcrumbs from './breadcrumbs';
import DisplayOptions from './displayOptions';
import PhysicsOptions from './physicsOptions';
import FilterControls from './filterControls';
import DetailsPanelConnection from './detailsPanelConnection';
import DetailsPanelNode from './detailsPanelNode';
import LoadingCover from './loadingCover';
import Locator from './locator';
import OptionsPanel from './optionsPanel';
import UpdateStatus from './updateStatus';

import filterActions from './filterActions';
import filterStore from './filterStore';

const listener = new keypress.Listener();

const hasOwnPropFunc = Object.prototype.hasOwnProperty;

function animate (time) {
  requestAnimationFrame(animate);
  TWEEN.update(time);
}
requestAnimationFrame(animate);

const panelWidth = 400;

class TrafficFlow extends React.Component {
  constructor (props) {
    super(props);

    this.state = {
github Netflix / vizceral-example / src / components / trafficFlow.jsx View on Github external
import './trafficFlow.css';
import Breadcrumbs from './breadcrumbs';
import DisplayOptions from './displayOptions';
import PhysicsOptions from './physicsOptions';
import FilterControls from './filterControls';
import DetailsPanelConnection from './detailsPanelConnection';
import DetailsPanelNode from './detailsPanelNode';
import LoadingCover from './loadingCover';
import Locator from './locator';
import OptionsPanel from './optionsPanel';
import UpdateStatus from './updateStatus';

import filterActions from './filterActions';
import filterStore from './filterStore';

const listener = new keypress.Listener();

const hasOwnPropFunc = Object.prototype.hasOwnProperty;

function animate (time) {
  requestAnimationFrame(animate);
  TWEEN.update(time);
}
requestAnimationFrame(animate);

const panelWidth = 400;

class TrafficFlow extends React.Component {
  constructor (props) {
    super(props);

    this.state = {
github OskarKjellin / vizceral-hystrix / src / main / js / trafficFlow.jsx View on Github external
import request from "superagent";
import "./trafficFlow.css";
import Breadcrumbs from "./breadcrumbs";
import DisplayOptions from "./displayOptions";
import PhysicsOptions from "./physicsOptions";
import FilterControls from "./filterControls";
import DetailsPanelConnection from "./detailsPanelConnection";
import DetailsPanelNode from "./detailsPanelNode";
import LoadingCover from "./loadingCover";
import Locator from "./locator";
import OptionsPanel from "./optionsPanel";
import UpdateStatus from "./updateStatus";
import filterActions from "./filterActions";
import filterStore from "./filterStore";

const listener = new keypress.Listener();

const hasOwnPropFunc = Object.prototype.hasOwnProperty;

function animate(time) {
    requestAnimationFrame(animate);
    TWEEN.update(time);
}
requestAnimationFrame(animate);

const panelWidth = 400;

class TrafficFlow extends React.Component {
    constructor(props) {
        super(props);

        this.state = {

keypress

Make any Node ReadableStream emit "keypress" events

MIT
Latest version published 11 years ago

Package Health Score

65 / 100
Full package analysis