yks-element 1.5.2 → 1.5.4
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/lib/019e34e85139cfc611bf23efa096c980.js +18 -0
- package/lib/07567125b93045706d81f17f7d04e262.js +120 -0
- package/lib/0d56a1f26e052a1bafd10a87782fc74b.js +3380 -0
- package/lib/27846e85433e54a3ec0ab34d62233dc5.js +186 -0
- package/lib/2f25a4dc442bc9aebc58cae30c50c3e2.js +192 -0
- package/lib/2f55cddc8eb85b63ee5b4ce0e5488230.js +67 -0
- package/lib/2fe2904fc024afaf81732563cb83e547.js +116 -0
- package/lib/3b02cca9e95276a74f3ed2bbc7a64ce6.js +409 -0
- package/lib/70efbabef77fb217f904f41dbf7fe8bf.js +380 -0
- package/lib/7cec85e554cfaf2464511da505025098.js +74 -0
- package/lib/852f0ecd7b17e3bfd700a821ff438f7e.js +330 -0
- package/lib/88730abfeb4a23e692ac7933882f12eb.js +255 -0
- package/lib/8b8336037f074d9dcbd20eab535b803f.js +227 -0
- package/lib/9979f39c4d2773e02151a6cf1558101b.js +768 -0
- package/lib/af6e31c060c273848b5fec9fdba8814d.js +3066 -0
- package/lib/babd8df6809ef43238f1b280c2cebfe3.js +265 -0
- package/lib/bb1365c0983ce5ad50060b24788b9630.js +459 -0
- package/lib/c0a8aa1d5e0611259e47c2008cb203ee.js +197 -0
- package/lib/c530988d2b1966fd10a4d99fa3877e1b.js +9 -0
- package/lib/c8acc93023012737a3bf8fb767b66838.js +1293 -0
- package/lib/d0415105402964718010284fcfa8b2ea.js +48 -0
- package/lib/d11ab4aa7dd9123fdecb075ff5c5a748.js +790 -0
- package/lib/d1907231dc06c32481fefd6d47da973b.js +344 -0
- package/lib/d429602e0ebf3c1ec040e070e9b05b9b.js +184 -0
- package/lib/e4fc956693373117f057fe9914e983fc.js +7090 -0
- package/lib/f15362a7feef894b2e7f706252e6c510.js +45 -0
- package/lib/f666b5647087bcfdf6623f8b14d56657.js +136 -0
- package/lib/fac0ce75e0690947a9e9e6f5b35c1ea8.js +1067 -0
- package/lib/fec23c6964d6cf25681d1f3e24b076a4.js +56 -0
- package/lib/yks.js +1 -1
- package/package.json +1 -1
- package/lib/6c6d192b6860b4508a14c2d04769a35e.js +0 -15404
- package/lib/c3832579be376308fa819b04e7b0c66f.js +0 -3788
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
ace.define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"], function(require, exports, module){var Editor = require("../editor").Editor;
|
|
2
|
+
require("../config").defineOptions(Editor.prototype, "editor", {
|
|
3
|
+
enableLinking: {
|
|
4
|
+
set: function (val) {
|
|
5
|
+
if (val) {
|
|
6
|
+
this.on("click", onClick);
|
|
7
|
+
this.on("mousemove", onMouseMove);
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
this.off("click", onClick);
|
|
11
|
+
this.off("mousemove", onMouseMove);
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
value: false
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
exports.previousLinkingHover = false;
|
|
18
|
+
function onMouseMove(e) {
|
|
19
|
+
var editor = e.editor;
|
|
20
|
+
var ctrl = e.getAccelKey();
|
|
21
|
+
if (ctrl) {
|
|
22
|
+
var editor = e.editor;
|
|
23
|
+
var docPos = e.getDocumentPosition();
|
|
24
|
+
var session = editor.session;
|
|
25
|
+
var token = session.getTokenAt(docPos.row, docPos.column);
|
|
26
|
+
if (exports.previousLinkingHover && exports.previousLinkingHover != token) {
|
|
27
|
+
editor._emit("linkHoverOut");
|
|
28
|
+
}
|
|
29
|
+
editor._emit("linkHover", { position: docPos, token: token });
|
|
30
|
+
exports.previousLinkingHover = token;
|
|
31
|
+
}
|
|
32
|
+
else if (exports.previousLinkingHover) {
|
|
33
|
+
editor._emit("linkHoverOut");
|
|
34
|
+
exports.previousLinkingHover = false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function onClick(e) {
|
|
38
|
+
var ctrl = e.getAccelKey();
|
|
39
|
+
var button = e.getButton();
|
|
40
|
+
if (button == 0 && ctrl) {
|
|
41
|
+
var editor = e.editor;
|
|
42
|
+
var docPos = e.getDocumentPosition();
|
|
43
|
+
var session = editor.session;
|
|
44
|
+
var token = session.getTokenAt(docPos.row, docPos.column);
|
|
45
|
+
editor._emit("linkClick", { position: docPos, token: token });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}); (function() {
|
|
50
|
+
ace.require(["ace/ext/linking"], function(m) {
|
|
51
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
52
|
+
module.exports = m;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
})();
|
|
56
|
+
|