mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-22 19:01:36 +00:00
Remove outdated comments
This commit is contained in:
@@ -13,7 +13,6 @@ class Shape extends Component {
|
||||
this[key] = val;
|
||||
}
|
||||
}
|
||||
//noinspection JSUnusedGlobalSymbols
|
||||
this.state = this.touchableGetInitialState();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
//noinspection JSUnresolvedVariable
|
||||
import React from "react";
|
||||
import {
|
||||
requireNativeComponent,
|
||||
@@ -11,7 +10,6 @@ import extractViewBox from "../lib/extract/extractViewBox";
|
||||
import Shape from "./Shape";
|
||||
import G from "./G";
|
||||
|
||||
/** @namespace NativeModules.RNSVGSvgViewManager */
|
||||
const RNSVGSvgViewManager = NativeModules.RNSVGSvgViewManager;
|
||||
|
||||
// Svg - Root node of all Svg elements
|
||||
|
||||
@@ -6,7 +6,6 @@ import extractTransform from "../lib/extract/extractTransform";
|
||||
import Shape from "./Shape";
|
||||
import { pickNotNil } from "../lib/util";
|
||||
|
||||
// TSpan elements are shadow components
|
||||
export default class TSpan extends Shape {
|
||||
static displayName = "TSpan";
|
||||
|
||||
|
||||
@@ -46,5 +46,4 @@ export {
|
||||
Mask,
|
||||
};
|
||||
|
||||
//noinspection JSUnusedGlobalSymbols
|
||||
export default Svg;
|
||||
|
||||
@@ -74,7 +74,6 @@ export default class Matrix2D {
|
||||
reset = function() {
|
||||
this.a = this.d = 1;
|
||||
this.b = this.c = this.tx = this.ty = 0;
|
||||
//noinspection JSValidateTypes
|
||||
return this;
|
||||
};
|
||||
|
||||
@@ -112,7 +111,6 @@ export default class Matrix2D {
|
||||
}
|
||||
this.tx = a1 * tx + c1 * ty + this.tx;
|
||||
this.ty = b1 * tx + d1 * ty + this.ty;
|
||||
//noinspection JSValidateTypes
|
||||
return this;
|
||||
};
|
||||
|
||||
@@ -191,7 +189,6 @@ export default class Matrix2D {
|
||||
this.tx -= regX * this.a + regY * this.c;
|
||||
this.ty -= regX * this.b + regY * this.d;
|
||||
}
|
||||
//noinspection JSValidateTypes
|
||||
return this;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Touchable } from "react-native";
|
||||
const PRESS_RETENTION_OFFSET = { top: 20, left: 20, right: 20, bottom: 30 };
|
||||
|
||||
//noinspection JSUnusedGlobalSymbols
|
||||
export default {
|
||||
...Touchable.Mixin,
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ export default function(colorOrBrush) {
|
||||
// brush
|
||||
if (matched) {
|
||||
return [1, matched[1]];
|
||||
//todo:
|
||||
} else {
|
||||
// solid color
|
||||
const [r, g, b, a = 1] = Color(colorOrBrush)
|
||||
|
||||
@@ -35,7 +35,6 @@ export default function(props) {
|
||||
const { props: { offset, stopColor, stopOpacity } } = child;
|
||||
const offsetNumber = percentToFloat(offset);
|
||||
if (stopColor && !isNaN(offsetNumber)) {
|
||||
//noinspection JSUnresolvedFunction
|
||||
const color = Color(stopColor).alpha(extractOpacity(stopOpacity));
|
||||
const [r, g, b, a = 1] = color.rgb().array();
|
||||
stops.push([offsetNumber, [r / 255, g / 255, b / 255, a]]);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
//noinspection JSUnresolvedVariable
|
||||
import React, { Children } from "react";
|
||||
import extractLengthList from "./extractLengthList";
|
||||
import { pickNotNil } from "../util";
|
||||
|
||||
Reference in New Issue
Block a user