Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add font scale in editor

ammarahm-ed8a68f3c3f115
diff --git a/apps/mobile/android/app/src/main/assets/texteditor.html b/apps/mobile/android/app/src/main/assets/texteditor.html
index 6f40549d3..6461550a2 100644
--- a/apps/mobile/android/app/src/main/assets/texteditor.html
+++ b/apps/mobile/android/app/src/main/assets/texteditor.html
@@ -30,7 +30,7 @@
.ql-container {
box-sizing: border-box;
font-family: 'Noto Sans', sans-serif;
- font-size: 20px;
+
margin: 0px;
position: relative;
@@ -1044,7 +1044,7 @@
#titlebar input {
font-family: "Noto Serif", serif;
font-weight: 700;
- font-size: 28;
+
background-color: transparent;
border: none;
height: 50;
@@ -1100,6 +1100,7 @@
nav: '#f0f0f0',
pri: 'black',
sec: 'white',
+ factor: 1
}
}
// specify the fonts you would
@@ -1208,7 +1209,7 @@
editor.focus();
console.log(JSON.stringify(editor.getContents()));
-
+
var titleMessage = {
type: 'title',
value: document.getElementById('titleInput').value
@@ -1385,7 +1386,7 @@
color: ${pageTheme.colors.icon};
display: inline-block;
float: left;
- font-size: 16px;
+ font-size: ${pageTheme.factor * 16};
font-weight: 500;
height: 24px;
position: relative;
@@ -1440,7 +1441,7 @@
padding: 5px 12px;
white-space: nowrap;
position: absolute;
- font-size: 12px;
+ font-size: ${pageTheme.factor * 12};
}
.ql-snow .ql-tooltip a.ql-action::after {
@@ -1478,6 +1479,7 @@
#titleInput {
color:${pageTheme.colors.pri}
+ font-size:${pageTheme.factor * 28}
}
#titleInput::-webkit-input-placeholder {
@@ -1489,7 +1491,7 @@
border-color:${pageTheme.colors.nav};
}
.ql-container {
-
+ font-size:${pageTheme.factor * 20}
color:${pageTheme.colors.pri};
}
@@ -1510,10 +1512,10 @@
// Receber mensagens do RN
document.addEventListener('message', data => {
-
+
if (JSON.parse(data.data).type === "text") {
editor.setText(JSON.parse(data.data).value, 'api')
-
+
setTimeout(() => {
editor.focus();
editor.setSelection(editor.getText().length - 1, 0);
@@ -1584,7 +1586,7 @@
- }
+ }
});
@@ -1627,12 +1629,12 @@
let m = {};
m.delta = editor.getContents();
-
+
m.text = editor.getText();
m.html = editor.root.innerHTML;
m.type = 'content';
-
+
window.ReactNativeWebView.postMessage(JSON.stringify(m));
});
@@ -1771,14 +1773,14 @@
/******/ if (installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/
-}
+ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/
-};
+ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
@@ -1789,7 +1791,7 @@
/******/ // Return the exports of the module
/******/ return module.exports;
/******/
-}
+ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
@@ -1805,12 +1807,12 @@
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
- /******/
-});
+ /******/
+ });
/******/
-}
+ }
/******/
-};
+ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function (module) {
@@ -1820,7 +1822,7 @@
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/
-};
+ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function (object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
@@ -1831,7 +1833,7 @@
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 109);
/******/
-})
+ })
/************************************************************************/
/******/([
/* 0 */
@@ -1878,7 +1880,7 @@
/***/
-}),
+ }),
/* 1 */
/***/ (function (module, exports, __webpack_require__) {
@@ -2034,7 +2036,7 @@
/***/
-}),
+ }),
/* 2 */
/***/ (function (module, exports, __webpack_require__) {
@@ -2366,7 +2368,7 @@
/***/
-}),
+ }),
/* 3 */
/***/ (function (module, exports) {
@@ -2459,7 +2461,7 @@
/***/
-}),
+ }),
/* 4 */
/***/ (function (module, exports, __webpack_require__) {
@@ -2718,7 +2720,7 @@
exports.default = Block;
/***/
-}),
+ }),
/* 5 */
/***/ (function (module, exports, __webpack_require__) {
@@ -3454,7 +3456,7 @@
exports.default = Quill;
/***/
-}),
+ }),
/* 6 */
/***/ (function (module, exports, __webpack_require__) {
@@ -3545,7 +3547,7 @@
exports.default = Inline;
/***/
-}),
+ }),
/* 7 */
/***/ (function (module, exports, __webpack_require__) {
@@ -3583,7 +3585,7 @@
exports.default = TextBlot;
/***/
-}),
+ }),
/* 8 */
/***/ (function (module, exports, __webpack_require__) {
@@ -3700,7 +3702,7 @@
exports.default = Emitter;
/***/
-}),
+ }),
/* 9 */
/***/ (function (module, exports, __webpack_require__) {
@@ -3727,7 +3729,7 @@
exports.default = Module;
/***/
-}),
+ }),
/* 10 */
/***/ (function (module, exports, __webpack_require__) {
@@ -3766,7 +3768,7 @@
exports.default = namespace;
/***/
-}),
+ }),
/* 11 */
/***/ (function (module, exports, __webpack_require__) {
@@ -3867,7 +3869,7 @@
/***/
-}),
+ }),
/* 12 */
/***/ (function (module, exports, __webpack_require__) {
@@ -3931,7 +3933,7 @@
/***/
-}),
+ }),
/* 13 */
/***/ (function (module, exports, __webpack_require__) {
@@ -4134,7 +4136,7 @@
exports.default = CodeBlock;
/***/
-}),
+ }),
/* 14 */
/***/ (function (module, exports, __webpack_require__) {
@@ -4503,7 +4505,7 @@
exports.default = Editor;
/***/
-}),
+ }),
/* 15 */
/***/ (function (module, exports, __webpack_require__) {
@@ -4993,7 +4995,7 @@
exports.default = Selection;
/***/
-}),
+ }),
/* 16 */
/***/ (function (module, exports, __webpack_require__) {
@@ -5064,7 +5066,7 @@
exports.default = Break;
/***/
-}),
+ }),
/* 17 */
/***/ (function (module, exports, __webpack_require__) {
@@ -5331,7 +5333,7 @@
/***/
-}),
+ }),
/* 18 */
/***/ (function (module, exports, __webpack_require__) {
@@ -5414,7 +5416,7 @@
/***/
-}),
+ }),
/* 19 */
/***/ (function (module, exports, __webpack_require__) {
@@ -5465,7 +5467,7 @@
/***/
-}),
+ }),
/* 20 */
/***/ (function (module, exports, __webpack_require__) {
@@ -5611,7 +5613,7 @@
/***/
-}),
+ }),
/* 21 */
/***/ (function (module, exports) {
@@ -5869,7 +5871,7 @@
/***/
-}),
+ }),
/* 22 */
/***/ (function (module, exports, __webpack_require__) {
@@ -6123,7 +6125,7 @@
exports.default = Scroll;
/***/
-}),
+ }),
/* 23 */
/***/ (function (module, exports, __webpack_require__) {
@@ -6730,7 +6732,7 @@
exports.SHORTKEY = SHORTKEY;
/***/
-}),
+ }),
/* 24 */
/***/ (function (module, exports, __webpack_require__) {
@@ -6914,7 +6916,7 @@
exports.default = Cursor;
/***/
-}),
+ }),
/* 25 */
/***/ (function (module, exports, __webpack_require__) {
@@ -6958,7 +6960,7 @@
exports.default = Container;
/***/
-}),
+ }),
/* 26 */
/***/ (function (module, exports, __webpack_require__) {
@@ -7022,7 +7024,7 @@
exports.ColorStyle = ColorStyle;
/***/
-}),
+ }),
/* 27 */
/***/ (function (module, exports, __webpack_require__) {
@@ -7106,7 +7108,7 @@
exports.sanitize = _sanitize;
/***/
-}),
+ }),
/* 28 */
/***/ (function (module, exports, __webpack_require__) {
@@ -7347,7 +7349,7 @@
exports.default = Picker;
/***/
-}),
+ }),
/* 29 */
/***/ (function (module, exports, __webpack_require__) {
@@ -7433,7 +7435,7 @@
exports.default = _quill2.default;
/***/
-}),
+ }),
/* 30 */
/***/ (function (module, exports, __webpack_require__) {
@@ -7597,7 +7599,7 @@
/***/
-}),
+ }),
/* 31 */
/***/ (function (module, exports, __webpack_require__) {
@@ -7675,7 +7677,7 @@
/***/
-}),
+ }),
/* 32 */
/***/ (function (module, exports, __webpack_require__) {
@@ -7739,7 +7741,7 @@
/***/
-}),
+ }),
/* 33 */
/***/ (function (module, exports, __webpack_require__) {
@@ -7803,7 +7805,7 @@
/***/
-}),
+ }),
/* 34 */
/***/ (function (module, exports, __webpack_require__) {
@@ -7860,7 +7862,7 @@
exports.default = Theme;
/***/
-}),
+ }),
/* 35 */
/***/ (function (module, exports, __webpack_require__) {
@@ -7982,7 +7984,7 @@
exports.default = Embed;
/***/
-}),
+ }),
/* 36 */
/***/ (function (module, exports, __webpack_require__) {
@@ -8014,7 +8016,7 @@
exports.AlignStyle = AlignStyle;
/***/
-}),
+ }),
/* 37 */
/***/ (function (module, exports, __webpack_require__) {
@@ -8045,7 +8047,7 @@
exports.BackgroundStyle = BackgroundStyle;
/***/
-}),
+ }),
/* 38 */
/***/ (function (module, exports, __webpack_require__) {
@@ -8077,7 +8079,7 @@
exports.DirectionStyle = DirectionStyle;
/***/
-}),
+ }),
/* 39 */
/***/ (function (module, exports, __webpack_require__) {
@@ -8137,7 +8139,7 @@
exports.FontClass = FontClass;
/***/
-}),
+ }),
/* 40 */
/***/ (function (module, exports, __webpack_require__) {
@@ -8168,7 +8170,7 @@
exports.SizeStyle = SizeStyle;
/***/
-}),
+ }),
/* 41 */
/***/ (function (module, exports, __webpack_require__) {
@@ -8226,7 +8228,7 @@
};
/***/
-}),
+ }),
/* 42 */
/***/ (function (module, exports, __webpack_require__) {
@@ -8395,7 +8397,7 @@
exports.getLastChangeIndex = getLastChangeIndex;
/***/
-}),
+ }),
/* 43 */
/***/ (function (module, exports, __webpack_require__) {
@@ -8739,7 +8741,7 @@
exports.default = BaseTheme;
/***/
-}),
+ }),
/* 44 */
/***/ (function (module, exports, __webpack_require__) {
@@ -8881,7 +8883,7 @@
/***/
-}),
+ }),
/* 45 */
/***/ (function (module, exports, __webpack_require__) {
@@ -9066,7 +9068,7 @@
/***/
-}),
+ }),
/* 46 */
/***/ (function (module, exports, __webpack_require__) {
@@ -9152,7 +9154,7 @@
/***/
-}),
+ }),
/* 47 */
/***/ (function (module, exports, __webpack_require__) {
@@ -9229,7 +9231,7 @@
/***/
-}),
+ }),
/* 48 */
/***/ (function (module, exports, __webpack_require__) {
@@ -9278,7 +9280,7 @@
/***/
-}),
+ }),
/* 49 */
/***/ (function (module, exports, __webpack_require__) {
@@ -9382,7 +9384,7 @@
/***/
-}),
+ }),
/* 50 */
/***/ (function (module, exports, __webpack_require__) {
@@ -9454,7 +9456,7 @@
});
/***/
-}),
+ }),
/* 51 */
/***/ (function (module, exports) {
@@ -10199,7 +10201,7 @@
/***/
-}),
+ }),
/* 52 */
/***/ (function (module, exports) {
@@ -10215,7 +10217,7 @@
/***/
-}),
+ }),
/* 53 */
/***/ (function (module, exports) {
@@ -10242,7 +10244,7 @@
/***/
-}),
+ }),
/* 54 */
/***/ (function (module, exports) {
@@ -10560,7 +10562,7 @@
/***/
-}),
+ }),
/* 55 */
/***/ (function (module, exports, __webpack_require__) {
@@ -10985,7 +10987,7 @@
exports.matchText = matchText;
/***/
-}),
+ }),
/* 56 */
/***/ (function (module, exports, __webpack_require__) {
@@ -11050,7 +11052,7 @@
exports.default = Bold;
/***/
-}),
+ }),
/* 57 */
/***/ (function (module, exports, __webpack_require__) {
@@ -11376,14 +11378,14 @@
exports.addControls = addControls;
/***/
-}),
+ }),
/* 58 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <polyline class=\"ql-even ql-stroke\" points=\"5 7 3 9 5 11\"></polyline> <polyline class=\"ql-even ql-stroke\" points=\"13 7 15 9 13 11\"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>";
/***/
-}),
+ }),
/* 59 */
/***/ (function (module, exports, __webpack_require__) {
@@ -11455,7 +11457,7 @@
exports.default = ColorPicker;
/***/
-}),
+ }),
/* 60 */
/***/ (function (module, exports, __webpack_require__) {
@@ -11514,7 +11516,7 @@
exports.default = IconPicker;
/***/
-}),
+ }),
/* 61 */
/***/ (function (module, exports, __webpack_require__) {
@@ -11594,7 +11596,7 @@
exports.default = Tooltip;
/***/
-}),
+ }),
/* 62 */
/***/ (function (module, exports, __webpack_require__) {
@@ -11775,7 +11777,7 @@
exports.default = SnowTheme;
/***/
-}),
+ }),
/* 63 */
/***/ (function (module, exports, __webpack_require__) {
@@ -11957,7 +11959,7 @@
exports.default = _core2.default;
/***/
-}),
+ }),
/* 64 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12031,7 +12033,7 @@
exports.IndentClass = IndentClass;
/***/
-}),
+ }),
/* 65 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12072,7 +12074,7 @@
exports.default = Blockquote;
/***/
-}),
+ }),
/* 66 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12122,7 +12124,7 @@
exports.default = Header;
/***/
-}),
+ }),
/* 67 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12320,7 +12322,7 @@
exports.default = List;
/***/
-}),
+ }),
/* 68 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12361,7 +12363,7 @@
exports.default = Italic;
/***/
-}),
+ }),
/* 69 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12426,7 +12428,7 @@
exports.default = Script;
/***/
-}),
+ }),
/* 70 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12467,7 +12469,7 @@
exports.default = Strike;
/***/
-}),
+ }),
/* 71 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12508,7 +12510,7 @@
exports.default = Underline;
/***/
-}),
+ }),
/* 72 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12607,7 +12609,7 @@
exports.default = Image;
/***/
-}),
+ }),
/* 73 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12701,7 +12703,7 @@
exports.default = Video;
/***/
-}),
+ }),
/* 74 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12801,7 +12803,7 @@
exports.default = Formula;
/***/
-}),
+ }),
/* 75 */
/***/ (function (module, exports, __webpack_require__) {
@@ -12949,231 +12951,231 @@
exports.default = Syntax;
/***/
-}),
+ }),
/* 76 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>";
/***/
-}),
+ }),
/* 77 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>";
/***/
-}),
+ }),
/* 78 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>";
/***/
-}),
+ }),
/* 79 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>";
/***/
-}),
+ }),
/* 80 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <g class=\"ql-fill ql-color-label\"> <polygon points=\"6 6.868 6 6 5 6 5 7 5.942 7 6 6.868\"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points=\"6.817 5 6 5 6 6 6.38 6 6.817 5\"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points=\"4 11.439 4 11 3 11 3 12 3.755 12 4 11.439\"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points=\"4.63 10 4 10 4 11 4.192 11 4.63 10\"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points=\"13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174\"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points=\"12 6.868 12 6 11.62 6 12 6.868\"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points=\"12.933 9 13 9 13 8 12.495 8 12.933 9\"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points=\"5.5 13 9 5 12.5 13\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>";
/***/
-}),
+ }),
/* 81 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=4 y=5></rect> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=11 y=5></rect> <path class=\"ql-even ql-fill ql-stroke\" d=M7,8c0,4.031-3,5-3,5></path> <path class=\"ql-even ql-fill ql-stroke\" d=M14,8c0,4.031-3,5-3,5></path> </svg>";
/***/
-}),
+ }),
/* 82 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>";
/***/
-}),
+ }),
/* 83 */
/***/ (function (module, exports) {
module.exports = "<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>";
/***/
-}),
+ }),
/* 84 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=\"ql-color-label ql-stroke ql-transparent\" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points=\"5.5 11 9 3 12.5 11\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>";
/***/
-}),
+ }),
/* 85 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"3 11 5 9 3 7 3 11\"></polygon> <line class=\"ql-stroke ql-fill\" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>";
/***/
-}),
+ }),
/* 86 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"15 12 13 10 15 8 15 12\"></polygon> <line class=\"ql-stroke ql-fill\" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>";
/***/
-}),
+ }),
/* 87 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>";
/***/
-}),
+ }),
/* 88 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>";
/***/
-}),
+ }),
/* 89 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>";
/***/
-}),
+ }),
/* 90 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform=\"translate(24 18) rotate(-180)\"/> </svg>";
/***/
-}),
+ }),
/* 91 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>";
/***/
-}),
+ }),
/* 92 */
/***/ (function (module, exports) {
module.exports = "<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>";
/***/
-}),
+ }),
/* 93 */
/***/ (function (module, exports) {
module.exports = "<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>";
/***/
-}),
+ }),
/* 94 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>";
/***/
-}),
+ }),
/* 95 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class=\"ql-even ql-fill\" points=\"5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12\"></polyline> </svg>";
/***/
-}),
+ }),
/* 96 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=\"ql-fill ql-stroke\" points=\"3 7 3 11 5 9 3 7\"></polyline> </svg>";
/***/
-}),
+ }),
/* 97 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"5 7 5 11 3 9 5 7\"></polyline> </svg>";
/***/
-}),
+ }),
/* 98 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class=\"ql-even ql-stroke\" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class=\"ql-even ql-stroke\" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>";
/***/
-}),
+ }),
/* 99 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class=\"ql-stroke ql-thin\" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class=\"ql-stroke ql-thin\" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class=\"ql-stroke ql-thin\" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>";
/***/
-}),
+ }),
/* 100 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>";
/***/
-}),
+ }),
/* 101 */
/***/ (function (module, exports) {
module.exports = "<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points=\"3 4 4 5 6 3\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points=\"3 14 4 15 6 13\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"3 9 4 10 6 8\"></polyline> </svg>";
/***/
-}),
+ }),
/* 102 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>";
/***/
-}),
+ }),
/* 103 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>";
/***/
-}),
+ }),
/* 104 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=\"ql-stroke ql-thin\" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>";
/***/
-}),
+ }),
/* 105 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>";
/***/
-}),
+ }),
/* 106 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>";
/***/
-}),
+ }),
/* 107 */
/***/ (function (module, exports) {
module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=ql-stroke points=\"7 11 9 13 11 11 7 11\"></polygon> <polygon class=ql-stroke points=\"7 7 9 5 11 7 7 7\"></polygon> </svg>";
/***/
-}),
+ }),
/* 108 */
/***/ (function (module, exports, __webpack_require__) {
@@ -13340,7 +13342,7 @@
exports.default = BubbleTheme;
/***/
-}),
+ }),
/* 109 */
/***/ (function (module, exports, __webpack_require__) {
@@ -13348,7 +13350,7 @@
/***/
-})
+ })
/******/])["default"];
});
}).call(this, require("buffer").Buffer)
diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js
index 98048f31a..bae1abdba 100755
--- a/apps/mobile/src/views/Editor/index.js
+++ b/apps/mobile/src/views/Editor/index.js
@@ -14,7 +14,7 @@ import * as Animatable from 'react-native-animatable';
import Icon from 'react-native-vector-icons/Feather';
import WebView from 'react-native-webview';
import {db, DDS} from '../../../App';
-import {SIZE, WEIGHT} from '../../common/common';
+import {SIZE, WEIGHT, normalize} from '../../common/common';
import {
ActionSheetEvent,
simpleDialogEvent,
@@ -255,8 +255,9 @@ const Editor = ({navigation, noMenu}) => {
setLoading(false);
});
}
-
- post(JSON.stringify(colors));
+ let c = {...colors};
+ c.factor = normalize(1);
+ post(JSON.stringify(c));
};
const wait = timeout =>
@@ -479,8 +480,8 @@ const Editor = ({navigation, noMenu}) => {
Platform.OS === 'ios'
? {uri: sourceUri}
: {
- uri: 'file:///android_asset/texteditor.html',
- baseUrl: 'file:///android_asset/',
+ uri: 'http://192.168.10.7:8080/texteditor.html',
+ baseUrl: 'http://192.168.10.7:8080/',
}
}
style={{