Skip to content

Commit 25ca423

Browse files
cppartsbmatthieu3
authored andcommitted
rotation_changed update
1 parent 0db9d62 commit 25ca423

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

js/models/event_handler.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,17 @@ export default class EventHandler {
202202
}
203203
});
204204

205+
this.aladin.on("rotationChanged", (object) => {
206+
if (object["data"] !== undefined) {
207+
this.model.send({
208+
event_type: "rotation_changed",
209+
content: {
210+
rotation: object["rotation"],
211+
},
212+
});
213+
}
214+
});
215+
205216
this.aladin.on("objectClicked", (clicked) => {
206217
if (clicked) {
207218
let clickedContent = {

0 commit comments

Comments
 (0)