Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stwkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
stwkit
Commits
076dd6da
Commit
076dd6da
authored
Sep 28, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maxDepth
parent
cceefeff
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
src/components/cards.js
src/components/cards.js
+2
-0
src/components/cards.js.map
src/components/cards.js.map
+1
-1
src/components/cards.ts
src/components/cards.ts
+4
-1
No files found.
src/components/cards.js
View file @
076dd6da
...
...
@@ -210,6 +210,7 @@ var STWkit;
"
tabs
"
:
false
,
"
callback
"
:
function
(
latlngs
,
geojson
)
{
self
.
positions
=
[];
self
.
maxDepth
=
0
;
if
(
latlngs
.
length
>
0
)
{
var
toggleevt
=
document
.
createEvent
(
"
CustomEvent
"
);
toggleevt
.
initCustomEvent
(
'
container:toggleVisibility
'
,
false
,
false
,
{
...
...
@@ -252,6 +253,7 @@ var STWkit;
self
.
control
.
showTable
();
for
(
var
i
=
0
;
i
<
coordinates
.
length
;
i
++
)
self
.
positions
.
push
([
coordinates
[
i
][
1
],
coordinates
[
i
][
0
],
self
.
forcingBoundary
.
depth
(
coordinates
[
i
][
1
],
coordinates
[
i
][
0
])]);
self
.
maxDepth
=
self
.
positions
[
0
][
2
];
self
.
validate
();
}
}
...
...
src/components/cards.js.map
View file @
076dd6da
This diff is collapsed.
Click to expand it.
src/components/cards.ts
View file @
076dd6da
...
...
@@ -108,6 +108,7 @@ module STWkit {
public
datetimeFormat
:
string
;
public
datetimeTFormat
:
string
;
public
positions
:
any
[];
public
maxDepth
:
number
;
public
geometryType
:
string
;
private
forcingBoundary
:
any
;
private
locationDiv
:
HTMLDivElement
;
...
...
@@ -237,6 +238,7 @@ module STWkit {
"
tabs
"
:
false
,
"
callback
"
:
function
(
latlngs
,
geojson
)
{
self
.
positions
=
[];
self
.
maxDepth
=
0
;
if
(
latlngs
.
length
>
0
)
{
var
toggleevt
=
document
.
createEvent
(
"
CustomEvent
"
);
toggleevt
.
initCustomEvent
(
'
container:toggleVisibility
'
,
false
,
false
,
{
...
...
@@ -276,7 +278,8 @@ module STWkit {
}
self
.
control
.
showTable
();
for
(
var
i
=
0
;
i
<
coordinates
.
length
;
i
++
)
self
.
positions
.
push
([
coordinates
[
i
][
1
],
coordinates
[
i
][
0
],
self
.
forcingBoundary
.
depth
(
coordinates
[
i
][
1
],
coordinates
[
i
][
0
])]);
self
.
positions
.
push
([
coordinates
[
i
][
1
],
coordinates
[
i
][
0
],
self
.
forcingBoundary
.
depth
(
coordinates
[
i
][
1
],
coordinates
[
i
][
0
])]);
self
.
maxDepth
=
self
.
positions
[
0
][
2
];
self
.
validate
();
}
}
...
...
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