Replies: 2 comments
-
Interesting to see so diverse shapes being used in the genomic-related tool! I agree that generic mark types ( Perhaps, when we start implementing this, we can refer to the list of generic marks that are supported in the Btw, can you share me the link to your code for the texture reusing part? |
Beta Was this translation helpful? Give feedback.
-
Maybe getting too far from your original idea, but perhaps it would be useful to even allow defining (I once tried to develop this idea to allow creating custom glyphs, something like |
Beta Was this translation helpful? Give feedback.
-
I saw in the documentation the mark type "triangle" and that made me wonder if there could be an option for a "generic" mark type called maybe
shape
, which allows the user to specify a shape instance that they would like to place at specific locations in the genome.For instance, iobio (https://bivi.co/visualisation/iobio) has this track where different point events are represented by different shapes. A triangle could be one of this shape but there could be others.
Specification-wise I could think of an approach similar to how SVG handles
symbol
: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol. The user could define an shape in the "header" of the specification and then later on use it as a mark.Brainstorming this further we could even think of this as a
markDefinition
that can later on be used via"mark": "markDefinitionName"
.The biggest question of course is how to optimize this for WebGL rendering. One approach could be similar to how Piling.js first rasterizes arbitrary SVG into an image and then uses that image as a texture object in WebGL.
Beta Was this translation helpful? Give feedback.
All reactions