Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-vectordraw
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
xblock-vectordraw
Commits
f2bb3993
Commit
f2bb3993
authored
Sep 02, 2016
by
Brandon DeRosier
Committed by
GitHub
Sep 02, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10 from open-craft/bdero/port-sven-changes
Port fix for drawing vectors with id 0
parents
055e1166
d8e45005
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
vectordraw/public/js/vectordraw.js
+1
-1
No files found.
vectordraw/public/js/vectordraw.js
View file @
f2bb3993
...
@@ -422,7 +422,7 @@ function VectorDrawXBlock(runtime, element, init_args) {
...
@@ -422,7 +422,7 @@ function VectorDrawXBlock(runtime, element, init_args) {
var
selected
=
this
.
getSelectedElement
();
var
selected
=
this
.
getSelectedElement
();
var
coords
=
this
.
getMouseCoords
(
evt
);
var
coords
=
this
.
getMouseCoords
(
evt
);
var
targetObjects
=
this
.
objectsUnderMouse
(
coords
);
var
targetObjects
=
this
.
objectsUnderMouse
(
coords
);
if
(
selected
.
idx
&&
(
!
targetObjects
||
_
.
all
(
targetObjects
,
this
.
canCreateVectorOnTopOf
.
bind
(
this
))))
{
if
(
!
_
.
isEmpty
(
selected
)
&&
(
!
targetObjects
||
_
.
all
(
targetObjects
,
this
.
canCreateVectorOnTopOf
.
bind
(
this
))))
{
var
point_coords
=
[
coords
.
usrCoords
[
1
],
coords
.
usrCoords
[
2
]];
var
point_coords
=
[
coords
.
usrCoords
[
1
],
coords
.
usrCoords
[
2
]];
if
(
selected
.
type
===
'vector'
)
{
if
(
selected
.
type
===
'vector'
)
{
this
.
drawMode
=
true
;
this
.
drawMode
=
true
;
...
...
Write
Preview
Markdown
is supported
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