ScriptEditor.hx 923 B

1234567891011121314151617181920212223
  1. package monaco;
  2. @:native("monaco.editor")
  3. extern class ScriptEditor {
  4. function addCommand( command : Int, callback : Void -> Void ) : Void;
  5. function getValue( ?options : { ?lineEnding : String, ?preserveBOM : Bool } ) : String;
  6. function onDidChangeModelContent( listener : Void -> Void ) : Void;
  7. function onDidBlurEditorText( listener : Void -> Void ) : Void;
  8. function onDidFocusEditorText( listener : Void -> Void ) : Void;
  9. function focus() : Void;
  10. function dispose() : Void;
  11. function getModel() : Model;
  12. function deltaDecorations( old : Array<String>, newDeco : Array<ModelDeltaDecoration> ) : Array<String>;
  13. function setValue( script : String ) : Void;
  14. function updateOptions( options : Dynamic ) : Void;
  15. function getPosition() : Position;
  16. function setPosition( p : Position ) : Void;
  17. public static function create( elt : js.html.Element, ?options : Dynamic ) : ScriptEditor;
  18. }