63 lines
3.1 KiB
JavaScript
63 lines
3.1 KiB
JavaScript
/* Metro module 7764; source: unknown; dependencies: [7762, 7750, 7765] */
|
|
function _fun62144(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7942:6, offset: 0x01b586a5, size: 120 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = {'butt': 0, 'square': 2, 'round': 1};
|
|
const env0_3 = {'miter': 0, 'bevel': 2, 'round': 1};
|
|
const env0_4 = {'none': 0, 'default': 0, 'nonScalingStroke': 1, 'non-scaling-stroke': 1, 'inherit': 2, 'uri': 3};
|
|
exports.default = extractStroke;
|
|
function extractStroke(a0, {stroke, strokeOpacity, strokeLinecap, strokeLinejoin, strokeDasharray, strokeWidth, strokeDashoffset, strokeMiterlimit, vectorEffect}, a2) { // fn#62145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7942:241, offset: 0x01b5871d, size: 541 bytes, params: 4, frame: 23
|
|
var r11;
|
|
var r2;
|
|
var r0;
|
|
const value = null;
|
|
if (value != stroke) {
|
|
a2.push('stroke');
|
|
a0.stroke = (importDefault(7762) /* metro dependency 7762 */)(stroke);
|
|
}
|
|
if (value != strokeWidth) {
|
|
a2.push('strokeWidth');
|
|
a0.strokeWidth = strokeWidth;
|
|
}
|
|
if (value != strokeOpacity) {
|
|
a2.push('strokeOpacity');
|
|
a0.strokeOpacity = (importDefault(7750) /* metro dependency 7750 */)(strokeOpacity);
|
|
}
|
|
if (value != strokeDasharray) {
|
|
a2.push('strokeDasharray');
|
|
r11 = strokeDasharray ? strokeDasharray === 'none' ? value : (importDefault(7765) /* metro dependency 7765 */)(strokeDasharray) : value;
|
|
a0.strokeDasharray = r11 && (r11.length % 2 !== 1 ? r11 : r11.concat(r11));
|
|
}
|
|
if (value != strokeDashoffset) {
|
|
a2.push('strokeDashoffset');
|
|
a0.strokeDashoffset = strokeDasharray && strokeDashoffset ? Number(strokeDashoffset) || 0 : value;
|
|
}
|
|
if (value != strokeLinecap) {
|
|
a2.push('strokeLinecap');
|
|
r2 = strokeLinecap && env0_2[strokeLinecap];
|
|
r2 = !r2 ? 0 : r2;
|
|
a0.strokeLinecap = r2;
|
|
}
|
|
if (value != strokeLinejoin) {
|
|
a2.push('strokeLinejoin');
|
|
r2 = strokeLinejoin && env0_3[strokeLinejoin];
|
|
r2 = !r2 ? 0 : r2;
|
|
a0.strokeLinejoin = r2;
|
|
}
|
|
if (value != strokeMiterlimit) {
|
|
a2.push('strokeMiterlimit');
|
|
r2 = strokeMiterlimit && (typeof strokeMiterlimit === 'number' ? strokeMiterlimit : global.parseFloat(strokeMiterlimit));
|
|
r2 = !r2 ? 4 : r2;
|
|
a0.strokeMiterlimit = r2;
|
|
}
|
|
if (value != vectorEffect) {
|
|
r0 = vectorEffect && env0_4[vectorEffect];
|
|
r0 = !r0 ? 0 : r0;
|
|
a0.vectorEffect = r0;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun62144, 7764, [7762, 7750, 7765]) /* metro module 7764, dependencies: [7762, 7750, 7765] */;
|