Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
ADIM
Commits
04194bc0
Commit
04194bc0
authored
Jan 20, 2017
by
M. Chardon
Browse files
ajout ellipse geo
parent
977e011e
Changes
1
Show whitespace changes
Inline
Side-by-side
adim_project/adim_app/static/_src/adim/tools/ellipsegeo.js
0 → 100644
View file @
04194bc0
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment