Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matefun
Frontend
Commits
a5ed5208
Commit
a5ed5208
authored
Aug 19, 2018
by
Diego Rey
Browse files
Fixed update and clear functionalities for graph 2D
parent
975e919d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Frontend Angular 4/package-lock.json
View file @
a5ed5208
...
...
@@ -4139,7 +4139,7 @@
"dev"
:
true
},
"function-plot"
:
{
"version"
:
"git://github.com/diego-rey/function-plot.git#
1543ff3b723285e0119c53a9bd3d37ab7e671ca9
"
,
"version"
:
"git://github.com/diego-rey/function-plot.git#
d60f8903c392702a32ad42097e7b6575af05cb6a
"
,
"from"
:
"git://github.com/diego-rey/function-plot.git#feature/integration-domain-shape"
,
"requires"
:
{
"array-range"
:
"^1.0.1"
,
...
...
Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.ts
View file @
a5ed5208
...
...
@@ -99,7 +99,7 @@ export class Graph2DComponent {
break
;
}
case
'
canvas
'
:
{
var
shapesData
=
JSON
.
parse
(
toJSON
(
canvas
.
resultado
)
)
;
var
shapesData
=
JSON
.
parse
(
canvas
.
resultado
);
var
shapesDataNormalized
=
this
.
normalizeShapesData
(
shapesData
);
this
.
instance
=
null
;
this
.
instance
=
functionPlot
({
...
...
@@ -157,10 +157,7 @@ export class Graph2DComponent {
type
:
'
discrete
'
}
},
data
:
[],
plugins
:
[
functionPlot
.
plugins
.
zoomBox
()
]
data
:
[]
})
}
}
...
...
@@ -253,6 +250,7 @@ export class Graph2DComponent {
* @desc remove all the graph from the instance.
*/
public
cleanPlot
=
function
()
{
this
.
instance
.
removeAllGraphs
();
}
/**
...
...
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