mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 12:06:31 +02:00
parent
f85303065c
commit
e55d0078d5
1 changed files with 8 additions and 0 deletions
|
@ -87,6 +87,7 @@
|
||||||
// changed functions and their fakes
|
// changed functions and their fakes
|
||||||
exports.changedFunctions = {
|
exports.changedFunctions = {
|
||||||
getContext: {
|
getContext: {
|
||||||
|
type: "context",
|
||||||
getStatus: function(obj, status){
|
getStatus: function(obj, status){
|
||||||
if (hasType(status, "internal")){
|
if (hasType(status, "internal")){
|
||||||
return {
|
return {
|
||||||
|
@ -118,6 +119,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toDataURL: {
|
toDataURL: {
|
||||||
|
type: "readout",
|
||||||
getStatus: function(obj, status){
|
getStatus: function(obj, status){
|
||||||
var status = Object.create(status);
|
var status = Object.create(status);
|
||||||
if (hasType(status, "input")){
|
if (hasType(status, "input")){
|
||||||
|
@ -139,6 +141,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toBlob: {
|
toBlob: {
|
||||||
|
type: "readout",
|
||||||
getStatus: function(obj, status){
|
getStatus: function(obj, status){
|
||||||
var status = Object.create(status);
|
var status = Object.create(status);
|
||||||
if (hasType(status, "input")){
|
if (hasType(status, "input")){
|
||||||
|
@ -161,6 +164,7 @@
|
||||||
exportOptions: {allowCallbacks: true}
|
exportOptions: {allowCallbacks: true}
|
||||||
},
|
},
|
||||||
mozGetAsFile: {
|
mozGetAsFile: {
|
||||||
|
type: "readout",
|
||||||
getStatus: function(obj, status){
|
getStatus: function(obj, status){
|
||||||
var status = Object.create(status);
|
var status = Object.create(status);
|
||||||
if (hasType(status, "input")){
|
if (hasType(status, "input")){
|
||||||
|
@ -182,6 +186,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getImageData: {
|
getImageData: {
|
||||||
|
type: "readout",
|
||||||
getStatus: function(obj, status){
|
getStatus: function(obj, status){
|
||||||
var status = Object.create(status);
|
var status = Object.create(status);
|
||||||
if (hasType(status, "input")){
|
if (hasType(status, "input")){
|
||||||
|
@ -213,6 +218,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fillText: {
|
fillText: {
|
||||||
|
type: "input",
|
||||||
getStatus: function(obj, status){
|
getStatus: function(obj, status){
|
||||||
var status = Object.create(status);
|
var status = Object.create(status);
|
||||||
status.active = hasType(status, "input");
|
status.active = hasType(status, "input");
|
||||||
|
@ -232,6 +238,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
strokeText: {
|
strokeText: {
|
||||||
|
type: "input",
|
||||||
getStatus: function(obj, status){
|
getStatus: function(obj, status){
|
||||||
var status = Object.create(status);
|
var status = Object.create(status);
|
||||||
status.active = hasType(status, "input");
|
status.active = hasType(status, "input");
|
||||||
|
@ -251,6 +258,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
readPixels: {
|
readPixels: {
|
||||||
|
type: "readout",
|
||||||
getStatus: function(obj, status){
|
getStatus: function(obj, status){
|
||||||
var status = Object.create(status);
|
var status = Object.create(status);
|
||||||
status.active = hasType(status, "readout") || hasType(status, "input");
|
status.active = hasType(status, "readout") || hasType(status, "input");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue