国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| // Import the core angular services. | |
| import { Component } from "@angular/core"; | |
| // Import the application components and services. | |
| import { TextSelectEvent } from "./text-select.directive"; | |
| // ----------------------------------------------------------------------------------- // | |
| // ----------------------------------------------------------------------------------- // | |
| interface SelectionRectangle { |
| angular.module('myApp.directives', []) | |
| .directive('captcha', function () { | |
| return { | |
| scope: { ngData: '@', ngClick: '@' }, | |
| restrict: 'A', | |
| link: function (scope, el, attrs) { | |
| var canvas = el[0]; | |
| var context = canvas.getContext("2d"); | |
| var fontsize = 14; |
| // https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html | |
| // | |
| // grayscale ex: filter: grayscale(100%); | |
| // sepia ex: filter: sepia(100%); | |
| // saturate ex: filter: saturate(0%); | |
| // hue-rotate ex: filter: hue-rotate(45deg); | |
| // invert ex: filter: invert(100%); | |
| // brightness ex: filter: brightness(15%); | |
| // contrast ex: filter: contrast(200%); | |
| // blur ex: filter: blur(2px); |