Added scope to Soure to determine if it was created by quagga or not
parent
eae4904e7a
commit
b799a154b0
@ -0,0 +1,29 @@
|
||||
const viewport = {
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: 0,
|
||||
height: 0,
|
||||
};
|
||||
|
||||
const canvas = {
|
||||
height: 0,
|
||||
width: 0,
|
||||
};
|
||||
|
||||
export function generateSourceInterface() {
|
||||
return {
|
||||
type: "INTERFACE",
|
||||
getDimensions() {
|
||||
return {
|
||||
viewport,
|
||||
canvas,
|
||||
};
|
||||
},
|
||||
getConstraints() {},
|
||||
getDrawable() {},
|
||||
applyConstraints() {},
|
||||
getLabel() {},
|
||||
stop() {},
|
||||
getScope() {},
|
||||
};
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
export const Scope = {
|
||||
INTERNAL: "INTERNAL",
|
||||
EXTERNAL: 'EXTERNAL',
|
||||
};
|
Loading…
Reference in New Issue