source: imaps-frontend/node_modules/html2canvas/dist/lib/core/debugger.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 820 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.isDebugging = void 0;
4var elementDebuggerAttribute = 'data-html2canvas-debug';
5var getElementDebugType = function (element) {
6 var attribute = element.getAttribute(elementDebuggerAttribute);
7 switch (attribute) {
8 case 'all':
9 return 1 /* ALL */;
10 case 'clone':
11 return 2 /* CLONE */;
12 case 'parse':
13 return 3 /* PARSE */;
14 case 'render':
15 return 4 /* RENDER */;
16 default:
17 return 0 /* NONE */;
18 }
19};
20var isDebugging = function (element, type) {
21 var elementType = getElementDebugType(element);
22 return elementType === 1 /* ALL */ || type === elementType;
23};
24exports.isDebugging = isDebugging;
25//# sourceMappingURL=debugger.js.map
Note: See TracBrowser for help on using the repository browser.