refactor: improve type guard for domUtils.isNode by tbouffard · Pull Request #1000 · maxGraph/maxGraph

@tbouffard

  - Change isNode to return a type predicate (value is HTMLElement)
  - Remove unnecessary type assertions in code using isNode
  - Simplify type narrowing in SvgCanvas2D, XmlCanvas2D, TooltipHandler, and TextShape

github-advanced-security[bot]

coderabbitai[bot]

@tbouffard

@tbouffard tbouffard marked this pull request as ready for review

March 10, 2026 16:46

@tbouffard tbouffard deleted the refactor/improve_type_domUtils.isNode branch

March 10, 2026 16:50