@instructure/quiz-interactions
Version:
A React UI component Library for quiz interaction types.
55 lines (54 loc) • 1.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _default = exports["default"] = {
propValues: {
itemBody: ['`x` + `y`', '\\(`x` + `y`\\)'],
generatedSolution: [{
inputs: [{
name: 'x',
value: '2*10^-2'
}, {
name: 'y',
value: 0.1
}],
output: '1.2*10^-1'
}, {
inputs: [{
name: 'x',
value: -1
}, {
name: 'y',
value: 1
}],
output: 0
}, {
inputs: [{
name: 'x',
value: -1
}, {
name: 'y',
value: -1
}],
output: -2
}]
},
getComponentProps: function getComponentProps(props) {
return {
scoringData: {
value: {
answerCount: 3,
formula: 'x + y',
numeric: {
marginType: 'percent',
margin: '0'
},
generatedSolutions: [props.generatedSolution],
variables: []
}
}
};
}
};