Commit cde84378 authored by Diego Rey's avatar Diego Rey
Browse files

Add function plot v2

- This new version of function plot has:
- Handler for shape rendering
- Handler for integer, real and enumerated domains and codomain
parent d7cba3ba
......@@ -4139,8 +4139,8 @@
"dev": true
},
"function-plot": {
"version": "git+https://github.com/diego-rey/function-plot.git#8e0045a0abcfc93662df118da951a056812141dc",
"from": "git+https://github.com/diego-rey/function-plot.git#feature/shape-type",
"version": "git+https://github.com/diego-rey/function-plot.git#9aeb9257649497939ba3c89cf69f1c338e91d436",
"from": "git+https://github.com/diego-rey/function-plot.git#feature/integration-domain-shape",
"requires": {
"array-range": "^1.0.1",
"built-in-math-eval": "^0.3.0",
......
......@@ -24,7 +24,7 @@
"core-js": "^2.4.1",
"d3": "^4.12.2",
"font-awesome": "^4.7.0",
"function-plot": "git+https://github.com/diego-rey/function-plot.git#feature/shape-type",
"function-plot": "git+https://github.com/diego-rey/function-plot.git#feature/integration-domain-shape",
"ionicons": "^3.0.0",
"jq-console": "^2.13.2",
"jquery": "^3.2.1",
......
......@@ -20,29 +20,41 @@ export class Graph2DComponent {
functionPlot({
target: '#graph2D-container',
width: 770,
height: 720,
tip: {
color: 'green'
},
target: '#implicit-complex',
xAxis: {
label: 'x - axis',
scale: 'linear',
domain: {
initial: [-4, 4],
type: 'discrete'
},
yAxis: {
domain: [-4, 4]
},
},
conj: {
radio: 2,
baseDom: 'Z',
baseCod: 'Z',
cod: 'Numer',
dom: 'Func',
sets: {
fcod:['Lun','Mart','Mier','Juev','Vier','Saba','Dom','Lunes'],
fdom: function (x) {
// scope.x = Number
return (0 <= x);
}
}
},
data: [{
graphType: 'scatter',
fn: function (scope) {
// scope.x = Number
return fun(scope.x)
}
}]
})
// functionPlot({
// target: '#graph2D-container',
// width: 620,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment