@pie-element/graphing 3.4.19-next.85 → 3.5.1-beta.587

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ const { model } = require('./generate');
2
2
 
3
3
  module.exports = {
4
4
  elements: {
5
- 'graphing-element': '../..'
5
+ 'graphing-element': '../..',
6
6
  },
7
- models: [model('1', 'graphing-element')]
7
+ models: [model('1', 'graphing-element')],
8
8
  };
@@ -83,37 +83,46 @@ exports.model = (id, element) => ({
83
83
  answers: {
84
84
  correctAnswer: {
85
85
  name: 'Correct Answer',
86
- marks: [{
87
- type: 'point',
88
- x: 0,
89
- y: 0
90
- }]
86
+ marks: [
87
+ {
88
+ type: 'point',
89
+ x: 0,
90
+ y: 0,
91
+ },
92
+ ],
91
93
  },
92
94
  alternate1: {
93
95
  name: 'Alternate 1',
94
- marks: [{
95
- type: 'segment',
96
- from: { x: 0, y: 0 },
97
- to: { x: 1, y: 1 },
98
- },
96
+ marks: [
97
+ {
98
+ type: 'segment',
99
+ from: { x: 0, y: 0 },
100
+ to: { x: 1, y: 1 },
101
+ },
99
102
  {
100
103
  type: 'point',
101
104
  x: 3,
102
105
  y: 3,
103
106
  label: 'Point',
104
- showLabel: true
105
- }]
106
- }
107
+ showLabel: true,
108
+ },
109
+ ],
110
+ },
111
+ },
112
+ arrows: {
113
+ left: true,
114
+ right: true,
115
+ up: true,
116
+ down: true,
107
117
  },
108
- arrows: true,
109
118
  backgroundMarks: [
110
119
  {
111
120
  type: 'point',
112
121
  x: 2,
113
122
  y: 2,
114
123
  label: 'Point',
115
- showLabel: true
116
- }
124
+ showLabel: true,
125
+ },
117
126
  ],
118
127
  domain: {
119
128
  min: -10,
@@ -121,12 +130,14 @@ exports.model = (id, element) => ({
121
130
  padding: 0,
122
131
  step: 1,
123
132
  labelStep: 1,
124
- axisLabel: 'x'
133
+ axisLabel: 'x',
125
134
  },
135
+ defaultTool: 'point',
126
136
  graph: {
127
137
  width: 480,
128
- height: 480
138
+ height: 480,
129
139
  },
140
+ coordinatesOnHover: false,
130
141
  labels: { top: 'top', left: 'left', bottom: 'bottom', right: 'right' },
131
142
  padding: true,
132
143
  prompt: 'Here goes item stem !!!!!!',
@@ -137,8 +148,9 @@ exports.model = (id, element) => ({
137
148
  padding: 0,
138
149
  step: 1,
139
150
  labelStep: 1,
140
- axisLabel: 'y'
151
+ axisLabel: 'y',
141
152
  },
142
153
  rationale: 'Rationale goes here',
143
154
  title: 'Graph title',
155
+ rubricEnabled: false,
144
156
  });