Gitlab CSE Unil

Commit 04194bc0 authored by M. Chardon's avatar M. Chardon
Browse files

ajout ellipse geo

parent 977e011e
define(["paper", "tools/Shape.class"], function (paper, Shape) {
// ----- Const ---------------------------------------
var TOOL_TYPE = "ellipse";
// ----- Locale variables -----------------------------
// Events
var _events = {
annotationAdded: null
};
var toolDef = new Shape(TOOL_TYPE, _events);
var exportJSON = toolDef.exportJSON;
delete(toolDef.exportJSON);
var importJSON = toolDef.importJSON;
delete(toolDef.importJSON);
// ----- Initialisations ------------------------------
// ----- Functions ------------------------------------
// ----- Returned Module ------------------------------
return {
name: TOOL_TYPE,
tool: new paper.Tool(toolDef),
exportJSON: exportJSON,
importJSON: importJSON,
registerEvent: function(eventName, evt) { _events[eventName] = evt; }
};
});
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment