tyding up code and adding comments
This commit is contained in:
1 parent
c9b135dd65
commit
1f03c313a2
5 files changed
+12
-15
No files matched your search
Binary file not shown.
@@ -63,7 +63,6 @@ function newCanvas() {
|
||||
|
||||
let splashScreen;
|
||||
|
||||
|
||||
return thisObject;
|
||||
|
||||
function initialize() {
|
||||
@@ -121,7 +120,6 @@ function newCanvas() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
function addCanvasEvents() {
|
||||
|
||||
/* Mouse down and up events to control the drag of the canvas. */
|
||||
@@ -179,7 +177,6 @@ function newCanvas() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
function onMouseClick(event) {
|
||||
|
||||
dragVector.downX = event.pageX;
|
||||
@@ -216,8 +213,6 @@ function newCanvas() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function onMouseUp(event) {
|
||||
|
||||
if (containerDragStarted || viewPortBeingDragged || ballDragStarted) {
|
||||
@@ -377,7 +372,6 @@ function newCanvas() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
function onMouseWheel(event) {
|
||||
|
||||
// cross-browser wheel delta
|
||||
@@ -420,8 +414,6 @@ function newCanvas() {
|
||||
return false; // This instructs the browser not to take the event and scroll the page.
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
+10
-4
@@ -1,9 +1,16 @@
|
||||
|
||||
/*
|
||||
|
||||
Markets are a function of time. When watching them, end users must be positioned at one particular point in time. The system currently allows users
|
||||
to position themselves at any time they like.
|
||||
|
||||
In the future, it will be usefull to explore markets and compare them at different times simultaneously. Anticipating that future this module exists.
|
||||
All the charts that depand on a datetime are children of this object Time Machine. In the future we will allow users to have more than one Time Machine,
|
||||
each one with it own charts, and each one positioned at an especific point in titme.
|
||||
|
||||
*/
|
||||
|
||||
function newTimeMachine() {
|
||||
|
||||
|
||||
|
||||
var timeMachine = {
|
||||
container: undefined,
|
||||
controlPanel: undefined,
|
||||
@@ -114,7 +121,6 @@ function newTimeMachine() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
function draw() {
|
||||
|
||||
this.container.frame.draw(false, false);
|
||||
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
|
||||
function newTimelineChart() {
|
||||
function newTimelineChart() {
|
||||
|
||||
const CONSOLE_LOG = false;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ if (CONSOLE_LOG === true) {
|
||||
|
||||
}
|
||||
|
||||
const DEBUG_MODE = false; // This forces the server to read Plotters from the local drive.
|
||||
const DEBUG_MODE = true; // This forces the server to read Plotters from the local drive.
|
||||
|
||||
if (CONSOLE_LOG === true && DEBUG_MODE === true) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user