Hello, I've discovered that imprecise events do not respect the background color that is delivered with events. I've attached a patch to painters.js that will allow imprecise events to have the color specified in the event data. I also pasted it in below in case there are any attachment issues.

Jeremy


--- ../../../timeline.clean/api/scripts/painters.js 2007-06-13 16:39:30.000000000 -0500
+++ painters.js 2007-07-12 12:08:08.000000000 -0500
@@ -128,8 +128,9 @@
                divImprecise.style.height = trackHeight + "em";
                divImprecise.style.left = startPixel + "px";
                divImprecise.style.width = length + "px";
+                var background = evt.getColor();
- divImprecise.style.background = eventTheme.instant.impreciseColor; + divImprecise.style.background = background != null ? background : eventTheme.instant.impreciseColor;
                if (eventTheme.instant.impreciseOpacity < 100) {
Timeline.Graphics.setOpacity(divImprecise, eventTheme.instant.impreciseOpacity);
                }
@@ -188,8 +189,10 @@
                div.style.height = trackHeight + "em";
                div.style.left = startPixel + "px";
                div.style.width = length + "px";
+                var background = evt.getColor();
- div.style.background = eventTheme.duration.impreciseColor; + div.style.background = background != null ? background : eventTheme.duration.impreciseColor;
+
                if (eventTheme.duration.impreciseOpacity < 100) {
Timeline.Graphics.setOpacity(div, eventTheme.duration.impreciseOpacity);
                }
@@ -331,4 +334,4 @@
    );
evt.fillInfoBubble(div, this._theme, this._band.getLabeller());
-};
\ No newline at end of file
+};




--- ../../../timeline.clean/api/scripts/painters.js	2007-06-13 16:39:30.000000000 -0500
+++ painters.js	2007-07-12 12:08:08.000000000 -0500
@@ -128,8 +128,9 @@
                 divImprecise.style.height = trackHeight + "em";
                 divImprecise.style.left = startPixel + "px";
                 divImprecise.style.width = length + "px";
+                var background = evt.getColor();
                 
-                divImprecise.style.background = eventTheme.instant.impreciseColor;
+                divImprecise.style.background = background != null ? background : eventTheme.instant.impreciseColor;
                 if (eventTheme.instant.impreciseOpacity < 100) {
                     Timeline.Graphics.setOpacity(divImprecise, eventTheme.instant.impreciseOpacity);
                 }
@@ -188,8 +189,10 @@
                 div.style.height = trackHeight + "em";
                 div.style.left = startPixel + "px";
                 div.style.width = length + "px";
+                var background = evt.getColor();
                 
-                div.style.background = eventTheme.duration.impreciseColor;
+                div.style.background = background != null ? background : eventTheme.duration.impreciseColor;
+
                 if (eventTheme.duration.impreciseOpacity < 100) {
                     Timeline.Graphics.setOpacity(div, eventTheme.duration.impreciseOpacity);
                 }
@@ -331,4 +334,4 @@
     );
     
     evt.fillInfoBubble(div, this._theme, this._band.getLabeller());
-};
\ No newline at end of file
+};
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to