Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
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
abdullh.alsoleman
Front-End
Commits
16f4f836
Commit
16f4f836
authored
Aug 29, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update playfair after TextPainter rename
parent
03cc05ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
base.dart
packages/playfair/lib/src/base.dart
+6
-6
No files found.
packages/playfair/lib/src/base.dart
View file @
16f4f836
...
...
@@ -44,7 +44,7 @@ class Chart extends LeafRenderObjectWrapper {
final
ChartData
data
;
RenderChart
createNode
()
=>
new
RenderChart
(
data:
data
);
RenderChart
get
r
oot
=>
super
.
roo
t
;
RenderChart
get
r
enderObject
=>
super
.
renderObjec
t
;
void
syncRenderObject
(
Widget
old
)
{
super
.
syncRenderObject
(
old
);
...
...
@@ -90,7 +90,7 @@ class RenderChart extends RenderConstrainedBox {
class
Gridline
{
double
value
;
Paragraph
Painter
labelPainter
;
Text
Painter
labelPainter
;
Point
labelPosition
;
Point
start
;
Point
end
;
...
...
@@ -99,12 +99,12 @@ class Gridline {
class
Indicator
{
Point
start
;
Point
end
;
Paragraph
Painter
labelPainter
;
Text
Painter
labelPainter
;
Point
labelPosition
;
}
class
ChartPainter
{
ChartPainter
(
ChartData
data
)
:
_data
=
data
;
ChartPainter
(
this
.
_data
)
;
ChartData
_data
;
ChartData
get
data
=>
_data
;
...
...
@@ -157,7 +157,7 @@ class ChartPainter {
_textTheme
.
body1
,
[
new
PlainTextSpan
(
"
${gridline.value}
"
)]
);
gridline
.
labelPainter
=
new
Paragraph
Painter
(
text
)
gridline
.
labelPainter
=
new
Text
Painter
(
text
)
..
maxWidth
=
_rect
.
width
..
layout
();
_horizontalGridlines
.
add
(
gridline
);
...
...
@@ -204,7 +204,7 @@ class ChartPainter {
_textTheme
.
body1
,
[
new
PlainTextSpan
(
"
${data.indicatorText}
"
)]
);
_indicator
.
labelPainter
=
new
Paragraph
Painter
(
text
)
_indicator
.
labelPainter
=
new
Text
Painter
(
text
)
..
maxWidth
=
markerRect
.
width
..
layout
();
_indicator
.
labelPosition
=
new
Point
(
...
...
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