24 lines
614 B
JavaScript
24 lines
614 B
JavaScript
const {Record} = require('immutable');
|
|
|
|
const MonitorRecord = Record({
|
|
id: null, // Block Id
|
|
/** Present only if the monitor is sprite-specific, such as x position */
|
|
spriteName: null,
|
|
/** Present only if the monitor is sprite-specific, such as x position */
|
|
targetId: null,
|
|
opcode: null,
|
|
value: null,
|
|
params: null,
|
|
mode: 'default',
|
|
sliderMin: 0,
|
|
sliderMax: 100,
|
|
isDiscrete: true,
|
|
x: null, // (x: null, y: null) Indicates that the monitor should be auto-positioned
|
|
y: null,
|
|
width: 0,
|
|
height: 0,
|
|
visible: true
|
|
});
|
|
|
|
module.exports = MonitorRecord;
|