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