Whenever I use Stroke for overview its Showing undefined property as mention in below Screenshot.
Please give Solution for these.
I just tried this code:
// initialize Overview
const myOverview =
new go.Overview("myOverviewDiv",
{ observed: myDiagram });
myOverview.box.elt(0).stroke = "orange";
and it worked correctly, as I believe you intend.
Or are you asking about your editor not believing that there is a “stroke” property on the value of Panel.elt? Yes, that makes sense – the result type for that method is GraphObject, which does not have a stroke property. The stroke property is only defined on Shape and TextBlock, not on all GraphObjects.
If you are using TypeScript, you can cast it to a Shape, under the assumption that it will be correct:
(this.myOverview.box.elt(0) as go.Shape).stroke = "orange";