blob: 661fe679305891336263a788e4918fd1b62380b6 [file] [log] [blame]
var ShapePathInterface = (
function() {
return function pathInterfaceFactory(shape,view,propertyGroup){
var prop = view.sh;
function _propertyGroup(val){
val = val === undefined ? 1 : val
if(val <= 0){
return interfaceFunction;
} else {
return propertyGroup(--val);
}
}
prop.setGroupProperty(PropertyInterface('Path', _propertyGroup));
function interfaceFunction(val){
if(val === 'Shape' || val === 'shape' || val === 'Path' || val === 'path' || val === 'ADBE Vector Shape' || val === 2){
return interfaceFunction.path;
}
}
Object.defineProperties(interfaceFunction, {
'path': {
get: function(){
if(prop.k){
prop.getValue();
}
return prop;
}
},
'shape': {
get: function(){
if(prop.k){
prop.getValue();
}
return prop;
}
},
'_name': { value: shape.nm },
'ix': { value: shape.ix },
'propertyIndex': { value: shape.ix },
'mn': { value: shape.mn },
'propertyGroup': {value: propertyGroup},
});
return interfaceFunction;
}
}()
)