Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Commits
6c4f7949
Commit
6c4f7949
authored
Nov 07, 2019
by
christianrhansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaned mobileCellMove()
parent
52675cf8
Pipeline
#20262
passed with stage
in 1 minute and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
24 deletions
+2
-24
partials/GridEditor.vue
partials/GridEditor.vue
+2
-24
No files found.
partials/GridEditor.vue
View file @
6c4f7949
...
...
@@ -629,34 +629,12 @@
let
cellType
=
cell
.
component
this
.
selectedCell
.
type
=
cellType
.
substr
(
4
,
cellType
.
length
-
4
)
},
// async mobileCellMove (annotation, _x, _y) {
async
mobileCellMove
(
annotation
,
x
,
y
)
{
// this.$el.scrollLeft = this.$el.scrollLeft + (this.gridDimensions.full.cell.width * _x)
let
parsed
=
annotation
.
target
.
selector
.
parse
()
/*
sliced = parsed.xywh.slice(0, 4),
x = sliced[0],
y = sliced[1],
w = sliced[2],
h = sliced[3]
*/
/*
// ----- x
if (_x === -1) if (x > 1) x += _x
if (_x === 1 && x < this.grid.config.columns - w + 1) x += _x
// ----- y
if (_y === -1) if (y > 1) y += _y
if (_y === 1 && y < this.grid.config.rows - h + 1) y += _y
*/
// x += _x
// y += _y
let
parsed
=
annotation
.
target
.
selector
.
parse
()
let
target
=
this
.
grid
.
get2DArea
([
x
,
y
],
parsed
.
xywh
.
slice
(
2
))
annotation
.
target
.
selector
.
value
=
target
.
selector
.
value
await
this
.
$store
.
dispatch
(
'
annotations/patch
'
,
[
annotation
.
id
,
{
target
:
{
...
...
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