@hpcc-js/codemirror 2.60.13 → 2.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es6.js +22 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +2 -2
- package/src/Editor.ts +30 -7
- package/src/__package__.ts +2 -2
- package/types/Editor.d.ts +6 -0
- package/types/Editor.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types-3.4/Editor.d.ts +6 -0
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
})(this, (function (exports, common) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/codemirror";
|
|
8
|
-
var PKG_VERSION = "2.
|
|
9
|
-
var BUILD_VERSION = "2.104.
|
|
8
|
+
var PKG_VERSION = "2.61.0";
|
|
9
|
+
var BUILD_VERSION = "2.104.34";
|
|
10
10
|
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -16395,6 +16395,7 @@
|
|
|
16395
16395
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
16396
16396
|
_this._markedText = [];
|
|
16397
16397
|
_this._initialText = "";
|
|
16398
|
+
_this._options = new Map();
|
|
16398
16399
|
return _this;
|
|
16399
16400
|
}
|
|
16400
16401
|
Editor.prototype.options = function () {
|
|
@@ -16405,6 +16406,19 @@
|
|
|
16405
16406
|
tabSize: 2
|
|
16406
16407
|
};
|
|
16407
16408
|
};
|
|
16409
|
+
Editor.prototype.option = function (option, value) {
|
|
16410
|
+
if (this._codemirror) {
|
|
16411
|
+
if (arguments.length < 2) {
|
|
16412
|
+
return this._codemirror.getOption(option);
|
|
16413
|
+
}
|
|
16414
|
+
this._codemirror.setOption(option, value);
|
|
16415
|
+
return this;
|
|
16416
|
+
}
|
|
16417
|
+
if (arguments.length < 2) {
|
|
16418
|
+
return this._options.get(option);
|
|
16419
|
+
}
|
|
16420
|
+
this._options.set(option, value);
|
|
16421
|
+
};
|
|
16408
16422
|
Editor.prototype.guttersOption = function () {
|
|
16409
16423
|
var gutters = ["CodeMirror-linenumbers"];
|
|
16410
16424
|
if (this.gutterMarkerWidth() > 0) {
|
|
@@ -16526,6 +16540,9 @@
|
|
|
16526
16540
|
this._codemirror.on("changes", function (cm, changes) {
|
|
16527
16541
|
_this.changes(changes);
|
|
16528
16542
|
});
|
|
16543
|
+
this._options.forEach(function (value, key) {
|
|
16544
|
+
_this._codemirror.setOption(key, value);
|
|
16545
|
+
});
|
|
16529
16546
|
this.text(this._initialText);
|
|
16530
16547
|
};
|
|
16531
16548
|
Editor.prototype.update = function (domNode, Element) {
|
|
@@ -16538,6 +16555,9 @@
|
|
|
16538
16555
|
// Events ---
|
|
16539
16556
|
Editor.prototype.changes = function (changes) {
|
|
16540
16557
|
};
|
|
16558
|
+
/**
|
|
16559
|
+
* @deprecated Replaced with `option`
|
|
16560
|
+
*/
|
|
16541
16561
|
Editor.prototype.setOption = function (option, value) {
|
|
16542
16562
|
this._codemirror.setOption(option, value);
|
|
16543
16563
|
};
|