Hello,
After following example which is found in sample dir\Diagraming.IconNodes. It is not really clear how to describe custom object in JS. Is there a reference to a documention on how to describe custom object on client-side?
I am getting this error:
this.setBounds(new e(o.bounds.x,o.bounds.y,o.bounds.width,o.bounds.height))
and the "o" is my custom object, which is basically clean. and yes it does not has this bounds property in it.
my js object:
MyCustomShapeNode = function () {
MyCustomShapeNode.initializeBase(this);
}
MyCustomShapeNode.prototype =
{
initialize: function () {
MyCustomShapeNode.callBaseMethod(this, 'initialize');
},
dispose: function () {
MyCustomShapeNode.callBaseMethod(this, 'dispose');
},
toJson: function () {
var data = MyCustomShapeNode.callBaseMethod(this, "toJson");
return data;
},
//properties
getLabel: function () {
return this.label;
},
setLabel: function (value) {
if (this.label !== value) {
this.label = value;
}
}
};
if (typeof (Sys) !== 'undefined')
Sys.Application.notifyScriptLoaded();
have a same model in .net(well more parameters ofcorse, but just not using it)
also for testing i am using provided sample "flowchart.xml" file as a test(only replaced classes to my custom types)
I think problem arises when i am using it with custom CustomDiagramLink object (which i have not found how to describe in js)
on my web control i have set these properties:
EnableItemsDOM="True" // as i understant this is important for obj serialization
Behavior="Custom"
Please gime some light on this.