zydx-plus 1.32.287 → 1.32.288
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.
package/package.json
CHANGED
|
@@ -2127,24 +2127,24 @@ let buttonNames = {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
},
|
|
2129
2129
|
resource_lesson020: {
|
|
2130
|
-
actionName: '
|
|
2130
|
+
actionName: '思维训练',
|
|
2131
2131
|
buttonList: {
|
|
2132
2132
|
0: {
|
|
2133
2133
|
headLevel: {
|
|
2134
2134
|
default: "demand",
|
|
2135
2135
|
demand: '训练要求',
|
|
2136
|
-
resourceIndex: '
|
|
2136
|
+
resourceIndex: '训练试题',
|
|
2137
2137
|
analyse: '训练分析',
|
|
2138
2138
|
countermeasure: '教学对策'
|
|
2139
2139
|
},
|
|
2140
2140
|
otherLevel: {
|
|
2141
2141
|
default: "singletonClass",
|
|
2142
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
2143
|
-
allClass: this.getPrefix(item) + '
|
|
2142
|
+
singletonClass: this.getCurrentPrefix(item) + '试题',
|
|
2143
|
+
allClass: this.getPrefix(item) + '试题'
|
|
2144
2144
|
},
|
|
2145
2145
|
lowLevel: {
|
|
2146
2146
|
default: "singletonClass",
|
|
2147
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
2147
|
+
singletonClass: this.getCurrentPrefix(item) + '试题'
|
|
2148
2148
|
}
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
@@ -2155,10 +2155,10 @@ let buttonNames = {
|
|
|
2155
2155
|
0: {
|
|
2156
2156
|
headLevel: {
|
|
2157
2157
|
default: "demand",
|
|
2158
|
-
demand: '
|
|
2159
|
-
resourceIndex: '
|
|
2160
|
-
review: '
|
|
2161
|
-
analyse: '
|
|
2158
|
+
demand: '案析要求',
|
|
2159
|
+
resourceIndex: '案析题目',
|
|
2160
|
+
review: '案析点评',
|
|
2161
|
+
analyse: '案析分析',
|
|
2162
2162
|
countermeasure: '教学对策'
|
|
2163
2163
|
},
|
|
2164
2164
|
otherLevel: {
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
146
146
|
this.id = 'canvas-wrap' + Math.random().toString(36).substr(2)
|
|
147
147
|
// 在画板以外松开鼠标后冻结画笔
|
|
148
148
|
document.onmouseup = () => {
|
|
149
|
-
this.mouseUp()
|
|
149
|
+
if (this.isDrawing) this.mouseUp()
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
methods: {
|
|
@@ -185,9 +185,11 @@ export default {
|
|
|
185
185
|
drawStart (obj) {
|
|
186
186
|
obj.index = this.pageIndex
|
|
187
187
|
obj.start = 'start'
|
|
188
|
+
obj.scale = this.scales
|
|
188
189
|
this.startX = obj.x
|
|
189
190
|
this.startY = obj.y
|
|
190
191
|
this.ctx.beginPath()
|
|
192
|
+
this.ctx.strokeStyle = 'red'
|
|
191
193
|
this.ctx.moveTo(this.startX, this.startY)
|
|
192
194
|
this.ctx.lineTo(obj.x, obj.y)
|
|
193
195
|
this.ctx.lineCap = 'round'
|
|
@@ -200,7 +202,9 @@ export default {
|
|
|
200
202
|
drawEnd (obj) {
|
|
201
203
|
obj.index = this.pageIndex
|
|
202
204
|
obj.start = 'end'
|
|
205
|
+
obj.scale = this.scales
|
|
203
206
|
this.ctx.beginPath()
|
|
207
|
+
this.ctx.strokeStyle = 'red'
|
|
204
208
|
this.ctx.moveTo(this.startX, this.startY)
|
|
205
209
|
this.ctx.lineTo(obj.x, obj.y)
|
|
206
210
|
this.ctx.lineCap = 'round'
|
|
@@ -213,6 +217,7 @@ export default {
|
|
|
213
217
|
drawMove (obj) {
|
|
214
218
|
obj.index = this.pageIndex
|
|
215
219
|
obj.start = 'move'
|
|
220
|
+
obj.scale = this.scales
|
|
216
221
|
this.ctx.beginPath()
|
|
217
222
|
this.ctx.moveTo(this.startX, this.startY)
|
|
218
223
|
this.ctx.lineTo(obj.x, obj.y)
|
|
@@ -308,9 +313,9 @@ export default {
|
|
|
308
313
|
for(let i = 0; i < that.points.length; i++) {
|
|
309
314
|
if(that.points[i].index === that.pageIndex) {
|
|
310
315
|
that.ctx.beginPath()
|
|
311
|
-
that.ctx.moveTo(that.points[i].x,that.points[i].y)
|
|
316
|
+
that.ctx.moveTo(that.points[i].x*that.scales/that.points[i].scale,that.points[i].y*that.scales/that.points[i].scale)
|
|
312
317
|
if(that.points[i].start !== 'end') {
|
|
313
|
-
that.ctx.lineTo(that.points[i+1].x, that.points[i+1].y)
|
|
318
|
+
that.ctx.lineTo(that.points[i+1].x*that.scales/that.points[i].scale, that.points[i+1].y*that.scales/that.points[i].scale)
|
|
314
319
|
}
|
|
315
320
|
that.ctx.strokeStyle = 'red'
|
|
316
321
|
that.ctx.lineCap = 'round'
|