<divclass=CToolTipid="tt42"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $canvas</td></tr></table></blockquote>Holds the canvas.</div></div><divclass=CToolTipid="tt43"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $cell</td></tr></table></blockquote>Reference to the mxCell that is represented by this state.</div></div><divclass=CToolTipid="tt44"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cellAdded(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Inner callback to update cells when a cell has been added. </div></div><divclass=CToolTipid="tt45"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cellCloned(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Hook for cloning the cell. </div></div><divclass=CToolTipid="tt46"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cellRemoved(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Inner callback to update cells when a cell has been removed.</div></div><divclass=CToolTipid="tt47"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $cells</td></tr></table></blockquote>Maps from Ids to cells.</div></div><divclass=CToolTipid="tt48"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $children</td></tr></table></blockquote>Holds the child cells.</div></div><divclass=CToolTipid="tt49"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function clear()</td></tr></table></blockquote>Sets a new root using createRoot.</div></div><divclass=CToolTipid="tt50"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cloneCell(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns a deep clone of the given mxCell (including the children) which is created using cloneCells.</div></div><divclass=CToolTipid="tt51"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cloneCellImpl(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$mapping,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$includeChildren</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Inner helper method for cloning cells recursively.</div></div><divclass=CToolTipid="tt52"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cloneCells(</td><tdclass="PParameter prettyprint "nowrap>$cells,</td><tdclass="PDefaultValuePref