Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
4bf07dd9
Commit
4bf07dd9
authored
Apr 11, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Bug 32148 - Не отображается область 3D диаграммы типа Line, созданной в Libre Office
parent
cc884ada
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
261 additions
and
110 deletions
+261
-110
common/Charts/ChartsDrawer.js
common/Charts/ChartsDrawer.js
+79
-79
common/Drawings/Format/ChartSpace.js
common/Drawings/Format/ChartSpace.js
+182
-31
No files found.
common/Charts/ChartsDrawer.js
View file @
4bf07dd9
...
...
@@ -2616,7 +2616,7 @@ function drawBarChart()
this
.
chartProp
=
null
;
this
.
cChartDrawer
=
null
;
this
.
cShapeDrawer
=
null
;
this
.
paths
=
{};
this
.
paths
=
{};
this
.
sortZIndexPaths
=
[];
this
.
summBarVal
=
[];
}
...
...
@@ -2818,8 +2818,8 @@ drawBarChart.prototype =
if
(
seria
.
length
)
seriesCounter
++
;
}
}
if
(
this
.
cChartDrawer
.
nDimensionCount
===
3
)
{
this
.
sortZIndexPaths
.
sort
(
function
sortArr
(
a
,
b
)
...
...
@@ -3202,7 +3202,7 @@ drawBarChart.prototype =
var
isNotDrawDownVerge
;
/*if((this.chartProp.subType == "stacked" || this.chartProp.subType == "stackedPer") && val < 0 && (isValMoreZero || (!isValMoreZero && isValLessZero !== 1)))
isNotDrawDownVerge = true;*/
var
paths
=
this
.
cChartDrawer
.
calculateRect3D
(
point1
,
point2
,
point3
,
point4
,
point5
,
point6
,
point7
,
point8
,
val
,
isNotDrawDownVerge
);
height
=
this
.
chartProp
.
heightCanvas
-
this
.
chartProp
.
chartGutter
.
_top
-
this
.
chartProp
.
chartGutter
.
_bottom
;
...
...
@@ -3638,80 +3638,80 @@ drawLineChart.prototype =
_drawLines3D
:
function
()
{
var
t
=
this
;
var
drawVerges
=
function
(
j
,
i
,
onlyLessNull
)
{
var
brush
,
pen
,
seria
;
seria
=
t
.
chartProp
.
series
[
j
];
brush
=
seria
.
brush
;
pen
=
seria
.
pen
;
if
(
!
(
!
t
.
paths
.
series
[
j
]
||
!
t
.
paths
.
series
[
j
][
i
]
||
!
seria
.
val
.
numRef
.
numCache
.
pts
[
i
]))
{
if
(
seria
.
val
.
numRef
.
numCache
.
pts
[
i
].
pen
)
pen
=
seria
.
val
.
numRef
.
numCache
.
pts
[
i
].
pen
;
if
(
seria
.
val
.
numRef
.
numCache
.
pts
[
i
].
brush
)
brush
=
seria
.
val
.
numRef
.
numCache
.
pts
[
i
].
brush
;
for
(
var
k
=
0
;
k
<
t
.
paths
.
series
[
j
][
i
].
length
;
k
++
)
{
t
.
_drawLine3D
(
t
.
paths
.
series
[
j
][
i
][
k
],
pen
,
brush
,
k
);
}
}
};
//рисуем по сериям
var
onSeries
=
function
(
onlyLessNull
)
{
var
drawNeedVerge
=
function
()
{
for
(
var
j
=
0
;
j
<
t
.
paths
.
series
.
length
;
j
++
)
{
for
(
var
i
=
0
;
i
<
t
.
chartProp
.
ptCount
;
i
++
)
{
drawVerges
(
j
,
i
,
onlyLessNull
);
}
}
};
drawNeedVerge
();
};
var
reverseSeriesOnSeries
=
function
(
onlyLessNull
)
{
var
drawNeedVerge
=
function
()
{
for
(
var
j
=
t
.
paths
.
series
.
length
-
1
;
j
>=
0
;
j
--
)
{
if
(
!
t
.
paths
.
series
)
return
;
for
(
var
i
=
0
;
i
<
t
.
chartProp
.
ptCount
;
i
++
)
{
drawVerges
(
j
,
i
,
onlyLessNull
);
}
}
};
drawNeedVerge
();
};
if
(
!
this
.
cChartDrawer
.
processor3D
.
view3D
.
rAngAx
)
{
var
angle
=
Math
.
abs
(
this
.
cChartDrawer
.
processor3D
.
angleOy
);
if
(
angle
>
Math
.
PI
/
2
&&
angle
<
3
*
Math
.
PI
/
2
)
onSeries
();
else
reverseSeriesOnSeries
();
}
else
{
reverseSeriesOnSeries
();
var
t
=
this
;
var
drawVerges
=
function
(
j
,
i
,
onlyLessNull
)
{
var
brush
,
pen
,
seria
;
seria
=
t
.
chartProp
.
series
[
j
];
brush
=
seria
.
brush
;
pen
=
seria
.
pen
;
if
(
!
(
!
t
.
paths
.
series
[
j
]
||
!
t
.
paths
.
series
[
j
][
i
]
||
!
seria
.
val
.
numRef
.
numCache
.
pts
[
i
]))
{
if
(
seria
.
val
.
numRef
.
numCache
.
pts
[
i
].
pen
)
pen
=
seria
.
val
.
numRef
.
numCache
.
pts
[
i
].
pen
;
if
(
seria
.
val
.
numRef
.
numCache
.
pts
[
i
].
brush
)
brush
=
seria
.
val
.
numRef
.
numCache
.
pts
[
i
].
brush
;
for
(
var
k
=
0
;
k
<
t
.
paths
.
series
[
j
][
i
].
length
;
k
++
)
{
t
.
_drawLine3D
(
t
.
paths
.
series
[
j
][
i
][
k
],
pen
,
brush
,
k
);
}
}
};
//рисуем по сериям
var
onSeries
=
function
(
onlyLessNull
)
{
var
drawNeedVerge
=
function
()
{
for
(
var
j
=
0
;
j
<
t
.
paths
.
series
.
length
;
j
++
)
{
for
(
var
i
=
0
;
i
<
t
.
chartProp
.
ptCount
;
i
++
)
{
drawVerges
(
j
,
i
,
onlyLessNull
);
}
}
};
drawNeedVerge
();
};
var
reverseSeriesOnSeries
=
function
(
onlyLessNull
)
{
var
drawNeedVerge
=
function
()
{
for
(
var
j
=
t
.
paths
.
series
.
length
-
1
;
j
>=
0
;
j
--
)
{
if
(
!
t
.
paths
.
series
)
return
;
for
(
var
i
=
0
;
i
<
t
.
chartProp
.
ptCount
;
i
++
)
{
drawVerges
(
j
,
i
,
onlyLessNull
);
}
}
};
drawNeedVerge
();
};
if
(
!
this
.
cChartDrawer
.
processor3D
.
view3D
.
rAngAx
)
{
var
angle
=
Math
.
abs
(
this
.
cChartDrawer
.
processor3D
.
angleOy
);
if
(
angle
>
Math
.
PI
/
2
&&
angle
<
3
*
Math
.
PI
/
2
)
onSeries
();
else
reverseSeriesOnSeries
();
}
else
{
reverseSeriesOnSeries
();
}
},
...
...
@@ -3721,7 +3721,7 @@ drawLineChart.prototype =
//в excel всегда темные боковые стороны, лицевая и задняя стороны светлые
//todo возможно стоит проверить fill.type на FILL_TYPE_NOFILL и рисовать отдельно границы, если они заданы!
brush
=
pen
.
Fill
;
//
brush = pen.Fill;
if
(
brush
.
fill
.
color
===
undefined
)
return
;
...
...
common/Drawings/Format/ChartSpace.js
View file @
4bf07dd9
This diff is collapsed.
Click to expand it.
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