|
@@ -53,7 +53,6 @@ window.HotspotQuestion = (function () {
|
|
|
this.set('height', y - startY);
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
SquareModel.decode = function (hotspotInfo) {
|
|
|
var coords = hotspotInfo.coord.split('|'),
|
|
|
position = coords[0].split(';'),
|
|
@@ -64,7 +63,7 @@ window.HotspotQuestion = (function () {
|
|
|
height: parseInt(coords[2])
|
|
|
});
|
|
|
|
|
|
- hotspot.id = hotspotInfo.id;
|
|
|
+ hotspot.id = hotspotInfo.iid;
|
|
|
hotspot.name = hotspotInfo.answer;
|
|
|
|
|
|
return hotspot;
|
|
@@ -124,7 +123,7 @@ window.HotspotQuestion = (function () {
|
|
|
radiusY: parseInt(coords[2])
|
|
|
});
|
|
|
|
|
|
- hotspot.id = hotspotInfo.id;
|
|
|
+ hotspot.id = hotspotInfo.iid;
|
|
|
hotspot.name = hotspotInfo.answer;
|
|
|
|
|
|
return hotspot;
|
|
@@ -170,7 +169,7 @@ window.HotspotQuestion = (function () {
|
|
|
var hotspot = new PolygonModel({
|
|
|
points: points
|
|
|
});
|
|
|
- hotspot.id = hotspotInfo.id;
|
|
|
+ hotspot.id = hotspotInfo.iid;
|
|
|
hotspot.name = hotspotInfo.answer;
|
|
|
|
|
|
return hotspot;
|
|
@@ -269,7 +268,6 @@ window.HotspotQuestion = (function () {
|
|
|
self.render();
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
HotspotSVG.prototype.render = function () {
|
|
|
var newEl = null;
|
|
|
|
|
@@ -323,7 +321,6 @@ window.HotspotQuestion = (function () {
|
|
|
self.render();
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
AnswerSVG.prototype.render = function () {
|
|
|
this.circleEl.setAttribute('cx', this.model.get('x'));
|
|
|
this.circleEl.setAttribute('cy', this.model.get('y'));
|