Scales Folder

This commit is contained in:
Luis Fernando Molina committed 2018-06-28 11:58:58 +02:00
1 parent f4ea50d1fa
commit a22a16b500
4 files changed
+46 -3

No files matched your search

+2 -1
View File
@@ -169,7 +169,7 @@
</Compile>
<Compile Include="Candle.js" />
<Compile Include="Canvas.js" />
<Compile Include="ChartGrid.js" />
<Compile Include="Scales\ChartGrid.js" />
<Compile Include="Spaces\ChartSpace.js" />
<Compile Include="ChartUtilities.js" />
<Compile Include="Container.js" />
@@ -211,6 +211,7 @@
<Folder Include="FloatingSpace\" />
<Folder Include="AABrowserAPI\" />
<Folder Include="BottomSpace\" />
<Folder Include="Scales\" />
<Folder Include="TopSpace\" />
<Folder Include="Scripts\" />
<Folder Include="Server\" />
+35 -1
View File
@@ -1,11 +1,45 @@
function newChartGrid() {
let thisObject = {
draw: draw
container: undefined,
draw: draw,
getContainer: getContainer,
};
let container = newContainer();
container.initialize();
thisObject.container = container;
thisObject.container.frame.width = 200;
thisObject.container.frame.height = TOP_SPACE_HEIGHT;
container.frame.position.x = viewPort.visibleArea.topRight.x - thisObject.container.frame.width * 3;
container.frame.position.y = 0;
container.isDraggeable = false;
container.isClickeable = true;
return thisObject;
function getContainer(point) {
let container;
/* First we check if this point is inside this object UI. */
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
return this.container;
} else {
/* This point does not belong to this space. */
return undefined;
}
}
function draw(container, timeLineCoordinateSystem) {
rightScaleBackground();
+3 -1
View File
@@ -68,6 +68,8 @@
"CloudVM/WebFS.js",
"CloudVM/CloudVM.js",
"Scales/ChartGrid.js",
"BreakpointsBar.js",
"Plotter.js",
"PlotterPanel.js",
@@ -90,7 +92,7 @@
"VolumeBar.js",
"ChartUtilities.js",
"TimelineChart.js",
"ChartGrid.js",
"Animation.js",
"Container.js",
+6
View File
@@ -845,6 +845,12 @@ function onBrowserRequest(request, response) {
}
break;
case "Scales":
{
respondWithFile('./' + requestParameters[1] + '/' + requestParameters[2], response);
}
break;
case "Files":
{
respondWithFile('./' + requestParameters[1] + '/' + requestParameters[2], response);