@@ -63,6 +63,8 @@ export enum BoundaryType {
6363 After = 'after' ,
6464 Start = 'start' ,
6565 End = 'end' ,
66+ // TODO(MoonGyu1): 'None' type can be deleted after replacing existing logic with mark
67+ None = 'none' ,
6668}
6769
6870/**
@@ -415,10 +417,16 @@ export class RGATreeSplitNode<
415417 return this . insPrev ! . getID ( ) ;
416418 }
417419
420+ /**
421+ * `getStyleOpsBefore` returns a styleOpsBefore of this node.
422+ */
418423 public getStyleOpsBefore ( ) : Set < StyleOperation > | undefined {
419424 return this . styleOpsBefore ;
420425 }
421426
427+ /**
428+ * `getStyleOpsAfter` returns a styleOpsAfter of this node.
429+ */
422430 public getStyleOpsAfter ( ) : Set < StyleOperation > | undefined {
423431 return this . styleOpsAfter ;
424432 }
@@ -463,10 +471,16 @@ export class RGATreeSplitNode<
463471 }
464472 }
465473
474+ /**
475+ * `setStyleOpsBefore` sets styleOpsBefore of this node.
476+ */
466477 public setStyleOpsBefore ( operations : Set < StyleOperation > ) : void {
467478 this . styleOpsBefore = operations ;
468479 }
469480
481+ /**
482+ * `setStyleOpsAfter` sets styleOpsAfter of this node.
483+ */
470484 public setStyleOpsAfter ( operations : Set < StyleOperation > ) : void {
471485 this . styleOpsAfter = operations ;
472486 }
@@ -844,7 +858,7 @@ export class RGATreeSplit<T extends RGATreeSplitValue> {
844858 public splitNodeByBoundary ( boundary : RGATreeSplitBoundary ) : void {
845859 const absoluteID = boundary . getID ( ) ;
846860 if ( absoluteID ?. getCreatedAt ( ) ) {
847- let node = this . findFloorNodePreferToLeft ( absoluteID ) ;
861+ const node = this . findFloorNodePreferToLeft ( absoluteID ) ;
848862 const relativeOffset = absoluteID . getOffset ( ) - node . getID ( ) . getOffset ( ) ;
849863
850864 this . splitNode ( node , relativeOffset ) ;
0 commit comments