package d2isometricimg
import "github.com/pancsta/d2/d2renderers/d2isometric"
func (b *meshBuilder ) sequenceNode (node d2isometric .Node , tint string ) {
switch node .SequenceRole {
case "group" :
firstAnimation := len (b .animatedNodes )
owner := nativeClassicNode (node )
board := d2isometric .Board {
ID : node .ID , SourceID : node .ID , Kind : "sequence-group" ,
Level : node .Metadata .Original .Level ,
Position : node .Position , Size : node .Size ,
}
b .hierarchyBoard (board , &owner , node .Fill , node .Opacity )
source := nativeFaceSource (owner , owner .Fill )
b .canonicalNodeContent (owner , source , owner .Fill , .29 )
if len (b .animatedNodes ) > firstAnimation {
b .animatedNodes [firstAnimation ].last = len (b .triangles )
}
case "span" :
top := .28 + float64 (max (0 , min (128 , node .Metadata .Original .Level )))*.00001
node .Size .Y = (top - .10 ) / 1.15
node .Position .Y = top - nativeCanonicalHeight (node , b .scale ) + node .Size .Y /2
b .node (node , tint )
case "note" :
node .Position .Y = .16 + node .Size .Y /2
b .hierarchyNode (node , tint )
default :
b .hierarchyNode (node , tint )
}
}
The pages are generated with Golds v0.8.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .