File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
packages/client/src/utils Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 1414 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515 ********************************************************************************/
1616import {
17- Bounds ,
1817 BoundsAware ,
1918 EdgeRouterRegistry ,
2019 ElementAndBounds ,
@@ -502,6 +501,7 @@ export function findAncenstors<T extends GModelElement>(
502501 * Build an ancestors list for N nodes (in input order), with this shape:
503502 * - No shared ancestor: [n1 parents..., n2 parents..., ...]
504503 * - Shared ancestor A: [n1 parents until A, n2 parents until A, A and A's ancestors...]
504+ *
505505 * Notes:
506506 * - Starting nodes are EXCLUDED (only ancestors).
507507 * - `include` decides which elements make it into the final output.
@@ -645,15 +645,3 @@ export function findDescendants<T extends GModelElement>(
645645 collectDescendants ( element , 0 ) ;
646646 return descendants ;
647647}
648-
649- export function boundsInElement ( elements : GModelElement [ ] , bounds : Bounds | Point ) : Bounds | Point {
650- let result = bounds ;
651-
652- for ( const element of elements ) {
653- if ( element instanceof GChildElement && isBoundsAware ( element ) ) {
654- result = element . parentToLocal ( result ) ;
655- }
656- }
657-
658- return result ;
659- }
You can’t perform that action at this time.
0 commit comments