Commit f3ab4b4a authored by zhangjinzhou's avatar zhangjinzhou

代码暂存

parent f913d709
No preview for this file type
No preview for this file type
{
"name": "sparkproject-1608173731754",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@babel/runtime": {
"version": "7.12.5",
"resolved": "http://npm.dui88.com:80/@babel%2fruntime/-/runtime-7.12.5.tgz",
"integrity": "sha1-QQ5+SHRB4bNgwpvnFdhw2bmFiC4=",
"requires": {
"regenerator-runtime": "^0.13.4"
}
},
"@spark/api-base": {
"version": "1.0.29",
"resolved": "http://npm.dui88.com:80/@spark%2fapi-base/-/api-base-1.0.29.tgz",
"integrity": "sha512-77vW+RXqd8+R/PlqHMfuOv6jg43rl2/5lQr373tvWqmTTWh6TpMspmzQyRd401HC5vujYiWV5kIZiipzL7XNlA==",
"requires": {
"@spark/utils": "^1.0.22",
"@types/react": "^16.9.56",
"add": "^2.0.6",
"crypto-js": "^4.0.0",
"spark-wrapper-fyge": "^1.0.4",
"yarn": "^1.22.10"
}
},
"@spark/guideact": {
"version": "1.0.10",
"resolved": "http://npm.dui88.com:80/@spark%2fguideact/-/guideact-1.0.10.tgz",
"integrity": "sha512-+0YCOFzFnCYGPunAxMerrNbYrSD1STFLpbrzV4xxcr53ftlHOPJKNvWswDn3a3WcA49V2zhk7KxS4V0jLqW3Gg==",
"requires": {
"@types/react": "^16.9.56",
"spark-wrapper-fyge": "^1.0.16"
}
},
"@spark/projectx": {
"version": "1.0.7",
"resolved": "http://npm.dui88.com:80/@spark%2fprojectx/-/projectx-1.0.7.tgz",
"integrity": "sha512-mG5hJTophuuiebTyhfCjtJdFjzYQF580twDknDpgdBIMRSyn6oTgf+FDeGMYmhA3upZHm4W2xTqlIq1FbrGDhA==",
"requires": {
"@types/react": "^16.9.56",
"spark-wrapper-fyge": "^1.0.4"
}
},
"@spark/share": {
"version": "1.0.29",
"resolved": "http://npm.dui88.com:80/@spark%2fshare/-/share-1.0.29.tgz",
"integrity": "sha512-7nc1DtNcl8n73T1p97GL2M/Da8v16x4PywgEbgdk28LylLJNYZog93M8dA41f2EMvDyXVgf4JcJKVYmwFoilRg==",
"requires": {
"@spark/api-base": "^1.0.12",
"@spark/utils": "^1.0.34",
"@types/react": "^16.9.56",
"spark-wrapper-fyge": "^1.0.4"
}
},
"@spark/ui": {
"version": "1.0.41",
"resolved": "http://npm.dui88.com:80/@spark%2fui/-/ui-1.0.41.tgz",
"integrity": "sha512-ZO0EcY4+zwALzp0aetwHVX7NNWmfVFL7rnCPoLYJ+1oU3neFQJw9fzRNOidwO0jkE0UTAEPadmyoFOvfL8N61A==",
"requires": {
"@types/classnames": "^2.2.11",
"@types/hammerjs": "^2.0.36",
"@types/react": "^16.9.56",
"classnames": "^2.2.6",
"hammerjs": "^2.0.8",
"spark-wrapper-fyge": "^1.0.4"
}
},
"@spark/utils": {
"version": "1.0.37",
"resolved": "http://npm.dui88.com:80/@spark%2futils/-/utils-1.0.37.tgz",
"integrity": "sha512-kMMhg2hhwRSil51nwL89OT6td998ZQiaRbUsRMO5CRqlTpkm5mKvqL/fhpglw+Sl0tbRlDEq9CP1kCj4lMRlXw==",
"requires": {
"@types/crypto-js": "^4.0.1",
"@types/react": "^16.9.56",
"crypto-js": "^4.0.0",
"html2canvas": "^1.0.0-rc.7",
"spark-wrapper-fyge": "^1.0.4"
}
},
"@types/classnames": {
"version": "2.2.11",
"resolved": "http://npm.dui88.com:80/@types%2fclassnames/-/classnames-2.2.11.tgz",
"integrity": "sha1-JSHMhvadFcW5BmTkgp2EVmBSwc8="
},
"@types/crypto-js": {
"version": "4.0.1",
"resolved": "http://npm.dui88.com:80/@types%2fcrypto-js/-/crypto-js-4.0.1.tgz",
"integrity": "sha1-OkvSRRiw5sWUDaTiZZ7rLvCAaWM="
},
"@types/hammerjs": {
"version": "2.0.36",
"resolved": "http://npm.dui88.com:80/@types%2fhammerjs/-/hammerjs-2.0.36.tgz",
"integrity": "sha1-F84KI16f+83N9QlWRrN0wr9hWkw="
},
"@types/json-schema": {
"version": "7.0.6",
"resolved": "http://npm.dui88.com:80/@types%2fjson-schema/-/json-schema-7.0.6.tgz",
"integrity": "sha1-9MfsQ+gbMZqYFRFQMXCfJph4kfA="
},
"@types/prop-types": {
"version": "15.7.3",
"resolved": "http://npm.dui88.com:80/@types%2fprop-types/-/prop-types-15.7.3.tgz",
"integrity": "sha1-KrDV2i5YFflLC51LldHl8kOrLKc="
},
"@types/react": {
"version": "16.14.2",
"resolved": "http://npm.dui88.com:80/@types%2freact/-/react-16.14.2.tgz",
"integrity": "sha1-hdzAlH0GRTSZI8BMzvYBihq3U4w=",
"requires": {
"@types/prop-types": "*",
"csstype": "^3.0.2"
}
},
"add": {
"version": "2.0.6",
"resolved": "http://npm.dui88.com:80/add/-/add-2.0.6.tgz",
"integrity": "sha1-JI8Kn25aUo7yKV2+7DBTITCuIjU="
},
"ajv": {
"version": "6.12.6",
"resolved": "http://npm.dui88.com:80/ajv/-/ajv-6.12.6.tgz",
"integrity": "sha1-uvWmLoArB9l3A0WG+MO69a3ybfQ=",
"requires": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
}
},
"ajv-errors": {
"version": "1.0.1",
"resolved": "http://npm.dui88.com:80/ajv-errors/-/ajv-errors-1.0.1.tgz",
"integrity": "sha1-81mGrOuRr63sQQL72FAUlQzvpk0="
},
"ajv-keywords": {
"version": "3.5.2",
"resolved": "http://npm.dui88.com:80/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
"integrity": "sha1-MfKdpatuANHC0yms97WSlhTVAU0="
},
"ansi-styles": {
"version": "3.2.1",
"resolved": "http://npm.dui88.com:80/ansi-styles/-/ansi-styles-3.2.1.tgz",
"integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=",
"requires": {
"color-convert": "^1.9.0"
}
},
"argparse": {
"version": "1.0.10",
"resolved": "http://npm.dui88.com:80/argparse/-/argparse-1.0.10.tgz",
"integrity": "sha1-vNZ5HqWuCXJeF+WtmIE0zUCz2RE=",
"requires": {
"sprintf-js": "~1.0.2"
}
},
"axios": {
"version": "0.19.2",
"resolved": "http://npm.dui88.com:80/axios/-/axios-0.19.2.tgz",
"integrity": "sha1-PqNsXYgY0NX4qKl6bTa4bNwAyyc=",
"requires": {
"follow-redirects": "1.5.10"
}
},
"base64-arraybuffer": {
"version": "0.2.0",
"resolved": "http://npm.dui88.com:80/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz",
"integrity": "sha1-S5RPrAGRqlkHr+LYyZnMxXzoD0U="
},
"big.js": {
"version": "5.2.2",
"resolved": "http://npm.dui88.com:80/big.js/-/big.js-5.2.2.tgz",
"integrity": "sha1-ZfCvOC9Xi83HQr2cKB6cstd2gyg="
},
"caller-callsite": {
"version": "2.0.0",
"resolved": "http://npm.dui88.com:80/caller-callsite/-/caller-callsite-2.0.0.tgz",
"integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=",
"requires": {
"callsites": "^2.0.0"
}
},
"caller-path": {
"version": "2.0.0",
"resolved": "http://npm.dui88.com:80/caller-path/-/caller-path-2.0.0.tgz",
"integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=",
"requires": {
"caller-callsite": "^2.0.0"
}
},
"callsites": {
"version": "2.0.0",
"resolved": "http://npm.dui88.com:80/callsites/-/callsites-2.0.0.tgz",
"integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA="
},
"camelcase": {
"version": "5.3.1",
"resolved": "http://npm.dui88.com:80/camelcase/-/camelcase-5.3.1.tgz",
"integrity": "sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA="
},
"chalk": {
"version": "2.4.2",
"resolved": "http://npm.dui88.com:80/chalk/-/chalk-2.4.2.tgz",
"integrity": "sha1-zUJUFnelQzPPVBpJEIwUMrRMlCQ=",
"requires": {
"ansi-styles": "^3.2.1",
"escape-string-regexp": "^1.0.5",
"supports-color": "^5.3.0"
},
"dependencies": {
"supports-color": {
"version": "5.5.0",
"resolved": "http://npm.dui88.com:80/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=",
"requires": {
"has-flag": "^3.0.0"
}
}
}
},
"classnames": {
"version": "2.2.6",
"resolved": "http://npm.dui88.com:80/classnames/-/classnames-2.2.6.tgz",
"integrity": "sha1-Q5Nb/90pHzJtrQogUwmzjQD2UM4="
},
"color-convert": {
"version": "1.9.3",
"resolved": "http://npm.dui88.com:80/color-convert/-/color-convert-1.9.3.tgz",
"integrity": "sha1-u3GFBpDh8TZWfeYp0tVHHe2kweg=",
"requires": {
"color-name": "1.1.3"
}
},
"color-name": {
"version": "1.1.3",
"resolved": "http://npm.dui88.com:80/color-name/-/color-name-1.1.3.tgz",
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
},
"commander": {
"version": "6.2.1",
"resolved": "http://npm.dui88.com:80/commander/-/commander-6.2.1.tgz",
"integrity": "sha1-B5LraC37wyWZm7K4T93duhEKxzw=",
"dev": true
},
"cosmiconfig": {
"version": "5.2.1",
"resolved": "http://npm.dui88.com:80/cosmiconfig/-/cosmiconfig-5.2.1.tgz",
"integrity": "sha1-BA9yaAnFked6F8CjYmykW08Wixo=",
"requires": {
"import-fresh": "^2.0.0",
"is-directory": "^0.3.1",
"js-yaml": "^3.13.1",
"parse-json": "^4.0.0"
}
},
"crypto-js": {
"version": "4.0.0",
"resolved": "http://npm.dui88.com:80/crypto-js/-/crypto-js-4.0.0.tgz",
"integrity": "sha1-KQSrJnep0EKFai6i74DekuSjbcw="
},
"css-line-break": {
"version": "1.1.1",
"resolved": "http://npm.dui88.com:80/css-line-break/-/css-line-break-1.1.1.tgz",
"integrity": "sha1-1em90peEAJnrBQPHMQ/TSSegJu8=",
"requires": {
"base64-arraybuffer": "^0.2.0"
}
},
"css-loader": {
"version": "3.6.0",
"resolved": "http://npm.dui88.com:80/css-loader/-/css-loader-3.6.0.tgz",
"integrity": "sha1-Lkssfm4tJ/jI8o9hv/zS5ske9kU=",
"requires": {
"camelcase": "^5.3.1",
"cssesc": "^3.0.0",
"icss-utils": "^4.1.1",
"loader-utils": "^1.2.3",
"normalize-path": "^3.0.0",
"postcss": "^7.0.32",
"postcss-modules-extract-imports": "^2.0.0",
"postcss-modules-local-by-default": "^3.0.2",
"postcss-modules-scope": "^2.2.0",
"postcss-modules-values": "^3.0.0",
"postcss-value-parser": "^4.1.0",
"schema-utils": "^2.7.0",
"semver": "^6.3.0"
}
},
"cssesc": {
"version": "3.0.0",
"resolved": "http://npm.dui88.com:80/cssesc/-/cssesc-3.0.0.tgz",
"integrity": "sha1-N3QZGZA7hoVl4cCep0dEXNGJg+4="
},
"csstype": {
"version": "3.0.5",
"resolved": "http://npm.dui88.com:80/csstype/-/csstype-3.0.5.tgz",
"integrity": "sha1-f97GoopnrhhkfFFmip/5W7L6e7g="
},
"debug": {
"version": "3.1.0",
"resolved": "http://npm.dui88.com:80/debug/-/debug-3.1.0.tgz",
"integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=",
"requires": {
"ms": "2.0.0"
}
},
"duiba-utils": {
"version": "1.0.4",
"resolved": "http://npm.dui88.com:80/duiba-utils/-/duiba-utils-1.0.4.tgz",
"integrity": "sha512-l3l5qW1I+qJfBiJ5Fttyl7VRyd1Q0m0K9ujoCg0mteFsVAqjCqwDwipj+ABeemOoR1QvVA3F/Aqi9az9pmYuSg=="
},
"emojis-list": {
"version": "3.0.0",
"resolved": "http://npm.dui88.com:80/emojis-list/-/emojis-list-3.0.0.tgz",
"integrity": "sha1-VXBmIEatKeLpFucariYKvf9Pang="
},
"error-ex": {
"version": "1.3.2",
"resolved": "http://npm.dui88.com:80/error-ex/-/error-ex-1.3.2.tgz",
"integrity": "sha1-tKxAZIEH/c3PriQvQovqihTU8b8=",
"requires": {
"is-arrayish": "^0.2.1"
}
},
"escape-string-regexp": {
"version": "1.0.5",
"resolved": "http://npm.dui88.com:80/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
},
"esprima": {
"version": "4.0.1",
"resolved": "http://npm.dui88.com:80/esprima/-/esprima-4.0.1.tgz",
"integrity": "sha1-E7BM2z5sXRnfkatph6hpVhmwqnE="
},
"fast-deep-equal": {
"version": "3.1.3",
"resolved": "http://npm.dui88.com:80/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
"integrity": "sha1-On1WtVnWy8PrUSMlJE5hmmXGxSU="
},
"fast-json-stable-stringify": {
"version": "2.1.0",
"resolved": "http://npm.dui88.com:80/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
"integrity": "sha1-h0v2nG9ATCtdmcSBNBOZ/VWJJjM="
},
"follow-redirects": {
"version": "1.5.10",
"resolved": "http://npm.dui88.com:80/follow-redirects/-/follow-redirects-1.5.10.tgz",
"integrity": "sha1-e3qfmuov3/NnhqlP9kPtB/T/Xio=",
"requires": {
"debug": "=3.1.0"
}
},
"fyge": {
"version": "2.0.14",
"resolved": "http://npm.dui88.com:80/fyge/-/fyge-2.0.14.tgz",
"integrity": "sha512-MI7a8iXesHhxFzOv3QQrNyXdGeCrq7J3N3MeH6QZ1g0+5LCuAfq8DLT8gjXHPxg7/V9Th8ahX2HOuzGClohI8w==",
"requires": {
"duiba-utils": "^1.0.0"
}
},
"fyge-tbmini": {
"version": "1.4.8",
"resolved": "http://npm.dui88.com:80/fyge-tbmini/-/fyge-tbmini-1.4.8.tgz",
"integrity": "sha1-4qC9decrE6N7dWJPcB3BYJ7b7G8="
},
"hammerjs": {
"version": "2.0.8",
"resolved": "http://npm.dui88.com:80/hammerjs/-/hammerjs-2.0.8.tgz",
"integrity": "sha1-BO93hiz/K7edMPdpIJWTAiK/YPE="
},
"has-flag": {
"version": "3.0.0",
"resolved": "http://npm.dui88.com:80/has-flag/-/has-flag-3.0.0.tgz",
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
},
"hoist-non-react-statics": {
"version": "3.3.2",
"resolved": "http://npm.dui88.com:80/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
"integrity": "sha1-7OCsr3HWLClpwuxZ/v9CpLGoW0U=",
"requires": {
"react-is": "^16.7.0"
}
},
"html2canvas": {
"version": "1.0.0-rc.7",
"resolved": "http://npm.dui88.com:80/html2canvas/-/html2canvas-1.0.0-rc.7.tgz",
"integrity": "sha1-cMFZzg5jlUqRFpUxiU0IrVYnrJg=",
"requires": {
"css-line-break": "1.1.1"
}
},
"icss-utils": {
"version": "4.1.1",
"resolved": "http://npm.dui88.com:80/icss-utils/-/icss-utils-4.1.1.tgz",
"integrity": "sha1-IRcLU3ie4nRHwvR91oMIFAP5pGc=",
"requires": {
"postcss": "^7.0.14"
}
},
"import-cwd": {
"version": "2.1.0",
"resolved": "http://npm.dui88.com:80/import-cwd/-/import-cwd-2.1.0.tgz",
"integrity": "sha1-qmzzbnInYShcs3HsZRn1PiQ1sKk=",
"requires": {
"import-from": "^2.1.0"
}
},
"import-fresh": {
"version": "2.0.0",
"resolved": "http://npm.dui88.com:80/import-fresh/-/import-fresh-2.0.0.tgz",
"integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=",
"requires": {
"caller-path": "^2.0.0",
"resolve-from": "^3.0.0"
}
},
"import-from": {
"version": "2.1.0",
"resolved": "http://npm.dui88.com:80/import-from/-/import-from-2.1.0.tgz",
"integrity": "sha1-M1238qev/VOqpHHUuAId7ja387E=",
"requires": {
"resolve-from": "^3.0.0"
}
},
"indexes-of": {
"version": "1.0.1",
"resolved": "http://npm.dui88.com:80/indexes-of/-/indexes-of-1.0.1.tgz",
"integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc="
},
"intersection-observer": {
"version": "0.11.0",
"resolved": "http://npm.dui88.com:80/intersection-observer/-/intersection-observer-0.11.0.tgz",
"integrity": "sha1-9OoGcHAyb2g5PuFhzAospMAEDG8="
},
"invariant": {
"version": "2.2.4",
"resolved": "http://npm.dui88.com:80/invariant/-/invariant-2.2.4.tgz",
"integrity": "sha1-YQ88ksk1nOHbYW5TgAjSP/NRWOY=",
"requires": {
"loose-envify": "^1.0.0"
}
},
"is-arrayish": {
"version": "0.2.1",
"resolved": "http://npm.dui88.com:80/is-arrayish/-/is-arrayish-0.2.1.tgz",
"integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0="
},
"is-directory": {
"version": "0.3.1",
"resolved": "http://npm.dui88.com:80/is-directory/-/is-directory-0.3.1.tgz",
"integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE="
},
"js-tokens": {
"version": "4.0.0",
"resolved": "http://npm.dui88.com:80/js-tokens/-/js-tokens-4.0.0.tgz",
"integrity": "sha1-GSA/tZmR35jjoocFDUZHzerzJJk="
},
"js-yaml": {
"version": "3.14.1",
"resolved": "http://npm.dui88.com:80/js-yaml/-/js-yaml-3.14.1.tgz",
"integrity": "sha1-2ugS/bOCX6MGYJqHFzg8UMNqBTc=",
"requires": {
"argparse": "^1.0.7",
"esprima": "^4.0.0"
}
},
"json-parse-better-errors": {
"version": "1.0.2",
"resolved": "http://npm.dui88.com:80/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
"integrity": "sha1-u4Z8+zRQ5pEHwTHRxRS6s9yLyqk="
},
"json-schema-traverse": {
"version": "0.4.1",
"resolved": "http://npm.dui88.com:80/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
"integrity": "sha1-afaofZUTq4u4/mO9sJecRI5oRmA="
},
"json5": {
"version": "1.0.1",
"resolved": "http://npm.dui88.com:80/json5/-/json5-1.0.1.tgz",
"integrity": "sha1-d5+wAYYE+oVOrL9iUhgNg1Q+Pb4=",
"requires": {
"minimist": "^1.2.0"
}
},
"loader-utils": {
"version": "1.4.0",
"resolved": "http://npm.dui88.com:80/loader-utils/-/loader-utils-1.4.0.tgz",
"integrity": "sha1-xXm140yzSxp07cbB+za/o3HVphM=",
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^1.0.1"
}
},
"loose-envify": {
"version": "1.4.0",
"resolved": "http://npm.dui88.com:80/loose-envify/-/loose-envify-1.4.0.tgz",
"integrity": "sha1-ce5R+nvkyuwaY4OffmgtgTLTDK8=",
"requires": {
"js-tokens": "^3.0.0 || ^4.0.0"
}
},
"minimist": {
"version": "1.2.5",
"resolved": "http://npm.dui88.com:80/minimist/-/minimist-1.2.5.tgz",
"integrity": "sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI="
},
"mockjs": {
"version": "1.1.0",
"resolved": "http://npm.dui88.com:80/mockjs/-/mockjs-1.1.0.tgz",
"integrity": "sha1-5qDDeOkZBtuv8gkRzAJzs8fXWwY=",
"dev": true,
"requires": {
"commander": "*"
}
},
"ms": {
"version": "2.0.0",
"resolved": "http://npm.dui88.com:80/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
},
"normalize-path": {
"version": "3.0.0",
"resolved": "http://npm.dui88.com:80/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha1-Dc1p/yOhybEf0JeDFmRKA4ghamU="
},
"object-assign": {
"version": "4.1.1",
"resolved": "http://npm.dui88.com:80/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
},
"parse-json": {
"version": "4.0.0",
"resolved": "http://npm.dui88.com:80/parse-json/-/parse-json-4.0.0.tgz",
"integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=",
"requires": {
"error-ex": "^1.3.1",
"json-parse-better-errors": "^1.0.1"
}
},
"postcss": {
"version": "7.0.35",
"resolved": "http://npm.dui88.com:80/postcss/-/postcss-7.0.35.tgz",
"integrity": "sha1-0r4AuZj38hHYonaXQHny6SuXDiQ=",
"requires": {
"chalk": "^2.4.2",
"source-map": "^0.6.1",
"supports-color": "^6.1.0"
}
},
"postcss-load-config": {
"version": "2.1.2",
"resolved": "http://npm.dui88.com:80/postcss-load-config/-/postcss-load-config-2.1.2.tgz",
"integrity": "sha1-xepQTyxK7zPHNZo03jVzdyrXUCo=",
"requires": {
"cosmiconfig": "^5.0.0",
"import-cwd": "^2.0.0"
}
},
"postcss-loader": {
"version": "3.0.0",
"resolved": "http://npm.dui88.com:80/postcss-loader/-/postcss-loader-3.0.0.tgz",
"integrity": "sha1-a5eUPkfHLYRfqeA/Jzdz1OjdbC0=",
"requires": {
"loader-utils": "^1.1.0",
"postcss": "^7.0.0",
"postcss-load-config": "^2.0.0",
"schema-utils": "^1.0.0"
},
"dependencies": {
"schema-utils": {
"version": "1.0.0",
"resolved": "http://npm.dui88.com:80/schema-utils/-/schema-utils-1.0.0.tgz",
"integrity": "sha1-C3mpMgTXtgDUsoUNH2bCo0lRx3A=",
"requires": {
"ajv": "^6.1.0",
"ajv-errors": "^1.0.0",
"ajv-keywords": "^3.1.0"
}
}
}
},
"postcss-modules-extract-imports": {
"version": "2.0.0",
"resolved": "http://npm.dui88.com:80/postcss-modules-extract-imports/-/postcss-modules-extract-imports-2.0.0.tgz",
"integrity": "sha1-gYcZoa4doyX5gyRGsBE27rSTzX4=",
"requires": {
"postcss": "^7.0.5"
}
},
"postcss-modules-local-by-default": {
"version": "3.0.3",
"resolved": "http://npm.dui88.com:80/postcss-modules-local-by-default/-/postcss-modules-local-by-default-3.0.3.tgz",
"integrity": "sha1-uxTgzHgnnVBNvcv9fgyiiZP/u7A=",
"requires": {
"icss-utils": "^4.1.1",
"postcss": "^7.0.32",
"postcss-selector-parser": "^6.0.2",
"postcss-value-parser": "^4.1.0"
}
},
"postcss-modules-scope": {
"version": "2.2.0",
"resolved": "http://npm.dui88.com:80/postcss-modules-scope/-/postcss-modules-scope-2.2.0.tgz",
"integrity": "sha1-OFyuATzHdD9afXYC0Qc6iequYu4=",
"requires": {
"postcss": "^7.0.6",
"postcss-selector-parser": "^6.0.0"
}
},
"postcss-modules-values": {
"version": "3.0.0",
"resolved": "http://npm.dui88.com:80/postcss-modules-values/-/postcss-modules-values-3.0.0.tgz",
"integrity": "sha1-W1AA1uuuKbQlUwG0o6VFdEI+fxA=",
"requires": {
"icss-utils": "^4.0.0",
"postcss": "^7.0.6"
}
},
"postcss-selector-parser": {
"version": "6.0.4",
"resolved": "http://npm.dui88.com:80/postcss-selector-parser/-/postcss-selector-parser-6.0.4.tgz",
"integrity": "sha1-VgdaE4CgRgTDiwY+p3Z6Epr1wrM=",
"requires": {
"cssesc": "^3.0.0",
"indexes-of": "^1.0.1",
"uniq": "^1.0.1",
"util-deprecate": "^1.0.2"
}
},
"postcss-value-parser": {
"version": "4.1.0",
"resolved": "http://npm.dui88.com:80/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz",
"integrity": "sha1-RD9qIM7WSBor2k+oUypuVdeJoss="
},
"prettier": {
"version": "2.2.1",
"resolved": "http://npm.dui88.com:80/prettier/-/prettier-2.2.1.tgz",
"integrity": "sha1-eVoaeN1S8HPaDNQrIfnJE4GSP/U="
},
"prop-types": {
"version": "15.7.2",
"resolved": "http://npm.dui88.com:80/prop-types/-/prop-types-15.7.2.tgz",
"integrity": "sha1-UsQedbjIfnK52TYOAga5ncv/psU=",
"requires": {
"loose-envify": "^1.4.0",
"object-assign": "^4.1.1",
"react-is": "^16.8.1"
}
},
"punycode": {
"version": "2.1.1",
"resolved": "http://npm.dui88.com:80/punycode/-/punycode-2.1.1.tgz",
"integrity": "sha1-tYsBCsQMIsVldhbI0sLALHv0eew="
},
"qs": {
"version": "6.9.4",
"resolved": "http://npm.dui88.com:80/qs/-/qs-6.9.4.tgz",
"integrity": "sha1-kJCykNH5FyjTwi5UhDykSupatoc="
},
"react": {
"version": "16.14.0",
"resolved": "http://npm.dui88.com:80/react/-/react-16.14.0.tgz",
"integrity": "sha1-lNd23dCqo32j7aj8W2sYpMmjEU0=",
"requires": {
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1",
"prop-types": "^15.6.2"
}
},
"react-dom": {
"version": "16.14.0",
"resolved": "http://npm.dui88.com:80/react-dom/-/react-dom-16.14.0.tgz",
"integrity": "sha1-etg47Cmnd/s8dcOhkPZhz5Kri4k=",
"requires": {
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1",
"prop-types": "^15.6.2",
"scheduler": "^0.19.1"
}
},
"react-is": {
"version": "16.13.1",
"resolved": "http://npm.dui88.com:80/react-is/-/react-is-16.13.1.tgz",
"integrity": "sha1-eJcppNw23imZ3BVt1sHZwYzqVqQ="
},
"react-lifecycles-compat": {
"version": "3.0.4",
"resolved": "http://npm.dui88.com:80/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz",
"integrity": "sha1-TxonOv38jzSIqMUWv9p4+HI1I2I="
},
"react-redux": {
"version": "5.1.2",
"resolved": "http://npm.dui88.com:80/react-redux/-/react-redux-5.1.2.tgz",
"integrity": "sha1-sZz54h1pRCJye/eY6TSpFsQID1c=",
"requires": {
"@babel/runtime": "^7.1.2",
"hoist-non-react-statics": "^3.3.0",
"invariant": "^2.2.4",
"loose-envify": "^1.1.0",
"prop-types": "^15.6.1",
"react-is": "^16.6.0",
"react-lifecycles-compat": "^3.0.0"
}
},
"redux": {
"version": "4.0.5",
"resolved": "http://npm.dui88.com:80/redux/-/redux-4.0.5.tgz",
"integrity": "sha1-TbXeWBbheJHeioDEJCMtBvBR2T8=",
"requires": {
"loose-envify": "^1.4.0",
"symbol-observable": "^1.2.0"
}
},
"redux-thunk": {
"version": "2.3.0",
"resolved": "http://npm.dui88.com:80/redux-thunk/-/redux-thunk-2.3.0.tgz",
"integrity": "sha1-UcLBmhhe1Rh6qpotCLZm0NZGdiI="
},
"regenerator-runtime": {
"version": "0.13.7",
"resolved": "http://npm.dui88.com:80/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz",
"integrity": "sha1-ysLazIoepnX+qrrriugziYrkb1U="
},
"resolve-from": {
"version": "3.0.0",
"resolved": "http://npm.dui88.com:80/resolve-from/-/resolve-from-3.0.0.tgz",
"integrity": "sha1-six699nWiBvItuZTM17rywoYh0g="
},
"scheduler": {
"version": "0.19.1",
"resolved": "http://npm.dui88.com:80/scheduler/-/scheduler-0.19.1.tgz",
"integrity": "sha1-Tz4u0sGn1laB9MhU+oxaHMtA8ZY=",
"requires": {
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1"
}
},
"schema-utils": {
"version": "2.7.1",
"resolved": "http://npm.dui88.com:80/schema-utils/-/schema-utils-2.7.1.tgz",
"integrity": "sha1-HKTzLRskxZDCA7jnpQvw6kzTlNc=",
"requires": {
"@types/json-schema": "^7.0.5",
"ajv": "^6.12.4",
"ajv-keywords": "^3.5.2"
}
},
"semver": {
"version": "6.3.0",
"resolved": "http://npm.dui88.com:80/semver/-/semver-6.3.0.tgz",
"integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0="
},
"source-map": {
"version": "0.6.1",
"resolved": "http://npm.dui88.com:80/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
},
"spark-utils": {
"version": "0.0.12",
"resolved": "http://npm.dui88.com:80/spark-utils/-/spark-utils-0.0.12.tgz",
"integrity": "sha512-30/JxohR2DlgT0cyBWvt+3w2Zz9JLHh8uMQd2q/Ufjhtb+QXHT0x0meuwUh7s6pHwHovI+ZqzepCcKs2OxR7LA==",
"requires": {
"intersection-observer": "^0.11.0",
"spark-wrapper-fyge": "^1.0.2"
}
},
"spark-wrapper-fyge": {
"version": "1.0.24",
"resolved": "http://npm.dui88.com:80/spark-wrapper-fyge/-/spark-wrapper-fyge-1.0.24.tgz",
"integrity": "sha512-1nI6oh4+G1vdKR+pwRqJ2vYAzc5SZAI8RIVzmec3n70Vu9XdBvVi6HoKOff6KIaeg5ETlHZn5afzTOcRE7O1Cw==",
"requires": {
"fyge": "^2.0.13"
}
},
"sprintf-js": {
"version": "1.0.3",
"resolved": "http://npm.dui88.com:80/sprintf-js/-/sprintf-js-1.0.3.tgz",
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
},
"style-loader": {
"version": "1.3.0",
"resolved": "http://npm.dui88.com:80/style-loader/-/style-loader-1.3.0.tgz",
"integrity": "sha1-gotKOzt+eqWEfOe66eh0USEUJJ4=",
"requires": {
"loader-utils": "^2.0.0",
"schema-utils": "^2.7.0"
},
"dependencies": {
"json5": {
"version": "2.1.3",
"resolved": "http://npm.dui88.com:80/json5/-/json5-2.1.3.tgz",
"integrity": "sha1-ybD3+pIzv+WAf+ZvzzpWF+1ZfUM=",
"requires": {
"minimist": "^1.2.5"
}
},
"loader-utils": {
"version": "2.0.0",
"resolved": "http://npm.dui88.com:80/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha1-5MrOW4FtQloWa18JfhDNErNgZLA=",
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
}
}
},
"supports-color": {
"version": "6.1.0",
"resolved": "http://npm.dui88.com:80/supports-color/-/supports-color-6.1.0.tgz",
"integrity": "sha1-B2Srxpxj1ayELdSGfo0CXogN+PM=",
"requires": {
"has-flag": "^3.0.0"
}
},
"svgaplayerweb": {
"version": "2.3.1",
"resolved": "http://npm.dui88.com:80/svgaplayerweb/-/svgaplayerweb-2.3.1.tgz",
"integrity": "sha1-Au3BavFiCvn1dKU254E/wlE55Hs="
},
"symbol-observable": {
"version": "1.2.0",
"resolved": "http://npm.dui88.com:80/symbol-observable/-/symbol-observable-1.2.0.tgz",
"integrity": "sha1-wiaIrtTqs83C3+rLtWFmBWCgCAQ="
},
"uniq": {
"version": "1.0.1",
"resolved": "http://npm.dui88.com:80/uniq/-/uniq-1.0.1.tgz",
"integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8="
},
"uri-js": {
"version": "4.4.0",
"resolved": "http://npm.dui88.com:80/uri-js/-/uri-js-4.4.0.tgz",
"integrity": "sha1-qnFCYd55PoqCNHp7zJznTobyhgI=",
"requires": {
"punycode": "^2.1.0"
}
},
"util-deprecate": {
"version": "1.0.2",
"resolved": "http://npm.dui88.com:80/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
},
"yarn": {
"version": "1.22.10",
"resolved": "http://npm.dui88.com:80/yarn/-/yarn-1.22.10.tgz",
"integrity": "sha1-yZ2qBiV8gPj6LD8UkHJOOUwmsYw="
}
}
}
......@@ -4,6 +4,6 @@ module.exports = {
TEMP_DIR: "./.temp",
ENTRY: "src/app.jsx",
TEMPLATE: "./public/index.html",
MOCK_STATUS: true,
MOCK_STATUS: false,
PX2REM: true
};
import { Shape, Container, TextField, TEXT_ALIGN, TEXT_lINETYPE, Sprite, MouseEvent, TextureCache, WidgetBase, Tween, MovieClip } from 'spark-wrapper-fyge';
import metaConfig from './meta.json';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
var GameStage = /** @class */ (function (_super) {
__extends(GameStage, _super);
function GameStage() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this._step = 1;
_this.canclick = true;
_this.guideconfig = {};
_this.anirolesvga = "https://yun.duiba.com.cn/spark/assets/14b5846d42f0e6a48f0e463500ce04720cee70d9.svga";
_this.shousvga = "https://yun.duiba.com.cn/spark/assets/327e6a094060ad20d67bfccc16ffe42f20adc1d1.svga";
_this.anifinarolesvga = "https://yun.duiba.com.cn/spark/assets/cc46b3281cad2db353c6d63a4a49ae4f929dfe5b.svga";
return _this;
}
Object.defineProperty(GameStage.prototype, "step", {
get: function () {
return this._step;
},
set: function (val) {
if (this._step != val) {
this._step = val;
this.dispatchOutEvent("nowstep", val);
}
},
enumerable: false,
configurable: true
});
GameStage.prototype.onLaunched = function () {
this.stagew = this.stage.viewRect.width;
this.stageh = this.stage.viewRect.height;
this.guideRect = new Shape();
this.addChild(this.guideRect);
this.rolecont = new Container();
this.addChild(this.rolecont);
this.messagetxt = new TextField();
this.messagetxt.size = 32;
this.messagetxt.textAlign = TEXT_ALIGN.LEFT;
this.messagetxt.lineSpacing = 10;
this.messagetxt.lineType = TEXT_lINETYPE.MULTI;
this.addChild(this.messagetxt);
this.nextbtn = new Sprite();
this.addChild(this.nextbtn);
this.touchrect = new Shape();
this.addChild(this.touchrect);
this.skipbtn = new Sprite();
this.addChild(this.skipbtn);
this.guideconfig = this.props['guideconfig'];
this.skipbtn.addEventListener(MouseEvent.CLICK, this.skipGuide, this);
this.touchrect.addEventListener(MouseEvent.CLICK, this.toNextLevel, this);
this.getAnirole();
this.getShou();
this.getFinarole();
this.dispatchOutEvent("canvasready", null);
};
/**
* 事件回调
* @param type
* @param payload
*/
GameStage.prototype.onEvent = function (type, payload) {
console.error("游戏内监听===》", type, payload);
switch (type) {
case "setStepData":
this.setStepData(payload);
break;
case "setStepConfig":
this.setStepConfig(payload);
break;
case "startGuide":
this.step = 1;
this.setGuideShow();
break;
default:
console.error("为定义监听类型===》", payload);
break;
}
};
//设定单个关卡
GameStage.prototype.setStepData = function (payload) {
var step = payload.step;
var stepdata = payload.stepdata;
this.guideconfig[step] = stepdata;
};
//一次设定所有的引导数据
GameStage.prototype.setStepConfig = function (payload) {
this.guideconfig = payload;
};
/**
* 销毁回调
*/
GameStage.prototype.onDestroy = function () {
};
//skipLevel
GameStage.prototype.skipGuide = function () {
var _this = this;
if (!this.canclick) {
return;
}
this.canclick = false;
setTimeout(function () {
_this.canclick = true;
}, 200);
var stepdata = this.guideconfig[this.step];
var skipbtn = stepdata.skipbtn;
var lastlevel;
if (skipbtn) {
lastlevel = skipbtn.skiplevel;
}
this.step = lastlevel;
this.setGuideShow();
};
//toNextLevel
GameStage.prototype.toNextLevel = function () {
var _this = this;
if (!this.canclick) {
return;
}
this.canclick = false;
setTimeout(function () {
_this.canclick = true;
}, 1000);
this.step++;
this.setGuideShow();
};
//步数渲染
GameStage.prototype.setGuideShow = function () {
return __awaiter(this, void 0, void 0, function () {
var stepdata, hole, txt, role, nextbtn, skipbtn, touch, holetype, holex, holey, holesize, cirectwid, cirecthei, cirectrad, dot1, dot2, dot3, dot4, dot5, dot6, dot7, dot8, text, txtwidth, txtx, txty, txtalign, _a, rolex, roley, _b, goldprize, firstcont, svga, btnx, btny, btntex, skipx, skipy, skiptex, touchx, touchy, touchsize;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
stepdata = this.guideconfig[this.step];
if (!stepdata) {
console.error("引导完毕====》");
this.dispatchOutEvent("guidecomplete", null);
return [2 /*return*/];
}
hole = stepdata.hole, txt = stepdata.txt, role = stepdata.role, nextbtn = stepdata.nextbtn, skipbtn = stepdata.skipbtn, touch = stepdata.touch;
this.guideRect.clear();
this.guideRect.beginFill(0x000000, 0.7);
this.guideRect.drawRect(0, 0, this.stagew, this.stageh);
if (hole) {
holetype = hole.holetype, holex = hole.holex, holey = hole.holey, holesize = hole.holesize;
switch (holetype) {
case "cir":
this.guideRect.arc(holex, holey, holesize[0], 0, Math.PI * 2, true);
break;
case "cirect":
console.log("画圆角洞====》");
cirectwid = holesize[0];
cirecthei = holesize[1];
cirectrad = holesize[2];
dot1 = [holex + cirectrad, holey];
dot2 = [holex, holey + cirectrad];
dot3 = [holex, holey + cirecthei - cirectrad];
dot4 = [holex + cirectrad, holey + cirecthei];
dot5 = [holex + cirectwid - cirectrad, holey + cirecthei];
dot6 = [holex + cirectwid, holey + cirecthei - cirectrad];
dot7 = [holex + cirectwid, holey + cirectrad];
dot8 = [holex + cirectwid - cirectrad, holey];
this.guideRect.moveTo(dot1[0], dot1[1]);
this.guideRect.quadraticCurveTo(holex, holey, dot2[0], dot2[1]);
this.guideRect.lineTo(dot3[0], dot3[1]);
this.guideRect.quadraticCurveTo(holex, holey + cirecthei, dot4[0], dot4[1]);
this.guideRect.lineTo(dot5[0], dot5[1]);
this.guideRect.quadraticCurveTo(holex + cirectwid, holey + cirecthei, dot6[0], dot6[1]);
this.guideRect.lineTo(dot7[0], dot7[1]);
this.guideRect.quadraticCurveTo(holex + cirectwid, holey, dot8[0], dot8[1]);
this.guideRect.lineTo(dot1[0], dot1[1]);
break;
case "rect":
break;
case "nohole":
break;
default:
console.error("为定义类型");
break;
}
}
this.guideRect.endFill();
if (txt) {
text = txt.text, txtwidth = txt.txtwidth, txtx = txt.txtx, txty = txt.txty, txtalign = txt.txtalign;
this.messagetxt.text = text;
this.messagetxt.x = txtx;
this.messagetxt.y = txty;
this.messagetxt.textWidth = txtwidth;
this.messagetxt.visible = true;
this.messagetxt.textAlign = txtalign || TEXT_ALIGN.LEFT;
}
else {
this.messagetxt.visible = false;
}
_a = role[0], rolex = _a.rolex, roley = _a.roley;
if (!(this.step != 9)) return [3 /*break*/, 4];
if (this.firstTcont && this.firstTcont.parent) {
this.rolecont.removeChild(this.firstTcont);
}
if (!(this.anirole && this.anirole.parent)) return [3 /*break*/, 1];
this.anirole.x = rolex;
this.anirole.y = roley;
return [3 /*break*/, 3];
case 1:
console.error("新增svga动画===》");
_b = this;
return [4 /*yield*/, this.getAnirole()];
case 2:
_b.anirole = _c.sent();
if (this.anirole) {
this.anirole.x = rolex;
this.anirole.y = roley;
this.rolecont.addChild(this.anirole);
}
_c.label = 3;
case 3:
if (this.step == 1) {
goldprize = stepdata.goldprize;
firstcont = this.getFirstTcont(goldprize);
this.rolecont.addChild(firstcont);
console.log("添加firstCont===>", firstcont);
firstcont.x = rolex - 300;
firstcont.y = roley - 380;
firstcont.scaleX = 0;
firstcont.scaleY = 0;
Tween.get(firstcont, { loop: false })
.to({
scaleX: 1,
scaleY: 1,
}, 200);
console.log("firstcont添加完毕");
}
return [3 /*break*/, 6];
case 4:
if (!(this.step == 9)) return [3 /*break*/, 6];
this.rolecont.removeChildren();
return [4 /*yield*/, this.getFinarole()];
case 5:
svga = _c.sent();
if (svga) {
svga.x = rolex;
svga.y = roley;
this.rolecont.addChild(svga);
}
_c.label = 6;
case 6:
if (nextbtn) {
btnx = nextbtn.btnx, btny = nextbtn.btny, btntex = nextbtn.btntex;
this.nextbtn.texture = TextureCache[btntex];
this.nextbtn.x = btnx;
this.nextbtn.y = btny;
this.nextbtn.visible = true;
}
else {
this.nextbtn.visible = false;
}
if (skipbtn) {
skipx = skipbtn.skipx, skipy = skipbtn.skipy, skiptex = skipbtn.skiptex;
this.skipbtn.texture = TextureCache[skiptex];
this.skipbtn.x = skipx;
this.skipbtn.y = skipy;
this.skipbtn.visible = true;
console.log("skipbtn====》", skipbtn);
}
else {
this.skipbtn.visible = false;
}
if (touch) {
touchx = touch.touchx, touchy = touch.touchy, touchsize = touch.touchsize;
this.touchrect.clear();
this.touchrect.beginFill(0x000000, 0.01);
this.touchrect.drawRect(touchx, touchy, touchsize[0], touchsize[1]);
this.touchrect.endFill();
}
else {
console.error("没有点击区域====》");
}
return [2 /*return*/];
}
});
});
};
GameStage.prototype.getFirstTcont = function (goldprize) {
this.firstTcont = new Container();
this.firstTcont.addChild(new Sprite(TextureCache["guide1"]));
this.firstTcont.width = 633;
this.firstTcont.height = 410;
this.firstTxt = new TextField();
this.firstTxt.fillColor = "#e9381b";
this.firstTxt.size = 30;
this.firstTxt.x = 266;
this.firstTxt.y = 186;
if (!goldprize) {
goldprize = 0;
}
this.firstTxt.text = goldprize + "欢趣豆";
this.firstTcont.addChild(this.firstTxt);
this.firstTcont.anchorX = 390;
this.firstTcont.anchorY = 410;
return this.firstTcont;
};
GameStage.prototype.getAnirole = function () {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (this.anirole) {
return [2 /*return*/, this.anirole];
}
return [4 /*yield*/, this.loadSvga(this.anirolesvga, this.anirole)];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
GameStage.prototype.getShou = function () {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (this.shou) {
return [2 /*return*/, this.shou];
}
return [4 /*yield*/, this.loadSvga(this.shousvga, this.shou)];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
GameStage.prototype.getFinarole = function () {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (this.anifinarole) {
return [2 /*return*/, this.anifinarole];
}
return [4 /*yield*/, this.loadSvga(this.anifinarolesvga, this.anifinarole)];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
GameStage.prototype.loadSvga = function (src, target) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, new Promise(function (res) {
window["SvgaParser"].loadSvga(src, function (_v) {
target = new MovieClip(_v);
res(target);
}, function (e) {
res(null);
});
})];
});
});
};
return GameStage;
}(WidgetBase));
/**
* Created by rockyl on 2020/9/19.
*/
/**
* @type CANVAS_WIDGET
* @name 测试模块
* @desc 测试模块的工厂方法
*/
function Guideact() {
return new GameStage(getMetaConfig('Guideact'));
}
function getMetaConfig(id){
return metaConfig[id]
}
//===== END APPEND CODE =====
export { Guideact };
{
"Guideact": {
"props": {
"guideconfig": {
"1": {
"hole": null,
"txt": null,
"role": [
{
"rolex": 360,
"roley": 875,
"roletex": "guide1"
}
],
"nextbtn": null,
"skipbtn": {
"skipx": 321.5,
"skipy": 1390,
"skiptex": "skipbtn",
"skiplevel": 9
},
"touch": {
"touchx": 0,
"touchy": 0,
"touchsize": [
750,
1624
]
}
},
"2": {
"hole": {
"holetype": "cirect",
"holex": 15,
"holey": 33,
"holesize": [
395,
112,
70
]
},
"txt": {
"text": "您可以在此处编辑信息查看欢趣豆数量",
"txtwidth": 750,
"txtx": 0,
"txty": 224,
"txtalign": "center"
},
"role": [
{
"rolex": 360,
"roley": 875,
"roletex": "guide2_1"
}
],
"nextbtn": {
"btnx": 485,
"btny": 303,
"btntex": "nextbtn"
},
"skipbtn": {
"skipx": 321.5,
"skipy": 1390,
"skiptex": "skipbtn",
"skiplevel": 9
},
"touch": {
"touchx": 0,
"touchy": 0,
"touchsize": [
750,
1624
]
}
},
"3": {
"hole": {
"holetype": "cirect",
"holex": 600,
"holey": 26,
"holesize": [
135,
440,
40
]
},
"txt": {
"text": "点击图标您可查看规则、进行分享和签到\n \n偷偷告诉您,连签7天可获得大额欢趣豆哦~",
"txtwidth": 455,
"txtx": 100,
"txty": 245,
"txtalign": "left"
},
"role": [
{
"rolex": 360,
"roley": 875,
"roletex": "guide2_1"
}
],
"nextbtn": {
"btnx": 100,
"btny": 520,
"btntex": "nextbtn"
},
"skipbtn": {
"skipx": 321.5,
"skipy": 1390,
"skiptex": "skipbtn",
"skiplevel": 9
},
"touch": {
"touchx": 0,
"touchy": 0,
"touchsize": [
750,
1624
]
}
},
"4": {
"hole": {
"holetype": "cir",
"holex": 185,
"holey": 465,
"holesize": [
165,
440
]
},
"txt": {
"text": "欢趣豆可以兑换立减金,\n进入趣赶集即可进行\n兑换哦~",
"txtwidth": 375,
"txtx": 375,
"txty": 357,
"txtalign": "left"
},
"role": [
{
"rolex": 360,
"roley": 875,
"roletex": "guide2_1"
}
],
"nextbtn": {
"btnx": 375,
"btny": 536,
"btntex": "nextbtn"
},
"skipbtn": {
"skipx": 321.5,
"skipy": 1390,
"skiptex": "skipbtn",
"skiplevel": 9
},
"touch": {
"touchx": 0,
"touchy": 0,
"touchsize": [
750,
1624
]
}
},
"5": {
"hole": {
"holetype": "cir",
"holex": 540,
"holey": 700,
"holesize": [
165,
440
]
},
"txt": {
"text": "农场主集结~在这里\n就是向往的生活!\n收获成果的同时还可\n以兑换丰厚礼物哦",
"txtwidth": 320,
"txtx": 55,
"txty": 635,
"txtalign": "left"
},
"role": [
{
"rolex": 360,
"roley": 875,
"roletex": "guide2_1"
}
],
"nextbtn": {
"btnx": 55,
"btny": 860,
"btntex": "nextbtn"
},
"skipbtn": {
"skipx": 321.5,
"skipy": 1390,
"skiptex": "skipbtn",
"skiplevel": 9
},
"touch": {
"touchx": 0,
"touchy": 0,
"touchsize": [
750,
1624
]
}
},
"6": {
"hole": {
"holetype": "cir",
"holex": 175,
"holey": 850,
"holesize": [
165,
440
]
},
"txt": {
"text": "点击任务大厅,进入\n任务界面,完成任务\n可获得好礼哦~",
"txtwidth": 375,
"txtx": 375,
"txty": 600,
"txtalign": "left"
},
"role": [
{
"rolex": 360,
"roley": 875,
"roletex": "guide2_1"
}
],
"nextbtn": {
"btnx": 375,
"btny": 768,
"btntex": "nextbtn"
},
"skipbtn": {
"skipx": 321.5,
"skipy": 1390,
"skiptex": "skipbtn",
"skiplevel": 9
},
"touch": {
"touchx": 0,
"touchy": 0,
"touchsize": [
750,
1624
]
}
},
"7": {
"hole": {
"holetype": "cir",
"holex": 575,
"holey": 1110,
"holesize": [
165,
440
]
},
"txt": {
"text": "点击小卖铺可以进到\n商城页面,在这里购\n买心仪的物品哦~",
"txtwidth": 320,
"txtx": 85,
"txty": 790,
"txtalign": "left"
},
"role": [
{
"rolex": 68,
"roley": 1060,
"roletex": "guide2_1"
}
],
"nextbtn": {
"btnx": 86,
"btny": 966,
"btntex": "nextbtn"
},
"skipbtn": {
"skipx": 321.5,
"skipy": 1390,
"skiptex": "skipbtn",
"skiplevel": 9
},
"touch": {
"touchx": 0,
"touchy": 0,
"touchsize": [
750,
1624
]
}
},
"8": {
"hole": {
"holetype": "cir",
"holex": 180,
"holey": 1325,
"holesize": [
165,
440
]
},
"txt": {
"text": "这就是你的小家啦~\n进入我的e家可以查看在小\n镇获得的各项荣誉勋章",
"txtwidth": 375,
"txtx": 375,
"txty": 1200,
"txtalign": "left"
},
"role": [
{
"rolex": 238,
"roley": 768,
"roletex": "guide2_1"
}
],
"nextbtn": {
"btnx": 375,
"btny": 1382,
"btntex": "nextbtn"
},
"skipbtn": null,
"touch": {
"touchx": 0,
"touchy": 0,
"touchsize": [
750,
1624
]
}
},
"9": {
"hole": null,
"txt": {
"text": "小镇将会越来越热闹\n小e也会在这儿一直陪伴你哦,\n那么赶紧去逛逛吧~",
"txtwidth": 750,
"txtx": 0,
"txty": 1150,
"txtalign": "center"
},
"role": [
{
"rolex": 0,
"roley": 0,
"roletex": "guide2_1"
}
],
"nextbtn": {
"btnx": 250,
"btny": 1300,
"btntex": "finaguidebtn"
},
"skipbtn": null,
"touch": {
"touchx": 0,
"touchy": 0,
"touchsize": [
750,
1624
]
}
}
}
},
"assets": [
{
"name": "引导1图",
"url": "assets/guide1.png",
"uuid": "guide1",
"ext": ".png"
},
{
"name": "引导2图",
"url": "assets/guide2_1.png",
"uuid": "guide2_1",
"ext": ".png"
},
{
"name": "下一步",
"url": "assets/nextbtn.png",
"uuid": "nextbtn",
"ext": ".png"
},
{
"name": "立即体验",
"url": "assets/finaguidebtn.png",
"uuid": "finaguidebtn",
"ext": ".png"
},
{
"name": "跳过引导",
"url": "assets/skipbtn.png",
"uuid": "skipbtn",
"ext": ".png"
}
],
"events": {
"in": {
"start": {
"alias": "开始"
},
"stop": {
"alias": "停止"
}
},
"out": {
"show_one": {
"alias": "展示一个文本",
"data": {
"text": "文本"
}
}
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment