(recordContainer)
| 2233 | doPrint(); |
| 2234 | |
| 2235 | function initPrintDrawOpCtx(recordContainer) { |
| 2236 | if (window.Canteen) { |
| 2237 | window.Canteen.globals.STACK_SIZE = 100000000; |
| 2238 | } |
| 2239 | else { |
| 2240 | console.error && console.error('canteen.js is required but not imported'); |
| 2241 | } |
| 2242 | |
| 2243 | recordContainer.innerHTML = [ |
| 2244 | '<div class="print-canvas-layer-draw-operations-on-frame-record-title">', |
| 2245 | 'NOTE: In "incremental layers" (layer zr_N.1), ', |
| 2246 | 'canvas instruction count per frame (<span class="print-canvas-layer-draw-operations-on-frame-cmd-count">red number</span>) should be the same per frame;', |
| 2247 | '<br>In "normal layers" (layer zr_N.0 or zr_N.2), should be no incremental canvas instructions per frame.', |
| 2248 | '</div>' |
| 2249 | ].join(''); |
| 2250 | recordContainer.className = 'print-canvas-layer-draw-operations-on-frame-record'; |
| 2251 | |
| 2252 | return { |
| 2253 | layersInfoMap: {}, |
| 2254 | recordContainer: recordContainer, |
| 2255 | CELL_MAX: cellMax || 90, |
| 2256 | }; |
| 2257 | } |
| 2258 | |
| 2259 | function doPrint() { |
| 2260 | _drawOpCtx.lastOps = {}; |
no outgoing calls
no test coverage detected
searching dependent graphs…