Changed default dash char to pure ascii
This commit is contained in:
parent
b9b036d1b6
commit
3d5336b262
|
@ -4,7 +4,7 @@ try {
|
|||
} catch (aa) {
|
||||
window.O = window.O || {};
|
||||
}
|
||||
var g = ["+", "\u2012", "\u2013"], m = [">", "<", "^", "v"], ba = g.concat(m), n = "ontouchstart" in window || "onmsgesturechange" in window;
|
||||
var g = ["+", "\u2012", "\u2013", "-"], m = [">", "<", "^", "v"], ba = g.concat(m), n = "ontouchstart" in window || "onmsgesturechange" in window;
|
||||
function p(a, b) {
|
||||
this.x = a;
|
||||
this.y = b;
|
||||
|
@ -461,13 +461,13 @@ function ja(a, b) {
|
|||
}
|
||||
var d = a.getContext(b);
|
||||
if (d.left && d.right && !d.l && !d.j) {
|
||||
return "\u2012";
|
||||
return "-";
|
||||
}
|
||||
if (!d.left && !d.right && d.l && d.j) {
|
||||
return "|";
|
||||
}
|
||||
if (4 == E(d)) {
|
||||
return "\u2012";
|
||||
return "-";
|
||||
}
|
||||
if ("+" == c && 3 == E(d)) {
|
||||
return "+";
|
||||
|
|
|
@ -20,13 +20,13 @@ try {
|
|||
/** @const */ var SPECIAL_ARROW_UP = '^';
|
||||
/** @const */ var SPECIAL_ARROW_RIGHT = '>';
|
||||
/** @const */ var SPECIAL_ARROW_DOWN = 'v';
|
||||
/** @const */ var SPECIAL_VALUES = ['+', '\u2012', '\u2013'];
|
||||
/** @const */ var SPECIAL_VALUES = ['+', '\u2012', '\u2013', '-'];
|
||||
/** @const */ var ALT_SPECIAL_VALUES = ['>', '<', '^', 'v'];
|
||||
/** @const */ var ALL_SPECIAL_VALUES = SPECIAL_VALUES.concat(ALT_SPECIAL_VALUES);
|
||||
|
||||
/** @const */ var MAX_UNDO = 50;
|
||||
|
||||
/** @const */ var SPECIAL_LINE_H = '\u2012';
|
||||
/** @const */ var SPECIAL_LINE_H = '-';
|
||||
/** @const */ var SPECIAL_LINE_V = '|';
|
||||
|
||||
/** @const */ var ERASE_CHAR = '\u2009';
|
||||
|
|
Loading…
Reference in New Issue