<divclass=CToolTipid="tt42"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $canvas</td></tr></table></blockquote>Holds the canvas.</div></div><divclass=CToolTipid="tt43"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cellAdded(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cellCloned(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cellRemoved(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td>var $cells</td></tr></table></blockquote>Maps from Ids to cells.</div></div><divclass=CToolTipid="tt48"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $children</td></tr></table></blockquote>Holds the child cells.</div></div><divclass=CToolTipid="tt49"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cloneCell(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cloneCellImpl(</td><tdclass=PParameternowrap>$cell,</td></tr><tr><td></td><tdclass=PParameternowrap>$mapping,</td></tr><tr><td></td><tdclass=PParameternowrap>$includeChildren</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cloneCells(</td><tdclass=PParameternowrap>$cells,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$includeChildren</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%>true</td><tdclass=PAfterParametersnowrap>)</td></t