Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
diagram
Project
Project
Details
Activity
Releases
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
project-open
diagram
Commits
31edbd9b
Commit
31edbd9b
authored
Oct 28, 2008
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Changes from po34demo
parent
ce5ffbec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
diagram_dom.js
www/resources/diagram/diagram_dom.js
+12
-7
No files found.
www/resources/diagram/diagram_dom.js
View file @
31edbd9b
...
...
@@ -14,17 +14,20 @@ function _Draw(theDrawColor, theTextColor, isScaleText, theTooltipText, theOnCli
if
(
_nvl
(
theOnMouseoverAction
,
""
)
!=
""
)
EventActions
+=
"onMouseover='"
+
_nvl
(
theOnMouseoverAction
,
""
)
+
"' "
;
if
(
_nvl
(
theOnMouseoutAction
,
""
)
!=
""
)
EventActions
+=
"onMouseout='"
+
_nvl
(
theOnMouseoutAction
,
""
)
+
"' "
;
lay
--
;
if
(
document
.
all
)
selObj
=
eval
(
"_DiagramTarget.document.all."
+
id
);
else
selObj
=
_DiagramTarget
.
document
.
getElementById
(
id
);
if
(
document
.
all
)
selObj
=
eval
(
"_DiagramTarget.document.all."
+
id
);
else
selObj
=
_DiagramTarget
.
document
.
getElementById
(
id
);
if
(
selObj
)
lay
--
;
if
(
lay
<-
1
)
selObj
.
title
=
_nvl
(
theTooltipText
,
""
);
else
_DiagramTarget
.
document
.
writeln
(
"<div id='"
+
this
.
ID
+
"' title='"
+
_nvl
(
theTooltipText
,
""
)
+
"'>"
);
if
(
_IsImage
(
theDrawColor
))
if
(
_IsImage
(
theDrawColor
))
{
divtext
=
"<div id='"
+
this
.
ID
+
"i"
+
eval
(
ii
++
)
+
"' "
+
EventActions
+
"style='"
+
_cursor
(
theOnClickAction
)
+
"position:absolute; left:"
+
eval
(
this
.
left
)
+
"px; width:"
+
eval
(
this
.
right
-
this
.
left
+
_dSize
)
+
"px; top:"
+
eval
(
this
.
top
)
+
"px; height:"
+
eval
(
this
.
bottom
-
this
.
top
+
_dSize
)
+
"px; color:"
+
theTextColor
+
"; border-style:solid; border-width:1px; z-index:"
+
this
.
zIndex
+
"'><img src='"
+
theDrawColor
+
"' width="
+
eval
(
this
.
right
-
this
.
left
-
1
)
+
" height="
+
eval
(
this
.
bottom
-
this
.
top
-
1
)
+
"></div>"
;
else
divtext
=
"<div id='"
+
this
.
ID
+
"i"
+
eval
(
ii
++
)
+
"' "
+
EventActions
+
"style='"
+
_cursor
(
theOnClickAction
)
+
"position:absolute; left:"
+
eval
(
this
.
left
)
+
"px; width:"
+
eval
(
this
.
right
-
this
.
left
+
_dSize
)
+
"px; top:"
+
eval
(
this
.
top
)
+
"px; height:"
+
eval
(
this
.
bottom
-
this
.
top
+
_dSize
)
+
"px; background-color:"
+
theDrawColor
+
"; color:"
+
theTextColor
+
"; border-style:solid; border-width:1px; z-index:"
+
this
.
zIndex
+
"'> </div>"
;
}
else
{
divtext
=
"<div id='"
+
this
.
ID
+
"i"
+
eval
(
ii
++
)
+
"' "
+
EventActions
+
"style='"
+
_cursor
(
theOnClickAction
)
+
"position:absolute; left:"
+
eval
(
this
.
left
)
+
"px; width:"
+
eval
(
this
.
right
-
this
.
left
+
_dSize
)
+
"px; top:"
+
eval
(
this
.
top
)
+
"px; height:"
+
eval
(
this
.
bottom
-
this
.
top
+
_dSize
)
+
"px; background-color:"
+
theDrawColor
+
"; color:"
+
theTextColor
+
"; border-style:solid; border-width:1px; z-index:"
+
this
.
zIndex
+
"'> </div>"
;
}
if
((
this
.
XScale
==
1
)
||
(
isNaN
(
this
.
XScale
)))
{
u
=
""
;
fn
=
""
;
...
...
@@ -260,10 +263,12 @@ function _Draw(theDrawColor, theTextColor, isScaleText, theTooltipText, theOnCli
divtext
+=
"<div id='"
+
this
.
ID
+
"i"
+
eval
(
ii
++
)
+
"' align=center style='position:absolute; left:"
+
this
.
left
+
"px; width:"
+
eval
(
this
.
right
-
this
.
left
)
+
"px; top:"
+
eval
(
this
.
top
-
20
)
+
"px; color:"
+
theTextColor
+
";"
+
this
.
Font
+
" z-index:"
+
this
.
zIndex
+
"'>"
+
this
.
title
+
"</div>"
;
else
divtext
+=
"<div id='"
+
this
.
ID
+
"i"
+
eval
(
ii
++
)
+
"' align=center style='position:absolute; left:"
+
this
.
left
+
"px; width:"
+
eval
(
this
.
right
-
this
.
left
)
+
"px; top:"
+
eval
(
this
.
bottom
+
4
)
+
"px; color:"
+
theTextColor
+
";"
+
this
.
Font
+
" z-index:"
+
this
.
zIndex
+
"'>"
+
this
.
title
+
"</div>"
;
if
(
lay
<-
1
)
if
(
lay
<-
1
){
selObj
.
innerHTML
=
divtext
;
else
}
else
{
_DiagramTarget
.
document
.
writeln
(
divtext
+
"</div>"
);
}
}
...
...
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