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";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | exports.isDebugging = void 0;
|
---|
4 | var elementDebuggerAttribute = 'data-html2canvas-debug';
|
---|
5 | var 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 | };
|
---|
20 | var isDebugging = function (element, type) {
|
---|
21 | var elementType = getElementDebugType(element);
|
---|
22 | return elementType === 1 /* ALL */ || type === elementType;
|
---|
23 | };
|
---|
24 | exports.isDebugging = isDebugging;
|
---|
25 | //# sourceMappingURL=debugger.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.