Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cycle-robot-drivers/screen

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cycle-robot-drivers/screen

Cycle.js drivers for rendering a robot face

  • 1.1.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

@cycle-robot-drivers/screen

Cycle.js drivers and action components for a tablet robot face.

Try the demo at StackBlitz!

Note that this package was tested with Chrome browser (>= 65.0.3325.181) only.

API

FacialExpressionAction(sources)

FacialExpression action component.

Params:
  • sources
    • goal: a stream of TabletFaceCommands.
    • cancel: a stream of GoalID.
    • TabletFace: the TabletFace driver output.
Return:
  • sinks
    • state: a reducer stream.
    • status: a stream of action status.
    • result: a stream of action results.
    • TabletFace: a stream for the TabletFace driver input.

Speechbubble action component.

Params:
  • sources
    • goal: a stream of {type: 'MESSAGE', value: 'Hello world'} or 'Hello world' (as "message"), or {type: 'CHOICE', value: ['Hello', 'World']} or ['Hello', 'World'] (as "multiple choice").
    • cancel: a stream of GoalID
    • DOM: Cycle.js DOMSource.
Return:
  • sinks
    • state: a reducer stream.
    • status: a stream of action status.
    • result: a stream of action results. result.result is always null.
    • DOM: a stream of virtual DOM objects, i.e, Snabbdom "VNode" objects.

makeTabletFaceDriver(options)

TabletFace driver factory.

Params:
  • options possible key includes
    • styles {object} A group of optional style parameters
Return:
  • Driver the TabletFace Cycle.js driver function. It takes a stream of Command and returns returns EventSource:

    • EventSource.events(eventName) takes 'load', 'animationfinish', or dom and returns corresponding event streams respectively.

FAQs

Package last updated on 13 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc