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

  • 0.0.33
  • 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 null (as "cancel") or a string 'happy', 'sad', 'angry', 'focused', or 'confused' (as the TabletFace driver's EXPRESS type command value).
    • DOM: Cycle.js DOMSource.
Return:
  • sinks
    • output: a stream for the TabletFace driver.
    • status: depreciated.
    • result: a stream of action results. result.result is always null.

Speechbubble action component.

Params:
  • sources
    • goal: a stream of null (as "cancel"), {type: 'MESSAGE', value: 'Hello world'} or 'Hello world' (as "message"), or {type: 'CHOICE', value: ['Hello', 'World']} or ['Hello', 'World'] (as "multiple choice").
    • DOM: Cycle.js DOMSource.
Return:

TwoSpeechbubbles, Robot and Human, action component.

Params:
  • sources
    • goal: a stream of null (as "cancel"), {type: 'SET_MESSAGE', value: 'Hello world'} or 'Hello world' (as "set message"), or {type: 'ASK_QUESTION', message: 'Blue pill or red pill?', choices: ['Blue', 'Red']} (as "ask multiple choice").
    • DOM: Cycle.js DOMSource.
Return:

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 DOM, animationFinish, and load` streams.

FAQs

Package last updated on 21 Feb 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