import { BaseContainer } from "./BaseContainer" ; import { River } from "../components" ; import type { TreeEdge } from "bp/content/context" ; import type { Design } from ".." ; /**
 *  RiverContainer 映射  TreeEdge 成  River 。
  @ shrewd export class RiverContainer extends BaseContainer < TreeEdge , River > { constructor ( design ) { super ( design , ( ) => [ ... design . $tree . $edge . values ( ) ] . filter ( e => e . $isRiver ) , e => new River ( design . $LayoutSheet , e ) ) ; } public $toEdge ( river ) { this . _design . $TreeSheet . $clearSelection ( ) ; let e = this . _design . $edges . get ( river . edge ) ; if ( e ) e . $selected = true ; this . _design . mode = "tree" ; } }