Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Help with imageStretch Binding

$
0
0

@cbh wrote:

I am looking for a little help binding the imageStretch property. I am probably complicating things but here is what I have tried:

 new go.Binding("imageStretch","", function (p, o) {
        switch (o.part.data.imageStretch) {
            case "None":
                return go.GraphObject.None;
                break;
            case "Fill":
                return go.GraphObject.Fill;
                break;
            case "Uniform":
                return go.GraphObject.Uniform;
                break;
            case "UniformToFill":
                return go.GraphObject.UniformToFill;
                break;
            
            default:
                return go.GraphObject.Default;
        }
    }).makeTwoWay(/*function (p, o) { return p.name; }*/)

Thanks

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles