cartoons -> global composite operation mapping
This commit is contained in:
parent
c3b159b64d
commit
27bba39f07
@ -19,18 +19,18 @@ var carto = global.carto || require('carto');
|
||||
].join('\n');
|
||||
|
||||
var COMP_OP_TO_CANVAS = {
|
||||
"src": 'source-over',
|
||||
"src-over": 'source-over',
|
||||
"dst-over": 'destination-over',
|
||||
"src-in": 'source-in',
|
||||
"dst-in": 'destination-in',
|
||||
"src-out": 'source-out',
|
||||
"dst-out": 'destination-out',
|
||||
"src-atop": null,
|
||||
"dst-atop": null,
|
||||
"xor": null,
|
||||
"darken": 'darken',
|
||||
"lighten": 'lighten'
|
||||
"src": 'source-over',
|
||||
"src-over": 'source-over',
|
||||
"dst-over": 'destination-over',
|
||||
"src-in": 'source-in',
|
||||
"dst-in": 'destination-in',
|
||||
"src-out": 'source-out',
|
||||
"dst-out": 'destination-out',
|
||||
"src-atop": 'source-atop',
|
||||
"dst-atop": 'destination-atop',
|
||||
"xor": 'xor',
|
||||
"darken": 'darken',
|
||||
"lighten": 'lighten'
|
||||
}
|
||||
|
||||
function compop2canvas(compop) {
|
||||
|
Loading…
Reference in New Issue
Block a user