Hi,
I tried with only below code but still the border comes along with shadow,
var originalContainerDraw = MindFusion.Drawing.Container.prototype["draw"];
MindFusion.Drawing.Container.prototype["draw"] = function (context, drawShadows, shadowsOnly) {
if (drawShadows != false) {
if (this.item && this.item.root && this.item.root.clipBeforeTransform) {
var diagramElement = this.item.getTag().DataObject as DiagramElement;
if (diagramElement && diagramElement.isShadowElement) {
this.item.setShadowColor("black");
this.item.root.clipBeforeTransform.brush = "black"; // can use shadow color from item or elsewhere
this.item.root.clipBeforeTransform.shadow = this.item.createShadow();
this.item.root.clipBeforeTransform.drawShadow(context);
}
}
}
originalContainerDraw.apply(this, [context, drawShadows, shadowsOnly]);
};
I've to add the below line along with the code you shared. Otherwise shadow didn't show.
this.item.setShadowColor("black");
I've uploaded the code in the below url. Please have a look. Thank you !
https://drive.google.com/open?id=1KJPQeY098krl-vYwuzRVB9ehvmVvJ_DRRegards,
Kannan