d00361f87d
This proves that frames can be generated on Firefox using the canvas and a Tree Walker to examine text nodes. Already with little optimisation frames don't ever take longer than 200ms to render. Chrome has a MediaStream of the viewport, hopefully that will prove performant as well. This doesn't have functioning text colour detection or text occlusion support. But early research suggests this will possible by comparing 2 screenshots: one with and the other without rendered text.
20 lines
347 B
JSON
20 lines
347 B
JSON
{
|
|
"scripts": {
|
|
"test": "NODE_PATH=src:test mocha"
|
|
},
|
|
"babel": {
|
|
"presets": ["es2015"]
|
|
},
|
|
"devDependencies": {
|
|
"babel-preset-es2015": "^6.24.1",
|
|
"babel-register": "^6.26.0",
|
|
"chai": "^4.1.2",
|
|
"mocha": "^4.1.0",
|
|
"sinon": "^4.1.3",
|
|
"webpack": "^3.10.0"
|
|
},
|
|
"dependencies": {
|
|
"lodash": "^4.17.4"
|
|
}
|
|
}
|