diff --git a/api/editor.html b/api/editor.html index e2ba8390..dd7bae66 100644 --- a/api/editor.html +++ b/api/editor.html @@ -227,9 +227,10 @@

   

Replaces all occurances of options.needle with the value in replacement.

Arguments

replacementString

Required. The text to replace with

optionsObject

Required. The Search options to use

-

Triggers a resize of the editor.

+

Triggers a resize of the editor.

   

Triggers a resize of the editor.

-
    • Editor.scrollPageDown()

    Scrolls the document to wherever "page down" is, without changing the cursor position.

    +

    Arguments

    forceBoolean

    Required. If true, recomputes the size, even if the height and width haven't changed

    +
      • Editor.scrollPageDown()

      Scrolls the document to wherever "page down" is, without changing the cursor position.

         

      Scrolls the document to wherever "page down" is, without changing the cursor position.

        • Editor.scrollPageUp()

        Scrolls the document to wherever "page up" is, without changing the cursor position.

           

        Scrolls the document to wherever "page up" is, without changing the cursor position.

        @@ -300,11 +301,13 @@
          • Editor.setShowPrintMargin(Boolean showPrintMargin)

          If showPrintMargin is set to true, the print margin is shown in the editor.

             

          If showPrintMargin is set to true, the print margin is shown in the editor.

          Arguments

          showPrintMarginBoolean

          Required. Specifies whether or not to show the print margin

          -

          Adds a new class, style, to the editor.

          +

          Adds a new class, style, to the editor.

             

          Adds a new class, style, to the editor.

          -
            • Editor.setTheme(theme)

            Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

            +

            Arguments

            styleString

            Required. A class name

            +

            Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

               

            Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

            -

            Sets the current document to val.

            +

            Arguments

            themeString

            Required. The path to a theme

            +

            Sets the current document to val.

               

            Sets the current document to val.

            Arguments

            valString

            Required. The new value to set for the document

            cursorPosNumber

            Required. Where to set the new value. undefined or 0 is selectAll, -1 is at the document start, and 1 is at the end

            diff --git a/api/virtual_renderer.html b/api/virtual_renderer.html index 8341457f..e2f92bfc 100644 --- a/api/virtual_renderer.html +++ b/api/virtual_renderer.html @@ -56,9 +56,12 @@

               

            Returns true if you can still scroll by either parameter; in other words, you haven't reached the end of the file or line.

            Arguments

            deltaXNumber

            Required. The x value to scroll by

            deltaYNumber

            Required. The y value to scroll by

            -
              • VirtualRenderer.onResize(Boolean force)

              Triggers a resize of the editor.

              +

              Triggers a resize of the editor.

                 

              Triggers a resize of the editor.

              Arguments

              forceBoolean

              Required. If true, recomputes the size, even if the height and width haven't changed

              +
              gutterWidthNumber

              Required. The width of the gutter in pixels

              +
              widthNumber

              Required. The width of the editor in pixels

              +
              heightNumber

              Required. The hiehgt of the editor, in pixels

                • VirtualRenderer.removeGutterDecoration(row, className)
                  • Void
                • Deprecated

              Deprecated; (moved to EditSession)

                 

              Deprecated; (moved to EditSession)

              Scrolls the editor across both x- and y-axes.

              @@ -137,9 +140,10 @@

                 

              Updates the font size.

                • VirtualRenderer.updateFrontMarkers()

                Schedules an update to all the front markers in the document.

                   

                Schedules an update to all the front markers in the document.

                -
                  • VirtualRenderer.updateFull()

                  Triggers a full update of all the layers, for all the rows.

                  +
                    • VirtualRenderer.updateFull(Boolean force)

                    Triggers a full update of all the layers, for all the rows.

                       

                    Triggers a full update of all the layers, for all the rows.

                    -
                      • VirtualRenderer.updateLines(Number firstRow, Number lastRow)

                      Triggers a partial update of the text, from the range given by the two parameters.

                      +

                      Arguments

                      forceBoolean

                      Required. If true, forces the changes through

                      +
                        • VirtualRenderer.updateLines(Number firstRow, Number lastRow)

                        Triggers a partial update of the text, from the range given by the two parameters.

                           

                        Triggers a partial update of the text, from the range given by the two parameters.

                        Arguments

                        firstRowNumber

                        Required. The first row to update

                        lastRowNumber

                        Required. The last row to update

                        diff --git a/lib/ace/editor.js b/lib/ace/editor.js index 917a8a5c..4257c31c 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -280,8 +280,9 @@ var Editor = function(renderer, session) { }; /** related to: VirtualRenderer.onResize - * Editor.resize() - * + * Editor.resize(force) + * - force (Boolean): If `true`, recomputes the size, even if the height and width haven't changed + * * {:VirtualRenderer.onResize} **/ this.resize = function(force) { @@ -290,7 +291,8 @@ var Editor = function(renderer, session) { /** * Editor.setTheme(theme) - * + * - theme (String): The path to a theme + * * {:VirtualRenderer.setTheme} **/ this.setTheme = function(theme) { @@ -308,7 +310,8 @@ var Editor = function(renderer, session) { /** related to: VirtualRenderer.setStyle * Editor.setStyle(style) - * + * - style (String): A class name + * * {:VirtualRenderer.setStyle} **/ this.setStyle = function(style) { diff --git a/lib/ace/virtual_renderer.js b/lib/ace/virtual_renderer.js index 85794989..ee99a0b1 100644 --- a/lib/ace/virtual_renderer.js +++ b/lib/ace/virtual_renderer.js @@ -264,7 +264,8 @@ var VirtualRenderer = function(container, theme) { }; /** - * VirtualRenderer.updateFull() + * VirtualRenderer.updateFull(force) + * - force (Boolean): If `true`, forces the changes through * * Triggers a full update of all the layers, for all the rows. **/ @@ -287,8 +288,11 @@ var VirtualRenderer = function(container, theme) { }; /** - * VirtualRenderer.onResize(force) + * VirtualRenderer.onResize(force, gutterWidth, width, height) * - force (Boolean): If `true`, recomputes the size, even if the height and width haven't changed + * - gutterWidth (Number): The width of the gutter in pixels + * - width (Number): The width of the editor in pixels + * - height (Number): The hiehgt of the editor, in pixels * * [Triggers a resize of the editor.]{: #VirtualRenderer.onResize} **/