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
18b2fc2d
Commit
18b2fc2d
authored
Mar 31, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/sparklines' of
https://github.com/ONLYOFFICE/sdkjs
into feature/sparklines
parents
42418b3f
89927348
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
23 deletions
+28
-23
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+19
-19
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+1
-1
common/Charts/DrawingObjects.js
common/Charts/DrawingObjects.js
+8
-3
No files found.
cell/model/WorkbookElems.js
View file @
18b2fc2d
...
...
@@ -4468,27 +4468,27 @@ function sparklineGroup() {
this
.
arrSparklines
=
[];
this
.
arrCachedSparklines
=
[];
}
sparklineGroup
.
prototype
.
clearCached
=
function
()
{
sparklineGroup
.
prototype
.
clearCached
=
function
()
{
this
.
arrCachedSparklines
.
length
=
0
;
};
sparklineGroup
.
prototype
.
addView
=
function
(
oSparklineView
)
{
sparklineGroup
.
prototype
.
addView
=
function
(
oSparklineView
)
{
this
.
arrCachedSparklines
.
push
(
oSparklineView
);
};
sparklineGroup
.
prototype
.
draw
=
function
(
oDrawingContext
)
{
sparklineGroup
.
prototype
.
draw
=
function
(
oDrawingContext
)
{
var
graphics
=
new
CGraphics
();
graphics
.
init
(
oDrawingContext
.
ctx
,
oDrawingContext
.
getWidth
(
0
),
oDrawingContext
.
getHeight
(
0
),
oDrawingContext
.
getWidth
(
3
),
oDrawingContext
.
getHeight
(
3
));
graphics
.
init
(
oDrawingContext
.
ctx
,
oDrawingContext
.
getWidth
(
0
),
oDrawingContext
.
getHeight
(
0
),
oDrawingContext
.
getWidth
(
3
),
oDrawingContext
.
getHeight
(
3
));
graphics
.
m_oFontManager
=
g_fontManager
;
for
(
var
i
=
0
;
i
<
this
.
arrCachedSparklines
.
length
;
++
i
)
{
for
(
var
i
=
0
;
i
<
this
.
arrCachedSparklines
.
length
;
++
i
)
{
this
.
arrCachedSparklines
[
i
].
draw
(
graphics
);
}
};
sparklineGroup
.
prototype
.
updateCache
=
function
(
wsView
)
{
wsView
.
objectRender
.
createSparklineViews
(
this
);
sparklineGroup
.
prototype
.
updateCache
=
function
(
range
)
{
for
(
var
i
=
0
;
i
<
this
.
arrSparklines
.
length
;
++
i
)
{
if
(
range
.
intersectionSimple
(
this
.
arrSparklines
[
i
].
f
))
{
this
.
arrCachedSparklines
[
i
]
=
null
;
}
}
};
/** @constructor */
function
sparkline
()
{
...
...
cell/view/WorksheetView.js
View file @
18b2fc2d
...
...
@@ -2458,7 +2458,7 @@
/** Рисует спарклайны */
WorksheetView
.
prototype
.
_drawSparklines
=
function
(
drawingCtx
,
range
,
offsetX
,
offsetY
)
{
this
.
objectRender
.
drawSparkLineGroup
(
this
.
model
.
sparklineGroups
,
drawingCtx
);
this
.
objectRender
.
drawSparkLineGroup
s
(
drawingCtx
,
this
.
model
.
sparklineGroups
,
range
);
};
/** Рисует ячейки таблицы */
...
...
common/Charts/DrawingObjects.js
View file @
18b2fc2d
...
...
@@ -2024,10 +2024,15 @@ function DrawingObjects() {
}
};
_this
.
drawSparkLineGroup
=
function
(
oSparkLineGroup
,
oDrawingContext
)
_this
.
drawSparkLineGroup
s
=
function
(
oDrawingContext
,
oSparkLineGroups
,
range
)
{
},
for
(
var
i
=
0
;
i
<
oSparkLineGroups
.
arrSparklineGroup
.
length
;
++
i
)
{
var
oSparklineGroup
=
oSparkLineGroups
.
arrSparklineGroup
[
i
];
oSparklineGroup
.
updateCache
(
range
);
for
(
var
j
=
0
;
j
<
oSparklineGroup
.
arrSparklines
.
length
;
++
j
)
{
}
}
};
_this
.
rebuildChartGraphicObjects
=
function
(
data
)
{
...
...
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