Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Thomas Vachuska
2014-11-11 12:48:31 -0800
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
Gerrit Code Review
2014-11-11 12:48:31 -0800
Commit
fc405c97f06457c868b96c8d315a94a9c3fcb969
fc405c97
2 parents
857b9e00
902c9921
Merge "GUI -- Update to memento format."
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
7 deletions
web/gui/src/main/webapp/json/ev/_capture/rx/addDevice_ex1.json
web/gui/src/main/webapp/json/ev/_capture/rx/addDevice_ex2_memo.json
web/gui/src/main/webapp/json/ev/_capture/tx/updateMeta_ex1.json
web/gui/src/main/webapp/topo2.js
web/gui/src/main/webapp/json/ev/_capture/rx/addDevice_ex1.json
View file @
fc405c9
...
...
@@ -10,6 +10,13 @@
""
,
null
],
"props"
:
{}
"props"
:
{
"location"
:
{
"type"
:
"latlng"
,
"lat"
:
123.5
,
"lng"
:
67.8
},
"anotherProp"
:
"foobar"
}
}
}
...
...
web/gui/src/main/webapp/json/ev/_capture/rx/addDevice_ex2_memo.json
0 → 100644
View file @
fc405c9
{
"event"
:
"addDevice"
,
"payload"
:
{
"id"
:
"of:0000000000000003"
,
"type"
:
"switch"
,
"online"
:
true
,
"labels"
:
[
"of:0000000000000003"
,
"3"
,
""
,
null
],
"props"
:
{
"location"
:
{
"type"
:
"latlng"
,
"lat"
:
123.5
,
"lng"
:
67.8
},
"anotherProp"
:
"foobar"
},
"metaUi"
:
{
"xpc"
:
57.3
,
"ypc"
:
24.86
,
"and"
:
"other properties the UI wishes to remember..."
}
}
}
web/gui/src/main/webapp/json/ev/_capture/tx/updateMeta_ex1.json
View file @
fc405c9
...
...
@@ -4,7 +4,11 @@
"payload"
:
{
"id"
:
"62:4F:65:BF:FF:B3/-1"
,
"class"
:
"host"
,
"x"
:
197
,
"y"
:
177
"memento"
:
{
"xpc"
:
57.3
,
"ypc"
:
24.86
,
"and"
:
"other properties the UI wishes to remember..."
}
}
}
...
...
web/gui/src/main/webapp/topo2.js
View file @
fc405c9
...
...
@@ -1154,16 +1154,18 @@
d
.
fixed
=
true
;
d3
.
select
(
self
).
classed
(
'fixed'
,
true
);
if
(
config
.
useLiveData
)
{
tellServerCoords
(
d
);
sendUpdateMeta
(
d
);
}
}
function
tellServerCoords
(
d
)
{
function
sendUpdateMeta
(
d
)
{
sendMessage
(
'updateMeta'
,
{
id
:
d
.
id
,
'class'
:
d
.
class
,
x
:
Math
.
floor
(
d
.
x
),
y
:
Math
.
floor
(
d
.
y
)
'memento'
:
{
x
:
Math
.
floor
(
d
.
x
),
y
:
Math
.
floor
(
d
.
y
)
}
});
}
...
...
Please
register
or
login
to post a comment