This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-vis
mirror of
https://github.com/jrtechs/vis.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
82
Wiki
Activity
Browse Source
added a setSize to the redraw function
flowchartTest
Alex de Mulder
9 years ago
parent
7f8bedf580
commit
04fb1aea64
2 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
lib/network/modules/Canvas.js
+1
-0
lib/network/modules/CanvasRenderer.js
+ 1
- 0
lib/network/modules/Canvas.js
View File
@ -38,6 +38,7 @@ class Canvas {
this
.
body
.
view
.
translation
.
y
=
obj
.
height
*
0.5
;
}
}
)
;
this
.
body
.
emitter
.
on
(
"setSize"
,
this
.
setSize
.
bind
(
this
)
)
;
this
.
body
.
emitter
.
on
(
"destroy"
,
(
)
=>
{
this
.
hammerFrame
.
destroy
(
)
;
this
.
hammer
.
destroy
(
)
;
+ 1
- 0
lib/network/modules/CanvasRenderer.js
View File
@ -111,6 +111,7 @@ class CanvasRenderer {
*
chart
will
be
resized
too
.
*
/
redraw
(
)
{
this
.
body
.
emitter
.
emit
(
'setSize'
)
;
this
.
_redraw
(
)
;
}
Write
Preview
Loading…
Cancel
Save