forked from mbostock/protovis
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow transient marks to be chained.
- Loading branch information
Mike Bostock
committed
Jun 10, 2010
1 parent
06c5078
commit 9ca4534
Showing
3 changed files
with
14 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
pv.Transient = function() { | ||
pv.Transient = function(mark) { | ||
pv.Mark.call(this); | ||
this.fillStyle(null).strokeStyle(null).textStyle(null); | ||
this.on = function(state) { return mark.on(state); }; | ||
}; | ||
|
||
pv.Transient.prototype = pv.extend(pv.Mark); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters