Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
183 lines
6.7 KiB
JavaScript
183 lines
6.7 KiB
JavaScript
// Module ID: 5334
|
|
// Function ID: 5335
|
|
// Dependencies: [32, 5294, 5311]
|
|
|
|
// Module 5334
|
|
import _mod5294 from "module_5294" /* 5294 */;
|
|
import _modDef5311 from "module_5311" /* 5311 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
|
|
require = arg1;
|
|
function parseBezierKnot(dataView, arg1) {
|
|
const items = [];
|
|
let num = 0;
|
|
do {
|
|
let sum = arg1 + num;
|
|
let tmp2 = importDefault;
|
|
let obj = _modDef5311;
|
|
let longAt = obj.getLongAt(dataView, sum);
|
|
let num2 = -1;
|
|
if (longAt >>> 31 === 0) {
|
|
num2 = 1;
|
|
}
|
|
let str = (2130706432 & longAt) >>> 24;
|
|
let _parseInt = parseInt;
|
|
let tmp6 = require;
|
|
let obj2 = _mod5294;
|
|
let str2 = longAt & parseInt(obj2.strRepeat("1", 24), 2);
|
|
let obj3 = _mod5294;
|
|
let text = `${str.toString(2)}.`;
|
|
let obj4 = _mod5294;
|
|
let result = num2 * obj3.parseFloatRadix(`${str.toString(2)}.` + obj4.padStart(str2.toString(2), 24, "0"), 2);
|
|
let tmp2Result = tmp2(5311);
|
|
let longAt1 = tmp2Result.getLongAt(dataView, sum + 4);
|
|
let num3 = -1;
|
|
if (longAt1 >>> 31 === 0) {
|
|
num3 = 1;
|
|
}
|
|
let str3 = (2130706432 & longAt1) >>> 24;
|
|
let _parseInt2 = parseInt;
|
|
let tmp6Result = tmp6(5294);
|
|
let str4 = longAt1 & parseInt(tmp6Result.strRepeat("1", 24), 2);
|
|
let tmp6Result3 = tmp6(5294);
|
|
let text1 = `${str3.toString(2)}.`;
|
|
let tmp6Result4 = tmp6(5294);
|
|
let items1 = [num3 * tmp6Result3.parseFloatRadix(`${str3.toString(2)}.` + tmp6Result4.padStart(str4.toString(2), 24, "0"), 2), result];
|
|
let arr = items.push(items1);
|
|
num = num + 8;
|
|
} while (num < 24);
|
|
return items;
|
|
}
|
|
let obj = { CLOSED_SUBPATH_LENGTH: 0, CLOSED_SUBPATH_BEZIER_LINKED: 1, CLOSED_SUBPATH_BEZIER_UNLINKED: 2, OPEN_SUBPATH_LENGTH: 3, OPEN_SUBPATH_BEZIER_LINKED: 4, OPEN_SUBPATH_BEZIER_UNLINKED: 5, FILL_RULE: 6, CLIPBOARD: 7, INITIAL_FILL_RULE: 8 };
|
|
let obj2 = { 2000: null, 2999: null };
|
|
obj2[2000] = {
|
|
name: "PathInformation",
|
|
description: function pathResource(byteLength) {
|
|
const types = {};
|
|
const paths = [];
|
|
for (let num = 0; num < byteLength.byteLength; num = num + 26) {
|
|
let obj2 = _modDef5311;
|
|
let shortAt = obj2.getShortAt(byteLength, num);
|
|
let tmp4 = closure_4;
|
|
if (closure_4[shortAt]) {
|
|
if (!types[shortAt]) {
|
|
types[shortAt] = tmp4[shortAt].description;
|
|
}
|
|
let obj = { type: shortAt, path: null };
|
|
let obj4 = tmp4[shortAt];
|
|
obj.path = obj4.path(byteLength, num + 2);
|
|
let arr = paths.push(obj);
|
|
}
|
|
}
|
|
return JSON.stringify({ types, paths });
|
|
}
|
|
};
|
|
obj2[2999] = {
|
|
name: "ClippingPathName",
|
|
description(getUint8) {
|
|
return _slicedToArray(_mod5294.getPascalStringFromDataView(getUint8, 0), 2)[1];
|
|
}
|
|
};
|
|
let closure_4 = {
|
|
[obj.CLOSED_SUBPATH_LENGTH]: {
|
|
description: "Closed subpath length",
|
|
path(dataView, sum) {
|
|
const items = [_modDef5311.getShortAt(dataView, sum)];
|
|
return items;
|
|
}
|
|
},
|
|
[obj.CLOSED_SUBPATH_BEZIER_LINKED]: { description: "Closed subpath Bezier knot, linked", path: parseBezierKnot },
|
|
[obj.CLOSED_SUBPATH_BEZIER_UNLINKED]: { description: "Closed subpath Bezier knot, unlinked", path: parseBezierKnot },
|
|
[obj.OPEN_SUBPATH_LENGTH]: {
|
|
description: "Open subpath length",
|
|
path(dataView, sum) {
|
|
const items = [_modDef5311.getShortAt(dataView, sum)];
|
|
return items;
|
|
}
|
|
},
|
|
[obj.OPEN_SUBPATH_BEZIER_LINKED]: { description: "Open subpath Bezier knot, linked", path: parseBezierKnot },
|
|
[obj.OPEN_SUBPATH_BEZIER_UNLINKED]: { description: "Open subpath Bezier knot, unlinked", path: parseBezierKnot },
|
|
[obj.FILL_RULE]: {
|
|
description: "Path fill rule",
|
|
path() {
|
|
return [];
|
|
}
|
|
},
|
|
[obj.INITIAL_FILL_RULE]: {
|
|
description: "Initial fill rule",
|
|
path(dataView, sum) {
|
|
const items = [_modDef5311.getShortAt(dataView, sum)];
|
|
return items;
|
|
}
|
|
},
|
|
[obj.CLIPBOARD]: {
|
|
description: "Clipboard",
|
|
path: function parseClipboard(dataView, sum) {
|
|
const longAt = _modDef5311.getLongAt(dataView, sum);
|
|
let num = -1;
|
|
let num2 = -1;
|
|
if (longAt >>> 31 === 0) {
|
|
num2 = 1;
|
|
}
|
|
const str2 = longAt & parseInt(_mod5294.strRepeat("1", 24), 2);
|
|
const text = `${str.toString(2)}.`;
|
|
const obj3 = _mod5294;
|
|
const items = [num2 * obj3.parseFloatRadix(`${(2130706432 & longAt) >>> 24.toString(2)}.` + _mod5294.padStart(str2.toString(2), 24, "0"), 2), , , ];
|
|
sum = sum + 4;
|
|
const longAt1 = _modDef5311.getLongAt(dataView, sum);
|
|
let num3 = num;
|
|
if (longAt1 >>> 31 === 0) {
|
|
num3 = 1;
|
|
}
|
|
const tmpResult = _modDef5311;
|
|
const tmp4Result = _mod5294;
|
|
const str4 = longAt1 & parseInt(_mod5294.strRepeat("1", 24), 2);
|
|
const text1 = `${str3.toString(2)}.`;
|
|
const tmp4Result12 = _mod5294;
|
|
items[1] = num3 * tmp4Result12.parseFloatRadix(`${(2130706432 & longAt1) >>> 24.toString(2)}.` + _mod5294.padStart(str4.toString(2), 24, "0"), 2);
|
|
const sum1 = sum + 8;
|
|
const tmp4Result13 = _mod5294;
|
|
const longAt2 = _modDef5311.getLongAt(dataView, sum1);
|
|
let num4 = num;
|
|
if (longAt2 >>> 31 === 0) {
|
|
num4 = 1;
|
|
}
|
|
const tmpResult4 = _modDef5311;
|
|
const tmp4Result14 = _mod5294;
|
|
const str6 = longAt2 & parseInt(_mod5294.strRepeat("1", 24), 2);
|
|
const text2 = `${str5.toString(2)}.`;
|
|
const tmp4Result15 = _mod5294;
|
|
items[2] = num4 * tmp4Result15.parseFloatRadix(`${(2130706432 & longAt2) >>> 24.toString(2)}.` + _mod5294.padStart(str6.toString(2), 24, "0"), 2);
|
|
const sum2 = sum + 12;
|
|
const tmp4Result16 = _mod5294;
|
|
const longAt3 = _modDef5311.getLongAt(dataView, sum2);
|
|
let num5 = num;
|
|
if (longAt3 >>> 31 === 0) {
|
|
num5 = 1;
|
|
}
|
|
const tmpResult5 = _modDef5311;
|
|
const tmp4Result17 = _mod5294;
|
|
const str8 = longAt3 & parseInt(_mod5294.strRepeat("1", 24), 2);
|
|
const text3 = `${str7.toString(2)}.`;
|
|
const tmp4Result18 = _mod5294;
|
|
items[3] = num5 * tmp4Result18.parseFloatRadix(`${(2130706432 & longAt3) >>> 24.toString(2)}.` + _mod5294.padStart(str8.toString(2), 24, "0"), 2);
|
|
const items1 = [items, ];
|
|
const sum3 = sum + 16;
|
|
const tmp4Result19 = _mod5294;
|
|
const longAt4 = _modDef5311.getLongAt(dataView, sum3);
|
|
if (longAt4 >>> 31 === 0) {
|
|
num = 1;
|
|
}
|
|
const tmpResult6 = _modDef5311;
|
|
const tmp4Result20 = _mod5294;
|
|
const str10 = longAt4 & parseInt(_mod5294.strRepeat("1", 24), 2);
|
|
const text4 = `${str9.toString(2)}.`;
|
|
const tmp4Result21 = _mod5294;
|
|
items1[1] = num * tmp4Result21.parseFloatRadix(`${(2130706432 & longAt4) >>> 24.toString(2)}.` + _mod5294.padStart(str10.toString(2), 24, "0"), 2);
|
|
return items1;
|
|
}
|
|
}
|
|
};
|
|
|
|
export default obj2;
|
|
export const PathRecordTypes = obj;
|