(function () {
'use strict';
function errMsg(errCode, msg) {
return (msg || "") + " (SystemJS Error#" + errCode + " " + "https://git.io/JvFET#" + errCode + ")";
}
var hasSymbol = typeof Symbol !== 'undefined';
var hasSelf = typeof self !== 'undefined';
var hasDocument = typeof document !== 'undefined';
var envGlobal = hasSelf ? self : global;
var baseUrl;
if (hasDocument) {
var baseEl = document.querySelector('base[href]');
if (baseEl)
baseUrl = baseEl.href;
}
if (!baseUrl && typeof location !== 'undefined') {
baseUrl = location.href.split('#')[0].split('?')[0];
var lastSepIndex = baseUrl.lastIndexOf('/');
if (lastSepIndex !== -1)
baseUrl = baseUrl.slice(0, lastSepIndex + 1);
}
var backslashRegEx = /\\/g;
function resolveIfNotPlainOrUrl (relUrl, parentUrl) {
if (relUrl.indexOf('\\') !== -1)
relUrl = relUrl.replace(backslashRegEx, '/');
// protocol-relative
if (relUrl[0] === '/' && relUrl[1] === '/') {
return parentUrl.slice(0, parentUrl.indexOf(':') + 1) + relUrl;
}
// relative-url
else if (relUrl[0] === '.' && (relUrl[1] === '/' || relUrl[1] === '.' && (relUrl[2] === '/' || relUrl.length === 2 && (relUrl += '/')) ||
relUrl.length === 1 && (relUrl += '/')) ||
relUrl[0] === '/') {
var parentProtocol = parentUrl.slice(0, parentUrl.indexOf(':') + 1);
// Disabled, but these cases will give inconsistent results for deep backtracking
//if (parentUrl[parentProtocol.length] !== '/')
// throw Error('Cannot resolve');
// read pathname from parent URL
// pathname taken to be part after leading "/"
var pathname;
if (parentUrl[parentProtocol.length + 1] === '/') {
// resolving to a :// so we need to read out the auth and host
if (parentProtocol !== 'file:') {
pathname = parentUrl.slice(parentProtocol.length + 2);
pathname = pathname.slice(pathname.indexOf('/') + 1);
}
else {
pathname = parentUrl.slice(8);
}
}
else {
// resolving to :/ so pathname is the /... part
pathname = parentUrl.slice(parentProtocol.length + (parentUrl[parentProtocol.length] === '/'));
}
if (relUrl[0] === '/')
return parentUrl.slice(0, parentUrl.length - pathname.length - 1) + relUrl;
// join together and split for removal of .. and . segments
// looping the string instead of anything fancy for perf reasons
// '../../../../../z' resolved to 'x/y' is just 'z'
var segmented = pathname.slice(0, pathname.lastIndexOf('/') + 1) + relUrl;
var output = [];
var segmentIndex = -1;
for (var i = 0; i < segmented.length; i++) {
// busy reading a segment - only terminate on '/'
if (segmentIndex !== -1) {
if (segmented[i] === '/') {
output.push(segmented.slice(segmentIndex, i + 1));
segmentIndex = -1;
}
}
// new segment - check if it is relative
else if (segmented[i] === '.') {
// ../ segment
if (segmented[i + 1] === '.' && (segmented[i + 2] === '/' || i + 2 === segmented.length)) {
output.pop();
i += 2;
}
// ./ segment
else if (segmented[i + 1] === '/' || i + 1 === segmented.length) {
i += 1;
}
else {
// the start of a new segment as below
segmentIndex = i;
}
}
// it is the start of a new segment
else {
segmentIndex = i;
}
}
// finish reading out the last segment
if (segmentIndex !== -1)
output.push(segmented.slice(segmentIndex));
return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join('');
}
}
/*
* Import maps implementation
*
* To make lookups fast we pre-resolve the entire import map
* and then match based on backtracked hash lookups
*
*/
function resolveUrl (relUrl, parentUrl) {
return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (relUrl.indexOf(':') !== -1 ? relUrl : resolveIfNotPlainOrUrl('./' + relUrl, parentUrl));
}
function resolveAndComposePackages (packages, outPackages, baseUrl, parentMap, parentUrl) {
for (var p in packages) {
var resolvedLhs = resolveIfNotPlainOrUrl(p, baseUrl) || p;
var rhs = packages[p];
// package fallbacks not currently supported
if (typeof rhs !== 'string')
continue;
var mapped = resolveImportMap(parentMap, resolveIfNotPlainOrUrl(rhs, baseUrl) || rhs, parentUrl);
if (!mapped) {
targetWarning('W1', p, rhs, 'bare specifier did not resolve');
}
else
outPackages[resolvedLhs] = mapped;
}
}
function resolveAndComposeImportMap (json, baseUrl, outMap) {
if (json.imports)
resolveAndComposePackages(json.imports, outMap.imports, baseUrl, outMap, null);
var u;
for (u in json.scopes || {}) {
var resolvedScope = resolveUrl(u, baseUrl);
resolveAndComposePackages(json.scopes[u], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl, outMap, resolvedScope);
}
for (u in json.depcache || {})
outMap.depcache[resolveUrl(u, baseUrl)] = json.depcache[u];
for (u in json.integrity || {})
outMap.integrity[resolveUrl(u, baseUrl)] = json.integrity[u];
}
function getMatch (path, matchObj) {
if (matchObj[path])
return path;
var sepIndex = path.length;
do {
var segment = path.slice(0, sepIndex + 1);
if (segment in matchObj)
return segment;
} while ((sepIndex = path.lastIndexOf('/', sepIndex - 1)) !== -1)
}
function applyPackages (id, packages) {
var pkgName = getMatch(id, packages);
if (pkgName) {
var pkg = packages[pkgName];
if (pkg === null) return;
if (id.length > pkgName.length && pkg[pkg.length - 1] !== '/') {
targetWarning('W2', pkgName, pkg, "should have a trailing '/'");
}
else
return pkg + id.slice(pkgName.length);
}
}
function targetWarning (code, match, target, msg) {
console.warn(errMsg(code, "Package target " + msg + ", resolving target '" + target + "' for " + match));
}
function resolveImportMap (importMap, resolvedOrPlain, parentUrl) {
var scopes = importMap.scopes;
var scopeUrl = parentUrl && getMatch(parentUrl, scopes);
while (scopeUrl) {
var packageResolution = applyPackages(resolvedOrPlain, scopes[scopeUrl]);
if (packageResolution)
return packageResolution;
scopeUrl = getMatch(scopeUrl.slice(0, scopeUrl.lastIndexOf('/')), scopes);
}
return applyPackages(resolvedOrPlain, importMap.imports) || resolvedOrPlain.indexOf(':') !== -1 && resolvedOrPlain;
}
/*
* SystemJS Core
*
* Provides
* - System.import
* - System.register support for
* live bindings, function hoisting through circular references,
* reexports, dynamic import, import.meta.url, top-level await
* - System.getRegister to get the registration
* - Symbol.toStringTag support in Module objects
* - Hookable System.createContext to customize import.meta
* - System.onload(err, id, deps) handler for tracing / hot-reloading
*
* Core comes with no System.prototype.resolve or
* System.prototype.instantiate implementations
*/
var toStringTag = hasSymbol && Symbol.toStringTag;
var REGISTRY = hasSymbol ? Symbol() : '@';
function SystemJS () {
this[REGISTRY] = {};
}
var systemJSPrototype = SystemJS.prototype;
systemJSPrototype.import = function (id, parentUrl) {
var loader = this;
return Promise.resolve(loader.prepareImport())
.then(function() {
return loader.resolve(id, parentUrl);
})
.then(function (id) {
var load = getOrCreateLoad(loader, id);
return load.C || topLevelLoad(loader, load);
});
};
/
没有合适的资源?快使用搜索试试~ 我知道了~
Cocos Creator 3.4.2 实现滚动数字效果
共354个文件
json:243个
png:45个
js:8个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 91 浏览量
2022-04-18
15:59:33
上传
评论
收藏 1.21MB RAR 举报
温馨提示
使用基本组件实现滚动数字效果。 效果图:https://blog.csdn.net/u013152718/article/details/124251430
资源详情
资源评论
资源推荐
收起资源包目录
Cocos Creator 3.4.2 实现滚动数字效果 (354个子文件)
0359b2f1-3a37-43fa-9c1c-bbe2b353ea1f 4KB
1f505ca8-b164-4d35-b697-504d100015e4 493B
22a135d0-b2ef-4c1b-86d2-5bbbd88e4875 799B
2c657d26-de3b-4070-9cad-2ca3a33bbd72 102B
3b7550e2-beea-4079-ad8d-dfef104086bd 6KB
3e7d59d5-5478-474a-bb27-6eddb22dc614 1019B
400f1cd3-9a46-4349-b3c1-f451e22a219b 329B
4584ab47-6c1b-44fc-a41d-e32ba87e9660 355B
865b04b2-bc79-40fc-9bdf-a7557665b27c 154B
8c76e1e2-a206-4662-aa79-42c0c858d647 276B
8f8bba83-df9c-4afe-8450-e12d0dbe71b7 213B
91d50ce0-702d-47fd-b540-447a0de3471d 501B
aa709c4b-426b-46f3-a856-4a0f22f52d6d 429B
ad05fddb-302f-40f5-81d2-27f671ddf0b6 104B
b5b27ab1-e740-4398-b407-848fc2b2c897 2KB
c3dd770e-f74d-491f-85f7-4607add32858 2KB
c7e748e8-be82-4f6f-b2c0-085b604e40e5 116B
c9bbaedb-125a-4942-a8eb-6952f9f2a00f 983B
d9956a56-5622-44a1-8b50-42449f24ecdd 1KB
settings.dat 40B
e0a8e34d-9242-4f0f-833b-f57e1ffbf285 903B
e220b271-6a70-47c0-8d12-850150694608 37B
e7e9f9b7-58f3-44b4-b31c-7e7b0f601e92 104B
f102759d-fcb3-4103-82e5-9a955401466a 2KB
.gitignore 357B
52ef29ed-bd92-4e94-ab2f-0ebc91bf3a60.jpg 372KB
80aabd92-9942-4765-b685-8577a1c88b4e.jpg 9KB
86eb75aa-3b2f-4c7b-b59e-bdc2e3984665.jpg 9KB
61ac0181-00bd-4c17-97f0-5fc7f4bafb3d.jpg 9KB
6c895e98-967e-4a6d-8c08-bf6b035fa2c1.jpg 9KB
e049bea9-db6b-463b-8502-61bf426357a1.jpg 9KB
03721795-84b1-4dcd-8eb3-c8e6b88ee535.jpg 8KB
system.js 35KB
cc.js 6KB
cc.js 6KB
rolling.js 5KB
rolling.js 5KB
prerequisite-imports.js 565B
prerequisite-imports.js 223B
custom-macro.js 144B
971bdb23-3ff6-43eb-b422-1c30165a3663.json 263KB
1baf0fc9-befa-459c-8bdd-af1a450a0319.json 254KB
a7612b54-35e3-4238-a1a9-4a7b54635839.json 223KB
1d08ef62-a503-4ce2-8b9a-46c90873f7d3.json 165KB
d1346436-ac96-4271-b863-1f4fdead95b0.json 161KB
1650267315142.json 155KB
1650267258031.json 155KB
28d6d6b8-3f66-4a73-9795-17a0852ba2d4.json 154KB
1650267301023.json 153KB
99498f84-efe6-43a6-a9a7-e6e93eb845c1.json 134KB
7f3a817f-0aac-43e8-99f8-9278f57602dd.json 133KB
5d45aa00-e064-4938-b314-4265f0c2258c.json 123KB
.internal-info.json 97KB
711ebe11-f673-4cd9-9a83-63c60ba54c5b.json 83KB
a3cd009f-0ab0-420d-9278-b9fdab939bbc.json 74KB
.internal-dependency.json 67KB
27cc5a0b-ec0b-4a67-98cf-b42d4fa971de.json 61KB
bf4078d6-d2d7-4073-83bb-cd6f1802e880.json 54KB
17debcc3-0a6b-4b8a-b00b-dc58b885581e.json 54KB
f1556893-88b6-4c65-8c16-a5256ef3ad25.json 49KB
9d6c6bde-2fe2-44ee-883b-909608948b04.json 48KB
ec8106fe-05bf-4e94-943c-e0d3b7bb5e45.json 46KB
9361fd90-ba52-4f84-aa93-6e878fd576ca.json 44KB
81127eb0-7556-453c-b147-670782dd5e53.json 41KB
6624c63c-0e3d-4d5f-bd15-a7805b71c521.json 33KB
2af73429-41d1-4346-9062-7798e42945dd.json 19KB
20a5d8cb-ccad-4543-a937-fccd98c9f3de.json 16KB
c1baa707-78d6-4b89-8d5d-0b7fdf0c39bc.json 14KB
a3e72674-c38f-4336-a285-1826b1799cd7.json 13KB
31b152ff-f689-4082-a292-3eb5a0b33014.json 13KB
60f7195c-ec2a-45eb-ba94-8955f60e81d0.json 11KB
modules.json 11KB
511d2633-09a7-4bdd-ac42-f778032124b3.json 11KB
c27215d8-6835-4b68-bfbb-bdeac6100c04.json 10KB
7a115de7-2d94-4620-8b89-766d7f8cbff9.json 10KB
f09a0597-10e6-49e5-8759-a148b5e85395.json 10KB
modules.json 10KB
871c3b6c-7379-419d-bda3-794b239ab90d.json 9KB
e4e4cb19-8dd2-450d-ad20-1a818263b8d3.json 9KB
4736e978-c8fa-449f-9cf6-fe0158ded9d7.json 9KB
ba35f02e-a81c-464c-bfc5-c788328da667.json 8KB
05e79121-8675-4551-9ad7-1b901a4025db.json 8KB
970b0598-bcb0-4714-91fb-2e81440dccd8.json 8KB
9b4d3fa5-89bf-4715-b69a-dbbd1efaf6a5.json 8KB
cb2c332a-fa5e-4235-a129-f011634bb7ad.json 7KB
fc6bfcfa-8086-4326-809b-0ba1226bac7d.json 7KB
1c02ae6f-4492-4915-b8f8-7492a3b1e4cd.json 7KB
2bd7e5b6-cd8c-41a1-8136-ddb8efbf6326.json 6KB
90bdd2a9-2838-4888-b66c-e94c8b7a5169.json 6KB
0e89afe7-56de-4f99-96a1-cba8a75bedd2.json 6KB
d9937e59-61fe-4ec6-92ab-7ac5a19c89b0.json 5KB
0d9353c4-6fb9-49bb-bc62-77f1750078c2.json 5KB
f773db21-62b8-4540-956a-29bacf5ddbf5.json 4KB
f396261e-3e06-41ec-bdd6-9a8b6d99026f.json 4KB
chunks.json 3KB
chunks.json 3KB
810e96e4-e456-4468-9b59-f4e8f39732c0.json 3KB
36008810-7ad3-47c0-8112-e30aee089e45.json 2KB
e5f21aad-3a69-4011-ac62-b74352ac025e.json 2KB
9db8cd0b-cbe4-42e7-96a9-a239620c0a9d.json 2KB
共 354 条
- 1
- 2
- 3
- 4
swhqq
- 粉丝: 6
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1