1.1.8 • Published 4 years ago

@cycle-robot-drivers/screen v1.1.8

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

@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.
1.1.8

4 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.0.33

5 years ago

0.0.32

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago