From bce81610dae3ab095fe084ffe5258c67a094bacb Mon Sep 17 00:00:00 2001 From: NickIliev Date: Fri, 16 Aug 2019 12:31:27 +0300 Subject: [PATCH] fix: removed bad js file --- .../tips-and-tricks/tips-and-tricksts-page.js | 18 ------------------ app/ns-ui-category/icon-fonts/usage/article.md | 2 +- .../image/icon-fonts/article.md | 2 ++ .../image/icon-fonts/icon-fonts-page.xml | 4 ++-- 4 files changed, 5 insertions(+), 21 deletions(-) delete mode 100644 app/ns-ui-category/icon-fonts/tips-and-tricks/tips-and-tricksts-page.js diff --git a/app/ns-ui-category/icon-fonts/tips-and-tricks/tips-and-tricksts-page.js b/app/ns-ui-category/icon-fonts/tips-and-tricks/tips-and-tricksts-page.js deleted file mode 100644 index 1e66a62..0000000 --- a/app/ns-ui-category/icon-fonts/tips-and-tricks/tips-and-tricksts-page.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var observable_1 = require("tns-core-modules/data/observable"); -function pageLoaded(args) { - var page = args.object; - var viewModel = new observable_1.Observable(); - var glyphs = new Array(); - for (var charCode = 0xe903; charCode <= 0xeaea; charCode++) { - var glyph = new observable_1.Observable(); - glyph.set("icon", String.fromCharCode(charCode)); - glyph.set("code", charCode.toString(16)); - glyphs.push(glyph); - } - viewModel.set("glyphs", glyphs); - page.bindingContext = viewModel; -} -exports.pageLoaded = pageLoaded; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS1iZWhpbmQtdHMtcGFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNvZGUtYmVoaW5kLXRzLXBhZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSwrREFBeUU7QUFHekUsU0FBZ0IsVUFBVSxDQUFDLElBQWU7SUFDdEMsSUFBTSxJQUFJLEdBQVMsSUFBSSxDQUFDLE1BQU0sQ0FBQztJQUMvQixJQUFNLF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HZpZXdNb2RlbCA9IG5ldyBPYnNlcnZhYmxlKCk7XHJcblxyXG4gICAgbGV0IGdseXBocyA9IG5ldyBBcnJheTxPYnNlcnZhYmxlPigpO1xyXG4gICAgZm9yIChsZXQgY2hhckNvZGUgPSAweGU5MDM7IGNoYXJDb2RlIDw9IDB4ZWFlYTsgY2hhckNvZGUrKykge1xyXG4gICAgICAgIGNvbnN0IGdseXBoID0gbmV3IE9ic2VydmFibGUoKTtcclxuICAgICAgICBnbHlwaC5zZXQoXCJpY29uXCIsIFN0cmluZy5mcm9tQ2hhckNvZGUoY2hhckNvZGUpKTtcclxuICAgICAgICBnbHlwaC5zZXQoXCJjb2RlXCIsIGNoYXJDb2RlLnRvU3RyaW5nKDE2KSk7XHJcbiAgICAgICAgZ2x5cGhzLnB1c2goZ2x5cGgpO1xyXG4gICAgfVxyXG4gICAgdmlld01vZGVsLnNldChcImdseXBoc1wiLCBnbHlwaHMpO1xyXG5cclxuICAgIHBhZ2UuYmluZGluZ0NvbnRleHQgPSB2aWV3TW9kZWw7XHJcbn1cclxuLy8gPDwgaWNvbi1mb250LWNvZGUtYmVoaW5kLWNvZGUtdHNcclxuIl19 \ No newline at end of file diff --git a/app/ns-ui-category/icon-fonts/usage/article.md b/app/ns-ui-category/icon-fonts/usage/article.md index 37bae77..c10f487 100644 --- a/app/ns-ui-category/icon-fonts/usage/article.md +++ b/app/ns-ui-category/icon-fonts/usage/article.md @@ -9,4 +9,4 @@ WIth NativeScript 6 and above, we can use icon fonts with `Image` elements. For ->> **Note:** Images have specific stretch options (`none`, `aspectFit`, `aspectFill`). At the same time the icon fonts are having `font-size` which can contorl the size of our font. If you want to set the size of your icon through the `font-size` property then set `stretch` property to `none`. Any other values of the stretch property (including the default one) will cause the icon to be resized by measuring the image (or if there is no sizes set, the parent layout in whcih the image is nested). +>> **Note:** Images have specific stretch options (`none`, `aspectFit`, `aspectFill`). At the same time the icon fonts are having `font-size` which can control the size of our font. If you want to set the size of your icon through the `font-size` property then set `stretch` property to `none`. Any other values of the stretch property (including the default one) will cause the icon to be streched by measuring the image (or if there is no sizes set, the parent layout in whcih the image is nested). diff --git a/app/ns-ui-widgets-category/image/icon-fonts/article.md b/app/ns-ui-widgets-category/image/icon-fonts/article.md index 209ddf4..582cd27 100644 --- a/app/ns-ui-widgets-category/image/icon-fonts/article.md +++ b/app/ns-ui-widgets-category/image/icon-fonts/article.md @@ -6,3 +6,5 @@ Using the `font://` prefix, you can load a resource image while setting up an ic + +>> **Note:** Images have specific stretch options (`none`, `aspectFit`, `aspectFill`). At the same time the icon fonts are having `font-size` which can control the size of our font. If you want to set the size of your icon through the `font-size` property then set `stretch` property to `none`. Any other values of the stretch property (including the default one) will cause the icon to be streched by measuring the image (or if there is no sizes set, the parent layout in whcih the image is nested). \ No newline at end of file diff --git a/app/ns-ui-widgets-category/image/icon-fonts/icon-fonts-page.xml b/app/ns-ui-widgets-category/image/icon-fonts/icon-fonts-page.xml index 6154b16..28d1a92 100644 --- a/app/ns-ui-widgets-category/image/icon-fonts/icon-fonts-page.xml +++ b/app/ns-ui-widgets-category/image/icon-fonts/icon-fonts-page.xml @@ -7,9 +7,9 @@ - + - +