New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/porter-duff

Package Overview
Dependencies
Maintainers
1
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/porter-duff - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.3...@thi.ng/porter-duff@0.1.4) (2019-11-09)
**Note:** Version bump only for package @thi.ng/porter-duff
## [0.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.2...@thi.ng/porter-duff@0.1.3) (2019-09-21)

@@ -8,0 +16,0 @@

2

lib/index.umd.js

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@thi.ng/math")):"function"==typeof define&&define.amd?define(["exports","@thi.ng/math"],n):n(((t=t||self).thi=t.thi||{},t.thi.ng=t.thi.ng||{},t.thi.ng.porterDuff={}),t.thi.ng.math)}(this,function(t,n){"use strict";const e=(t,n,e,_,r)=>(t[0]=n,t[1]=e,t[2]=_,t[3]=r,t),_=(t,n)=>{const _=n[3];return e(t||n,n[0]*_,n[1]*_,n[2]*_,_)},r=t=>{const n=(t>>>24)/255;return 4278190080&t|(t>>>16&255)*n<<16|(t>>>8&255)*n<<8|(255&t)*n},i=(t,n)=>{const _=n[3];return _>0?e(t||n,n[0]/_,n[1]/_,n[2]/_,_):t&&t!=n?((t,n)=>e(t,n[0],n[1],n[2],n[3]))(t,n):n},o=t=>{const n=(t>>>24)/255;return n>0?(4278190080&t|Math.min(255,(t>>>16&255)/n)<<16|Math.min(255,(t>>>8&255)/n)<<8|Math.min(255,(255&t)/n))>>>0:t},u=Math.min,p=()=>0,l=()=>1,I=t=>t,s=(t,n)=>n,S=t=>1-t,c=(t,n)=>1-n,f=(t,_)=>(r,i,o)=>{const u=i[3],p=o[3],l=t(u,p),I=_(u,p);return e(r||o,i[0]*l+o[0]*I,i[1]*l+o[1]*I,i[2]*l+o[2]*I,n.clamp01(i[3]*l+o[3]*I))},m=(t,e)=>(_,r)=>{const i=(_>>>24)/255,o=(r>>>24)/255,u=t(i,o),p=e(i,o);return n.clamp((_>>>24&255)*u+(r>>>24&255)*p,0,255)<<24|n.clamp((_>>>16&255)*u+(r>>>16&255)*p,0,255)<<16|n.clamp((_>>>8&255)*u+(r>>>8&255)*p,0,255)<<8|n.clamp((255&_)*u+(255&r)*p,0,255)},E=f(l,p),O=f(p,l),R=f(l,S),a=f(c,l),T=f(s,p),h=f(p,I),d=f(c,p),D=f(p,S),F=f(s,S),C=f(c,I),P=f(c,S),y=f(l,l),N=p,A=m(l,p),U=m(p,l),M=m(l,S),g=m(c,l),L=m(s,p),V=m(p,I),v=m(c,p),x=m(p,S),b=m(s,S),j=m(c,I),k=m(c,S),B=m(l,l);t.A=I,t.B=s,t.CLEAR_F=(t,n,_)=>((t,n)=>e(t,n,n,n,n))(t||_,0),t.CLEAR_I=N,t.DEST_ATOP_F=C,t.DEST_ATOP_I=j,t.DEST_F=O,t.DEST_I=U,t.DEST_IN_F=h,t.DEST_IN_I=V,t.DEST_OUT_F=D,t.DEST_OUT_I=x,t.DEST_OVER_F=a,t.DEST_OVER_I=g,t.ONE=l,t.ONE_MINUS_A=S,t.ONE_MINUS_B=c,t.PLUS_F=y,t.PLUS_I=B,t.SRC_ATOP_F=F,t.SRC_ATOP_I=b,t.SRC_F=E,t.SRC_I=A,t.SRC_IN_F=T,t.SRC_IN_I=L,t.SRC_OUT_F=d,t.SRC_OUT_I=v,t.SRC_OVER_F=R,t.SRC_OVER_I=M,t.XOR_F=P,t.XOR_I=k,t.ZERO=p,t.darken=(t,n,_)=>e(t||n,n[0]*_,n[1]*_,n[2]*_,n[3]),t.darkenInt=(t,n)=>4278190080&t|u(255,(t>>>16&255)*n)<<16|u(255,(t>>>8&255)*n)<<8|u(255,(255&t)*n),t.dissolve=(t,n,_)=>e(t||n,n[0]*_,n[1]*_,n[2]*_,u(1,n[3]*_)),t.dissolveInt=(t,n)=>u(255,(t>>>24&255)*n)<<24|u(255,(t>>>16&255)*n)<<16|u(255,(t>>>8&255)*n)<<8|u(255,(255&t)*n),t.isPremultiplied=t=>{const n=t[3];return t[0]<=n&&t[1]<=n||t[2]<=n},t.isPremultipliedInt=t=>{const n=t>>>24;return(t>>>16&255)<=n&&(t>>>8&255)<=n&&(255&t)<=n},t.opacity=(t,n,_)=>e(t||n,n[0],n[1],n[2],u(1,n[3]*_)),t.opacityInt=(t,n)=>u(255,(t>>>24&255)*n)<<24|16777215&t,t.porterDuff=f,t.porterDuffInt=m,t.porterDuffP=t=>(n,e,r)=>i(null,t(null,_([],e),_(n,r))),t.porterDuffPInt=t=>(n,e)=>o(t(r(n),r(e))),t.postmultiply=i,t.postmultiplyInt=o,t.premultiply=_,t.premultiplyInt=r,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@thi.ng/math")):"function"==typeof define&&define.amd?define(["exports","@thi.ng/math"],n):n(((t=t||self).thi=t.thi||{},t.thi.ng=t.thi.ng||{},t.thi.ng.porterDuff={}),t.thi.ng.math)}(this,(function(t,n){"use strict";const e=(t,n,e,_,r)=>(t[0]=n,t[1]=e,t[2]=_,t[3]=r,t),_=(t,n)=>{const _=n[3];return e(t||n,n[0]*_,n[1]*_,n[2]*_,_)},r=t=>{const n=(t>>>24)/255;return 4278190080&t|(t>>>16&255)*n<<16|(t>>>8&255)*n<<8|(255&t)*n},i=(t,n)=>{const _=n[3];return _>0?e(t||n,n[0]/_,n[1]/_,n[2]/_,_):t&&t!=n?((t,n)=>e(t,n[0],n[1],n[2],n[3]))(t,n):n},o=t=>{const n=(t>>>24)/255;return n>0?(4278190080&t|Math.min(255,(t>>>16&255)/n)<<16|Math.min(255,(t>>>8&255)/n)<<8|Math.min(255,(255&t)/n))>>>0:t},u=Math.min,p=()=>0,l=()=>1,I=t=>t,s=(t,n)=>n,S=t=>1-t,c=(t,n)=>1-n,f=(t,_)=>(r,i,o)=>{const u=i[3],p=o[3],l=t(u,p),I=_(u,p);return e(r||o,i[0]*l+o[0]*I,i[1]*l+o[1]*I,i[2]*l+o[2]*I,n.clamp01(i[3]*l+o[3]*I))},m=(t,e)=>(_,r)=>{const i=(_>>>24)/255,o=(r>>>24)/255,u=t(i,o),p=e(i,o);return n.clamp((_>>>24&255)*u+(r>>>24&255)*p,0,255)<<24|n.clamp((_>>>16&255)*u+(r>>>16&255)*p,0,255)<<16|n.clamp((_>>>8&255)*u+(r>>>8&255)*p,0,255)<<8|n.clamp((255&_)*u+(255&r)*p,0,255)},E=f(l,p),O=f(p,l),R=f(l,S),a=f(c,l),T=f(s,p),h=f(p,I),d=f(c,p),D=f(p,S),F=f(s,S),C=f(c,I),P=f(c,S),y=f(l,l),N=p,A=m(l,p),U=m(p,l),M=m(l,S),g=m(c,l),L=m(s,p),V=m(p,I),v=m(c,p),x=m(p,S),b=m(s,S),j=m(c,I),k=m(c,S),B=m(l,l);t.A=I,t.B=s,t.CLEAR_F=(t,n,_)=>((t,n)=>e(t,n,n,n,n))(t||_,0),t.CLEAR_I=N,t.DEST_ATOP_F=C,t.DEST_ATOP_I=j,t.DEST_F=O,t.DEST_I=U,t.DEST_IN_F=h,t.DEST_IN_I=V,t.DEST_OUT_F=D,t.DEST_OUT_I=x,t.DEST_OVER_F=a,t.DEST_OVER_I=g,t.ONE=l,t.ONE_MINUS_A=S,t.ONE_MINUS_B=c,t.PLUS_F=y,t.PLUS_I=B,t.SRC_ATOP_F=F,t.SRC_ATOP_I=b,t.SRC_F=E,t.SRC_I=A,t.SRC_IN_F=T,t.SRC_IN_I=L,t.SRC_OUT_F=d,t.SRC_OUT_I=v,t.SRC_OVER_F=R,t.SRC_OVER_I=M,t.XOR_F=P,t.XOR_I=k,t.ZERO=p,t.darken=(t,n,_)=>e(t||n,n[0]*_,n[1]*_,n[2]*_,n[3]),t.darkenInt=(t,n)=>4278190080&t|u(255,(t>>>16&255)*n)<<16|u(255,(t>>>8&255)*n)<<8|u(255,(255&t)*n),t.dissolve=(t,n,_)=>e(t||n,n[0]*_,n[1]*_,n[2]*_,u(1,n[3]*_)),t.dissolveInt=(t,n)=>u(255,(t>>>24&255)*n)<<24|u(255,(t>>>16&255)*n)<<16|u(255,(t>>>8&255)*n)<<8|u(255,(255&t)*n),t.isPremultiplied=t=>{const n=t[3];return t[0]<=n&&t[1]<=n||t[2]<=n},t.isPremultipliedInt=t=>{const n=t>>>24;return(t>>>16&255)<=n&&(t>>>8&255)<=n&&(255&t)<=n},t.opacity=(t,n,_)=>e(t||n,n[0],n[1],n[2],u(1,n[3]*_)),t.opacityInt=(t,n)=>u(255,(t>>>24&255)*n)<<24|16777215&t,t.porterDuff=f,t.porterDuffInt=m,t.porterDuffP=t=>(n,e,r)=>i(null,t(null,_([],e),_(n,r))),t.porterDuffPInt=t=>(n,e)=>o(t(r(n),r(e))),t.postmultiply=i,t.postmultiplyInt=o,t.premultiply=_,t.premultiplyInt=r,Object.defineProperty(t,"__esModule",{value:!0})}));
{
"name": "@thi.ng/porter-duff",
"version": "0.1.3",
"version": "0.1.4",
"description": "Porter-Duff operators for packed ints & float-array alpha compositing",

@@ -32,8 +32,8 @@ "module": "./index.js",

"nyc": "^14.0.0",
"typedoc": "^0.14.2",
"typescript": "^3.5.3"
"typedoc": "^0.15.0",
"typescript": "^3.6.4"
},
"dependencies": {
"@thi.ng/api": "^6.4.0",
"@thi.ng/math": "^1.4.2"
"@thi.ng/api": "^6.5.0",
"@thi.ng/math": "^1.5.0"
},

@@ -54,3 +54,3 @@ "keywords": [

"sideEffects": false,
"gitHead": "5f865588e37a27ceb46484c24fce4d59a0637f90"
"gitHead": "97add769f24aa32a1a5e13c5c941605e1b9eb569"
}

@@ -40,3 +40,3 @@ # @thi.ng/porter-duff

![porter-duff compositing modes](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/porter-duff/porter-duff2.png)
![porter-duff compositing modes](https://raw.githubusercontent.com/thi-ng/umbrella/master/assets/porter-duff/porter-duff2.png)

@@ -128,3 +128,3 @@ ### References

![custom operator](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/porter-duff/porter-duff-custom.png)
![custom operator](https://raw.githubusercontent.com/thi-ng/umbrella/master/assets/porter-duff/porter-duff-custom.png)

@@ -131,0 +131,0 @@ The following coefficient functions are included by default (and are

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc