From a8e1840f496b6e512d7eae70089e6c6b40833d08 Mon Sep 17 00:00:00 2001 From: weihanchen Date: Wed, 27 Dec 2017 23:16:37 +0800 Subject: [PATCH] =?UTF-8?q?=C2=96chore(release):=20v0.4.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bower.json | 4 +-- build/angular-screenshot.css | 2 +- build/angular-screenshot.js | 56 ++++++++++++++++---------------- build/angular-screenshot.min.css | 2 +- build/angular-screenshot.min.js | 2 +- package.json | 4 +-- 6 files changed, 35 insertions(+), 35 deletions(-) diff --git a/bower.json b/bower.json index d0c4304..b9fd4f9 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-screenshot", - "version": "0.4.0", + "version": "0.4.1", "authors": [ "weihanchen" ], @@ -28,4 +28,4 @@ "dependencies": { "angular": "^1.3" } -} +} \ No newline at end of file diff --git a/build/angular-screenshot.css b/build/angular-screenshot.css index c843546..4457d87 100644 --- a/build/angular-screenshot.css +++ b/build/angular-screenshot.css @@ -1,4 +1,4 @@ -/*! Angular Screenshot - v0.4.0 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */ +/*! Angular Screenshot - v0.4.1 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */ /* shared */ /* components */ .screenshot-toolbox { diff --git a/build/angular-screenshot.js b/build/angular-screenshot.js index ab246d3..cf67abc 100644 --- a/build/angular-screenshot.js +++ b/build/angular-screenshot.js @@ -1,4 +1,4 @@ -/*! Angular Screenshot - v0.4.0 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */ +/*! Angular Screenshot - v0.4.1 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */ /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -3388,11 +3388,11 @@ var screenshotToolbox = function screenshotToolbox() { transclude: true }; }; -/** - * @ngdoc directive - * @name screenshot-toolbox - * @description - * Custom template of screenshot toolbox, connent with screenshot +/** + * @ngdoc directive + * @name screenshot-toolbox + * @description + * Custom template of screenshot toolbox, connent with screenshot */ exports.default = screenshotToolbox; @@ -3552,9 +3552,9 @@ var screenshot = function screenshot() { var toolbox = $compile(self.template)(self.templateScope); $scope.$apply(); var toolboxElement = toolbox[0]; - /** - * toolbox position setting - * because read elememt's width sould indicated postion method, so we set position method first then move location with dom. + /** + * toolbox position setting + * because read elememt's width sould indicated postion method, so we set position method first then move location with dom. */ _utils.domprocess.setToolboxStackStyle(toolboxElement, hightLevelZindex.top).then(_utils.domprocess.appendToBody).then(function (element) { var position = calculateToolboxPosition(canvas.offsetLeft, canvas.offsetTop, rect, element.offsetWidth, element.offsetHeight); @@ -3610,10 +3610,10 @@ var screenshot = function screenshot() { }); }; - /** - * - * @param {string} template - allow screenshot-toolbox directive setting with - * @param {string} templateScope - scope of $compile toolbox content + /** + * + * @param {string} template - allow screenshot-toolbox directive setting with + * @param {string} templateScope - scope of $compile toolbox content */ var setTemplate = function setTemplate(template, templateScope) { self.template = template; @@ -3674,21 +3674,21 @@ var screenshot = function screenshot() { }; }; -/** - * @ngdoc directive - * @name screenshot - * @description - * Capture dom setion with indicate element - * - * @param {string@} [target=element.children()] Use target element with capture section. - * @param {boolean=} [isOpen=false] Flag indicating that open the capture canvas. - * @param {object=} [toolboxOptions= - * { - * filename: 'screenshot.png', - * cancelText: 'Cancel', - * downloadText: 'Download' - * }] toolboxOptions - * @param {object=} [api={download, cancel, downloadFull}] Expose api to interactive custom template action. +/** + * @ngdoc directive + * @name screenshot + * @description + * Capture dom setion with indicate element + * + * @param {string@} [target=element.children()] Use target element with capture section. + * @param {boolean=} [isOpen=false] Flag indicating that open the capture canvas. + * @param {object=} [toolboxOptions= + * { + * filename: 'screenshot.png', + * cancelText: 'Cancel', + * downloadText: 'Download' + * }] toolboxOptions + * @param {object=} [api={download, cancel, downloadFull, toPng}] Expose api to interactive custom template action. */ exports.default = screenshot; diff --git a/build/angular-screenshot.min.css b/build/angular-screenshot.min.css index 3ec0f76..d74ed90 100644 --- a/build/angular-screenshot.min.css +++ b/build/angular-screenshot.min.css @@ -1,2 +1,2 @@ -/*! Angular Screenshot - v0.4.0 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */ +/*! Angular Screenshot - v0.4.1 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */ .screenshot-toolbox button{margin:.2em}.screenshot-toolbox .btn{position:relative;padding:.2em .4em;overflow:hidden;border-width:0;outline:none;border-radius:.2em;box-shadow:0 .1em .2em #4f4f4f;background-color:#e6e3e3;color:#4f4f4f;transition:background-color .3s}.screenshot-toolbox .btn:focus,.screenshot-toolbox .btn:hover{background:#cdcccc}.screenshot-toolbox .btn>*{position:relative}.screenshot-toolbox .btn:before{content:"";position:absolute;top:50%;left:50%;display:block;width:0;padding-top:0;border-radius:100%;background-color:hsla(0,1%,80%,.3);-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.screenshot-toolbox .btn:active:before{width:120%;padding-top:120%;transition:width .2s ease-out,padding-top .2s ease-out}.screenshot-toolbox .btn-navy{background-color:#1d9e74}.screenshot-toolbox .btn-navy:focus,.screenshot-toolbox .btn-navy:hover{background-color:#138661}.screenshot-toolbox-custom{visibility:hidden} \ No newline at end of file diff --git a/build/angular-screenshot.min.js b/build/angular-screenshot.min.js index 24edc17..8b3d6c8 100644 --- a/build/angular-screenshot.min.js +++ b/build/angular-screenshot.min.js @@ -1,2 +1,2 @@ -/*! Angular Screenshot - v0.4.0 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */ +/*! Angular Screenshot - v0.4.1 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */ !function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=306)}([function(t,n,r){var e=r(2),o=r(24),i=r(12),u=r(13),c=r(25),a=function(t,n,r){var f,s,l,h,v=t&a.F,p=t&a.G,d=t&a.S,g=t&a.P,y=t&a.B,m=p?e:d?e[n]||(e[n]={}):(e[n]||{}).prototype,b=p?o:o[n]||(o[n]={}),w=b.prototype||(b.prototype={});p&&(r=n);for(f in r)s=!v&&m&&void 0!==m[f],l=(s?m:r)[f],h=y&&s?c(l,e):g&&"function"==typeof l?c(Function.call,l):l,m&&u(m,f,l,t&a.U),b[f]!=l&&i(b,f,h),g&&w[f]!=l&&(w[f]=l)};e.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,r){var e=r(4);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(57)("wks"),o=r(39),i=r(2).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},function(t,n,r){t.exports=!r(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(1),o=r(93),i=r(23),u=Object.defineProperty;n.f=r(6)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(30),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){var e=r(19);t.exports=function(t){return Object(e(t))}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(7),o=r(29);t.exports=r(6)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(2),o=r(12),i=r(10),u=r(39)("src"),c=Function.toString,a=(""+c).split("toString");r(24).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(f&&(i(r,u)||o(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n,r){var e=r(0),o=r(3),i=r(19),u=/"/g,c=function(t,n,r,e){var o=String(i(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,""")+'"'),c+">"+o+""};t.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*o(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",r)}},function(t,n,r){var e=r(46),o=r(19);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(47),o=r(29),i=r(15),u=r(23),c=r(10),a=r(93),f=Object.getOwnPropertyDescriptor;n.f=r(6)?f:function(t,n){if(t=i(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return o(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(10),o=r(9),i=r(74)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){var e=r(3);t.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,r){var e=r(25),o=r(46),i=r(9),u=r(8),c=r(124);t.exports=function(t,n){var r=1==t,a=2==t,f=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var d,g,y=i(n),m=o(y),b=e(c,p,3),w=u(m.length),x=0,S=r?v(n,w):a?v(n,0):void 0;w>x;x++)if((h||x in m)&&(d=m[x],g=b(d,x,y),t))if(r)S[x]=g;else if(g)switch(t){case 3:return!0;case 5:return d;case 6:return x;case 2:S.push(d)}else if(s)return!1;return l?-1:f||s?s:S}}},function(t,n,r){var e=r(0),o=r(24),i=r(3);t.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*i(function(){r(1)}),"Object",u)}},function(t,n,r){var e=r(4);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(11);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,r){var e=r(109),o=r(0),i=r(57)("metadata"),u=i.store||(i.store=new(r(112))),c=function(t,n,r){var o=u.get(t);if(!o){if(!r)return;u.set(t,o=new e)}var i=o.get(n);if(!i){if(!r)return;o.set(n,i=new e)}return i},a=function(t,n,r){var e=c(n,r,!1);return void 0!==e&&e.has(t)},f=function(t,n,r){var e=c(n,r,!1);return void 0===e?void 0:e.get(t)},s=function(t,n,r,e){c(r,e,!0).set(t,n)},l=function(t,n){var r=c(t,n,!1),e=[];return r&&r.forEach(function(t,n){e.push(n)}),e},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},v=function(t){o(o.S,"Reflect",t)};t.exports={store:u,map:c,has:a,get:f,set:s,keys:l,key:h,exp:v}},function(t,n,r){"use strict";if(r(6)){var e=r(32),o=r(2),i=r(3),u=r(0),c=r(58),a=r(81),f=r(25),s=r(31),l=r(29),h=r(12),v=r(36),p=r(30),d=r(8),g=r(38),y=r(23),m=r(10),b=r(106),w=r(45),x=r(4),S=r(9),_=r(66),E=r(33),P=r(17),O=r(34).f,A=r(83),F=r(39),M=r(5),T=r(21),j=r(48),I=r(75),N=r(84),R=r(42),C=r(54),k=r(37),L=r(59),U=r(86),D=r(7),W=r(16),B=D.f,V=W.f,G=o.RangeError,z=o.TypeError,Y=o.Uint8Array,X=Array.prototype,$=a.ArrayBuffer,H=a.DataView,J=T(0),K=T(2),q=T(3),Z=T(4),Q=T(5),tt=T(6),nt=j(!0),rt=j(!1),et=N.values,ot=N.keys,it=N.entries,ut=X.lastIndexOf,ct=X.reduce,at=X.reduceRight,ft=X.join,st=X.sort,lt=X.slice,ht=X.toString,vt=X.toLocaleString,pt=M("iterator"),dt=M("toStringTag"),gt=F("typed_constructor"),yt=F("def_constructor"),mt=c.CONSTR,bt=c.TYPED,wt=c.VIEW,xt=T(1,function(t,n){return At(I(t,t[yt]),n)}),St=i(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),_t=!!Y&&!!Y.prototype.set&&i(function(){new Y(1).set({})}),Et=function(t,n){if(void 0===t)throw z("Wrong length!");var r=+t,e=d(t);if(n&&!b(r,e))throw G("Wrong length!");return e},Pt=function(t,n){var r=p(t);if(r<0||r%n)throw G("Wrong offset!");return r},Ot=function(t){if(x(t)&&bt in t)return t;throw z(t+" is not a typed array!")},At=function(t,n){if(!(x(t)&> in t))throw z("It is not a typed array constructor!");return new t(n)},Ft=function(t,n){return Mt(I(t,t[yt]),n)},Mt=function(t,n){for(var r=0,e=n.length,o=At(t,e);e>r;)o[r]=n[r++];return o},Tt=function(t,n,r){B(t,n,{get:function(){return this._d[r]}})},jt=function(t){var n,r,e,o,i,u,c=S(t),a=arguments.length,s=a>1?arguments[1]:void 0,l=void 0!==s,h=A(c);if(void 0!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(i=u.next()).done;n++)e.push(i.value);c=e}for(l&&a>2&&(s=f(s,arguments[2],2)),n=0,r=d(c.length),o=At(this,r);r>n;n++)o[n]=l?s(c[n],n):c[n];return o},It=function(){for(var t=0,n=arguments.length,r=At(this,n);n>t;)r[t]=arguments[t++];return r},Nt=!!Y&&i(function(){vt.call(new Y(1))}),Rt=function(){return vt.apply(Nt?lt.call(Ot(this)):Ot(this),arguments)},Ct={copyWithin:function(t,n){return U.call(Ot(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Ot(this),arguments)},filter:function(t){return Ft(this,K(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Ot(this),arguments)},lastIndexOf:function(t){return ut.apply(Ot(this),arguments)},map:function(t){return xt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Ot(this),arguments)},reduceRight:function(t){return at.apply(Ot(this),arguments)},reverse:function(){for(var t,n=this,r=Ot(n).length,e=Math.floor(r/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return st.call(Ot(this),t)},subarray:function(t,n){var r=Ot(this),e=r.length,o=g(t,e);return new(I(r,r[yt]))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,d((void 0===n?e:g(n,e))-o))}},kt=function(t,n){return Ft(this,lt.call(Ot(this),t,n))},Lt=function(t){Ot(this);var n=Pt(arguments[1],1),r=this.length,e=S(t),o=d(e.length),i=0;if(o+n>r)throw G("Wrong length!");for(;i255?255:255&e),o.v[p](r*n+o.o,e,St)},M=function(t,n){B(t,n,{get:function(){return A(this,n)},set:function(t){return F(this,n,t)},enumerable:!0})};b?(g=r(function(t,r,e,o){s(t,g,f,"_d");var i,u,c,a,l=0,v=0;if(x(r)){if(!(r instanceof $||"ArrayBuffer"==(a=w(r))||"SharedArrayBuffer"==a))return bt in r?Mt(g,r):jt.call(g,r);i=r,v=Pt(e,n);var p=r.byteLength;if(void 0===o){if(p%n)throw G("Wrong length!");if((u=p-v)<0)throw G("Wrong length!")}else if((u=d(o)*n)+v>p)throw G("Wrong length!");c=u/n}else c=Et(r,!0),u=c*n,i=new $(u);for(h(t,"_d",{b:i,o:v,l:u,e:c,v:new H(i)});l0?e:r)(t)}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n){t.exports=!1},function(t,n,r){var e=r(1),o=r(99),i=r(62),u=r(74)("IE_PROTO"),c=function(){},a=function(){var t,n=r(61)("iframe"),e=i.length;for(n.style.display="none",r(64).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("