Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FloodSimulation-Browser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
FloodSimulation-Browser
Commits
ecd37581
Commit
ecd37581
authored
Jun 04, 2012
by
Richard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chart library works, I think. Took charts and sencha file from touch charts 2.0-dev
parent
f44d7236
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
24 deletions
+42
-24
www/app.js
www/app.js
+1
-1
www/app/controller/Main.js
www/app/controller/Main.js
+0
-10
www/app/view/Chart.js
www/app/view/Chart.js
+23
-11
www/app/view/Map.js
www/app/view/Map.js
+10
-1
www/app/view/Simulation.js
www/app/view/Simulation.js
+6
-0
www/index.html
www/index.html
+2
-1
No files found.
www/app.js
View file @
ecd37581
...
@@ -5,7 +5,7 @@ Ext.Loader.setPath({
...
@@ -5,7 +5,7 @@ Ext.Loader.setPath({
//</debug>
//</debug>
Ext
.
application
({
Ext
.
application
({
controllers
:
[
"
Lsm
"
,
"
Main
"
],
controllers
:
[
"
Lsm
"
,
"
Main
"
,
"
ChartController
"
],
models
:
[
"
SimulationModel
"
,
"
SimulationDetails
"
],
models
:
[
"
SimulationModel
"
,
"
SimulationDetails
"
],
stores
:
[
'
SimulationStore
'
,
'
SimulationDetailsStore
'
,
'
SimulationsSummary
'
,
'
LsmStore
'
],
stores
:
[
'
SimulationStore
'
,
'
SimulationDetailsStore
'
,
'
SimulationsSummary
'
,
'
LsmStore
'
],
...
...
www/app/controller/Main.js
View file @
ecd37581
...
@@ -63,7 +63,6 @@ Ext.define('app.controller.Main', {
...
@@ -63,7 +63,6 @@ Ext.define('app.controller.Main', {
'
listpanel #summary
'
:
{
'
listpanel #summary
'
:
{
itemtap
:
'
simulate
'
,
itemtap
:
'
simulate
'
,
scroll
:
'
scroll
'
},
},
'
#mapa
'
:
{
'
#mapa
'
:
{
...
@@ -108,19 +107,10 @@ Ext.define('app.controller.Main', {
...
@@ -108,19 +107,10 @@ Ext.define('app.controller.Main', {
'
listpanel #lsmsimulation-list
'
:{
'
listpanel #lsmsimulation-list
'
:{
itemtap
:
'
simulate
'
,
itemtap
:
'
simulate
'
,
show
:
'
allo
'
,
}
}
}
}
},
},
scroll
:
function
(){
console
.
log
(
'
scroll
'
);
},
allo
:
function
(){
console
.
log
(
"
allo
"
);
},
initiateCities
:
function
(){
initiateCities
:
function
(){
this
.
getSimOptionsButton
().
show
();
this
.
getSimOptionsButton
().
show
();
},
},
...
...
www/app/view/Chart.js
View file @
ecd37581
var
drawComponent
=
new
Ext
.
draw
.
Component
({
// var drawComponent = new Ext.draw.Component({
items
:
[{
// config: {
type
:
'
circle
'
,
// width: 100,
fill
:
'
#79BB3F
'
,
// },
radius
:
100
,
// items: [{
x
:
100
,
// type: 'circle',
y
:
100
// fill: '#79BB3F',
}]
// radius: 20,
// }]
// });
var
chart
=
new
Ext
.
chart
.
Chart
({
width
:
200
,
height
:
200
,
animate
:
true
,
});
});
Ext
.
define
(
'
app.view.Chart
'
,
{
Ext
.
define
(
'
app.view.Chart
'
,
{
extend
:
'
Ext.Panel
'
,
extend
:
'
Ext.chart.Panel
'
,
xtype
:
'
chartpanel
'
,
id
:
'
flood-chart
'
,
xtype
:
'
floodChart
'
,
config
:
{
config
:
{
items
:
[
drawComponent
]
width
:
100
,
height
:
100
,
draggable
:
true
,
items
:
[
chart
]
}
}
});
});
...
...
www/app/view/Map.js
View file @
ecd37581
...
@@ -22,14 +22,23 @@ Ext.define('app.view.Map', {
...
@@ -22,14 +22,23 @@ Ext.define('app.view.Map', {
this
.
Images
=
[];
this
.
Images
=
[];
this
.
imageIndex
=
0
;
this
.
imageIndex
=
0
;
this
.
imageBounds
=
null
;
this
.
imageBounds
=
null
;
this
.
play
=
false
;
this
.
play
=
false
;
}
}
}
}
},
},
getReference
:
function
(){
return
this
.
globalMap
;
},
setGlobalMap
:
function
(
extmap
,
map
){
setGlobalMap
:
function
(
extmap
,
map
){
this
.
globalMap
=
map
;
this
.
globalMap
=
map
;
this
.
globalExtMap
=
extmap
;
this
.
globalExtMap
=
extmap
;
google
.
maps
.
event
.
addListener
(
map
,
'
click
'
,
function
(){
console
.
log
(
'
click
'
);
});
//this.globalMap.on('click', );
},
},
setCenterMap
:
function
(
center
){
setCenterMap
:
function
(
center
){
...
...
www/app/view/Simulation.js
View file @
ecd37581
/*simulationpanel, this is the right side of the app, on flex 2*/
Ext
.
define
(
'
app.view.Simulation
'
,
{
Ext
.
define
(
'
app.view.Simulation
'
,
{
extend
:
'
Ext.Panel
'
,
extend
:
'
Ext.Panel
'
,
xtype
:
'
simulationpanel
'
,
xtype
:
'
simulationpanel
'
,
...
@@ -10,6 +11,11 @@ Ext.define('app.view.Simulation', {
...
@@ -10,6 +11,11 @@ Ext.define('app.view.Simulation', {
xtype
:
'
toolbar
'
,
xtype
:
'
toolbar
'
,
ui
:
'
charcoal
'
,
ui
:
'
charcoal
'
,
title
:
'
Flood Simulation Browser
'
,
title
:
'
Flood Simulation Browser
'
,
items
:
[{
id
:
'
create-chart
'
,
xtype
:
'
button
'
,
text
:
'
create chart
'
,
}]
},
},
{
{
xtype
:
'
SimulationMap
'
,
xtype
:
'
SimulationMap
'
,
...
...
www/index.html
View file @
ecd37581
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
</style>
</style>
<script
type=
"text/javascript"
src=
"http://maps.google.com/maps/api/js?sensor=true"
></script>
<script
type=
"text/javascript"
src=
"http://maps.google.com/maps/api/js?sensor=true"
></script>
<script
id=
"microloader"
type=
"text/javascript"
src=
"sdk/microloader/development.js"
></script>
<script
id=
"microloader"
type=
"text/javascript"
src=
"sdk/microloader/development.js"
></script>
<script
type=
"text/javascript"
src=
"sdk/touch-charts
-debug
.js"
></script>
<script
type=
"text/javascript"
src=
"sdk/touch-charts.js"
></script>
</head>
</head>
<body>
<body>
<div
id=
"appLoadingIndicator"
>
<div
id=
"appLoadingIndicator"
>
...
@@ -131,4 +131,5 @@
...
@@ -131,4 +131,5 @@
<div></div>
<div></div>
</div>
</div>
</body>
</body>
</html>
</html>
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