fix unused

This commit is contained in:
CPunisher 2020-08-12 12:57:10 +08:00
parent 581835107b
commit 106b0abe9f
10 changed files with 7 additions and 23 deletions

View File

@ -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',

View File

@ -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>
); );

View File

@ -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];

View File

@ -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 []

View File

@ -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 []

View File

@ -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>
); );

View File

@ -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>
); );

View File

@ -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>
); );

View File

@ -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>
); );

View File

@ -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;