@@ -3313,6 +3313,49 @@ declare module "ace-code/src/autocomplete" {
33133313 completions : Ace . FilteredList ;
33143314 }
33153315}
3316+ declare module "ace-code/src/marker_group" {
3317+ export type EditSession = import ( "ace-code/src/edit_session" ) . EditSession ;
3318+ export type MarkerGroupItem = {
3319+ range : import ( "ace-code/src/range" ) . Range ;
3320+ className : string ;
3321+ } ;
3322+ export type LayerConfig = import ( "ace-code" ) . Ace . LayerConfig ;
3323+ export type Marker = import ( "ace-code/src/layer/marker" ) . Marker ;
3324+ export class MarkerGroup {
3325+ /**
3326+ * @param {{markerType: "fullLine" | "line" | undefined} } [options] Options controlling the behvaiour of the marker.
3327+ * User `markerType` to control how the markers which are part of this group will be rendered:
3328+ * - `undefined`: uses `text` type markers where only text characters within the range will be highlighted.
3329+ * - `fullLine`: will fully highlight all the rows within the range, including the characters before and after the range on the respective rows.
3330+ * - `line`: will fully highlight the lines within the range but will only cover the characters between the start and end of the range.
3331+ */
3332+ constructor ( session : EditSession , options ?: {
3333+ markerType : "fullLine" | "line" | undefined ;
3334+ } ) ;
3335+ markerType : "line" | "fullLine" ;
3336+ markers : import ( "ace-code" ) . Ace . MarkerGroupItem [ ] ;
3337+ session : EditSession ;
3338+ /**
3339+ * Finds the first marker containing pos
3340+ */
3341+ getMarkerAtPosition ( pos : import ( "ace-code" ) . Ace . Point ) : import ( "ace-code" ) . Ace . MarkerGroupItem | undefined ;
3342+ /**
3343+ * Comparator for Array.sort function, which sorts marker definitions by their positions
3344+ *
3345+ * @param {MarkerGroupItem } a first marker.
3346+ * @param {MarkerGroupItem } b second marker.
3347+ * @returns {number } negative number if a should be before b, positive number if b should be before a, 0 otherwise.
3348+ */
3349+ markersComparator ( a : MarkerGroupItem , b : MarkerGroupItem ) : number ;
3350+ /**
3351+ * Sets marker definitions to be rendered. Limits the number of markers at MAX_MARKERS.
3352+ * @param {MarkerGroupItem[] } markers an array of marker definitions.
3353+ */
3354+ setMarkers ( markers : MarkerGroupItem [ ] ) : void ;
3355+ update ( html : any , markerLayer : Marker , session : EditSession , config : LayerConfig ) : void ;
3356+ MAX_MARKERS : number ;
3357+ }
3358+ }
33163359declare module "ace-code/src/autocomplete/text_completer" {
33173360 export function getCompletions ( editor : any , session : any , pos : any , prefix : any , callback : any ) : void ;
33183361}
@@ -3417,49 +3460,6 @@ declare module "ace-code/src/occur" {
34173460 import { Search } from "ace-code/src/search" ;
34183461 import { EditSession } from "ace-code/src/edit_session" ;
34193462}
3420- declare module "ace-code/src/marker_group" {
3421- export type EditSession = import ( "ace-code/src/edit_session" ) . EditSession ;
3422- export type MarkerGroupItem = {
3423- range : import ( "ace-code/src/range" ) . Range ;
3424- className : string ;
3425- } ;
3426- export type LayerConfig = import ( "ace-code" ) . Ace . LayerConfig ;
3427- export type Marker = import ( "ace-code/src/layer/marker" ) . Marker ;
3428- export class MarkerGroup {
3429- /**
3430- * @param {{markerType: "fullLine" | "line" | undefined} } [options] Options controlling the behvaiour of the marker.
3431- * User `markerType` to control how the markers which are part of this group will be rendered:
3432- * - `undefined`: uses `text` type markers where only text characters within the range will be highlighted.
3433- * - `fullLine`: will fully highlight all the rows within the range, including the characters before and after the range on the respective rows.
3434- * - `line`: will fully highlight the lines within the range but will only cover the characters between the start and end of the range.
3435- */
3436- constructor ( session : EditSession , options ?: {
3437- markerType : "fullLine" | "line" | undefined ;
3438- } ) ;
3439- markerType : "line" | "fullLine" ;
3440- markers : import ( "ace-code" ) . Ace . MarkerGroupItem [ ] ;
3441- session : EditSession ;
3442- /**
3443- * Finds the first marker containing pos
3444- */
3445- getMarkerAtPosition ( pos : import ( "ace-code" ) . Ace . Point ) : import ( "ace-code" ) . Ace . MarkerGroupItem | undefined ;
3446- /**
3447- * Comparator for Array.sort function, which sorts marker definitions by their positions
3448- *
3449- * @param {MarkerGroupItem } a first marker.
3450- * @param {MarkerGroupItem } b second marker.
3451- * @returns {number } negative number if a should be before b, positive number if b should be before a, 0 otherwise.
3452- */
3453- markersComparator ( a : MarkerGroupItem , b : MarkerGroupItem ) : number ;
3454- /**
3455- * Sets marker definitions to be rendered. Limits the number of markers at MAX_MARKERS.
3456- * @param {MarkerGroupItem[] } markers an array of marker definitions.
3457- */
3458- setMarkers ( markers : MarkerGroupItem [ ] ) : void ;
3459- update ( html : any , markerLayer : Marker , session : EditSession , config : LayerConfig ) : void ;
3460- MAX_MARKERS : number ;
3461- }
3462- }
34633463declare module "ace-code/src/edit_session/fold" {
34643464 export class Fold extends RangeList {
34653465 constructor ( range : Range , placeholder : any ) ;
0 commit comments