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
e5a5cdde
Commit
e5a5cdde
authored
Jul 13, 2007
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- histogram - more or less - working
parent
2f0e9c09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
diagram_dom.js
www/resources/diagram/diagram_dom.js
+17
-7
No files found.
www/resources/diagram/diagram_dom.js
View file @
e5a5cdde
...
@@ -266,7 +266,9 @@ function _Draw(theDrawColor, theTextColor, isScaleText, theTooltipText, theOnCli
...
@@ -266,7 +266,9 @@ function _Draw(theDrawColor, theTextColor, isScaleText, theTooltipText, theOnCli
_DiagramTarget
.
document
.
writeln
(
divtext
+
"</div>"
);
_DiagramTarget
.
document
.
writeln
(
divtext
+
"</div>"
);
}
}
function
Bar
(
theLeft
,
theTop
,
theRight
,
theBottom
,
theDrawColor
,
theText
,
theTextColor
,
theTooltipText
,
theOnClickAction
,
theOnMouseoverAction
,
theOnMouseoutAction
)
function
Bar
(
theLeft
,
theTop
,
theRight
,
theBottom
,
theDrawColor
,
theText
,
theTextColor
,
theTooltipText
,
theOnClickAction
,
theOnMouseoverAction
,
theOnMouseoutAction
,
theTextAlignment
)
{
this
.
ID
=
"Bar"
+
_N_Bar
;
_N_Bar
++
;
_zIndex
++
;
{
this
.
ID
=
"Bar"
+
_N_Bar
;
_N_Bar
++
;
_zIndex
++
;
this
.
left
=
theLeft
;
this
.
left
=
theLeft
;
this
.
top
=
theTop
;
this
.
top
=
theTop
;
...
@@ -289,17 +291,23 @@ function Bar(theLeft, theTop, theRight, theBottom, theDrawColor, theText, theTex
...
@@ -289,17 +291,23 @@ function Bar(theLeft, theTop, theRight, theBottom, theDrawColor, theText, theTex
if
(
_nvl
(
theOnClickAction
,
""
)
!=
""
)
EventActions
+=
"onClick='"
+
_nvl
(
theOnClickAction
,
""
)
+
"' "
;
if
(
_nvl
(
theOnClickAction
,
""
)
!=
""
)
EventActions
+=
"onClick='"
+
_nvl
(
theOnClickAction
,
""
)
+
"' "
;
if
(
_nvl
(
theOnMouseoverAction
,
""
)
!=
""
)
EventActions
+=
"onMouseover='"
+
_nvl
(
theOnMouseoverAction
,
""
)
+
"' "
;
if
(
_nvl
(
theOnMouseoverAction
,
""
)
!=
""
)
EventActions
+=
"onMouseover='"
+
_nvl
(
theOnMouseoverAction
,
""
)
+
"' "
;
if
(
_nvl
(
theOnMouseoutAction
,
""
)
!=
""
)
EventActions
+=
"onMouseout='"
+
_nvl
(
theOnMouseoutAction
,
""
)
+
"' "
;
if
(
_nvl
(
theOnMouseoutAction
,
""
)
!=
""
)
EventActions
+=
"onMouseout='"
+
_nvl
(
theOnMouseoutAction
,
""
)
+
"' "
;
if
(
_nvl
(
theText
,
""
)
!=
""
)
if
(
_nvl
(
theText
,
""
)
!=
""
)
{
{
var
tt
=
theText
;
var
tt
=
theText
;
if
(
_IsImage
(
theText
))
tt
=
"<img src='"
+
theText
+
"' width="
+
eval
(
theRight
-
theLeft
-
1
)
+
" height="
+
eval
(
theBottom
-
theTop
-
1
)
+
">"
;
if
(
_IsImage
(
theText
))
tt
=
"<img src='"
+
theText
+
"' width="
+
eval
(
theRight
-
theLeft
-
1
)
+
" height="
+
eval
(
theBottom
-
theTop
-
1
)
+
">"
;
_DiagramTarget
.
document
.
writeln
(
"<div id='"
+
this
.
ID
+
"' "
+
EventActions
+
"style='"
+
_cursor
(
theOnClickAction
)
+
"position:absolute;left:"
+
theLeft
+
"px;top:"
+
theTop
+
"px;width:"
+
eval
(
theRight
-
theLeft
)
+
"px;height:"
+
eval
(
theBottom
-
theTop
)
+
"px;background-color:"
+
theDrawColor
+
";color:"
+
theTextColor
+
";"
+
_BFont
+
"z-index:"
+
_zIndex
+
"'; title='"
+
_nvl
(
theTooltipText
,
""
)
+
"' align=center>"
+
tt
+
"</div>"
);
}
_DiagramTarget
.
document
.
writeln
(
"<div id='"
+
this
.
ID
+
"' "
+
EventActions
+
"style='"
+
_cursor
(
theOnClickAction
)
+
"position:absolute;left:"
+
theLeft
+
"px;top:"
+
theTop
+
"px;width:"
+
eval
(
theRight
-
theLeft
)
+
"px;height:"
+
eval
(
theBottom
-
theTop
)
+
"px;background-color:"
+
theDrawColor
+
";color:"
+
theTextColor
+
";"
+
_BFont
+
"z-index:"
+
_zIndex
+
"'; title='"
+
_nvl
(
theTooltipText
,
""
)
+
"' align="
+
theTextAlignment
+
">"
+
tt
+
"</div>"
);
else
{
var
vv
=
(
this
.
height
>
0
)
?
""
:
";visibility:hidden"
;
}
else
{
var
vv
=
(
this
.
height
>
0
)
?
""
:
";visibility:hidden"
;
_DiagramTarget
.
document
.
writeln
(
"<div id='"
+
this
.
ID
+
"' "
+
EventActions
+
"style='"
+
_cursor
(
theOnClickAction
)
+
"position:absolute;left:"
+
theLeft
+
"px;top:"
+
theTop
+
"px;width:"
+
eval
(
theRight
-
theLeft
)
+
"px;height:"
+
eval
(
theBottom
-
theTop
)
+
"px;background-color:"
+
theDrawColor
+
";font-size:1pt;line-height:1pt;font-family:Verdana;font-weight:normal;z-index:"
+
_zIndex
+
vv
+
"'; title='"
+
_nvl
(
theTooltipText
,
""
)
+
"'> </div>"
);
_DiagramTarget
.
document
.
writeln
(
"<div id='"
+
this
.
ID
+
"' "
+
EventActions
+
"style='"
+
_cursor
(
theOnClickAction
)
+
"position:absolute;left:"
+
theLeft
+
"px;top:"
+
theTop
+
"px;width:"
+
eval
(
theRight
-
theLeft
)
+
"px;height:"
+
eval
(
theBottom
-
theTop
)
+
"px;background-color:"
+
theDrawColor
+
";font-size:1pt;line-height:1pt;font-family:Verdana;font-weight:normal;z-index:"
+
_zIndex
+
vv
+
"'; title='"
+
_nvl
(
theTooltipText
,
""
)
+
"'> </div>"
);
}
}
return
(
this
);
return
(
this
);
}
}
function
Box
(
theLeft
,
theTop
,
theRight
,
theBottom
,
theDrawColor
,
theText
,
theTextColor
,
theBorderWidth
,
theBorderColor
,
theTooltipText
,
theOnClickAction
,
theOnMouseoverAction
,
theOnMouseoutAction
)
function
Box
(
theLeft
,
theTop
,
theRight
,
theBottom
,
theDrawColor
,
theText
,
theTextColor
,
theBorderWidth
,
theBorderColor
,
theTooltipText
,
theOnClickAction
,
theOnMouseoverAction
,
theOnMouseoutAction
)
{
this
.
ID
=
"Box"
+
_N_Box
;
_N_Box
++
;
_zIndex
++
;
{
this
.
ID
=
"Box"
+
_N_Box
;
_N_Box
++
;
_zIndex
++
;
this
.
left
=
theLeft
;
this
.
left
=
theLeft
;
...
@@ -339,6 +347,8 @@ function Box(theLeft, theTop, theRight, theBottom, theDrawColor, theText, theTex
...
@@ -339,6 +347,8 @@ function Box(theLeft, theTop, theRight, theBottom, theDrawColor, theText, theTex
}
}
return
(
this
);
return
(
this
);
}
}
function
_SetBarColor
(
theColor
)
function
_SetBarColor
(
theColor
)
{
var
id
=
this
.
ID
,
selObj
;
{
var
id
=
this
.
ID
,
selObj
;
this
.
DrawColor
=
theColor
;
this
.
DrawColor
=
theColor
;
...
...
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