fix unused
This commit is contained in:
parent
581835107b
commit
106b0abe9f
|
@ -8,7 +8,7 @@ import LinkButton from "../link/LinkButton";
|
||||||
import ImageZoom from "../../containers/app/ImageZoom";
|
import ImageZoom from "../../containers/app/ImageZoom";
|
||||||
import LinkTrace from "../link/LinkTrace";
|
import LinkTrace from "../link/LinkTrace";
|
||||||
import {isPC} from "../../utils/navigatorUtils";
|
import {isPC} from "../../utils/navigatorUtils";
|
||||||
import {handleScroll, handleZoom} from "../../utils/gaHelper";
|
import {handleScroll} from "../../utils/gaHelper";
|
||||||
|
|
||||||
const pictures = [
|
const pictures = [
|
||||||
'https://7172-qrbtf-1d845d-1255694434.tcb.qcloud.la/QrbtfGallery/gallery04.jpg',
|
'https://7172-qrbtf-1d845d-1255694434.tcb.qcloud.la/QrbtfGallery/gallery04.jpg',
|
||||||
|
|
|
@ -2,7 +2,6 @@ import React from "react";
|
||||||
import {ParamTypes} from "../../constant/ParamTypes";
|
import {ParamTypes} from "../../constant/ParamTypes";
|
||||||
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
||||||
import {createRenderer} from "../style/Renderer";
|
import {createRenderer} from "../style/Renderer";
|
||||||
import RendererResImage from "./RendererResImage";
|
|
||||||
|
|
||||||
function listPoints(qrcode, params) {
|
function listPoints(qrcode, params) {
|
||||||
if (!qrcode) return []
|
if (!qrcode) return []
|
||||||
|
@ -95,4 +94,4 @@ export default Renderer25D
|
||||||
|
|
||||||
Renderer25D.detail = (
|
Renderer25D.detail = (
|
||||||
<div>通向三维的半路。可能有一点点难以识别</div>
|
<div>通向三维的半路。可能有一点点难以识别</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -2,8 +2,6 @@ import React from "react";
|
||||||
import {ParamTypes} from "../../constant/ParamTypes";
|
import {ParamTypes} from "../../constant/ParamTypes";
|
||||||
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
||||||
import {createRenderer} from "../style/Renderer";
|
import {createRenderer} from "../style/Renderer";
|
||||||
import LinkTrace from "../link/LinkTrace";
|
|
||||||
import {RendererRect} from "./RendererBase";
|
|
||||||
import {rand} from "../../utils/util";
|
import {rand} from "../../utils/util";
|
||||||
|
|
||||||
function listPoints(qrcode, params) {
|
function listPoints(qrcode, params) {
|
||||||
|
@ -16,11 +14,6 @@ function listPoints(qrcode, params) {
|
||||||
const g2 = [];
|
const g2 = [];
|
||||||
|
|
||||||
let id = 0;
|
let id = 0;
|
||||||
let size = 0.8;
|
|
||||||
const vw = [3, -3];
|
|
||||||
const vh = [3, -3];
|
|
||||||
|
|
||||||
const sq25 = "M32.048565,-1.29480038e-15 L67.951435,1.29480038e-15 C79.0954192,-7.52316311e-16 83.1364972,1.16032014 87.2105713,3.3391588 C91.2846454,5.51799746 94.4820025,8.71535463 96.6608412,12.7894287 C98.8396799,16.8635028 100,20.9045808 100,32.048565 L100,67.951435 C100,79.0954192 98.8396799,83.1364972 96.6608412,87.2105713 C94.4820025,91.2846454 91.2846454,94.4820025 87.2105713,96.6608412 C83.1364972,98.8396799 79.0954192,100 67.951435,100 L32.048565,100 C20.9045808,100 16.8635028,98.8396799 12.7894287,96.6608412 C8.71535463,94.4820025 5.51799746,91.2846454 3.3391588,87.2105713 C1.16032014,83.1364972 5.01544207e-16,79.0954192 -8.63200256e-16,67.951435 L8.63200256e-16,32.048565 C-5.01544207e-16,20.9045808 1.16032014,16.8635028 3.3391588,12.7894287 C5.51799746,8.71535463 8.71535463,5.51799746 12.7894287,3.3391588 C16.8635028,1.16032014 20.9045808,7.52316311e-16 32.048565,-1.29480038e-15 Z";
|
|
||||||
|
|
||||||
let otherColor = params[0];
|
let otherColor = params[0];
|
||||||
let posColor = params[1];
|
let posColor = params[1];
|
||||||
|
|
|
@ -3,7 +3,6 @@ import {ParamTypes} from "../../constant/ParamTypes";
|
||||||
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
||||||
import {createRenderer} from "../style/Renderer";
|
import {createRenderer} from "../style/Renderer";
|
||||||
import LinkTrace from "../link/LinkTrace";
|
import LinkTrace from "../link/LinkTrace";
|
||||||
import {RendererRect} from "./RendererBase";
|
|
||||||
|
|
||||||
function listPoints(qrcode, params) {
|
function listPoints(qrcode, params) {
|
||||||
if (!qrcode) return []
|
if (!qrcode) return []
|
||||||
|
|
|
@ -2,8 +2,6 @@ import React from "react";
|
||||||
import {ParamTypes} from "../../constant/ParamTypes";
|
import {ParamTypes} from "../../constant/ParamTypes";
|
||||||
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
||||||
import {createRenderer} from "../style/Renderer";
|
import {createRenderer} from "../style/Renderer";
|
||||||
import LinkTrace from "../link/LinkTrace";
|
|
||||||
import RenderDSJ from "./RendererDSJ";
|
|
||||||
|
|
||||||
function listPoints(qrcode, params) {
|
function listPoints(qrcode, params) {
|
||||||
if (!qrcode) return []
|
if (!qrcode) return []
|
||||||
|
|
|
@ -3,7 +3,6 @@ import {ParamTypes} from "../../constant/ParamTypes";
|
||||||
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
||||||
import {createRenderer} from "../style/Renderer";
|
import {createRenderer} from "../style/Renderer";
|
||||||
import {defaultImage} from "../../constant/References";
|
import {defaultImage} from "../../constant/References";
|
||||||
import {RendererRandRound} from "./RendererBase";
|
|
||||||
|
|
||||||
function listPoints(qrcode, params) {
|
function listPoints(qrcode, params) {
|
||||||
if (!qrcode) return []
|
if (!qrcode) return []
|
||||||
|
@ -162,4 +161,4 @@ export default RendererImage
|
||||||
|
|
||||||
RendererImage.detail = (
|
RendererImage.detail = (
|
||||||
<div>加了背景图,试试看还能扫描吗</div>
|
<div>加了背景图,试试看还能扫描吗</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -2,8 +2,6 @@ import React from "react";
|
||||||
import {ParamTypes} from "../../constant/ParamTypes";
|
import {ParamTypes} from "../../constant/ParamTypes";
|
||||||
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
||||||
import {createRenderer} from "../style/Renderer";
|
import {createRenderer} from "../style/Renderer";
|
||||||
import LinkTrace from "../link/LinkTrace";
|
|
||||||
import RenderDSJ from "./RendererDSJ";
|
|
||||||
import {rand} from "../../utils/util";
|
import {rand} from "../../utils/util";
|
||||||
|
|
||||||
function listPoints(qrcode, params) {
|
function listPoints(qrcode, params) {
|
||||||
|
@ -418,4 +416,4 @@ RendererLine.detail = (
|
||||||
|
|
||||||
RendererLine2.detail = (
|
RendererLine2.detail = (
|
||||||
<div>交错相连</div>
|
<div>交错相连</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import {rand} from "../../utils/util";
|
import {rand} from "../../utils/util";
|
||||||
import {createRenderer} from "../style/Renderer";
|
import {createRenderer} from "../style/Renderer";
|
||||||
import {RendererLine} from "./RendererLine";
|
|
||||||
|
|
||||||
function listPoints(qrcode, params) {
|
function listPoints(qrcode, params) {
|
||||||
if (!qrcode) return []
|
if (!qrcode) return []
|
||||||
|
@ -51,4 +50,4 @@ export default RendererRandRect
|
||||||
|
|
||||||
RendererRandRect.detail = (
|
RendererRandRect.detail = (
|
||||||
<div>有一点点骚的配色,很适合你</div>
|
<div>有一点点骚的配色,很适合你</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -3,7 +3,6 @@ import {gamma} from "../../utils/imageUtils";
|
||||||
import {ParamTypes} from "../../constant/ParamTypes";
|
import {ParamTypes} from "../../constant/ParamTypes";
|
||||||
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
||||||
import {defaultResImage} from "../../constant/References";
|
import {defaultResImage} from "../../constant/References";
|
||||||
import RendererRandRect from "./RendererRandRect";
|
|
||||||
|
|
||||||
function listPoints(qrcode, params) {
|
function listPoints(qrcode, params) {
|
||||||
if (!qrcode) return []
|
if (!qrcode) return []
|
||||||
|
@ -190,4 +189,4 @@ export default RendererResImage
|
||||||
|
|
||||||
RendererResImage.detail = (
|
RendererResImage.detail = (
|
||||||
<div>满满科技感的重采样二值化像素点阵,有点东西</div>
|
<div>满满科技感的重采样二值化像素点阵,有点东西</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -10,7 +10,7 @@ const ImageZoom = ({ zoom, ...other }) => {
|
||||||
zoomRef.current.attach(image);
|
zoomRef.current.attach(image);
|
||||||
}
|
}
|
||||||
|
|
||||||
return <img ref={attachZoom} {...other} />
|
return <img alt={"zoom"} ref={attachZoom} {...other} />
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ImageZoom;
|
export default ImageZoom;
|
||||||
|
|
Loading…
Reference in New Issue