MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / makeHand

Function makeHand

source/hand.js:47–63  ·  view source on GitHub ↗
(colours)

Source from the content-addressed store, hash-verified

45// HAND //
46//======//
47export const makeHand = (colours) => ({
48 state: HAND_STATE.START,
49 cursor: HAND_STATE.START.cursor,
50 colour: colours[GREEN],
51 hidden: false,
52
53 // What is the hand holding?
54 pick: undefined,
55 selectedAddress: undefined,
56
57 // Where is the hand coming from?
58 handStart: [undefined, undefined],
59 pickStart: [undefined, undefined],
60 startAddressedScreen: undefined,
61 startDrawnParent: undefined,
62 hasChangedParent: false,
63});
64
65const HAND_STATE = {};
66export const fireHandEvent = (context, hand, eventName, args = {}) => {

Callers 1

global.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected