mirror of
https://github.com/Buriburizaem0n/live2d.git
synced 2025-12-17 08:31:07 +00:00
combined with pixi-live2d-display
This commit is contained in:
1
live2d/node_modules/.bin/gh-pages
generated
vendored
Symbolic link
1
live2d/node_modules/.bin/gh-pages
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../gh-pages/bin/gh-pages.js
|
||||
1
live2d/node_modules/.bin/gh-pages-clean
generated
vendored
Symbolic link
1
live2d/node_modules/.bin/gh-pages-clean
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../gh-pages/bin/gh-pages-clean.js
|
||||
1
live2d/node_modules/.bin/semver
generated
vendored
Symbolic link
1
live2d/node_modules/.bin/semver
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../semver/bin/semver.js
|
||||
877
live2d/node_modules/.package-lock.json
generated
vendored
Normal file
877
live2d/node_modules/.package-lock.json
generated
vendored
Normal file
@@ -0,0 +1,877 @@
|
||||
{
|
||||
"name": "live2d",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"node_modules/@pixi/constants": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/constants/-/constants-6.5.10.tgz",
|
||||
"integrity": "sha512-PUF2Y9YISRu5eVrVVHhHCWpc/KmxQTg3UH8rIUs8UI9dCK41/wsPd3pEahzf7H47v7x1HCohVZcFO3XQc1bUDw==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/@pixi/core": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/core/-/core-6.5.10.tgz",
|
||||
"integrity": "sha512-Gdzp5ENypyglvsh5Gv3teUZnZnmizo4xOsL+QqmWALdFlJXJwLJMVhKVThV/q/095XR6i4Ou54oshn+m4EkuFw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@types/offscreencanvas": "^2019.6.4"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/pixijs"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@pixi/constants": "6.5.10",
|
||||
"@pixi/extensions": "6.5.10",
|
||||
"@pixi/math": "6.5.10",
|
||||
"@pixi/runner": "6.5.10",
|
||||
"@pixi/settings": "6.5.10",
|
||||
"@pixi/ticker": "6.5.10",
|
||||
"@pixi/utils": "6.5.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@pixi/display": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/display/-/display-6.5.10.tgz",
|
||||
"integrity": "sha512-NxFdDDxlbH5fQkzGHraLGoTMucW9pVgXqQm13TSmkA3NWIi/SItHL4qT2SI8nmclT9Vid1VDEBCJFAbdeuQw1Q==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/constants": "6.5.10",
|
||||
"@pixi/math": "6.5.10",
|
||||
"@pixi/settings": "6.5.10",
|
||||
"@pixi/utils": "6.5.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@pixi/extensions": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/extensions/-/extensions-6.5.10.tgz",
|
||||
"integrity": "sha512-EIUGza+E+sCy3dupuIjvRK/WyVyfSzHb5XsxRaxNrPwvG1iIUIqNqZ3owLYCo4h17fJWrj/yXVufNNtUKQccWQ==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/@pixi/loaders": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/loaders/-/loaders-6.5.10.tgz",
|
||||
"integrity": "sha512-AuK7mXBmyVsDFL9DDFPB8sqP8fwQ2NOktvu98bQuJl0/p/UeK/0OAQnF3wcf3FeBv5YGXfNHL21c2DCisjKfTg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/constants": "6.5.10",
|
||||
"@pixi/core": "6.5.10",
|
||||
"@pixi/utils": "6.5.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@pixi/math": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/math/-/math-6.5.10.tgz",
|
||||
"integrity": "sha512-fxeu7ykVbMGxGV2S3qRTupHToeo1hdWBm8ihyURn3BMqJZe2SkZEECPd5RyvIuuNUtjRnmhkZRnF3Jsz2S+L0g==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/@pixi/runner": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/runner/-/runner-6.5.10.tgz",
|
||||
"integrity": "sha512-4HiHp6diCmigJT/DSbnqQP62OfWKmZB7zPWMdV1AEdr4YT1QxzXAW1wHg7dkoEfyTHqZKl0tm/zcqKq/iH7tMA==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/@pixi/settings": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/settings/-/settings-6.5.10.tgz",
|
||||
"integrity": "sha512-ypAS5L7pQ2Qb88yQK72bXtc7sD8OrtLWNXdZ/gnw5kwSWCFaOSoqhKqJCXrR5DQtN98+RQefwbEAmMvqobhFyw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/constants": "6.5.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@pixi/sprite": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/sprite/-/sprite-6.5.10.tgz",
|
||||
"integrity": "sha512-UiK+8LgM9XQ/SBDKjRgZ8WggdOSlFRXqiWjEZVmNkiyU8HvXeFzWPRhpc8RR1zDwAUhZWKtMhF8X/ba9m+z2lg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/constants": "6.5.10",
|
||||
"@pixi/core": "6.5.10",
|
||||
"@pixi/display": "6.5.10",
|
||||
"@pixi/math": "6.5.10",
|
||||
"@pixi/settings": "6.5.10",
|
||||
"@pixi/utils": "6.5.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@pixi/ticker": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/ticker/-/ticker-6.5.10.tgz",
|
||||
"integrity": "sha512-UqX1XYtzqFSirmTOy8QAK4Ccg4KkIZztrBdRPKwFSOEiKAJoGDCSBmyQBo/9aYQKGObbNnrJ7Hxv3/ucg3/1GA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/extensions": "6.5.10",
|
||||
"@pixi/settings": "6.5.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@pixi/utils": {
|
||||
"version": "6.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@pixi/utils/-/utils-6.5.10.tgz",
|
||||
"integrity": "sha512-4f4qDMmAz9IoSAe08G2LAxUcEtG9jSdudfsMQT2MG+OpfToirboE6cNoO0KnLCvLzDVE/mfisiQ9uJbVA9Ssdw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@types/earcut": "^2.1.0",
|
||||
"earcut": "^2.2.4",
|
||||
"eventemitter3": "^3.1.0",
|
||||
"url": "^0.11.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@pixi/constants": "6.5.10",
|
||||
"@pixi/settings": "6.5.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/earcut": {
|
||||
"version": "2.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/earcut/-/earcut-2.1.4.tgz",
|
||||
"integrity": "sha512-qp3m9PPz4gULB9MhjGID7wpo3gJ4bTGXm7ltNDsmOvsPduTeHp8wSW9YckBj3mljeOh4F0m2z/0JKAALRKbmLQ==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/@types/offscreencanvas": {
|
||||
"version": "2019.7.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.7.3.tgz",
|
||||
"integrity": "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/array-union": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz",
|
||||
"integrity": "sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"array-uniq": "^1.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/array-uniq": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz",
|
||||
"integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/async": {
|
||||
"version": "2.6.4",
|
||||
"resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz",
|
||||
"integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"lodash": "^4.17.14"
|
||||
}
|
||||
},
|
||||
"node_modules/balanced-match": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
||||
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0",
|
||||
"concat-map": "0.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/call-bind": {
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
|
||||
"integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"es-define-property": "^1.0.0",
|
||||
"es-errors": "^1.3.0",
|
||||
"function-bind": "^1.1.2",
|
||||
"get-intrinsic": "^1.2.4",
|
||||
"set-function-length": "^1.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/commander": {
|
||||
"version": "2.20.3",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
|
||||
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/commondir": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
|
||||
"integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/concat-map": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
||||
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/define-data-property": {
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
|
||||
"integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"es-define-property": "^1.0.0",
|
||||
"es-errors": "^1.3.0",
|
||||
"gopd": "^1.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/earcut": {
|
||||
"version": "2.2.4",
|
||||
"resolved": "https://registry.npmjs.org/earcut/-/earcut-2.2.4.tgz",
|
||||
"integrity": "sha512-/pjZsA1b4RPHbeWZQn66SWS8nZZWLQQ23oE3Eam7aroEFGEvwKAsJfZ9ytiEMycfzXWpca4FA9QIOehf7PocBQ==",
|
||||
"license": "ISC",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/email-addresses": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/email-addresses/-/email-addresses-3.1.0.tgz",
|
||||
"integrity": "sha512-k0/r7GrWVL32kZlGwfPNgB2Y/mMXVTq/decgLczm/j34whdaspNrZO8CnXPf1laaHxI6ptUlsnAxN+UAPw+fzg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/es-define-property": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
|
||||
"integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"get-intrinsic": "^1.2.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/es-errors": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
||||
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/escape-string-regexp": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
|
||||
"integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/eventemitter3": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz",
|
||||
"integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/filename-reserved-regex": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz",
|
||||
"integrity": "sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/filenamify": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/filenamify/-/filenamify-4.3.0.tgz",
|
||||
"integrity": "sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"filename-reserved-regex": "^2.0.0",
|
||||
"strip-outer": "^1.0.1",
|
||||
"trim-repeated": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/find-cache-dir": {
|
||||
"version": "3.3.2",
|
||||
"resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz",
|
||||
"integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"commondir": "^1.0.1",
|
||||
"make-dir": "^3.0.2",
|
||||
"pkg-dir": "^4.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/avajs/find-cache-dir?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/find-up": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
|
||||
"integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"locate-path": "^5.0.0",
|
||||
"path-exists": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/fs-extra": {
|
||||
"version": "8.1.0",
|
||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
|
||||
"integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"graceful-fs": "^4.2.0",
|
||||
"jsonfile": "^4.0.0",
|
||||
"universalify": "^0.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6 <7 || >=8"
|
||||
}
|
||||
},
|
||||
"node_modules/fs.realpath": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/function-bind": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/get-intrinsic": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
|
||||
"integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0",
|
||||
"function-bind": "^1.1.2",
|
||||
"has-proto": "^1.0.1",
|
||||
"has-symbols": "^1.0.3",
|
||||
"hasown": "^2.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/gh-pages": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/gh-pages/-/gh-pages-4.0.0.tgz",
|
||||
"integrity": "sha512-p8S0T3aGJc68MtwOcZusul5qPSNZCalap3NWbhRUZYu1YOdp+EjZ+4kPmRM8h3NNRdqw00yuevRjlkuSzCn7iQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"async": "^2.6.1",
|
||||
"commander": "^2.18.0",
|
||||
"email-addresses": "^3.0.1",
|
||||
"filenamify": "^4.3.0",
|
||||
"find-cache-dir": "^3.3.1",
|
||||
"fs-extra": "^8.1.0",
|
||||
"globby": "^6.1.0"
|
||||
},
|
||||
"bin": {
|
||||
"gh-pages": "bin/gh-pages.js",
|
||||
"gh-pages-clean": "bin/gh-pages-clean.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/glob": {
|
||||
"version": "7.2.3",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
||||
"integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
|
||||
"deprecated": "Glob versions prior to v9 are no longer supported",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"fs.realpath": "^1.0.0",
|
||||
"inflight": "^1.0.4",
|
||||
"inherits": "2",
|
||||
"minimatch": "^3.1.1",
|
||||
"once": "^1.3.0",
|
||||
"path-is-absolute": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "*"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/globby": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz",
|
||||
"integrity": "sha512-KVbFv2TQtbzCoxAnfD6JcHZTYCzyliEaaeM/gH8qQdkKr5s0OP9scEgvdcngyk7AVdY6YVW/TJHd+lQ/Df3Daw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"array-union": "^1.0.1",
|
||||
"glob": "^7.0.3",
|
||||
"object-assign": "^4.0.1",
|
||||
"pify": "^2.0.0",
|
||||
"pinkie-promise": "^2.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/gopd": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
|
||||
"integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"get-intrinsic": "^1.1.3"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/graceful-fs": {
|
||||
"version": "4.2.11",
|
||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
||||
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/has-property-descriptors": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
|
||||
"integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"es-define-property": "^1.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/has-proto": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
|
||||
"integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/has-symbols": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
|
||||
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/hasown": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
||||
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"function-bind": "^1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/inflight": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
|
||||
"deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"once": "^1.3.0",
|
||||
"wrappy": "1"
|
||||
}
|
||||
},
|
||||
"node_modules/inherits": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/jsonfile": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
|
||||
"integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
|
||||
"license": "MIT",
|
||||
"optionalDependencies": {
|
||||
"graceful-fs": "^4.1.6"
|
||||
}
|
||||
},
|
||||
"node_modules/locate-path": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
|
||||
"integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"p-locate": "^4.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/lodash": {
|
||||
"version": "4.17.21",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/make-dir": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
|
||||
"integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"semver": "^6.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/minimatch": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
||||
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"brace-expansion": "^1.1.7"
|
||||
},
|
||||
"engines": {
|
||||
"node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/object-assign": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
||||
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/object-inspect": {
|
||||
"version": "1.13.2",
|
||||
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz",
|
||||
"integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/once": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"wrappy": "1"
|
||||
}
|
||||
},
|
||||
"node_modules/p-limit": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
|
||||
"integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"p-try": "^2.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/p-locate": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
|
||||
"integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"p-limit": "^2.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/p-try": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
|
||||
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/path-exists": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
||||
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/path-is-absolute": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||
"integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/pify": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
|
||||
"integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/pinkie": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
|
||||
"integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/pinkie-promise": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
|
||||
"integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"pinkie": "^2.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/pixi-live2d-display": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/pixi-live2d-display/-/pixi-live2d-display-0.4.0.tgz",
|
||||
"integrity": "sha512-xeYC6y4Y0Bxe9ksWNlGFZC1rII/MPrzPQK7t1c3ubA8RhkOISIqHJl38fNumXqhGEs+yItmgDOkFT+9dsyGDjA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"gh-pages": "^4.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@pixi/core": "^6",
|
||||
"@pixi/display": "^6",
|
||||
"@pixi/loaders": "^6",
|
||||
"@pixi/math": "^6",
|
||||
"@pixi/sprite": "^6",
|
||||
"@pixi/utils": "^6"
|
||||
}
|
||||
},
|
||||
"node_modules/pkg-dir": {
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
|
||||
"integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"find-up": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/punycode": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
|
||||
"integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/qs": {
|
||||
"version": "6.13.0",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
|
||||
"integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
|
||||
"license": "BSD-3-Clause",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"side-channel": "^1.0.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.6"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/semver": {
|
||||
"version": "6.3.1",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
|
||||
"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"semver": "bin/semver.js"
|
||||
}
|
||||
},
|
||||
"node_modules/set-function-length": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
||||
"integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"define-data-property": "^1.1.4",
|
||||
"es-errors": "^1.3.0",
|
||||
"function-bind": "^1.1.2",
|
||||
"get-intrinsic": "^1.2.4",
|
||||
"gopd": "^1.0.1",
|
||||
"has-property-descriptors": "^1.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/side-channel": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
|
||||
"integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"call-bind": "^1.0.7",
|
||||
"es-errors": "^1.3.0",
|
||||
"get-intrinsic": "^1.2.4",
|
||||
"object-inspect": "^1.13.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/strip-outer": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz",
|
||||
"integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"escape-string-regexp": "^1.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/trim-repeated": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz",
|
||||
"integrity": "sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"escape-string-regexp": "^1.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/universalify": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
|
||||
"integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/url": {
|
||||
"version": "0.11.4",
|
||||
"resolved": "https://registry.npmjs.org/url/-/url-0.11.4.tgz",
|
||||
"integrity": "sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"punycode": "^1.4.1",
|
||||
"qs": "^6.12.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/wrappy": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
||||
"license": "ISC"
|
||||
}
|
||||
}
|
||||
}
|
||||
21
live2d/node_modules/@pixi/constants/LICENSE
generated
vendored
Normal file
21
live2d/node_modules/@pixi/constants/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2013-2018 Mathew Groves, Chad Engler
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
13
live2d/node_modules/@pixi/constants/README.md
generated
vendored
Normal file
13
live2d/node_modules/@pixi/constants/README.md
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# @pixi/constants
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @pixi/constants
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import * as constants from '@pixi/constants';
|
||||
```
|
||||
525
live2d/node_modules/@pixi/constants/dist/browser/constants.js
generated
vendored
Normal file
525
live2d/node_modules/@pixi/constants/dist/browser/constants.js
generated
vendored
Normal file
@@ -0,0 +1,525 @@
|
||||
/*!
|
||||
* @pixi/constants - v6.5.10
|
||||
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||||
*
|
||||
* @pixi/constants is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
this.PIXI = this.PIXI || {};
|
||||
var _pixi_constants = (function (exports) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Different types of environments for WebGL.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name ENV
|
||||
* @enum {number}
|
||||
* @property {number} WEBGL_LEGACY - Used for older v1 WebGL devices. PixiJS will aim to ensure compatibility
|
||||
* with older / less advanced devices. If you experience unexplained flickering prefer this environment.
|
||||
* @property {number} WEBGL - Version 1 of WebGL
|
||||
* @property {number} WEBGL2 - Version 2 of WebGL
|
||||
*/
|
||||
exports.ENV = void 0;
|
||||
(function (ENV) {
|
||||
ENV[ENV["WEBGL_LEGACY"] = 0] = "WEBGL_LEGACY";
|
||||
ENV[ENV["WEBGL"] = 1] = "WEBGL";
|
||||
ENV[ENV["WEBGL2"] = 2] = "WEBGL2";
|
||||
})(exports.ENV || (exports.ENV = {}));
|
||||
/**
|
||||
* Constant to identify the Renderer Type.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name RENDERER_TYPE
|
||||
* @enum {number}
|
||||
* @property {number} UNKNOWN - Unknown render type.
|
||||
* @property {number} WEBGL - WebGL render type.
|
||||
* @property {number} CANVAS - Canvas render type.
|
||||
*/
|
||||
exports.RENDERER_TYPE = void 0;
|
||||
(function (RENDERER_TYPE) {
|
||||
RENDERER_TYPE[RENDERER_TYPE["UNKNOWN"] = 0] = "UNKNOWN";
|
||||
RENDERER_TYPE[RENDERER_TYPE["WEBGL"] = 1] = "WEBGL";
|
||||
RENDERER_TYPE[RENDERER_TYPE["CANVAS"] = 2] = "CANVAS";
|
||||
})(exports.RENDERER_TYPE || (exports.RENDERER_TYPE = {}));
|
||||
/**
|
||||
* Bitwise OR of masks that indicate the buffers to be cleared.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name BUFFER_BITS
|
||||
* @enum {number}
|
||||
* @property {number} COLOR - Indicates the buffers currently enabled for color writing.
|
||||
* @property {number} DEPTH - Indicates the depth buffer.
|
||||
* @property {number} STENCIL - Indicates the stencil buffer.
|
||||
*/
|
||||
exports.BUFFER_BITS = void 0;
|
||||
(function (BUFFER_BITS) {
|
||||
BUFFER_BITS[BUFFER_BITS["COLOR"] = 16384] = "COLOR";
|
||||
BUFFER_BITS[BUFFER_BITS["DEPTH"] = 256] = "DEPTH";
|
||||
BUFFER_BITS[BUFFER_BITS["STENCIL"] = 1024] = "STENCIL";
|
||||
})(exports.BUFFER_BITS || (exports.BUFFER_BITS = {}));
|
||||
/**
|
||||
* Various blend modes supported by PIXI.
|
||||
*
|
||||
* IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
|
||||
* Anything else will silently act like NORMAL.
|
||||
* @memberof PIXI
|
||||
* @name BLEND_MODES
|
||||
* @enum {number}
|
||||
* @property {number} NORMAL -
|
||||
* @property {number} ADD -
|
||||
* @property {number} MULTIPLY -
|
||||
* @property {number} SCREEN -
|
||||
* @property {number} OVERLAY -
|
||||
* @property {number} DARKEN -
|
||||
* @property {number} LIGHTEN -
|
||||
* @property {number} COLOR_DODGE -
|
||||
* @property {number} COLOR_BURN -
|
||||
* @property {number} HARD_LIGHT -
|
||||
* @property {number} SOFT_LIGHT -
|
||||
* @property {number} DIFFERENCE -
|
||||
* @property {number} EXCLUSION -
|
||||
* @property {number} HUE -
|
||||
* @property {number} SATURATION -
|
||||
* @property {number} COLOR -
|
||||
* @property {number} LUMINOSITY -
|
||||
* @property {number} NORMAL_NPM -
|
||||
* @property {number} ADD_NPM -
|
||||
* @property {number} SCREEN_NPM -
|
||||
* @property {number} NONE -
|
||||
* @property {number} SRC_IN -
|
||||
* @property {number} SRC_OUT -
|
||||
* @property {number} SRC_ATOP -
|
||||
* @property {number} DST_OVER -
|
||||
* @property {number} DST_IN -
|
||||
* @property {number} DST_OUT -
|
||||
* @property {number} DST_ATOP -
|
||||
* @property {number} SUBTRACT -
|
||||
* @property {number} SRC_OVER -
|
||||
* @property {number} ERASE -
|
||||
* @property {number} XOR -
|
||||
*/
|
||||
exports.BLEND_MODES = void 0;
|
||||
(function (BLEND_MODES) {
|
||||
BLEND_MODES[BLEND_MODES["NORMAL"] = 0] = "NORMAL";
|
||||
BLEND_MODES[BLEND_MODES["ADD"] = 1] = "ADD";
|
||||
BLEND_MODES[BLEND_MODES["MULTIPLY"] = 2] = "MULTIPLY";
|
||||
BLEND_MODES[BLEND_MODES["SCREEN"] = 3] = "SCREEN";
|
||||
BLEND_MODES[BLEND_MODES["OVERLAY"] = 4] = "OVERLAY";
|
||||
BLEND_MODES[BLEND_MODES["DARKEN"] = 5] = "DARKEN";
|
||||
BLEND_MODES[BLEND_MODES["LIGHTEN"] = 6] = "LIGHTEN";
|
||||
BLEND_MODES[BLEND_MODES["COLOR_DODGE"] = 7] = "COLOR_DODGE";
|
||||
BLEND_MODES[BLEND_MODES["COLOR_BURN"] = 8] = "COLOR_BURN";
|
||||
BLEND_MODES[BLEND_MODES["HARD_LIGHT"] = 9] = "HARD_LIGHT";
|
||||
BLEND_MODES[BLEND_MODES["SOFT_LIGHT"] = 10] = "SOFT_LIGHT";
|
||||
BLEND_MODES[BLEND_MODES["DIFFERENCE"] = 11] = "DIFFERENCE";
|
||||
BLEND_MODES[BLEND_MODES["EXCLUSION"] = 12] = "EXCLUSION";
|
||||
BLEND_MODES[BLEND_MODES["HUE"] = 13] = "HUE";
|
||||
BLEND_MODES[BLEND_MODES["SATURATION"] = 14] = "SATURATION";
|
||||
BLEND_MODES[BLEND_MODES["COLOR"] = 15] = "COLOR";
|
||||
BLEND_MODES[BLEND_MODES["LUMINOSITY"] = 16] = "LUMINOSITY";
|
||||
BLEND_MODES[BLEND_MODES["NORMAL_NPM"] = 17] = "NORMAL_NPM";
|
||||
BLEND_MODES[BLEND_MODES["ADD_NPM"] = 18] = "ADD_NPM";
|
||||
BLEND_MODES[BLEND_MODES["SCREEN_NPM"] = 19] = "SCREEN_NPM";
|
||||
BLEND_MODES[BLEND_MODES["NONE"] = 20] = "NONE";
|
||||
BLEND_MODES[BLEND_MODES["SRC_OVER"] = 0] = "SRC_OVER";
|
||||
BLEND_MODES[BLEND_MODES["SRC_IN"] = 21] = "SRC_IN";
|
||||
BLEND_MODES[BLEND_MODES["SRC_OUT"] = 22] = "SRC_OUT";
|
||||
BLEND_MODES[BLEND_MODES["SRC_ATOP"] = 23] = "SRC_ATOP";
|
||||
BLEND_MODES[BLEND_MODES["DST_OVER"] = 24] = "DST_OVER";
|
||||
BLEND_MODES[BLEND_MODES["DST_IN"] = 25] = "DST_IN";
|
||||
BLEND_MODES[BLEND_MODES["DST_OUT"] = 26] = "DST_OUT";
|
||||
BLEND_MODES[BLEND_MODES["DST_ATOP"] = 27] = "DST_ATOP";
|
||||
BLEND_MODES[BLEND_MODES["ERASE"] = 26] = "ERASE";
|
||||
BLEND_MODES[BLEND_MODES["SUBTRACT"] = 28] = "SUBTRACT";
|
||||
BLEND_MODES[BLEND_MODES["XOR"] = 29] = "XOR";
|
||||
})(exports.BLEND_MODES || (exports.BLEND_MODES = {}));
|
||||
/**
|
||||
* Various webgl draw modes. These can be used to specify which GL drawMode to use
|
||||
* under certain situations and renderers.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name DRAW_MODES
|
||||
* @enum {number}
|
||||
* @property {number} POINTS -
|
||||
* @property {number} LINES -
|
||||
* @property {number} LINE_LOOP -
|
||||
* @property {number} LINE_STRIP -
|
||||
* @property {number} TRIANGLES -
|
||||
* @property {number} TRIANGLE_STRIP -
|
||||
* @property {number} TRIANGLE_FAN -
|
||||
*/
|
||||
exports.DRAW_MODES = void 0;
|
||||
(function (DRAW_MODES) {
|
||||
DRAW_MODES[DRAW_MODES["POINTS"] = 0] = "POINTS";
|
||||
DRAW_MODES[DRAW_MODES["LINES"] = 1] = "LINES";
|
||||
DRAW_MODES[DRAW_MODES["LINE_LOOP"] = 2] = "LINE_LOOP";
|
||||
DRAW_MODES[DRAW_MODES["LINE_STRIP"] = 3] = "LINE_STRIP";
|
||||
DRAW_MODES[DRAW_MODES["TRIANGLES"] = 4] = "TRIANGLES";
|
||||
DRAW_MODES[DRAW_MODES["TRIANGLE_STRIP"] = 5] = "TRIANGLE_STRIP";
|
||||
DRAW_MODES[DRAW_MODES["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
|
||||
})(exports.DRAW_MODES || (exports.DRAW_MODES = {}));
|
||||
/**
|
||||
* Various GL texture/resources formats.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name FORMATS
|
||||
* @enum {number}
|
||||
* @property {number} [RGBA=6408] -
|
||||
* @property {number} [RGB=6407] -
|
||||
* @property {number} [RG=33319] -
|
||||
* @property {number} [RED=6403] -
|
||||
* @property {number} [RGBA_INTEGER=36249] -
|
||||
* @property {number} [RGB_INTEGER=36248] -
|
||||
* @property {number} [RG_INTEGER=33320] -
|
||||
* @property {number} [RED_INTEGER=36244] -
|
||||
* @property {number} [ALPHA=6406] -
|
||||
* @property {number} [LUMINANCE=6409] -
|
||||
* @property {number} [LUMINANCE_ALPHA=6410] -
|
||||
* @property {number} [DEPTH_COMPONENT=6402] -
|
||||
* @property {number} [DEPTH_STENCIL=34041] -
|
||||
*/
|
||||
exports.FORMATS = void 0;
|
||||
(function (FORMATS) {
|
||||
FORMATS[FORMATS["RGBA"] = 6408] = "RGBA";
|
||||
FORMATS[FORMATS["RGB"] = 6407] = "RGB";
|
||||
FORMATS[FORMATS["RG"] = 33319] = "RG";
|
||||
FORMATS[FORMATS["RED"] = 6403] = "RED";
|
||||
FORMATS[FORMATS["RGBA_INTEGER"] = 36249] = "RGBA_INTEGER";
|
||||
FORMATS[FORMATS["RGB_INTEGER"] = 36248] = "RGB_INTEGER";
|
||||
FORMATS[FORMATS["RG_INTEGER"] = 33320] = "RG_INTEGER";
|
||||
FORMATS[FORMATS["RED_INTEGER"] = 36244] = "RED_INTEGER";
|
||||
FORMATS[FORMATS["ALPHA"] = 6406] = "ALPHA";
|
||||
FORMATS[FORMATS["LUMINANCE"] = 6409] = "LUMINANCE";
|
||||
FORMATS[FORMATS["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
|
||||
FORMATS[FORMATS["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
|
||||
FORMATS[FORMATS["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
|
||||
})(exports.FORMATS || (exports.FORMATS = {}));
|
||||
/**
|
||||
* Various GL target types.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name TARGETS
|
||||
* @enum {number}
|
||||
* @property {number} [TEXTURE_2D=3553] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP=34067] -
|
||||
* @property {number} [TEXTURE_2D_ARRAY=35866] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_X=34069] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_X=34070] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_Y=34071] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_Y=34072] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_Z=34073] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_Z=34074] -
|
||||
*/
|
||||
exports.TARGETS = void 0;
|
||||
(function (TARGETS) {
|
||||
TARGETS[TARGETS["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
|
||||
TARGETS[TARGETS["TEXTURE_2D_ARRAY"] = 35866] = "TEXTURE_2D_ARRAY";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_X"] = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_X"] = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Y"] = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Y"] = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Z"] = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Z"] = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
|
||||
})(exports.TARGETS || (exports.TARGETS = {}));
|
||||
/**
|
||||
* Various GL data format types.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name TYPES
|
||||
* @enum {number}
|
||||
* @property {number} [UNSIGNED_BYTE=5121] -
|
||||
* @property {number} [UNSIGNED_SHORT=5123] -
|
||||
* @property {number} [UNSIGNED_SHORT_5_6_5=33635] -
|
||||
* @property {number} [UNSIGNED_SHORT_4_4_4_4=32819] -
|
||||
* @property {number} [UNSIGNED_SHORT_5_5_5_1=32820] -
|
||||
* @property {number} [UNSIGNED_INT=5125] -
|
||||
* @property {number} [UNSIGNED_INT_10F_11F_11F_REV=35899] -
|
||||
* @property {number} [UNSIGNED_INT_2_10_10_10_REV=33640] -
|
||||
* @property {number} [UNSIGNED_INT_24_8=34042] -
|
||||
* @property {number} [UNSIGNED_INT_5_9_9_9_REV=35902] -
|
||||
* @property {number} [BYTE=5120] -
|
||||
* @property {number} [SHORT=5122] -
|
||||
* @property {number} [INT=5124] -
|
||||
* @property {number} [FLOAT=5126] -
|
||||
* @property {number} [FLOAT_32_UNSIGNED_INT_24_8_REV=36269] -
|
||||
* @property {number} [HALF_FLOAT=36193] -
|
||||
*/
|
||||
exports.TYPES = void 0;
|
||||
(function (TYPES) {
|
||||
TYPES[TYPES["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
||||
TYPES[TYPES["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
||||
TYPES[TYPES["UNSIGNED_SHORT_5_6_5"] = 33635] = "UNSIGNED_SHORT_5_6_5";
|
||||
TYPES[TYPES["UNSIGNED_SHORT_4_4_4_4"] = 32819] = "UNSIGNED_SHORT_4_4_4_4";
|
||||
TYPES[TYPES["UNSIGNED_SHORT_5_5_5_1"] = 32820] = "UNSIGNED_SHORT_5_5_5_1";
|
||||
TYPES[TYPES["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
|
||||
TYPES[TYPES["UNSIGNED_INT_10F_11F_11F_REV"] = 35899] = "UNSIGNED_INT_10F_11F_11F_REV";
|
||||
TYPES[TYPES["UNSIGNED_INT_2_10_10_10_REV"] = 33640] = "UNSIGNED_INT_2_10_10_10_REV";
|
||||
TYPES[TYPES["UNSIGNED_INT_24_8"] = 34042] = "UNSIGNED_INT_24_8";
|
||||
TYPES[TYPES["UNSIGNED_INT_5_9_9_9_REV"] = 35902] = "UNSIGNED_INT_5_9_9_9_REV";
|
||||
TYPES[TYPES["BYTE"] = 5120] = "BYTE";
|
||||
TYPES[TYPES["SHORT"] = 5122] = "SHORT";
|
||||
TYPES[TYPES["INT"] = 5124] = "INT";
|
||||
TYPES[TYPES["FLOAT"] = 5126] = "FLOAT";
|
||||
TYPES[TYPES["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
|
||||
TYPES[TYPES["HALF_FLOAT"] = 36193] = "HALF_FLOAT";
|
||||
})(exports.TYPES || (exports.TYPES = {}));
|
||||
/**
|
||||
* Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
|
||||
* WebGL1 works only with FLOAT.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name SAMPLER_TYPES
|
||||
* @enum {number}
|
||||
* @property {number} [FLOAT=0] -
|
||||
* @property {number} [INT=1] -
|
||||
* @property {number} [UINT=2] -
|
||||
*/
|
||||
exports.SAMPLER_TYPES = void 0;
|
||||
(function (SAMPLER_TYPES) {
|
||||
SAMPLER_TYPES[SAMPLER_TYPES["FLOAT"] = 0] = "FLOAT";
|
||||
SAMPLER_TYPES[SAMPLER_TYPES["INT"] = 1] = "INT";
|
||||
SAMPLER_TYPES[SAMPLER_TYPES["UINT"] = 2] = "UINT";
|
||||
})(exports.SAMPLER_TYPES || (exports.SAMPLER_TYPES = {}));
|
||||
/**
|
||||
* The scale modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.SCALE_MODE} scale mode affects the default scaling mode of future operations.
|
||||
* It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name SCALE_MODES
|
||||
* @enum {number}
|
||||
* @property {number} LINEAR Smooth scaling
|
||||
* @property {number} NEAREST Pixelating scaling
|
||||
*/
|
||||
exports.SCALE_MODES = void 0;
|
||||
(function (SCALE_MODES) {
|
||||
SCALE_MODES[SCALE_MODES["NEAREST"] = 0] = "NEAREST";
|
||||
SCALE_MODES[SCALE_MODES["LINEAR"] = 1] = "LINEAR";
|
||||
})(exports.SCALE_MODES || (exports.SCALE_MODES = {}));
|
||||
/**
|
||||
* The wrap modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.WRAP_MODE} wrap mode affects the default wrapping mode of future operations.
|
||||
* It can be re-assigned to either CLAMP or REPEAT, depending upon suitability.
|
||||
* If the texture is non power of two then clamp will be used regardless as WebGL can
|
||||
* only use REPEAT if the texture is po2.
|
||||
*
|
||||
* This property only affects WebGL.
|
||||
* @name WRAP_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} CLAMP - The textures uvs are clamped
|
||||
* @property {number} REPEAT - The texture uvs tile and repeat
|
||||
* @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring
|
||||
*/
|
||||
exports.WRAP_MODES = void 0;
|
||||
(function (WRAP_MODES) {
|
||||
WRAP_MODES[WRAP_MODES["CLAMP"] = 33071] = "CLAMP";
|
||||
WRAP_MODES[WRAP_MODES["REPEAT"] = 10497] = "REPEAT";
|
||||
WRAP_MODES[WRAP_MODES["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
|
||||
})(exports.WRAP_MODES || (exports.WRAP_MODES = {}));
|
||||
/**
|
||||
* Mipmap filtering modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.MIPMAP_TEXTURES} affects default texture filtering.
|
||||
* Mipmaps are generated for a baseTexture if its `mipmap` field is `ON`,
|
||||
* or its `POW2` and texture dimensions are powers of 2.
|
||||
* Due to platform restriction, `ON` option will work like `POW2` for webgl-1.
|
||||
*
|
||||
* This property only affects WebGL.
|
||||
* @name MIPMAP_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} OFF - No mipmaps
|
||||
* @property {number} POW2 - Generate mipmaps if texture dimensions are pow2
|
||||
* @property {number} ON - Always generate mipmaps
|
||||
* @property {number} ON_MANUAL - Use mipmaps, but do not auto-generate them; this is used with a resource
|
||||
* that supports buffering each level-of-detail.
|
||||
*/
|
||||
exports.MIPMAP_MODES = void 0;
|
||||
(function (MIPMAP_MODES) {
|
||||
MIPMAP_MODES[MIPMAP_MODES["OFF"] = 0] = "OFF";
|
||||
MIPMAP_MODES[MIPMAP_MODES["POW2"] = 1] = "POW2";
|
||||
MIPMAP_MODES[MIPMAP_MODES["ON"] = 2] = "ON";
|
||||
MIPMAP_MODES[MIPMAP_MODES["ON_MANUAL"] = 3] = "ON_MANUAL";
|
||||
})(exports.MIPMAP_MODES || (exports.MIPMAP_MODES = {}));
|
||||
/**
|
||||
* How to treat textures with premultiplied alpha
|
||||
* @name ALPHA_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NO_PREMULTIPLIED_ALPHA - Source is not premultiplied, leave it like that.
|
||||
* Option for compressed and data textures that are created from typed arrays.
|
||||
* @property {number} PREMULTIPLY_ON_UPLOAD - Source is not premultiplied, premultiply on upload.
|
||||
* Default option, used for all loaded images.
|
||||
* @property {number} PREMULTIPLIED_ALPHA - Source is already premultiplied
|
||||
* Example: spine atlases with `_pma` suffix.
|
||||
* @property {number} NPM - Alias for NO_PREMULTIPLIED_ALPHA.
|
||||
* @property {number} UNPACK - Default option, alias for PREMULTIPLY_ON_UPLOAD.
|
||||
* @property {number} PMA - Alias for PREMULTIPLIED_ALPHA.
|
||||
*/
|
||||
exports.ALPHA_MODES = void 0;
|
||||
(function (ALPHA_MODES) {
|
||||
ALPHA_MODES[ALPHA_MODES["NPM"] = 0] = "NPM";
|
||||
ALPHA_MODES[ALPHA_MODES["UNPACK"] = 1] = "UNPACK";
|
||||
ALPHA_MODES[ALPHA_MODES["PMA"] = 2] = "PMA";
|
||||
ALPHA_MODES[ALPHA_MODES["NO_PREMULTIPLIED_ALPHA"] = 0] = "NO_PREMULTIPLIED_ALPHA";
|
||||
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ON_UPLOAD"] = 1] = "PREMULTIPLY_ON_UPLOAD";
|
||||
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ALPHA"] = 2] = "PREMULTIPLY_ALPHA";
|
||||
ALPHA_MODES[ALPHA_MODES["PREMULTIPLIED_ALPHA"] = 2] = "PREMULTIPLIED_ALPHA";
|
||||
})(exports.ALPHA_MODES || (exports.ALPHA_MODES = {}));
|
||||
/**
|
||||
* Configure whether filter textures are cleared after binding.
|
||||
*
|
||||
* Filter textures need not be cleared if the filter does not use pixel blending. {@link CLEAR_MODES.BLIT} will detect
|
||||
* this and skip clearing as an optimization.
|
||||
* @name CLEAR_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} BLEND - Do not clear the filter texture. The filter's output will blend on top of the output texture.
|
||||
* @property {number} CLEAR - Always clear the filter texture.
|
||||
* @property {number} BLIT - Clear only if {@link FilterSystem.forceClear} is set or if the filter uses pixel blending.
|
||||
* @property {number} NO - Alias for BLEND, same as `false` in earlier versions
|
||||
* @property {number} YES - Alias for CLEAR, same as `true` in earlier versions
|
||||
* @property {number} AUTO - Alias for BLIT
|
||||
*/
|
||||
exports.CLEAR_MODES = void 0;
|
||||
(function (CLEAR_MODES) {
|
||||
CLEAR_MODES[CLEAR_MODES["NO"] = 0] = "NO";
|
||||
CLEAR_MODES[CLEAR_MODES["YES"] = 1] = "YES";
|
||||
CLEAR_MODES[CLEAR_MODES["AUTO"] = 2] = "AUTO";
|
||||
CLEAR_MODES[CLEAR_MODES["BLEND"] = 0] = "BLEND";
|
||||
CLEAR_MODES[CLEAR_MODES["CLEAR"] = 1] = "CLEAR";
|
||||
CLEAR_MODES[CLEAR_MODES["BLIT"] = 2] = "BLIT";
|
||||
})(exports.CLEAR_MODES || (exports.CLEAR_MODES = {}));
|
||||
/**
|
||||
* The gc modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.GC_MODE} Garbage Collection mode for PixiJS textures is AUTO
|
||||
* If set to GC_MODE, the renderer will occasionally check textures usage. If they are not
|
||||
* used for a specified period of time they will be removed from the GPU. They will of course
|
||||
* be uploaded again when they are required. This is a silent behind the scenes process that
|
||||
* should ensure that the GPU does not get filled up.
|
||||
*
|
||||
* Handy for mobile devices!
|
||||
* This property only affects WebGL.
|
||||
* @name GC_MODES
|
||||
* @enum {number}
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @property {number} AUTO - Garbage collection will happen periodically automatically
|
||||
* @property {number} MANUAL - Garbage collection will need to be called manually
|
||||
*/
|
||||
exports.GC_MODES = void 0;
|
||||
(function (GC_MODES) {
|
||||
GC_MODES[GC_MODES["AUTO"] = 0] = "AUTO";
|
||||
GC_MODES[GC_MODES["MANUAL"] = 1] = "MANUAL";
|
||||
})(exports.GC_MODES || (exports.GC_MODES = {}));
|
||||
/**
|
||||
* Constants that specify float precision in shaders.
|
||||
* @name PRECISION
|
||||
* @memberof PIXI
|
||||
* @constant
|
||||
* @static
|
||||
* @enum {string}
|
||||
* @property {string} [LOW='lowp'] -
|
||||
* @property {string} [MEDIUM='mediump'] -
|
||||
* @property {string} [HIGH='highp'] -
|
||||
*/
|
||||
exports.PRECISION = void 0;
|
||||
(function (PRECISION) {
|
||||
PRECISION["LOW"] = "lowp";
|
||||
PRECISION["MEDIUM"] = "mediump";
|
||||
PRECISION["HIGH"] = "highp";
|
||||
})(exports.PRECISION || (exports.PRECISION = {}));
|
||||
/**
|
||||
* Constants for mask implementations.
|
||||
* We use `type` suffix because it leads to very different behaviours
|
||||
* @name MASK_TYPES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NONE - Mask is ignored
|
||||
* @property {number} SCISSOR - Scissor mask, rectangle on screen, cheap
|
||||
* @property {number} STENCIL - Stencil mask, 1-bit, medium, works only if renderer supports stencil
|
||||
* @property {number} SPRITE - Mask that uses SpriteMaskFilter, uses temporary RenderTexture
|
||||
* @property {number} COLOR - Color mask (RGBA)
|
||||
*/
|
||||
exports.MASK_TYPES = void 0;
|
||||
(function (MASK_TYPES) {
|
||||
MASK_TYPES[MASK_TYPES["NONE"] = 0] = "NONE";
|
||||
MASK_TYPES[MASK_TYPES["SCISSOR"] = 1] = "SCISSOR";
|
||||
MASK_TYPES[MASK_TYPES["STENCIL"] = 2] = "STENCIL";
|
||||
MASK_TYPES[MASK_TYPES["SPRITE"] = 3] = "SPRITE";
|
||||
MASK_TYPES[MASK_TYPES["COLOR"] = 4] = "COLOR";
|
||||
})(exports.MASK_TYPES || (exports.MASK_TYPES = {}));
|
||||
/**
|
||||
* Bitwise OR of masks that indicate the color channels that are rendered to.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name COLOR_MASK_BITS
|
||||
* @enum {number}
|
||||
* @property {number} RED - Red channel.
|
||||
* @property {number} GREEN - Green channel
|
||||
* @property {number} BLUE - Blue channel.
|
||||
* @property {number} ALPHA - Alpha channel.
|
||||
*/
|
||||
exports.COLOR_MASK_BITS = void 0;
|
||||
(function (COLOR_MASK_BITS) {
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["RED"] = 1] = "RED";
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["GREEN"] = 2] = "GREEN";
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["BLUE"] = 4] = "BLUE";
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["ALPHA"] = 8] = "ALPHA";
|
||||
})(exports.COLOR_MASK_BITS || (exports.COLOR_MASK_BITS = {}));
|
||||
/**
|
||||
* Constants for multi-sampling antialiasing.
|
||||
* @see PIXI.Framebuffer#multisample
|
||||
* @name MSAA_QUALITY
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NONE - No multisampling for this renderTexture
|
||||
* @property {number} LOW - Try 2 samples
|
||||
* @property {number} MEDIUM - Try 4 samples
|
||||
* @property {number} HIGH - Try 8 samples
|
||||
*/
|
||||
exports.MSAA_QUALITY = void 0;
|
||||
(function (MSAA_QUALITY) {
|
||||
MSAA_QUALITY[MSAA_QUALITY["NONE"] = 0] = "NONE";
|
||||
MSAA_QUALITY[MSAA_QUALITY["LOW"] = 2] = "LOW";
|
||||
MSAA_QUALITY[MSAA_QUALITY["MEDIUM"] = 4] = "MEDIUM";
|
||||
MSAA_QUALITY[MSAA_QUALITY["HIGH"] = 8] = "HIGH";
|
||||
})(exports.MSAA_QUALITY || (exports.MSAA_QUALITY = {}));
|
||||
/**
|
||||
* Constants for various buffer types in Pixi
|
||||
* @see PIXI.BUFFER_TYPE
|
||||
* @name BUFFER_TYPE
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} ELEMENT_ARRAY_BUFFER - buffer type for using as an index buffer
|
||||
* @property {number} ARRAY_BUFFER - buffer type for using attribute data
|
||||
* @property {number} UNIFORM_BUFFER - the buffer type is for uniform buffer objects
|
||||
*/
|
||||
exports.BUFFER_TYPE = void 0;
|
||||
(function (BUFFER_TYPE) {
|
||||
BUFFER_TYPE[BUFFER_TYPE["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
|
||||
BUFFER_TYPE[BUFFER_TYPE["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
|
||||
// NOT YET SUPPORTED
|
||||
BUFFER_TYPE[BUFFER_TYPE["UNIFORM_BUFFER"] = 35345] = "UNIFORM_BUFFER";
|
||||
})(exports.BUFFER_TYPE || (exports.BUFFER_TYPE = {}));
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
return exports;
|
||||
|
||||
})({});
|
||||
Object.assign(this.PIXI, _pixi_constants);
|
||||
//# sourceMappingURL=constants.js.map
|
||||
1
live2d/node_modules/@pixi/constants/dist/browser/constants.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/constants/dist/browser/constants.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/constants/dist/browser/constants.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/constants/dist/browser/constants.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/constants/dist/browser/constants.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/constants/dist/browser/constants.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
518
live2d/node_modules/@pixi/constants/dist/cjs/constants.js
generated
vendored
Normal file
518
live2d/node_modules/@pixi/constants/dist/cjs/constants.js
generated
vendored
Normal file
@@ -0,0 +1,518 @@
|
||||
/*!
|
||||
* @pixi/constants - v6.5.10
|
||||
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||||
*
|
||||
* @pixi/constants is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
/**
|
||||
* Different types of environments for WebGL.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name ENV
|
||||
* @enum {number}
|
||||
* @property {number} WEBGL_LEGACY - Used for older v1 WebGL devices. PixiJS will aim to ensure compatibility
|
||||
* with older / less advanced devices. If you experience unexplained flickering prefer this environment.
|
||||
* @property {number} WEBGL - Version 1 of WebGL
|
||||
* @property {number} WEBGL2 - Version 2 of WebGL
|
||||
*/
|
||||
exports.ENV = void 0;
|
||||
(function (ENV) {
|
||||
ENV[ENV["WEBGL_LEGACY"] = 0] = "WEBGL_LEGACY";
|
||||
ENV[ENV["WEBGL"] = 1] = "WEBGL";
|
||||
ENV[ENV["WEBGL2"] = 2] = "WEBGL2";
|
||||
})(exports.ENV || (exports.ENV = {}));
|
||||
/**
|
||||
* Constant to identify the Renderer Type.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name RENDERER_TYPE
|
||||
* @enum {number}
|
||||
* @property {number} UNKNOWN - Unknown render type.
|
||||
* @property {number} WEBGL - WebGL render type.
|
||||
* @property {number} CANVAS - Canvas render type.
|
||||
*/
|
||||
exports.RENDERER_TYPE = void 0;
|
||||
(function (RENDERER_TYPE) {
|
||||
RENDERER_TYPE[RENDERER_TYPE["UNKNOWN"] = 0] = "UNKNOWN";
|
||||
RENDERER_TYPE[RENDERER_TYPE["WEBGL"] = 1] = "WEBGL";
|
||||
RENDERER_TYPE[RENDERER_TYPE["CANVAS"] = 2] = "CANVAS";
|
||||
})(exports.RENDERER_TYPE || (exports.RENDERER_TYPE = {}));
|
||||
/**
|
||||
* Bitwise OR of masks that indicate the buffers to be cleared.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name BUFFER_BITS
|
||||
* @enum {number}
|
||||
* @property {number} COLOR - Indicates the buffers currently enabled for color writing.
|
||||
* @property {number} DEPTH - Indicates the depth buffer.
|
||||
* @property {number} STENCIL - Indicates the stencil buffer.
|
||||
*/
|
||||
exports.BUFFER_BITS = void 0;
|
||||
(function (BUFFER_BITS) {
|
||||
BUFFER_BITS[BUFFER_BITS["COLOR"] = 16384] = "COLOR";
|
||||
BUFFER_BITS[BUFFER_BITS["DEPTH"] = 256] = "DEPTH";
|
||||
BUFFER_BITS[BUFFER_BITS["STENCIL"] = 1024] = "STENCIL";
|
||||
})(exports.BUFFER_BITS || (exports.BUFFER_BITS = {}));
|
||||
/**
|
||||
* Various blend modes supported by PIXI.
|
||||
*
|
||||
* IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
|
||||
* Anything else will silently act like NORMAL.
|
||||
* @memberof PIXI
|
||||
* @name BLEND_MODES
|
||||
* @enum {number}
|
||||
* @property {number} NORMAL -
|
||||
* @property {number} ADD -
|
||||
* @property {number} MULTIPLY -
|
||||
* @property {number} SCREEN -
|
||||
* @property {number} OVERLAY -
|
||||
* @property {number} DARKEN -
|
||||
* @property {number} LIGHTEN -
|
||||
* @property {number} COLOR_DODGE -
|
||||
* @property {number} COLOR_BURN -
|
||||
* @property {number} HARD_LIGHT -
|
||||
* @property {number} SOFT_LIGHT -
|
||||
* @property {number} DIFFERENCE -
|
||||
* @property {number} EXCLUSION -
|
||||
* @property {number} HUE -
|
||||
* @property {number} SATURATION -
|
||||
* @property {number} COLOR -
|
||||
* @property {number} LUMINOSITY -
|
||||
* @property {number} NORMAL_NPM -
|
||||
* @property {number} ADD_NPM -
|
||||
* @property {number} SCREEN_NPM -
|
||||
* @property {number} NONE -
|
||||
* @property {number} SRC_IN -
|
||||
* @property {number} SRC_OUT -
|
||||
* @property {number} SRC_ATOP -
|
||||
* @property {number} DST_OVER -
|
||||
* @property {number} DST_IN -
|
||||
* @property {number} DST_OUT -
|
||||
* @property {number} DST_ATOP -
|
||||
* @property {number} SUBTRACT -
|
||||
* @property {number} SRC_OVER -
|
||||
* @property {number} ERASE -
|
||||
* @property {number} XOR -
|
||||
*/
|
||||
exports.BLEND_MODES = void 0;
|
||||
(function (BLEND_MODES) {
|
||||
BLEND_MODES[BLEND_MODES["NORMAL"] = 0] = "NORMAL";
|
||||
BLEND_MODES[BLEND_MODES["ADD"] = 1] = "ADD";
|
||||
BLEND_MODES[BLEND_MODES["MULTIPLY"] = 2] = "MULTIPLY";
|
||||
BLEND_MODES[BLEND_MODES["SCREEN"] = 3] = "SCREEN";
|
||||
BLEND_MODES[BLEND_MODES["OVERLAY"] = 4] = "OVERLAY";
|
||||
BLEND_MODES[BLEND_MODES["DARKEN"] = 5] = "DARKEN";
|
||||
BLEND_MODES[BLEND_MODES["LIGHTEN"] = 6] = "LIGHTEN";
|
||||
BLEND_MODES[BLEND_MODES["COLOR_DODGE"] = 7] = "COLOR_DODGE";
|
||||
BLEND_MODES[BLEND_MODES["COLOR_BURN"] = 8] = "COLOR_BURN";
|
||||
BLEND_MODES[BLEND_MODES["HARD_LIGHT"] = 9] = "HARD_LIGHT";
|
||||
BLEND_MODES[BLEND_MODES["SOFT_LIGHT"] = 10] = "SOFT_LIGHT";
|
||||
BLEND_MODES[BLEND_MODES["DIFFERENCE"] = 11] = "DIFFERENCE";
|
||||
BLEND_MODES[BLEND_MODES["EXCLUSION"] = 12] = "EXCLUSION";
|
||||
BLEND_MODES[BLEND_MODES["HUE"] = 13] = "HUE";
|
||||
BLEND_MODES[BLEND_MODES["SATURATION"] = 14] = "SATURATION";
|
||||
BLEND_MODES[BLEND_MODES["COLOR"] = 15] = "COLOR";
|
||||
BLEND_MODES[BLEND_MODES["LUMINOSITY"] = 16] = "LUMINOSITY";
|
||||
BLEND_MODES[BLEND_MODES["NORMAL_NPM"] = 17] = "NORMAL_NPM";
|
||||
BLEND_MODES[BLEND_MODES["ADD_NPM"] = 18] = "ADD_NPM";
|
||||
BLEND_MODES[BLEND_MODES["SCREEN_NPM"] = 19] = "SCREEN_NPM";
|
||||
BLEND_MODES[BLEND_MODES["NONE"] = 20] = "NONE";
|
||||
BLEND_MODES[BLEND_MODES["SRC_OVER"] = 0] = "SRC_OVER";
|
||||
BLEND_MODES[BLEND_MODES["SRC_IN"] = 21] = "SRC_IN";
|
||||
BLEND_MODES[BLEND_MODES["SRC_OUT"] = 22] = "SRC_OUT";
|
||||
BLEND_MODES[BLEND_MODES["SRC_ATOP"] = 23] = "SRC_ATOP";
|
||||
BLEND_MODES[BLEND_MODES["DST_OVER"] = 24] = "DST_OVER";
|
||||
BLEND_MODES[BLEND_MODES["DST_IN"] = 25] = "DST_IN";
|
||||
BLEND_MODES[BLEND_MODES["DST_OUT"] = 26] = "DST_OUT";
|
||||
BLEND_MODES[BLEND_MODES["DST_ATOP"] = 27] = "DST_ATOP";
|
||||
BLEND_MODES[BLEND_MODES["ERASE"] = 26] = "ERASE";
|
||||
BLEND_MODES[BLEND_MODES["SUBTRACT"] = 28] = "SUBTRACT";
|
||||
BLEND_MODES[BLEND_MODES["XOR"] = 29] = "XOR";
|
||||
})(exports.BLEND_MODES || (exports.BLEND_MODES = {}));
|
||||
/**
|
||||
* Various webgl draw modes. These can be used to specify which GL drawMode to use
|
||||
* under certain situations and renderers.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name DRAW_MODES
|
||||
* @enum {number}
|
||||
* @property {number} POINTS -
|
||||
* @property {number} LINES -
|
||||
* @property {number} LINE_LOOP -
|
||||
* @property {number} LINE_STRIP -
|
||||
* @property {number} TRIANGLES -
|
||||
* @property {number} TRIANGLE_STRIP -
|
||||
* @property {number} TRIANGLE_FAN -
|
||||
*/
|
||||
exports.DRAW_MODES = void 0;
|
||||
(function (DRAW_MODES) {
|
||||
DRAW_MODES[DRAW_MODES["POINTS"] = 0] = "POINTS";
|
||||
DRAW_MODES[DRAW_MODES["LINES"] = 1] = "LINES";
|
||||
DRAW_MODES[DRAW_MODES["LINE_LOOP"] = 2] = "LINE_LOOP";
|
||||
DRAW_MODES[DRAW_MODES["LINE_STRIP"] = 3] = "LINE_STRIP";
|
||||
DRAW_MODES[DRAW_MODES["TRIANGLES"] = 4] = "TRIANGLES";
|
||||
DRAW_MODES[DRAW_MODES["TRIANGLE_STRIP"] = 5] = "TRIANGLE_STRIP";
|
||||
DRAW_MODES[DRAW_MODES["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
|
||||
})(exports.DRAW_MODES || (exports.DRAW_MODES = {}));
|
||||
/**
|
||||
* Various GL texture/resources formats.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name FORMATS
|
||||
* @enum {number}
|
||||
* @property {number} [RGBA=6408] -
|
||||
* @property {number} [RGB=6407] -
|
||||
* @property {number} [RG=33319] -
|
||||
* @property {number} [RED=6403] -
|
||||
* @property {number} [RGBA_INTEGER=36249] -
|
||||
* @property {number} [RGB_INTEGER=36248] -
|
||||
* @property {number} [RG_INTEGER=33320] -
|
||||
* @property {number} [RED_INTEGER=36244] -
|
||||
* @property {number} [ALPHA=6406] -
|
||||
* @property {number} [LUMINANCE=6409] -
|
||||
* @property {number} [LUMINANCE_ALPHA=6410] -
|
||||
* @property {number} [DEPTH_COMPONENT=6402] -
|
||||
* @property {number} [DEPTH_STENCIL=34041] -
|
||||
*/
|
||||
exports.FORMATS = void 0;
|
||||
(function (FORMATS) {
|
||||
FORMATS[FORMATS["RGBA"] = 6408] = "RGBA";
|
||||
FORMATS[FORMATS["RGB"] = 6407] = "RGB";
|
||||
FORMATS[FORMATS["RG"] = 33319] = "RG";
|
||||
FORMATS[FORMATS["RED"] = 6403] = "RED";
|
||||
FORMATS[FORMATS["RGBA_INTEGER"] = 36249] = "RGBA_INTEGER";
|
||||
FORMATS[FORMATS["RGB_INTEGER"] = 36248] = "RGB_INTEGER";
|
||||
FORMATS[FORMATS["RG_INTEGER"] = 33320] = "RG_INTEGER";
|
||||
FORMATS[FORMATS["RED_INTEGER"] = 36244] = "RED_INTEGER";
|
||||
FORMATS[FORMATS["ALPHA"] = 6406] = "ALPHA";
|
||||
FORMATS[FORMATS["LUMINANCE"] = 6409] = "LUMINANCE";
|
||||
FORMATS[FORMATS["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
|
||||
FORMATS[FORMATS["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
|
||||
FORMATS[FORMATS["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
|
||||
})(exports.FORMATS || (exports.FORMATS = {}));
|
||||
/**
|
||||
* Various GL target types.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name TARGETS
|
||||
* @enum {number}
|
||||
* @property {number} [TEXTURE_2D=3553] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP=34067] -
|
||||
* @property {number} [TEXTURE_2D_ARRAY=35866] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_X=34069] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_X=34070] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_Y=34071] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_Y=34072] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_Z=34073] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_Z=34074] -
|
||||
*/
|
||||
exports.TARGETS = void 0;
|
||||
(function (TARGETS) {
|
||||
TARGETS[TARGETS["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
|
||||
TARGETS[TARGETS["TEXTURE_2D_ARRAY"] = 35866] = "TEXTURE_2D_ARRAY";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_X"] = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_X"] = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Y"] = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Y"] = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Z"] = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Z"] = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
|
||||
})(exports.TARGETS || (exports.TARGETS = {}));
|
||||
/**
|
||||
* Various GL data format types.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name TYPES
|
||||
* @enum {number}
|
||||
* @property {number} [UNSIGNED_BYTE=5121] -
|
||||
* @property {number} [UNSIGNED_SHORT=5123] -
|
||||
* @property {number} [UNSIGNED_SHORT_5_6_5=33635] -
|
||||
* @property {number} [UNSIGNED_SHORT_4_4_4_4=32819] -
|
||||
* @property {number} [UNSIGNED_SHORT_5_5_5_1=32820] -
|
||||
* @property {number} [UNSIGNED_INT=5125] -
|
||||
* @property {number} [UNSIGNED_INT_10F_11F_11F_REV=35899] -
|
||||
* @property {number} [UNSIGNED_INT_2_10_10_10_REV=33640] -
|
||||
* @property {number} [UNSIGNED_INT_24_8=34042] -
|
||||
* @property {number} [UNSIGNED_INT_5_9_9_9_REV=35902] -
|
||||
* @property {number} [BYTE=5120] -
|
||||
* @property {number} [SHORT=5122] -
|
||||
* @property {number} [INT=5124] -
|
||||
* @property {number} [FLOAT=5126] -
|
||||
* @property {number} [FLOAT_32_UNSIGNED_INT_24_8_REV=36269] -
|
||||
* @property {number} [HALF_FLOAT=36193] -
|
||||
*/
|
||||
exports.TYPES = void 0;
|
||||
(function (TYPES) {
|
||||
TYPES[TYPES["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
||||
TYPES[TYPES["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
||||
TYPES[TYPES["UNSIGNED_SHORT_5_6_5"] = 33635] = "UNSIGNED_SHORT_5_6_5";
|
||||
TYPES[TYPES["UNSIGNED_SHORT_4_4_4_4"] = 32819] = "UNSIGNED_SHORT_4_4_4_4";
|
||||
TYPES[TYPES["UNSIGNED_SHORT_5_5_5_1"] = 32820] = "UNSIGNED_SHORT_5_5_5_1";
|
||||
TYPES[TYPES["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
|
||||
TYPES[TYPES["UNSIGNED_INT_10F_11F_11F_REV"] = 35899] = "UNSIGNED_INT_10F_11F_11F_REV";
|
||||
TYPES[TYPES["UNSIGNED_INT_2_10_10_10_REV"] = 33640] = "UNSIGNED_INT_2_10_10_10_REV";
|
||||
TYPES[TYPES["UNSIGNED_INT_24_8"] = 34042] = "UNSIGNED_INT_24_8";
|
||||
TYPES[TYPES["UNSIGNED_INT_5_9_9_9_REV"] = 35902] = "UNSIGNED_INT_5_9_9_9_REV";
|
||||
TYPES[TYPES["BYTE"] = 5120] = "BYTE";
|
||||
TYPES[TYPES["SHORT"] = 5122] = "SHORT";
|
||||
TYPES[TYPES["INT"] = 5124] = "INT";
|
||||
TYPES[TYPES["FLOAT"] = 5126] = "FLOAT";
|
||||
TYPES[TYPES["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
|
||||
TYPES[TYPES["HALF_FLOAT"] = 36193] = "HALF_FLOAT";
|
||||
})(exports.TYPES || (exports.TYPES = {}));
|
||||
/**
|
||||
* Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
|
||||
* WebGL1 works only with FLOAT.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name SAMPLER_TYPES
|
||||
* @enum {number}
|
||||
* @property {number} [FLOAT=0] -
|
||||
* @property {number} [INT=1] -
|
||||
* @property {number} [UINT=2] -
|
||||
*/
|
||||
exports.SAMPLER_TYPES = void 0;
|
||||
(function (SAMPLER_TYPES) {
|
||||
SAMPLER_TYPES[SAMPLER_TYPES["FLOAT"] = 0] = "FLOAT";
|
||||
SAMPLER_TYPES[SAMPLER_TYPES["INT"] = 1] = "INT";
|
||||
SAMPLER_TYPES[SAMPLER_TYPES["UINT"] = 2] = "UINT";
|
||||
})(exports.SAMPLER_TYPES || (exports.SAMPLER_TYPES = {}));
|
||||
/**
|
||||
* The scale modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.SCALE_MODE} scale mode affects the default scaling mode of future operations.
|
||||
* It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name SCALE_MODES
|
||||
* @enum {number}
|
||||
* @property {number} LINEAR Smooth scaling
|
||||
* @property {number} NEAREST Pixelating scaling
|
||||
*/
|
||||
exports.SCALE_MODES = void 0;
|
||||
(function (SCALE_MODES) {
|
||||
SCALE_MODES[SCALE_MODES["NEAREST"] = 0] = "NEAREST";
|
||||
SCALE_MODES[SCALE_MODES["LINEAR"] = 1] = "LINEAR";
|
||||
})(exports.SCALE_MODES || (exports.SCALE_MODES = {}));
|
||||
/**
|
||||
* The wrap modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.WRAP_MODE} wrap mode affects the default wrapping mode of future operations.
|
||||
* It can be re-assigned to either CLAMP or REPEAT, depending upon suitability.
|
||||
* If the texture is non power of two then clamp will be used regardless as WebGL can
|
||||
* only use REPEAT if the texture is po2.
|
||||
*
|
||||
* This property only affects WebGL.
|
||||
* @name WRAP_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} CLAMP - The textures uvs are clamped
|
||||
* @property {number} REPEAT - The texture uvs tile and repeat
|
||||
* @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring
|
||||
*/
|
||||
exports.WRAP_MODES = void 0;
|
||||
(function (WRAP_MODES) {
|
||||
WRAP_MODES[WRAP_MODES["CLAMP"] = 33071] = "CLAMP";
|
||||
WRAP_MODES[WRAP_MODES["REPEAT"] = 10497] = "REPEAT";
|
||||
WRAP_MODES[WRAP_MODES["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
|
||||
})(exports.WRAP_MODES || (exports.WRAP_MODES = {}));
|
||||
/**
|
||||
* Mipmap filtering modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.MIPMAP_TEXTURES} affects default texture filtering.
|
||||
* Mipmaps are generated for a baseTexture if its `mipmap` field is `ON`,
|
||||
* or its `POW2` and texture dimensions are powers of 2.
|
||||
* Due to platform restriction, `ON` option will work like `POW2` for webgl-1.
|
||||
*
|
||||
* This property only affects WebGL.
|
||||
* @name MIPMAP_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} OFF - No mipmaps
|
||||
* @property {number} POW2 - Generate mipmaps if texture dimensions are pow2
|
||||
* @property {number} ON - Always generate mipmaps
|
||||
* @property {number} ON_MANUAL - Use mipmaps, but do not auto-generate them; this is used with a resource
|
||||
* that supports buffering each level-of-detail.
|
||||
*/
|
||||
exports.MIPMAP_MODES = void 0;
|
||||
(function (MIPMAP_MODES) {
|
||||
MIPMAP_MODES[MIPMAP_MODES["OFF"] = 0] = "OFF";
|
||||
MIPMAP_MODES[MIPMAP_MODES["POW2"] = 1] = "POW2";
|
||||
MIPMAP_MODES[MIPMAP_MODES["ON"] = 2] = "ON";
|
||||
MIPMAP_MODES[MIPMAP_MODES["ON_MANUAL"] = 3] = "ON_MANUAL";
|
||||
})(exports.MIPMAP_MODES || (exports.MIPMAP_MODES = {}));
|
||||
/**
|
||||
* How to treat textures with premultiplied alpha
|
||||
* @name ALPHA_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NO_PREMULTIPLIED_ALPHA - Source is not premultiplied, leave it like that.
|
||||
* Option for compressed and data textures that are created from typed arrays.
|
||||
* @property {number} PREMULTIPLY_ON_UPLOAD - Source is not premultiplied, premultiply on upload.
|
||||
* Default option, used for all loaded images.
|
||||
* @property {number} PREMULTIPLIED_ALPHA - Source is already premultiplied
|
||||
* Example: spine atlases with `_pma` suffix.
|
||||
* @property {number} NPM - Alias for NO_PREMULTIPLIED_ALPHA.
|
||||
* @property {number} UNPACK - Default option, alias for PREMULTIPLY_ON_UPLOAD.
|
||||
* @property {number} PMA - Alias for PREMULTIPLIED_ALPHA.
|
||||
*/
|
||||
exports.ALPHA_MODES = void 0;
|
||||
(function (ALPHA_MODES) {
|
||||
ALPHA_MODES[ALPHA_MODES["NPM"] = 0] = "NPM";
|
||||
ALPHA_MODES[ALPHA_MODES["UNPACK"] = 1] = "UNPACK";
|
||||
ALPHA_MODES[ALPHA_MODES["PMA"] = 2] = "PMA";
|
||||
ALPHA_MODES[ALPHA_MODES["NO_PREMULTIPLIED_ALPHA"] = 0] = "NO_PREMULTIPLIED_ALPHA";
|
||||
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ON_UPLOAD"] = 1] = "PREMULTIPLY_ON_UPLOAD";
|
||||
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ALPHA"] = 2] = "PREMULTIPLY_ALPHA";
|
||||
ALPHA_MODES[ALPHA_MODES["PREMULTIPLIED_ALPHA"] = 2] = "PREMULTIPLIED_ALPHA";
|
||||
})(exports.ALPHA_MODES || (exports.ALPHA_MODES = {}));
|
||||
/**
|
||||
* Configure whether filter textures are cleared after binding.
|
||||
*
|
||||
* Filter textures need not be cleared if the filter does not use pixel blending. {@link CLEAR_MODES.BLIT} will detect
|
||||
* this and skip clearing as an optimization.
|
||||
* @name CLEAR_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} BLEND - Do not clear the filter texture. The filter's output will blend on top of the output texture.
|
||||
* @property {number} CLEAR - Always clear the filter texture.
|
||||
* @property {number} BLIT - Clear only if {@link FilterSystem.forceClear} is set or if the filter uses pixel blending.
|
||||
* @property {number} NO - Alias for BLEND, same as `false` in earlier versions
|
||||
* @property {number} YES - Alias for CLEAR, same as `true` in earlier versions
|
||||
* @property {number} AUTO - Alias for BLIT
|
||||
*/
|
||||
exports.CLEAR_MODES = void 0;
|
||||
(function (CLEAR_MODES) {
|
||||
CLEAR_MODES[CLEAR_MODES["NO"] = 0] = "NO";
|
||||
CLEAR_MODES[CLEAR_MODES["YES"] = 1] = "YES";
|
||||
CLEAR_MODES[CLEAR_MODES["AUTO"] = 2] = "AUTO";
|
||||
CLEAR_MODES[CLEAR_MODES["BLEND"] = 0] = "BLEND";
|
||||
CLEAR_MODES[CLEAR_MODES["CLEAR"] = 1] = "CLEAR";
|
||||
CLEAR_MODES[CLEAR_MODES["BLIT"] = 2] = "BLIT";
|
||||
})(exports.CLEAR_MODES || (exports.CLEAR_MODES = {}));
|
||||
/**
|
||||
* The gc modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.GC_MODE} Garbage Collection mode for PixiJS textures is AUTO
|
||||
* If set to GC_MODE, the renderer will occasionally check textures usage. If they are not
|
||||
* used for a specified period of time they will be removed from the GPU. They will of course
|
||||
* be uploaded again when they are required. This is a silent behind the scenes process that
|
||||
* should ensure that the GPU does not get filled up.
|
||||
*
|
||||
* Handy for mobile devices!
|
||||
* This property only affects WebGL.
|
||||
* @name GC_MODES
|
||||
* @enum {number}
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @property {number} AUTO - Garbage collection will happen periodically automatically
|
||||
* @property {number} MANUAL - Garbage collection will need to be called manually
|
||||
*/
|
||||
exports.GC_MODES = void 0;
|
||||
(function (GC_MODES) {
|
||||
GC_MODES[GC_MODES["AUTO"] = 0] = "AUTO";
|
||||
GC_MODES[GC_MODES["MANUAL"] = 1] = "MANUAL";
|
||||
})(exports.GC_MODES || (exports.GC_MODES = {}));
|
||||
/**
|
||||
* Constants that specify float precision in shaders.
|
||||
* @name PRECISION
|
||||
* @memberof PIXI
|
||||
* @constant
|
||||
* @static
|
||||
* @enum {string}
|
||||
* @property {string} [LOW='lowp'] -
|
||||
* @property {string} [MEDIUM='mediump'] -
|
||||
* @property {string} [HIGH='highp'] -
|
||||
*/
|
||||
exports.PRECISION = void 0;
|
||||
(function (PRECISION) {
|
||||
PRECISION["LOW"] = "lowp";
|
||||
PRECISION["MEDIUM"] = "mediump";
|
||||
PRECISION["HIGH"] = "highp";
|
||||
})(exports.PRECISION || (exports.PRECISION = {}));
|
||||
/**
|
||||
* Constants for mask implementations.
|
||||
* We use `type` suffix because it leads to very different behaviours
|
||||
* @name MASK_TYPES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NONE - Mask is ignored
|
||||
* @property {number} SCISSOR - Scissor mask, rectangle on screen, cheap
|
||||
* @property {number} STENCIL - Stencil mask, 1-bit, medium, works only if renderer supports stencil
|
||||
* @property {number} SPRITE - Mask that uses SpriteMaskFilter, uses temporary RenderTexture
|
||||
* @property {number} COLOR - Color mask (RGBA)
|
||||
*/
|
||||
exports.MASK_TYPES = void 0;
|
||||
(function (MASK_TYPES) {
|
||||
MASK_TYPES[MASK_TYPES["NONE"] = 0] = "NONE";
|
||||
MASK_TYPES[MASK_TYPES["SCISSOR"] = 1] = "SCISSOR";
|
||||
MASK_TYPES[MASK_TYPES["STENCIL"] = 2] = "STENCIL";
|
||||
MASK_TYPES[MASK_TYPES["SPRITE"] = 3] = "SPRITE";
|
||||
MASK_TYPES[MASK_TYPES["COLOR"] = 4] = "COLOR";
|
||||
})(exports.MASK_TYPES || (exports.MASK_TYPES = {}));
|
||||
/**
|
||||
* Bitwise OR of masks that indicate the color channels that are rendered to.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name COLOR_MASK_BITS
|
||||
* @enum {number}
|
||||
* @property {number} RED - Red channel.
|
||||
* @property {number} GREEN - Green channel
|
||||
* @property {number} BLUE - Blue channel.
|
||||
* @property {number} ALPHA - Alpha channel.
|
||||
*/
|
||||
exports.COLOR_MASK_BITS = void 0;
|
||||
(function (COLOR_MASK_BITS) {
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["RED"] = 1] = "RED";
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["GREEN"] = 2] = "GREEN";
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["BLUE"] = 4] = "BLUE";
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["ALPHA"] = 8] = "ALPHA";
|
||||
})(exports.COLOR_MASK_BITS || (exports.COLOR_MASK_BITS = {}));
|
||||
/**
|
||||
* Constants for multi-sampling antialiasing.
|
||||
* @see PIXI.Framebuffer#multisample
|
||||
* @name MSAA_QUALITY
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NONE - No multisampling for this renderTexture
|
||||
* @property {number} LOW - Try 2 samples
|
||||
* @property {number} MEDIUM - Try 4 samples
|
||||
* @property {number} HIGH - Try 8 samples
|
||||
*/
|
||||
exports.MSAA_QUALITY = void 0;
|
||||
(function (MSAA_QUALITY) {
|
||||
MSAA_QUALITY[MSAA_QUALITY["NONE"] = 0] = "NONE";
|
||||
MSAA_QUALITY[MSAA_QUALITY["LOW"] = 2] = "LOW";
|
||||
MSAA_QUALITY[MSAA_QUALITY["MEDIUM"] = 4] = "MEDIUM";
|
||||
MSAA_QUALITY[MSAA_QUALITY["HIGH"] = 8] = "HIGH";
|
||||
})(exports.MSAA_QUALITY || (exports.MSAA_QUALITY = {}));
|
||||
/**
|
||||
* Constants for various buffer types in Pixi
|
||||
* @see PIXI.BUFFER_TYPE
|
||||
* @name BUFFER_TYPE
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} ELEMENT_ARRAY_BUFFER - buffer type for using as an index buffer
|
||||
* @property {number} ARRAY_BUFFER - buffer type for using attribute data
|
||||
* @property {number} UNIFORM_BUFFER - the buffer type is for uniform buffer objects
|
||||
*/
|
||||
exports.BUFFER_TYPE = void 0;
|
||||
(function (BUFFER_TYPE) {
|
||||
BUFFER_TYPE[BUFFER_TYPE["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
|
||||
BUFFER_TYPE[BUFFER_TYPE["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
|
||||
// NOT YET SUPPORTED
|
||||
BUFFER_TYPE[BUFFER_TYPE["UNIFORM_BUFFER"] = 35345] = "UNIFORM_BUFFER";
|
||||
})(exports.BUFFER_TYPE || (exports.BUFFER_TYPE = {}));
|
||||
//# sourceMappingURL=constants.js.map
|
||||
1
live2d/node_modules/@pixi/constants/dist/cjs/constants.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/constants/dist/cjs/constants.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/constants/dist/cjs/constants.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/constants/dist/cjs/constants.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/constants/dist/cjs/constants.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/constants/dist/cjs/constants.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/constants/dist/esm/constants.min.mjs
generated
vendored
Normal file
9
live2d/node_modules/@pixi/constants/dist/esm/constants.min.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*!
|
||||
* @pixi/constants - v6.5.10
|
||||
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||||
*
|
||||
* @pixi/constants is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
var E,_,N,T,R,I,A,L,O,U,S,P,D,G,C,M,B,H,F,n;!function(E){E[E.WEBGL_LEGACY=0]="WEBGL_LEGACY",E[E.WEBGL=1]="WEBGL",E[E.WEBGL2=2]="WEBGL2"}(E||(E={})),function(E){E[E.UNKNOWN=0]="UNKNOWN",E[E.WEBGL=1]="WEBGL",E[E.CANVAS=2]="CANVAS"}(_||(_={})),function(E){E[E.COLOR=16384]="COLOR",E[E.DEPTH=256]="DEPTH",E[E.STENCIL=1024]="STENCIL"}(N||(N={})),function(E){E[E.NORMAL=0]="NORMAL",E[E.ADD=1]="ADD",E[E.MULTIPLY=2]="MULTIPLY",E[E.SCREEN=3]="SCREEN",E[E.OVERLAY=4]="OVERLAY",E[E.DARKEN=5]="DARKEN",E[E.LIGHTEN=6]="LIGHTEN",E[E.COLOR_DODGE=7]="COLOR_DODGE",E[E.COLOR_BURN=8]="COLOR_BURN",E[E.HARD_LIGHT=9]="HARD_LIGHT",E[E.SOFT_LIGHT=10]="SOFT_LIGHT",E[E.DIFFERENCE=11]="DIFFERENCE",E[E.EXCLUSION=12]="EXCLUSION",E[E.HUE=13]="HUE",E[E.SATURATION=14]="SATURATION",E[E.COLOR=15]="COLOR",E[E.LUMINOSITY=16]="LUMINOSITY",E[E.NORMAL_NPM=17]="NORMAL_NPM",E[E.ADD_NPM=18]="ADD_NPM",E[E.SCREEN_NPM=19]="SCREEN_NPM",E[E.NONE=20]="NONE",E[E.SRC_OVER=0]="SRC_OVER",E[E.SRC_IN=21]="SRC_IN",E[E.SRC_OUT=22]="SRC_OUT",E[E.SRC_ATOP=23]="SRC_ATOP",E[E.DST_OVER=24]="DST_OVER",E[E.DST_IN=25]="DST_IN",E[E.DST_OUT=26]="DST_OUT",E[E.DST_ATOP=27]="DST_ATOP",E[E.ERASE=26]="ERASE",E[E.SUBTRACT=28]="SUBTRACT",E[E.XOR=29]="XOR"}(T||(T={})),function(E){E[E.POINTS=0]="POINTS",E[E.LINES=1]="LINES",E[E.LINE_LOOP=2]="LINE_LOOP",E[E.LINE_STRIP=3]="LINE_STRIP",E[E.TRIANGLES=4]="TRIANGLES",E[E.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",E[E.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(R||(R={})),function(E){E[E.RGBA=6408]="RGBA",E[E.RGB=6407]="RGB",E[E.RG=33319]="RG",E[E.RED=6403]="RED",E[E.RGBA_INTEGER=36249]="RGBA_INTEGER",E[E.RGB_INTEGER=36248]="RGB_INTEGER",E[E.RG_INTEGER=33320]="RG_INTEGER",E[E.RED_INTEGER=36244]="RED_INTEGER",E[E.ALPHA=6406]="ALPHA",E[E.LUMINANCE=6409]="LUMINANCE",E[E.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",E[E.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",E[E.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(I||(I={})),function(E){E[E.TEXTURE_2D=3553]="TEXTURE_2D",E[E.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",E[E.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",E[E.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",E[E.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",E[E.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",E[E.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",E[E.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",E[E.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(A||(A={})),function(E){E[E.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",E[E.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",E[E.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",E[E.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",E[E.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",E[E.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",E[E.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",E[E.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",E[E.BYTE=5120]="BYTE",E[E.SHORT=5122]="SHORT",E[E.INT=5124]="INT",E[E.FLOAT=5126]="FLOAT",E[E.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",E[E.HALF_FLOAT=36193]="HALF_FLOAT"}(L||(L={})),function(E){E[E.FLOAT=0]="FLOAT",E[E.INT=1]="INT",E[E.UINT=2]="UINT"}(O||(O={})),function(E){E[E.NEAREST=0]="NEAREST",E[E.LINEAR=1]="LINEAR"}(U||(U={})),function(E){E[E.CLAMP=33071]="CLAMP",E[E.REPEAT=10497]="REPEAT",E[E.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(S||(S={})),function(E){E[E.OFF=0]="OFF",E[E.POW2=1]="POW2",E[E.ON=2]="ON",E[E.ON_MANUAL=3]="ON_MANUAL"}(P||(P={})),function(E){E[E.NPM=0]="NPM",E[E.UNPACK=1]="UNPACK",E[E.PMA=2]="PMA",E[E.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",E[E.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",E[E.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",E[E.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"}(D||(D={})),function(E){E[E.NO=0]="NO",E[E.YES=1]="YES",E[E.AUTO=2]="AUTO",E[E.BLEND=0]="BLEND",E[E.CLEAR=1]="CLEAR",E[E.BLIT=2]="BLIT"}(G||(G={})),function(E){E[E.AUTO=0]="AUTO",E[E.MANUAL=1]="MANUAL"}(C||(C={})),function(E){E.LOW="lowp",E.MEDIUM="mediump",E.HIGH="highp"}(M||(M={})),function(E){E[E.NONE=0]="NONE",E[E.SCISSOR=1]="SCISSOR",E[E.STENCIL=2]="STENCIL",E[E.SPRITE=3]="SPRITE",E[E.COLOR=4]="COLOR"}(B||(B={})),function(E){E[E.RED=1]="RED",E[E.GREEN=2]="GREEN",E[E.BLUE=4]="BLUE",E[E.ALPHA=8]="ALPHA"}(H||(H={})),function(E){E[E.NONE=0]="NONE",E[E.LOW=2]="LOW",E[E.MEDIUM=4]="MEDIUM",E[E.HIGH=8]="HIGH"}(F||(F={})),function(E){E[E.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",E[E.ARRAY_BUFFER=34962]="ARRAY_BUFFER",E[E.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(n||(n={}));export{D as ALPHA_MODES,T as BLEND_MODES,N as BUFFER_BITS,n as BUFFER_TYPE,G as CLEAR_MODES,H as COLOR_MASK_BITS,R as DRAW_MODES,E as ENV,I as FORMATS,C as GC_MODES,B as MASK_TYPES,P as MIPMAP_MODES,F as MSAA_QUALITY,M as PRECISION,_ as RENDERER_TYPE,O as SAMPLER_TYPES,U as SCALE_MODES,A as TARGETS,L as TYPES,S as WRAP_MODES};
|
||||
//# sourceMappingURL=constants.min.mjs.map
|
||||
1
live2d/node_modules/@pixi/constants/dist/esm/constants.min.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/constants/dist/esm/constants.min.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
516
live2d/node_modules/@pixi/constants/dist/esm/constants.mjs
generated
vendored
Normal file
516
live2d/node_modules/@pixi/constants/dist/esm/constants.mjs
generated
vendored
Normal file
@@ -0,0 +1,516 @@
|
||||
/*!
|
||||
* @pixi/constants - v6.5.10
|
||||
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||||
*
|
||||
* @pixi/constants is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
/**
|
||||
* Different types of environments for WebGL.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name ENV
|
||||
* @enum {number}
|
||||
* @property {number} WEBGL_LEGACY - Used for older v1 WebGL devices. PixiJS will aim to ensure compatibility
|
||||
* with older / less advanced devices. If you experience unexplained flickering prefer this environment.
|
||||
* @property {number} WEBGL - Version 1 of WebGL
|
||||
* @property {number} WEBGL2 - Version 2 of WebGL
|
||||
*/
|
||||
var ENV;
|
||||
(function (ENV) {
|
||||
ENV[ENV["WEBGL_LEGACY"] = 0] = "WEBGL_LEGACY";
|
||||
ENV[ENV["WEBGL"] = 1] = "WEBGL";
|
||||
ENV[ENV["WEBGL2"] = 2] = "WEBGL2";
|
||||
})(ENV || (ENV = {}));
|
||||
/**
|
||||
* Constant to identify the Renderer Type.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name RENDERER_TYPE
|
||||
* @enum {number}
|
||||
* @property {number} UNKNOWN - Unknown render type.
|
||||
* @property {number} WEBGL - WebGL render type.
|
||||
* @property {number} CANVAS - Canvas render type.
|
||||
*/
|
||||
var RENDERER_TYPE;
|
||||
(function (RENDERER_TYPE) {
|
||||
RENDERER_TYPE[RENDERER_TYPE["UNKNOWN"] = 0] = "UNKNOWN";
|
||||
RENDERER_TYPE[RENDERER_TYPE["WEBGL"] = 1] = "WEBGL";
|
||||
RENDERER_TYPE[RENDERER_TYPE["CANVAS"] = 2] = "CANVAS";
|
||||
})(RENDERER_TYPE || (RENDERER_TYPE = {}));
|
||||
/**
|
||||
* Bitwise OR of masks that indicate the buffers to be cleared.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name BUFFER_BITS
|
||||
* @enum {number}
|
||||
* @property {number} COLOR - Indicates the buffers currently enabled for color writing.
|
||||
* @property {number} DEPTH - Indicates the depth buffer.
|
||||
* @property {number} STENCIL - Indicates the stencil buffer.
|
||||
*/
|
||||
var BUFFER_BITS;
|
||||
(function (BUFFER_BITS) {
|
||||
BUFFER_BITS[BUFFER_BITS["COLOR"] = 16384] = "COLOR";
|
||||
BUFFER_BITS[BUFFER_BITS["DEPTH"] = 256] = "DEPTH";
|
||||
BUFFER_BITS[BUFFER_BITS["STENCIL"] = 1024] = "STENCIL";
|
||||
})(BUFFER_BITS || (BUFFER_BITS = {}));
|
||||
/**
|
||||
* Various blend modes supported by PIXI.
|
||||
*
|
||||
* IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
|
||||
* Anything else will silently act like NORMAL.
|
||||
* @memberof PIXI
|
||||
* @name BLEND_MODES
|
||||
* @enum {number}
|
||||
* @property {number} NORMAL -
|
||||
* @property {number} ADD -
|
||||
* @property {number} MULTIPLY -
|
||||
* @property {number} SCREEN -
|
||||
* @property {number} OVERLAY -
|
||||
* @property {number} DARKEN -
|
||||
* @property {number} LIGHTEN -
|
||||
* @property {number} COLOR_DODGE -
|
||||
* @property {number} COLOR_BURN -
|
||||
* @property {number} HARD_LIGHT -
|
||||
* @property {number} SOFT_LIGHT -
|
||||
* @property {number} DIFFERENCE -
|
||||
* @property {number} EXCLUSION -
|
||||
* @property {number} HUE -
|
||||
* @property {number} SATURATION -
|
||||
* @property {number} COLOR -
|
||||
* @property {number} LUMINOSITY -
|
||||
* @property {number} NORMAL_NPM -
|
||||
* @property {number} ADD_NPM -
|
||||
* @property {number} SCREEN_NPM -
|
||||
* @property {number} NONE -
|
||||
* @property {number} SRC_IN -
|
||||
* @property {number} SRC_OUT -
|
||||
* @property {number} SRC_ATOP -
|
||||
* @property {number} DST_OVER -
|
||||
* @property {number} DST_IN -
|
||||
* @property {number} DST_OUT -
|
||||
* @property {number} DST_ATOP -
|
||||
* @property {number} SUBTRACT -
|
||||
* @property {number} SRC_OVER -
|
||||
* @property {number} ERASE -
|
||||
* @property {number} XOR -
|
||||
*/
|
||||
var BLEND_MODES;
|
||||
(function (BLEND_MODES) {
|
||||
BLEND_MODES[BLEND_MODES["NORMAL"] = 0] = "NORMAL";
|
||||
BLEND_MODES[BLEND_MODES["ADD"] = 1] = "ADD";
|
||||
BLEND_MODES[BLEND_MODES["MULTIPLY"] = 2] = "MULTIPLY";
|
||||
BLEND_MODES[BLEND_MODES["SCREEN"] = 3] = "SCREEN";
|
||||
BLEND_MODES[BLEND_MODES["OVERLAY"] = 4] = "OVERLAY";
|
||||
BLEND_MODES[BLEND_MODES["DARKEN"] = 5] = "DARKEN";
|
||||
BLEND_MODES[BLEND_MODES["LIGHTEN"] = 6] = "LIGHTEN";
|
||||
BLEND_MODES[BLEND_MODES["COLOR_DODGE"] = 7] = "COLOR_DODGE";
|
||||
BLEND_MODES[BLEND_MODES["COLOR_BURN"] = 8] = "COLOR_BURN";
|
||||
BLEND_MODES[BLEND_MODES["HARD_LIGHT"] = 9] = "HARD_LIGHT";
|
||||
BLEND_MODES[BLEND_MODES["SOFT_LIGHT"] = 10] = "SOFT_LIGHT";
|
||||
BLEND_MODES[BLEND_MODES["DIFFERENCE"] = 11] = "DIFFERENCE";
|
||||
BLEND_MODES[BLEND_MODES["EXCLUSION"] = 12] = "EXCLUSION";
|
||||
BLEND_MODES[BLEND_MODES["HUE"] = 13] = "HUE";
|
||||
BLEND_MODES[BLEND_MODES["SATURATION"] = 14] = "SATURATION";
|
||||
BLEND_MODES[BLEND_MODES["COLOR"] = 15] = "COLOR";
|
||||
BLEND_MODES[BLEND_MODES["LUMINOSITY"] = 16] = "LUMINOSITY";
|
||||
BLEND_MODES[BLEND_MODES["NORMAL_NPM"] = 17] = "NORMAL_NPM";
|
||||
BLEND_MODES[BLEND_MODES["ADD_NPM"] = 18] = "ADD_NPM";
|
||||
BLEND_MODES[BLEND_MODES["SCREEN_NPM"] = 19] = "SCREEN_NPM";
|
||||
BLEND_MODES[BLEND_MODES["NONE"] = 20] = "NONE";
|
||||
BLEND_MODES[BLEND_MODES["SRC_OVER"] = 0] = "SRC_OVER";
|
||||
BLEND_MODES[BLEND_MODES["SRC_IN"] = 21] = "SRC_IN";
|
||||
BLEND_MODES[BLEND_MODES["SRC_OUT"] = 22] = "SRC_OUT";
|
||||
BLEND_MODES[BLEND_MODES["SRC_ATOP"] = 23] = "SRC_ATOP";
|
||||
BLEND_MODES[BLEND_MODES["DST_OVER"] = 24] = "DST_OVER";
|
||||
BLEND_MODES[BLEND_MODES["DST_IN"] = 25] = "DST_IN";
|
||||
BLEND_MODES[BLEND_MODES["DST_OUT"] = 26] = "DST_OUT";
|
||||
BLEND_MODES[BLEND_MODES["DST_ATOP"] = 27] = "DST_ATOP";
|
||||
BLEND_MODES[BLEND_MODES["ERASE"] = 26] = "ERASE";
|
||||
BLEND_MODES[BLEND_MODES["SUBTRACT"] = 28] = "SUBTRACT";
|
||||
BLEND_MODES[BLEND_MODES["XOR"] = 29] = "XOR";
|
||||
})(BLEND_MODES || (BLEND_MODES = {}));
|
||||
/**
|
||||
* Various webgl draw modes. These can be used to specify which GL drawMode to use
|
||||
* under certain situations and renderers.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name DRAW_MODES
|
||||
* @enum {number}
|
||||
* @property {number} POINTS -
|
||||
* @property {number} LINES -
|
||||
* @property {number} LINE_LOOP -
|
||||
* @property {number} LINE_STRIP -
|
||||
* @property {number} TRIANGLES -
|
||||
* @property {number} TRIANGLE_STRIP -
|
||||
* @property {number} TRIANGLE_FAN -
|
||||
*/
|
||||
var DRAW_MODES;
|
||||
(function (DRAW_MODES) {
|
||||
DRAW_MODES[DRAW_MODES["POINTS"] = 0] = "POINTS";
|
||||
DRAW_MODES[DRAW_MODES["LINES"] = 1] = "LINES";
|
||||
DRAW_MODES[DRAW_MODES["LINE_LOOP"] = 2] = "LINE_LOOP";
|
||||
DRAW_MODES[DRAW_MODES["LINE_STRIP"] = 3] = "LINE_STRIP";
|
||||
DRAW_MODES[DRAW_MODES["TRIANGLES"] = 4] = "TRIANGLES";
|
||||
DRAW_MODES[DRAW_MODES["TRIANGLE_STRIP"] = 5] = "TRIANGLE_STRIP";
|
||||
DRAW_MODES[DRAW_MODES["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
|
||||
})(DRAW_MODES || (DRAW_MODES = {}));
|
||||
/**
|
||||
* Various GL texture/resources formats.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name FORMATS
|
||||
* @enum {number}
|
||||
* @property {number} [RGBA=6408] -
|
||||
* @property {number} [RGB=6407] -
|
||||
* @property {number} [RG=33319] -
|
||||
* @property {number} [RED=6403] -
|
||||
* @property {number} [RGBA_INTEGER=36249] -
|
||||
* @property {number} [RGB_INTEGER=36248] -
|
||||
* @property {number} [RG_INTEGER=33320] -
|
||||
* @property {number} [RED_INTEGER=36244] -
|
||||
* @property {number} [ALPHA=6406] -
|
||||
* @property {number} [LUMINANCE=6409] -
|
||||
* @property {number} [LUMINANCE_ALPHA=6410] -
|
||||
* @property {number} [DEPTH_COMPONENT=6402] -
|
||||
* @property {number} [DEPTH_STENCIL=34041] -
|
||||
*/
|
||||
var FORMATS;
|
||||
(function (FORMATS) {
|
||||
FORMATS[FORMATS["RGBA"] = 6408] = "RGBA";
|
||||
FORMATS[FORMATS["RGB"] = 6407] = "RGB";
|
||||
FORMATS[FORMATS["RG"] = 33319] = "RG";
|
||||
FORMATS[FORMATS["RED"] = 6403] = "RED";
|
||||
FORMATS[FORMATS["RGBA_INTEGER"] = 36249] = "RGBA_INTEGER";
|
||||
FORMATS[FORMATS["RGB_INTEGER"] = 36248] = "RGB_INTEGER";
|
||||
FORMATS[FORMATS["RG_INTEGER"] = 33320] = "RG_INTEGER";
|
||||
FORMATS[FORMATS["RED_INTEGER"] = 36244] = "RED_INTEGER";
|
||||
FORMATS[FORMATS["ALPHA"] = 6406] = "ALPHA";
|
||||
FORMATS[FORMATS["LUMINANCE"] = 6409] = "LUMINANCE";
|
||||
FORMATS[FORMATS["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
|
||||
FORMATS[FORMATS["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
|
||||
FORMATS[FORMATS["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
|
||||
})(FORMATS || (FORMATS = {}));
|
||||
/**
|
||||
* Various GL target types.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name TARGETS
|
||||
* @enum {number}
|
||||
* @property {number} [TEXTURE_2D=3553] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP=34067] -
|
||||
* @property {number} [TEXTURE_2D_ARRAY=35866] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_X=34069] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_X=34070] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_Y=34071] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_Y=34072] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_Z=34073] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_Z=34074] -
|
||||
*/
|
||||
var TARGETS;
|
||||
(function (TARGETS) {
|
||||
TARGETS[TARGETS["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
|
||||
TARGETS[TARGETS["TEXTURE_2D_ARRAY"] = 35866] = "TEXTURE_2D_ARRAY";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_X"] = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_X"] = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Y"] = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Y"] = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Z"] = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z";
|
||||
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Z"] = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
|
||||
})(TARGETS || (TARGETS = {}));
|
||||
/**
|
||||
* Various GL data format types.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name TYPES
|
||||
* @enum {number}
|
||||
* @property {number} [UNSIGNED_BYTE=5121] -
|
||||
* @property {number} [UNSIGNED_SHORT=5123] -
|
||||
* @property {number} [UNSIGNED_SHORT_5_6_5=33635] -
|
||||
* @property {number} [UNSIGNED_SHORT_4_4_4_4=32819] -
|
||||
* @property {number} [UNSIGNED_SHORT_5_5_5_1=32820] -
|
||||
* @property {number} [UNSIGNED_INT=5125] -
|
||||
* @property {number} [UNSIGNED_INT_10F_11F_11F_REV=35899] -
|
||||
* @property {number} [UNSIGNED_INT_2_10_10_10_REV=33640] -
|
||||
* @property {number} [UNSIGNED_INT_24_8=34042] -
|
||||
* @property {number} [UNSIGNED_INT_5_9_9_9_REV=35902] -
|
||||
* @property {number} [BYTE=5120] -
|
||||
* @property {number} [SHORT=5122] -
|
||||
* @property {number} [INT=5124] -
|
||||
* @property {number} [FLOAT=5126] -
|
||||
* @property {number} [FLOAT_32_UNSIGNED_INT_24_8_REV=36269] -
|
||||
* @property {number} [HALF_FLOAT=36193] -
|
||||
*/
|
||||
var TYPES;
|
||||
(function (TYPES) {
|
||||
TYPES[TYPES["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
||||
TYPES[TYPES["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
||||
TYPES[TYPES["UNSIGNED_SHORT_5_6_5"] = 33635] = "UNSIGNED_SHORT_5_6_5";
|
||||
TYPES[TYPES["UNSIGNED_SHORT_4_4_4_4"] = 32819] = "UNSIGNED_SHORT_4_4_4_4";
|
||||
TYPES[TYPES["UNSIGNED_SHORT_5_5_5_1"] = 32820] = "UNSIGNED_SHORT_5_5_5_1";
|
||||
TYPES[TYPES["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
|
||||
TYPES[TYPES["UNSIGNED_INT_10F_11F_11F_REV"] = 35899] = "UNSIGNED_INT_10F_11F_11F_REV";
|
||||
TYPES[TYPES["UNSIGNED_INT_2_10_10_10_REV"] = 33640] = "UNSIGNED_INT_2_10_10_10_REV";
|
||||
TYPES[TYPES["UNSIGNED_INT_24_8"] = 34042] = "UNSIGNED_INT_24_8";
|
||||
TYPES[TYPES["UNSIGNED_INT_5_9_9_9_REV"] = 35902] = "UNSIGNED_INT_5_9_9_9_REV";
|
||||
TYPES[TYPES["BYTE"] = 5120] = "BYTE";
|
||||
TYPES[TYPES["SHORT"] = 5122] = "SHORT";
|
||||
TYPES[TYPES["INT"] = 5124] = "INT";
|
||||
TYPES[TYPES["FLOAT"] = 5126] = "FLOAT";
|
||||
TYPES[TYPES["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
|
||||
TYPES[TYPES["HALF_FLOAT"] = 36193] = "HALF_FLOAT";
|
||||
})(TYPES || (TYPES = {}));
|
||||
/**
|
||||
* Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
|
||||
* WebGL1 works only with FLOAT.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name SAMPLER_TYPES
|
||||
* @enum {number}
|
||||
* @property {number} [FLOAT=0] -
|
||||
* @property {number} [INT=1] -
|
||||
* @property {number} [UINT=2] -
|
||||
*/
|
||||
var SAMPLER_TYPES;
|
||||
(function (SAMPLER_TYPES) {
|
||||
SAMPLER_TYPES[SAMPLER_TYPES["FLOAT"] = 0] = "FLOAT";
|
||||
SAMPLER_TYPES[SAMPLER_TYPES["INT"] = 1] = "INT";
|
||||
SAMPLER_TYPES[SAMPLER_TYPES["UINT"] = 2] = "UINT";
|
||||
})(SAMPLER_TYPES || (SAMPLER_TYPES = {}));
|
||||
/**
|
||||
* The scale modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.SCALE_MODE} scale mode affects the default scaling mode of future operations.
|
||||
* It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name SCALE_MODES
|
||||
* @enum {number}
|
||||
* @property {number} LINEAR Smooth scaling
|
||||
* @property {number} NEAREST Pixelating scaling
|
||||
*/
|
||||
var SCALE_MODES;
|
||||
(function (SCALE_MODES) {
|
||||
SCALE_MODES[SCALE_MODES["NEAREST"] = 0] = "NEAREST";
|
||||
SCALE_MODES[SCALE_MODES["LINEAR"] = 1] = "LINEAR";
|
||||
})(SCALE_MODES || (SCALE_MODES = {}));
|
||||
/**
|
||||
* The wrap modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.WRAP_MODE} wrap mode affects the default wrapping mode of future operations.
|
||||
* It can be re-assigned to either CLAMP or REPEAT, depending upon suitability.
|
||||
* If the texture is non power of two then clamp will be used regardless as WebGL can
|
||||
* only use REPEAT if the texture is po2.
|
||||
*
|
||||
* This property only affects WebGL.
|
||||
* @name WRAP_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} CLAMP - The textures uvs are clamped
|
||||
* @property {number} REPEAT - The texture uvs tile and repeat
|
||||
* @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring
|
||||
*/
|
||||
var WRAP_MODES;
|
||||
(function (WRAP_MODES) {
|
||||
WRAP_MODES[WRAP_MODES["CLAMP"] = 33071] = "CLAMP";
|
||||
WRAP_MODES[WRAP_MODES["REPEAT"] = 10497] = "REPEAT";
|
||||
WRAP_MODES[WRAP_MODES["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
|
||||
})(WRAP_MODES || (WRAP_MODES = {}));
|
||||
/**
|
||||
* Mipmap filtering modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.MIPMAP_TEXTURES} affects default texture filtering.
|
||||
* Mipmaps are generated for a baseTexture if its `mipmap` field is `ON`,
|
||||
* or its `POW2` and texture dimensions are powers of 2.
|
||||
* Due to platform restriction, `ON` option will work like `POW2` for webgl-1.
|
||||
*
|
||||
* This property only affects WebGL.
|
||||
* @name MIPMAP_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} OFF - No mipmaps
|
||||
* @property {number} POW2 - Generate mipmaps if texture dimensions are pow2
|
||||
* @property {number} ON - Always generate mipmaps
|
||||
* @property {number} ON_MANUAL - Use mipmaps, but do not auto-generate them; this is used with a resource
|
||||
* that supports buffering each level-of-detail.
|
||||
*/
|
||||
var MIPMAP_MODES;
|
||||
(function (MIPMAP_MODES) {
|
||||
MIPMAP_MODES[MIPMAP_MODES["OFF"] = 0] = "OFF";
|
||||
MIPMAP_MODES[MIPMAP_MODES["POW2"] = 1] = "POW2";
|
||||
MIPMAP_MODES[MIPMAP_MODES["ON"] = 2] = "ON";
|
||||
MIPMAP_MODES[MIPMAP_MODES["ON_MANUAL"] = 3] = "ON_MANUAL";
|
||||
})(MIPMAP_MODES || (MIPMAP_MODES = {}));
|
||||
/**
|
||||
* How to treat textures with premultiplied alpha
|
||||
* @name ALPHA_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NO_PREMULTIPLIED_ALPHA - Source is not premultiplied, leave it like that.
|
||||
* Option for compressed and data textures that are created from typed arrays.
|
||||
* @property {number} PREMULTIPLY_ON_UPLOAD - Source is not premultiplied, premultiply on upload.
|
||||
* Default option, used for all loaded images.
|
||||
* @property {number} PREMULTIPLIED_ALPHA - Source is already premultiplied
|
||||
* Example: spine atlases with `_pma` suffix.
|
||||
* @property {number} NPM - Alias for NO_PREMULTIPLIED_ALPHA.
|
||||
* @property {number} UNPACK - Default option, alias for PREMULTIPLY_ON_UPLOAD.
|
||||
* @property {number} PMA - Alias for PREMULTIPLIED_ALPHA.
|
||||
*/
|
||||
var ALPHA_MODES;
|
||||
(function (ALPHA_MODES) {
|
||||
ALPHA_MODES[ALPHA_MODES["NPM"] = 0] = "NPM";
|
||||
ALPHA_MODES[ALPHA_MODES["UNPACK"] = 1] = "UNPACK";
|
||||
ALPHA_MODES[ALPHA_MODES["PMA"] = 2] = "PMA";
|
||||
ALPHA_MODES[ALPHA_MODES["NO_PREMULTIPLIED_ALPHA"] = 0] = "NO_PREMULTIPLIED_ALPHA";
|
||||
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ON_UPLOAD"] = 1] = "PREMULTIPLY_ON_UPLOAD";
|
||||
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ALPHA"] = 2] = "PREMULTIPLY_ALPHA";
|
||||
ALPHA_MODES[ALPHA_MODES["PREMULTIPLIED_ALPHA"] = 2] = "PREMULTIPLIED_ALPHA";
|
||||
})(ALPHA_MODES || (ALPHA_MODES = {}));
|
||||
/**
|
||||
* Configure whether filter textures are cleared after binding.
|
||||
*
|
||||
* Filter textures need not be cleared if the filter does not use pixel blending. {@link CLEAR_MODES.BLIT} will detect
|
||||
* this and skip clearing as an optimization.
|
||||
* @name CLEAR_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} BLEND - Do not clear the filter texture. The filter's output will blend on top of the output texture.
|
||||
* @property {number} CLEAR - Always clear the filter texture.
|
||||
* @property {number} BLIT - Clear only if {@link FilterSystem.forceClear} is set or if the filter uses pixel blending.
|
||||
* @property {number} NO - Alias for BLEND, same as `false` in earlier versions
|
||||
* @property {number} YES - Alias for CLEAR, same as `true` in earlier versions
|
||||
* @property {number} AUTO - Alias for BLIT
|
||||
*/
|
||||
var CLEAR_MODES;
|
||||
(function (CLEAR_MODES) {
|
||||
CLEAR_MODES[CLEAR_MODES["NO"] = 0] = "NO";
|
||||
CLEAR_MODES[CLEAR_MODES["YES"] = 1] = "YES";
|
||||
CLEAR_MODES[CLEAR_MODES["AUTO"] = 2] = "AUTO";
|
||||
CLEAR_MODES[CLEAR_MODES["BLEND"] = 0] = "BLEND";
|
||||
CLEAR_MODES[CLEAR_MODES["CLEAR"] = 1] = "CLEAR";
|
||||
CLEAR_MODES[CLEAR_MODES["BLIT"] = 2] = "BLIT";
|
||||
})(CLEAR_MODES || (CLEAR_MODES = {}));
|
||||
/**
|
||||
* The gc modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.GC_MODE} Garbage Collection mode for PixiJS textures is AUTO
|
||||
* If set to GC_MODE, the renderer will occasionally check textures usage. If they are not
|
||||
* used for a specified period of time they will be removed from the GPU. They will of course
|
||||
* be uploaded again when they are required. This is a silent behind the scenes process that
|
||||
* should ensure that the GPU does not get filled up.
|
||||
*
|
||||
* Handy for mobile devices!
|
||||
* This property only affects WebGL.
|
||||
* @name GC_MODES
|
||||
* @enum {number}
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @property {number} AUTO - Garbage collection will happen periodically automatically
|
||||
* @property {number} MANUAL - Garbage collection will need to be called manually
|
||||
*/
|
||||
var GC_MODES;
|
||||
(function (GC_MODES) {
|
||||
GC_MODES[GC_MODES["AUTO"] = 0] = "AUTO";
|
||||
GC_MODES[GC_MODES["MANUAL"] = 1] = "MANUAL";
|
||||
})(GC_MODES || (GC_MODES = {}));
|
||||
/**
|
||||
* Constants that specify float precision in shaders.
|
||||
* @name PRECISION
|
||||
* @memberof PIXI
|
||||
* @constant
|
||||
* @static
|
||||
* @enum {string}
|
||||
* @property {string} [LOW='lowp'] -
|
||||
* @property {string} [MEDIUM='mediump'] -
|
||||
* @property {string} [HIGH='highp'] -
|
||||
*/
|
||||
var PRECISION;
|
||||
(function (PRECISION) {
|
||||
PRECISION["LOW"] = "lowp";
|
||||
PRECISION["MEDIUM"] = "mediump";
|
||||
PRECISION["HIGH"] = "highp";
|
||||
})(PRECISION || (PRECISION = {}));
|
||||
/**
|
||||
* Constants for mask implementations.
|
||||
* We use `type` suffix because it leads to very different behaviours
|
||||
* @name MASK_TYPES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NONE - Mask is ignored
|
||||
* @property {number} SCISSOR - Scissor mask, rectangle on screen, cheap
|
||||
* @property {number} STENCIL - Stencil mask, 1-bit, medium, works only if renderer supports stencil
|
||||
* @property {number} SPRITE - Mask that uses SpriteMaskFilter, uses temporary RenderTexture
|
||||
* @property {number} COLOR - Color mask (RGBA)
|
||||
*/
|
||||
var MASK_TYPES;
|
||||
(function (MASK_TYPES) {
|
||||
MASK_TYPES[MASK_TYPES["NONE"] = 0] = "NONE";
|
||||
MASK_TYPES[MASK_TYPES["SCISSOR"] = 1] = "SCISSOR";
|
||||
MASK_TYPES[MASK_TYPES["STENCIL"] = 2] = "STENCIL";
|
||||
MASK_TYPES[MASK_TYPES["SPRITE"] = 3] = "SPRITE";
|
||||
MASK_TYPES[MASK_TYPES["COLOR"] = 4] = "COLOR";
|
||||
})(MASK_TYPES || (MASK_TYPES = {}));
|
||||
/**
|
||||
* Bitwise OR of masks that indicate the color channels that are rendered to.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name COLOR_MASK_BITS
|
||||
* @enum {number}
|
||||
* @property {number} RED - Red channel.
|
||||
* @property {number} GREEN - Green channel
|
||||
* @property {number} BLUE - Blue channel.
|
||||
* @property {number} ALPHA - Alpha channel.
|
||||
*/
|
||||
var COLOR_MASK_BITS;
|
||||
(function (COLOR_MASK_BITS) {
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["RED"] = 1] = "RED";
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["GREEN"] = 2] = "GREEN";
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["BLUE"] = 4] = "BLUE";
|
||||
COLOR_MASK_BITS[COLOR_MASK_BITS["ALPHA"] = 8] = "ALPHA";
|
||||
})(COLOR_MASK_BITS || (COLOR_MASK_BITS = {}));
|
||||
/**
|
||||
* Constants for multi-sampling antialiasing.
|
||||
* @see PIXI.Framebuffer#multisample
|
||||
* @name MSAA_QUALITY
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NONE - No multisampling for this renderTexture
|
||||
* @property {number} LOW - Try 2 samples
|
||||
* @property {number} MEDIUM - Try 4 samples
|
||||
* @property {number} HIGH - Try 8 samples
|
||||
*/
|
||||
var MSAA_QUALITY;
|
||||
(function (MSAA_QUALITY) {
|
||||
MSAA_QUALITY[MSAA_QUALITY["NONE"] = 0] = "NONE";
|
||||
MSAA_QUALITY[MSAA_QUALITY["LOW"] = 2] = "LOW";
|
||||
MSAA_QUALITY[MSAA_QUALITY["MEDIUM"] = 4] = "MEDIUM";
|
||||
MSAA_QUALITY[MSAA_QUALITY["HIGH"] = 8] = "HIGH";
|
||||
})(MSAA_QUALITY || (MSAA_QUALITY = {}));
|
||||
/**
|
||||
* Constants for various buffer types in Pixi
|
||||
* @see PIXI.BUFFER_TYPE
|
||||
* @name BUFFER_TYPE
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} ELEMENT_ARRAY_BUFFER - buffer type for using as an index buffer
|
||||
* @property {number} ARRAY_BUFFER - buffer type for using attribute data
|
||||
* @property {number} UNIFORM_BUFFER - the buffer type is for uniform buffer objects
|
||||
*/
|
||||
var BUFFER_TYPE;
|
||||
(function (BUFFER_TYPE) {
|
||||
BUFFER_TYPE[BUFFER_TYPE["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
|
||||
BUFFER_TYPE[BUFFER_TYPE["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
|
||||
// NOT YET SUPPORTED
|
||||
BUFFER_TYPE[BUFFER_TYPE["UNIFORM_BUFFER"] = 35345] = "UNIFORM_BUFFER";
|
||||
})(BUFFER_TYPE || (BUFFER_TYPE = {}));
|
||||
|
||||
export { ALPHA_MODES, BLEND_MODES, BUFFER_BITS, BUFFER_TYPE, CLEAR_MODES, COLOR_MASK_BITS, DRAW_MODES, ENV, FORMATS, GC_MODES, MASK_TYPES, MIPMAP_MODES, MSAA_QUALITY, PRECISION, RENDERER_TYPE, SAMPLER_TYPES, SCALE_MODES, TARGETS, TYPES, WRAP_MODES };
|
||||
//# sourceMappingURL=constants.mjs.map
|
||||
1
live2d/node_modules/@pixi/constants/dist/esm/constants.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/constants/dist/esm/constants.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
506
live2d/node_modules/@pixi/constants/index.d.ts
generated
vendored
Normal file
506
live2d/node_modules/@pixi/constants/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,506 @@
|
||||
/**
|
||||
* How to treat textures with premultiplied alpha
|
||||
* @name ALPHA_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NO_PREMULTIPLIED_ALPHA - Source is not premultiplied, leave it like that.
|
||||
* Option for compressed and data textures that are created from typed arrays.
|
||||
* @property {number} PREMULTIPLY_ON_UPLOAD - Source is not premultiplied, premultiply on upload.
|
||||
* Default option, used for all loaded images.
|
||||
* @property {number} PREMULTIPLIED_ALPHA - Source is already premultiplied
|
||||
* Example: spine atlases with `_pma` suffix.
|
||||
* @property {number} NPM - Alias for NO_PREMULTIPLIED_ALPHA.
|
||||
* @property {number} UNPACK - Default option, alias for PREMULTIPLY_ON_UPLOAD.
|
||||
* @property {number} PMA - Alias for PREMULTIPLIED_ALPHA.
|
||||
*/
|
||||
export declare enum ALPHA_MODES {
|
||||
NPM = 0,
|
||||
UNPACK = 1,
|
||||
PMA = 2,
|
||||
NO_PREMULTIPLIED_ALPHA = 0,
|
||||
PREMULTIPLY_ON_UPLOAD = 1,
|
||||
PREMULTIPLY_ALPHA = 2,
|
||||
PREMULTIPLIED_ALPHA = 2
|
||||
}
|
||||
|
||||
/**
|
||||
* Various blend modes supported by PIXI.
|
||||
*
|
||||
* IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
|
||||
* Anything else will silently act like NORMAL.
|
||||
* @memberof PIXI
|
||||
* @name BLEND_MODES
|
||||
* @enum {number}
|
||||
* @property {number} NORMAL -
|
||||
* @property {number} ADD -
|
||||
* @property {number} MULTIPLY -
|
||||
* @property {number} SCREEN -
|
||||
* @property {number} OVERLAY -
|
||||
* @property {number} DARKEN -
|
||||
* @property {number} LIGHTEN -
|
||||
* @property {number} COLOR_DODGE -
|
||||
* @property {number} COLOR_BURN -
|
||||
* @property {number} HARD_LIGHT -
|
||||
* @property {number} SOFT_LIGHT -
|
||||
* @property {number} DIFFERENCE -
|
||||
* @property {number} EXCLUSION -
|
||||
* @property {number} HUE -
|
||||
* @property {number} SATURATION -
|
||||
* @property {number} COLOR -
|
||||
* @property {number} LUMINOSITY -
|
||||
* @property {number} NORMAL_NPM -
|
||||
* @property {number} ADD_NPM -
|
||||
* @property {number} SCREEN_NPM -
|
||||
* @property {number} NONE -
|
||||
* @property {number} SRC_IN -
|
||||
* @property {number} SRC_OUT -
|
||||
* @property {number} SRC_ATOP -
|
||||
* @property {number} DST_OVER -
|
||||
* @property {number} DST_IN -
|
||||
* @property {number} DST_OUT -
|
||||
* @property {number} DST_ATOP -
|
||||
* @property {number} SUBTRACT -
|
||||
* @property {number} SRC_OVER -
|
||||
* @property {number} ERASE -
|
||||
* @property {number} XOR -
|
||||
*/
|
||||
export declare enum BLEND_MODES {
|
||||
NORMAL = 0,
|
||||
ADD = 1,
|
||||
MULTIPLY = 2,
|
||||
SCREEN = 3,
|
||||
OVERLAY = 4,
|
||||
DARKEN = 5,
|
||||
LIGHTEN = 6,
|
||||
COLOR_DODGE = 7,
|
||||
COLOR_BURN = 8,
|
||||
HARD_LIGHT = 9,
|
||||
SOFT_LIGHT = 10,
|
||||
DIFFERENCE = 11,
|
||||
EXCLUSION = 12,
|
||||
HUE = 13,
|
||||
SATURATION = 14,
|
||||
COLOR = 15,
|
||||
LUMINOSITY = 16,
|
||||
NORMAL_NPM = 17,
|
||||
ADD_NPM = 18,
|
||||
SCREEN_NPM = 19,
|
||||
NONE = 20,
|
||||
SRC_OVER = 0,
|
||||
SRC_IN = 21,
|
||||
SRC_OUT = 22,
|
||||
SRC_ATOP = 23,
|
||||
DST_OVER = 24,
|
||||
DST_IN = 25,
|
||||
DST_OUT = 26,
|
||||
DST_ATOP = 27,
|
||||
ERASE = 26,
|
||||
SUBTRACT = 28,
|
||||
XOR = 29
|
||||
}
|
||||
|
||||
/**
|
||||
* Bitwise OR of masks that indicate the buffers to be cleared.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name BUFFER_BITS
|
||||
* @enum {number}
|
||||
* @property {number} COLOR - Indicates the buffers currently enabled for color writing.
|
||||
* @property {number} DEPTH - Indicates the depth buffer.
|
||||
* @property {number} STENCIL - Indicates the stencil buffer.
|
||||
*/
|
||||
export declare enum BUFFER_BITS {
|
||||
COLOR = 16384,
|
||||
DEPTH = 256,
|
||||
STENCIL = 1024
|
||||
}
|
||||
|
||||
/**
|
||||
* Constants for various buffer types in Pixi
|
||||
* @see PIXI.BUFFER_TYPE
|
||||
* @name BUFFER_TYPE
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} ELEMENT_ARRAY_BUFFER - buffer type for using as an index buffer
|
||||
* @property {number} ARRAY_BUFFER - buffer type for using attribute data
|
||||
* @property {number} UNIFORM_BUFFER - the buffer type is for uniform buffer objects
|
||||
*/
|
||||
export declare enum BUFFER_TYPE {
|
||||
ELEMENT_ARRAY_BUFFER = 34963,
|
||||
ARRAY_BUFFER = 34962,
|
||||
UNIFORM_BUFFER = 35345
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure whether filter textures are cleared after binding.
|
||||
*
|
||||
* Filter textures need not be cleared if the filter does not use pixel blending. {@link CLEAR_MODES.BLIT} will detect
|
||||
* this and skip clearing as an optimization.
|
||||
* @name CLEAR_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} BLEND - Do not clear the filter texture. The filter's output will blend on top of the output texture.
|
||||
* @property {number} CLEAR - Always clear the filter texture.
|
||||
* @property {number} BLIT - Clear only if {@link FilterSystem.forceClear} is set or if the filter uses pixel blending.
|
||||
* @property {number} NO - Alias for BLEND, same as `false` in earlier versions
|
||||
* @property {number} YES - Alias for CLEAR, same as `true` in earlier versions
|
||||
* @property {number} AUTO - Alias for BLIT
|
||||
*/
|
||||
export declare enum CLEAR_MODES {
|
||||
NO = 0,
|
||||
YES = 1,
|
||||
AUTO = 2,
|
||||
BLEND = 0,
|
||||
CLEAR = 1,
|
||||
BLIT = 2
|
||||
}
|
||||
|
||||
/**
|
||||
* Bitwise OR of masks that indicate the color channels that are rendered to.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name COLOR_MASK_BITS
|
||||
* @enum {number}
|
||||
* @property {number} RED - Red channel.
|
||||
* @property {number} GREEN - Green channel
|
||||
* @property {number} BLUE - Blue channel.
|
||||
* @property {number} ALPHA - Alpha channel.
|
||||
*/
|
||||
export declare enum COLOR_MASK_BITS {
|
||||
RED = 1,
|
||||
GREEN = 2,
|
||||
BLUE = 4,
|
||||
ALPHA = 8
|
||||
}
|
||||
|
||||
/**
|
||||
* Various webgl draw modes. These can be used to specify which GL drawMode to use
|
||||
* under certain situations and renderers.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name DRAW_MODES
|
||||
* @enum {number}
|
||||
* @property {number} POINTS -
|
||||
* @property {number} LINES -
|
||||
* @property {number} LINE_LOOP -
|
||||
* @property {number} LINE_STRIP -
|
||||
* @property {number} TRIANGLES -
|
||||
* @property {number} TRIANGLE_STRIP -
|
||||
* @property {number} TRIANGLE_FAN -
|
||||
*/
|
||||
export declare enum DRAW_MODES {
|
||||
POINTS = 0,
|
||||
LINES = 1,
|
||||
LINE_LOOP = 2,
|
||||
LINE_STRIP = 3,
|
||||
TRIANGLES = 4,
|
||||
TRIANGLE_STRIP = 5,
|
||||
TRIANGLE_FAN = 6
|
||||
}
|
||||
|
||||
/**
|
||||
* Different types of environments for WebGL.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name ENV
|
||||
* @enum {number}
|
||||
* @property {number} WEBGL_LEGACY - Used for older v1 WebGL devices. PixiJS will aim to ensure compatibility
|
||||
* with older / less advanced devices. If you experience unexplained flickering prefer this environment.
|
||||
* @property {number} WEBGL - Version 1 of WebGL
|
||||
* @property {number} WEBGL2 - Version 2 of WebGL
|
||||
*/
|
||||
export declare enum ENV {
|
||||
WEBGL_LEGACY = 0,
|
||||
WEBGL = 1,
|
||||
WEBGL2 = 2
|
||||
}
|
||||
|
||||
/**
|
||||
* Various GL texture/resources formats.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name FORMATS
|
||||
* @enum {number}
|
||||
* @property {number} [RGBA=6408] -
|
||||
* @property {number} [RGB=6407] -
|
||||
* @property {number} [RG=33319] -
|
||||
* @property {number} [RED=6403] -
|
||||
* @property {number} [RGBA_INTEGER=36249] -
|
||||
* @property {number} [RGB_INTEGER=36248] -
|
||||
* @property {number} [RG_INTEGER=33320] -
|
||||
* @property {number} [RED_INTEGER=36244] -
|
||||
* @property {number} [ALPHA=6406] -
|
||||
* @property {number} [LUMINANCE=6409] -
|
||||
* @property {number} [LUMINANCE_ALPHA=6410] -
|
||||
* @property {number} [DEPTH_COMPONENT=6402] -
|
||||
* @property {number} [DEPTH_STENCIL=34041] -
|
||||
*/
|
||||
export declare enum FORMATS {
|
||||
RGBA = 6408,
|
||||
RGB = 6407,
|
||||
RG = 33319,
|
||||
RED = 6403,
|
||||
RGBA_INTEGER = 36249,
|
||||
RGB_INTEGER = 36248,
|
||||
RG_INTEGER = 33320,
|
||||
RED_INTEGER = 36244,
|
||||
ALPHA = 6406,
|
||||
LUMINANCE = 6409,
|
||||
LUMINANCE_ALPHA = 6410,
|
||||
DEPTH_COMPONENT = 6402,
|
||||
DEPTH_STENCIL = 34041
|
||||
}
|
||||
|
||||
/**
|
||||
* The gc modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.GC_MODE} Garbage Collection mode for PixiJS textures is AUTO
|
||||
* If set to GC_MODE, the renderer will occasionally check textures usage. If they are not
|
||||
* used for a specified period of time they will be removed from the GPU. They will of course
|
||||
* be uploaded again when they are required. This is a silent behind the scenes process that
|
||||
* should ensure that the GPU does not get filled up.
|
||||
*
|
||||
* Handy for mobile devices!
|
||||
* This property only affects WebGL.
|
||||
* @name GC_MODES
|
||||
* @enum {number}
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @property {number} AUTO - Garbage collection will happen periodically automatically
|
||||
* @property {number} MANUAL - Garbage collection will need to be called manually
|
||||
*/
|
||||
export declare enum GC_MODES {
|
||||
AUTO = 0,
|
||||
MANUAL = 1
|
||||
}
|
||||
|
||||
/**
|
||||
* Constants for mask implementations.
|
||||
* We use `type` suffix because it leads to very different behaviours
|
||||
* @name MASK_TYPES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NONE - Mask is ignored
|
||||
* @property {number} SCISSOR - Scissor mask, rectangle on screen, cheap
|
||||
* @property {number} STENCIL - Stencil mask, 1-bit, medium, works only if renderer supports stencil
|
||||
* @property {number} SPRITE - Mask that uses SpriteMaskFilter, uses temporary RenderTexture
|
||||
* @property {number} COLOR - Color mask (RGBA)
|
||||
*/
|
||||
export declare enum MASK_TYPES {
|
||||
NONE = 0,
|
||||
SCISSOR = 1,
|
||||
STENCIL = 2,
|
||||
SPRITE = 3,
|
||||
COLOR = 4
|
||||
}
|
||||
|
||||
/**
|
||||
* Mipmap filtering modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.MIPMAP_TEXTURES} affects default texture filtering.
|
||||
* Mipmaps are generated for a baseTexture if its `mipmap` field is `ON`,
|
||||
* or its `POW2` and texture dimensions are powers of 2.
|
||||
* Due to platform restriction, `ON` option will work like `POW2` for webgl-1.
|
||||
*
|
||||
* This property only affects WebGL.
|
||||
* @name MIPMAP_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} OFF - No mipmaps
|
||||
* @property {number} POW2 - Generate mipmaps if texture dimensions are pow2
|
||||
* @property {number} ON - Always generate mipmaps
|
||||
* @property {number} ON_MANUAL - Use mipmaps, but do not auto-generate them; this is used with a resource
|
||||
* that supports buffering each level-of-detail.
|
||||
*/
|
||||
export declare enum MIPMAP_MODES {
|
||||
OFF = 0,
|
||||
POW2 = 1,
|
||||
ON = 2,
|
||||
ON_MANUAL = 3
|
||||
}
|
||||
|
||||
/**
|
||||
* Constants for multi-sampling antialiasing.
|
||||
* @see PIXI.Framebuffer#multisample
|
||||
* @name MSAA_QUALITY
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} NONE - No multisampling for this renderTexture
|
||||
* @property {number} LOW - Try 2 samples
|
||||
* @property {number} MEDIUM - Try 4 samples
|
||||
* @property {number} HIGH - Try 8 samples
|
||||
*/
|
||||
export declare enum MSAA_QUALITY {
|
||||
NONE = 0,
|
||||
LOW = 2,
|
||||
MEDIUM = 4,
|
||||
HIGH = 8
|
||||
}
|
||||
|
||||
/**
|
||||
* Constants that specify float precision in shaders.
|
||||
* @name PRECISION
|
||||
* @memberof PIXI
|
||||
* @constant
|
||||
* @static
|
||||
* @enum {string}
|
||||
* @property {string} [LOW='lowp'] -
|
||||
* @property {string} [MEDIUM='mediump'] -
|
||||
* @property {string} [HIGH='highp'] -
|
||||
*/
|
||||
export declare enum PRECISION {
|
||||
LOW = "lowp",
|
||||
MEDIUM = "mediump",
|
||||
HIGH = "highp"
|
||||
}
|
||||
|
||||
/**
|
||||
* Constant to identify the Renderer Type.
|
||||
* @static
|
||||
* @memberof PIXI
|
||||
* @name RENDERER_TYPE
|
||||
* @enum {number}
|
||||
* @property {number} UNKNOWN - Unknown render type.
|
||||
* @property {number} WEBGL - WebGL render type.
|
||||
* @property {number} CANVAS - Canvas render type.
|
||||
*/
|
||||
export declare enum RENDERER_TYPE {
|
||||
UNKNOWN = 0,
|
||||
WEBGL = 1,
|
||||
CANVAS = 2
|
||||
}
|
||||
|
||||
/**
|
||||
* Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
|
||||
* WebGL1 works only with FLOAT.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name SAMPLER_TYPES
|
||||
* @enum {number}
|
||||
* @property {number} [FLOAT=0] -
|
||||
* @property {number} [INT=1] -
|
||||
* @property {number} [UINT=2] -
|
||||
*/
|
||||
export declare enum SAMPLER_TYPES {
|
||||
FLOAT = 0,
|
||||
INT = 1,
|
||||
UINT = 2
|
||||
}
|
||||
|
||||
/**
|
||||
* The scale modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.SCALE_MODE} scale mode affects the default scaling mode of future operations.
|
||||
* It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name SCALE_MODES
|
||||
* @enum {number}
|
||||
* @property {number} LINEAR Smooth scaling
|
||||
* @property {number} NEAREST Pixelating scaling
|
||||
*/
|
||||
export declare enum SCALE_MODES {
|
||||
NEAREST = 0,
|
||||
LINEAR = 1
|
||||
}
|
||||
|
||||
/**
|
||||
* Various GL target types.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name TARGETS
|
||||
* @enum {number}
|
||||
* @property {number} [TEXTURE_2D=3553] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP=34067] -
|
||||
* @property {number} [TEXTURE_2D_ARRAY=35866] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_X=34069] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_X=34070] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_Y=34071] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_Y=34072] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_Z=34073] -
|
||||
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_Z=34074] -
|
||||
*/
|
||||
export declare enum TARGETS {
|
||||
TEXTURE_2D = 3553,
|
||||
TEXTURE_CUBE_MAP = 34067,
|
||||
TEXTURE_2D_ARRAY = 35866,
|
||||
TEXTURE_CUBE_MAP_POSITIVE_X = 34069,
|
||||
TEXTURE_CUBE_MAP_NEGATIVE_X = 34070,
|
||||
TEXTURE_CUBE_MAP_POSITIVE_Y = 34071,
|
||||
TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072,
|
||||
TEXTURE_CUBE_MAP_POSITIVE_Z = 34073,
|
||||
TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074
|
||||
}
|
||||
|
||||
/**
|
||||
* Various GL data format types.
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @name TYPES
|
||||
* @enum {number}
|
||||
* @property {number} [UNSIGNED_BYTE=5121] -
|
||||
* @property {number} [UNSIGNED_SHORT=5123] -
|
||||
* @property {number} [UNSIGNED_SHORT_5_6_5=33635] -
|
||||
* @property {number} [UNSIGNED_SHORT_4_4_4_4=32819] -
|
||||
* @property {number} [UNSIGNED_SHORT_5_5_5_1=32820] -
|
||||
* @property {number} [UNSIGNED_INT=5125] -
|
||||
* @property {number} [UNSIGNED_INT_10F_11F_11F_REV=35899] -
|
||||
* @property {number} [UNSIGNED_INT_2_10_10_10_REV=33640] -
|
||||
* @property {number} [UNSIGNED_INT_24_8=34042] -
|
||||
* @property {number} [UNSIGNED_INT_5_9_9_9_REV=35902] -
|
||||
* @property {number} [BYTE=5120] -
|
||||
* @property {number} [SHORT=5122] -
|
||||
* @property {number} [INT=5124] -
|
||||
* @property {number} [FLOAT=5126] -
|
||||
* @property {number} [FLOAT_32_UNSIGNED_INT_24_8_REV=36269] -
|
||||
* @property {number} [HALF_FLOAT=36193] -
|
||||
*/
|
||||
export declare enum TYPES {
|
||||
UNSIGNED_BYTE = 5121,
|
||||
UNSIGNED_SHORT = 5123,
|
||||
UNSIGNED_SHORT_5_6_5 = 33635,
|
||||
UNSIGNED_SHORT_4_4_4_4 = 32819,
|
||||
UNSIGNED_SHORT_5_5_5_1 = 32820,
|
||||
UNSIGNED_INT = 5125,
|
||||
UNSIGNED_INT_10F_11F_11F_REV = 35899,
|
||||
UNSIGNED_INT_2_10_10_10_REV = 33640,
|
||||
UNSIGNED_INT_24_8 = 34042,
|
||||
UNSIGNED_INT_5_9_9_9_REV = 35902,
|
||||
BYTE = 5120,
|
||||
SHORT = 5122,
|
||||
INT = 5124,
|
||||
FLOAT = 5126,
|
||||
FLOAT_32_UNSIGNED_INT_24_8_REV = 36269,
|
||||
HALF_FLOAT = 36193
|
||||
}
|
||||
|
||||
/**
|
||||
* The wrap modes that are supported by pixi.
|
||||
*
|
||||
* The {@link PIXI.settings.WRAP_MODE} wrap mode affects the default wrapping mode of future operations.
|
||||
* It can be re-assigned to either CLAMP or REPEAT, depending upon suitability.
|
||||
* If the texture is non power of two then clamp will be used regardless as WebGL can
|
||||
* only use REPEAT if the texture is po2.
|
||||
*
|
||||
* This property only affects WebGL.
|
||||
* @name WRAP_MODES
|
||||
* @memberof PIXI
|
||||
* @static
|
||||
* @enum {number}
|
||||
* @property {number} CLAMP - The textures uvs are clamped
|
||||
* @property {number} REPEAT - The texture uvs tile and repeat
|
||||
* @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring
|
||||
*/
|
||||
export declare enum WRAP_MODES {
|
||||
CLAMP = 33071,
|
||||
REPEAT = 10497,
|
||||
MIRRORED_REPEAT = 33648
|
||||
}
|
||||
|
||||
export { }
|
||||
41
live2d/node_modules/@pixi/constants/package.json
generated
vendored
Normal file
41
live2d/node_modules/@pixi/constants/package.json
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "@pixi/constants",
|
||||
"version": "6.5.10",
|
||||
"main": "dist/cjs/constants.js",
|
||||
"module": "dist/esm/constants.mjs",
|
||||
"bundle": "dist/browser/constants.js",
|
||||
"types": "index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./dist/esm/constants.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./dist/cjs/constants.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Constants used across PixiJS",
|
||||
"author": "Mat Groves",
|
||||
"contributors": [
|
||||
"Matt Karl <matt@mattkarl.com>"
|
||||
],
|
||||
"homepage": "http://pixijs.com/",
|
||||
"bugs": "https://github.com/pixijs/pixi.js/issues",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pixijs/pixi.js.git"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"dist",
|
||||
"*.d.ts"
|
||||
],
|
||||
"gitHead": "8cdbf55064b7adc05f65c51e177f1c22f7329f0f"
|
||||
}
|
||||
21
live2d/node_modules/@pixi/core/LICENSE
generated
vendored
Normal file
21
live2d/node_modules/@pixi/core/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2013-2018 Mathew Groves, Chad Engler
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
13
live2d/node_modules/@pixi/core/README.md
generated
vendored
Normal file
13
live2d/node_modules/@pixi/core/README.md
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# @pixi/core
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @pixi/core
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import * as core from '@pixi/core';
|
||||
```
|
||||
10641
live2d/node_modules/@pixi/core/dist/browser/core.js
generated
vendored
Normal file
10641
live2d/node_modules/@pixi/core/dist/browser/core.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/core/dist/browser/core.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/core/dist/browser/core.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/core/dist/browser/core.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/core/dist/browser/core.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/core/dist/browser/core.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/core/dist/browser/core.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
10456
live2d/node_modules/@pixi/core/dist/cjs/core.js
generated
vendored
Normal file
10456
live2d/node_modules/@pixi/core/dist/cjs/core.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/core/dist/cjs/core.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/core/dist/cjs/core.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/core/dist/cjs/core.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/core/dist/cjs/core.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/core/dist/cjs/core.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/core/dist/cjs/core.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/core/dist/esm/core.min.mjs
generated
vendored
Normal file
9
live2d/node_modules/@pixi/core/dist/esm/core.min.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/core/dist/esm/core.min.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/core/dist/esm/core.min.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
10371
live2d/node_modules/@pixi/core/dist/esm/core.mjs
generated
vendored
Normal file
10371
live2d/node_modules/@pixi/core/dist/esm/core.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/core/dist/esm/core.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/core/dist/esm/core.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
26
live2d/node_modules/@pixi/core/global.d.ts
generated
vendored
Normal file
26
live2d/node_modules/@pixi/core/global.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
declare namespace GlobalMixins
|
||||
{
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface BaseTexture
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface Texture
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface BaseRenderTexture
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface IRendererOptions
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
5465
live2d/node_modules/@pixi/core/index.d.ts
generated
vendored
Normal file
5465
live2d/node_modules/@pixi/core/index.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
57
live2d/node_modules/@pixi/core/package.json
generated
vendored
Normal file
57
live2d/node_modules/@pixi/core/package.json
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"name": "@pixi/core",
|
||||
"version": "6.5.10",
|
||||
"main": "dist/cjs/core.js",
|
||||
"module": "dist/esm/core.mjs",
|
||||
"bundle": "dist/browser/core.js",
|
||||
"types": "index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./dist/esm/core.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./dist/cjs/core.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Core PixiJS",
|
||||
"author": "Mat Groves",
|
||||
"contributors": [
|
||||
"Matt Karl <matt@mattkarl.com>"
|
||||
],
|
||||
"homepage": "http://pixijs.com/",
|
||||
"bugs": "https://github.com/pixijs/pixi.js/issues",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pixijs/pixi.js.git"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"dist",
|
||||
"*.d.ts"
|
||||
],
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/pixijs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/offscreencanvas": "^2019.6.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@pixi/constants": "6.5.10",
|
||||
"@pixi/extensions": "6.5.10",
|
||||
"@pixi/math": "6.5.10",
|
||||
"@pixi/runner": "6.5.10",
|
||||
"@pixi/settings": "6.5.10",
|
||||
"@pixi/ticker": "6.5.10",
|
||||
"@pixi/utils": "6.5.10"
|
||||
},
|
||||
"gitHead": "8cdbf55064b7adc05f65c51e177f1c22f7329f0f"
|
||||
}
|
||||
21
live2d/node_modules/@pixi/display/LICENSE
generated
vendored
Normal file
21
live2d/node_modules/@pixi/display/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2013-2018 Mathew Groves, Chad Engler
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
13
live2d/node_modules/@pixi/display/README.md
generated
vendored
Normal file
13
live2d/node_modules/@pixi/display/README.md
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# @pixi/display
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @pixi/display
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import * as application from '@pixi/display';
|
||||
```
|
||||
1985
live2d/node_modules/@pixi/display/dist/browser/display.js
generated
vendored
Normal file
1985
live2d/node_modules/@pixi/display/dist/browser/display.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/display/dist/browser/display.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/display/dist/browser/display.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/display/dist/browser/display.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/display/dist/browser/display.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/display/dist/browser/display.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/display/dist/browser/display.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1787
live2d/node_modules/@pixi/display/dist/cjs/display.js
generated
vendored
Normal file
1787
live2d/node_modules/@pixi/display/dist/cjs/display.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/display/dist/cjs/display.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/display/dist/cjs/display.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/display/dist/cjs/display.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/display/dist/cjs/display.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/display/dist/cjs/display.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/display/dist/cjs/display.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/display/dist/esm/display.min.mjs
generated
vendored
Normal file
9
live2d/node_modules/@pixi/display/dist/esm/display.min.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/display/dist/esm/display.min.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/display/dist/esm/display.min.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1780
live2d/node_modules/@pixi/display/dist/esm/display.mjs
generated
vendored
Normal file
1780
live2d/node_modules/@pixi/display/dist/esm/display.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/display/dist/esm/display.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/display/dist/esm/display.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
14
live2d/node_modules/@pixi/display/global.d.ts
generated
vendored
Normal file
14
live2d/node_modules/@pixi/display/global.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
declare namespace GlobalMixins
|
||||
{
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface DisplayObject
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface Container
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
922
live2d/node_modules/@pixi/display/index.d.ts
generated
vendored
Normal file
922
live2d/node_modules/@pixi/display/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,922 @@
|
||||
/// <reference path="./global.d.ts" />
|
||||
|
||||
import type { Dict } from '@pixi/utils';
|
||||
import { EventEmitter } from '@pixi/utils';
|
||||
import type { Filter } from '@pixi/core';
|
||||
import type { IPointData } from '@pixi/math';
|
||||
import type { MaskData } from '@pixi/core';
|
||||
import type { Matrix } from '@pixi/math';
|
||||
import type { ObservablePoint } from '@pixi/math';
|
||||
import type { Point } from '@pixi/math';
|
||||
import { Rectangle } from '@pixi/math';
|
||||
import type { Renderer } from '@pixi/core';
|
||||
import { Transform } from '@pixi/math';
|
||||
|
||||
/**
|
||||
* 'Builder' pattern for bounds rectangles.
|
||||
*
|
||||
* This could be called an Axis-Aligned Bounding Box.
|
||||
* It is not an actual shape. It is a mutable thing; no 'EMPTY' or those kind of problems.
|
||||
* @memberof PIXI
|
||||
*/
|
||||
export declare class Bounds {
|
||||
/** @default Infinity */
|
||||
minX: number;
|
||||
/** @default Infinity */
|
||||
minY: number;
|
||||
/** @default -Infinity */
|
||||
maxX: number;
|
||||
/** @default -Infinity */
|
||||
maxY: number;
|
||||
rect: Rectangle;
|
||||
/**
|
||||
* It is updated to _boundsID of corresponding object to keep bounds in sync with content.
|
||||
* Updated from outside, thus public modifier.
|
||||
*/
|
||||
updateID: number;
|
||||
constructor();
|
||||
/**
|
||||
* Checks if bounds are empty.
|
||||
* @returns - True if empty.
|
||||
*/
|
||||
isEmpty(): boolean;
|
||||
/** Clears the bounds and resets. */
|
||||
clear(): void;
|
||||
/**
|
||||
* Can return Rectangle.EMPTY constant, either construct new rectangle, either use your rectangle
|
||||
* It is not guaranteed that it will return tempRect
|
||||
* @param rect - Temporary object will be used if AABB is not empty
|
||||
* @returns - A rectangle of the bounds
|
||||
*/
|
||||
getRectangle(rect?: Rectangle): Rectangle;
|
||||
/**
|
||||
* This function should be inlined when its possible.
|
||||
* @param point - The point to add.
|
||||
*/
|
||||
addPoint(point: IPointData): void;
|
||||
/**
|
||||
* Adds a point, after transformed. This should be inlined when its possible.
|
||||
* @param matrix
|
||||
* @param point
|
||||
*/
|
||||
addPointMatrix(matrix: Matrix, point: IPointData): void;
|
||||
/**
|
||||
* Adds a quad, not transformed
|
||||
* @param vertices - The verts to add.
|
||||
*/
|
||||
addQuad(vertices: Float32Array): void;
|
||||
/**
|
||||
* Adds sprite frame, transformed.
|
||||
* @param transform - transform to apply
|
||||
* @param x0 - left X of frame
|
||||
* @param y0 - top Y of frame
|
||||
* @param x1 - right X of frame
|
||||
* @param y1 - bottom Y of frame
|
||||
*/
|
||||
addFrame(transform: Transform, x0: number, y0: number, x1: number, y1: number): void;
|
||||
/**
|
||||
* Adds sprite frame, multiplied by matrix
|
||||
* @param matrix - matrix to apply
|
||||
* @param x0 - left X of frame
|
||||
* @param y0 - top Y of frame
|
||||
* @param x1 - right X of frame
|
||||
* @param y1 - bottom Y of frame
|
||||
*/
|
||||
addFrameMatrix(matrix: Matrix, x0: number, y0: number, x1: number, y1: number): void;
|
||||
/**
|
||||
* Adds screen vertices from array
|
||||
* @param vertexData - calculated vertices
|
||||
* @param beginOffset - begin offset
|
||||
* @param endOffset - end offset, excluded
|
||||
*/
|
||||
addVertexData(vertexData: Float32Array, beginOffset: number, endOffset: number): void;
|
||||
/**
|
||||
* Add an array of mesh vertices
|
||||
* @param transform - mesh transform
|
||||
* @param vertices - mesh coordinates in array
|
||||
* @param beginOffset - begin offset
|
||||
* @param endOffset - end offset, excluded
|
||||
*/
|
||||
addVertices(transform: Transform, vertices: Float32Array, beginOffset: number, endOffset: number): void;
|
||||
/**
|
||||
* Add an array of mesh vertices.
|
||||
* @param matrix - mesh matrix
|
||||
* @param vertices - mesh coordinates in array
|
||||
* @param beginOffset - begin offset
|
||||
* @param endOffset - end offset, excluded
|
||||
* @param padX - x padding
|
||||
* @param padY - y padding
|
||||
*/
|
||||
addVerticesMatrix(matrix: Matrix, vertices: Float32Array, beginOffset: number, endOffset: number, padX?: number, padY?: number): void;
|
||||
/**
|
||||
* Adds other {@link Bounds}.
|
||||
* @param bounds - The Bounds to be added
|
||||
*/
|
||||
addBounds(bounds: Bounds): void;
|
||||
/**
|
||||
* Adds other Bounds, masked with Bounds.
|
||||
* @param bounds - The Bounds to be added.
|
||||
* @param mask - TODO
|
||||
*/
|
||||
addBoundsMask(bounds: Bounds, mask: Bounds): void;
|
||||
/**
|
||||
* Adds other Bounds, multiplied by matrix. Bounds shouldn't be empty.
|
||||
* @param bounds - other bounds
|
||||
* @param matrix - multiplicator
|
||||
*/
|
||||
addBoundsMatrix(bounds: Bounds, matrix: Matrix): void;
|
||||
/**
|
||||
* Adds other Bounds, masked with Rectangle.
|
||||
* @param bounds - TODO
|
||||
* @param area - TODO
|
||||
*/
|
||||
addBoundsArea(bounds: Bounds, area: Rectangle): void;
|
||||
/**
|
||||
* Pads bounds object, making it grow in all directions.
|
||||
* If paddingY is omitted, both paddingX and paddingY will be set to paddingX.
|
||||
* @param paddingX - The horizontal padding amount.
|
||||
* @param paddingY - The vertical padding amount.
|
||||
*/
|
||||
pad(paddingX?: number, paddingY?: number): void;
|
||||
/**
|
||||
* Adds padded frame. (x0, y0) should be strictly less than (x1, y1)
|
||||
* @param x0 - left X of frame
|
||||
* @param y0 - top Y of frame
|
||||
* @param x1 - right X of frame
|
||||
* @param y1 - bottom Y of frame
|
||||
* @param padX - padding X
|
||||
* @param padY - padding Y
|
||||
*/
|
||||
addFramePad(x0: number, y0: number, x1: number, y1: number, padX: number, padY: number): void;
|
||||
}
|
||||
|
||||
export declare interface Container extends GlobalMixins.Container, DisplayObject {
|
||||
}
|
||||
|
||||
/**
|
||||
* Container is a general-purpose display object that holds children. It also adds built-in support for advanced
|
||||
* rendering features like masking and filtering.
|
||||
*
|
||||
* It is the base class of all display objects that act as a container for other objects, including Graphics
|
||||
* and Sprite.
|
||||
*
|
||||
* ```js
|
||||
* import { BlurFilter } from '@pixi/filter-blur';
|
||||
* import { Container } from '@pixi/display';
|
||||
* import { Graphics } from '@pixi/graphics';
|
||||
* import { Sprite } from '@pixi/sprite';
|
||||
*
|
||||
* let container = new Container();
|
||||
* let sprite = Sprite.from("https://s3-us-west-2.amazonaws.com/s.cdpn.io/693612/IaUrttj.png");
|
||||
*
|
||||
* sprite.width = 512;
|
||||
* sprite.height = 512;
|
||||
*
|
||||
* // Adds a sprite as a child to this container. As a result, the sprite will be rendered whenever the container
|
||||
* // is rendered.
|
||||
* container.addChild(sprite);
|
||||
*
|
||||
* // Blurs whatever is rendered by the container
|
||||
* container.filters = [new BlurFilter()];
|
||||
*
|
||||
* // Only the contents within a circle at the center should be rendered onto the screen.
|
||||
* container.mask = new Graphics()
|
||||
* .beginFill(0xffffff)
|
||||
* .drawCircle(sprite.width / 2, sprite.height / 2, Math.min(sprite.width, sprite.height) / 2)
|
||||
* .endFill();
|
||||
* ```
|
||||
* @memberof PIXI
|
||||
*/
|
||||
export declare class Container<T extends DisplayObject = DisplayObject> extends DisplayObject {
|
||||
/**
|
||||
* The array of children of this container.
|
||||
* @readonly
|
||||
*/
|
||||
readonly children: T[];
|
||||
/**
|
||||
* If set to true, the container will sort its children by zIndex value
|
||||
* when updateTransform() is called, or manually if sortChildren() is called.
|
||||
*
|
||||
* This actually changes the order of elements in the array, so should be treated
|
||||
* as a basic solution that is not performant compared to other solutions,
|
||||
* such as @link https://github.com/pixijs/pixi-display
|
||||
*
|
||||
* Also be aware of that this may not work nicely with the addChildAt() function,
|
||||
* as the zIndex sorting may cause the child to automatically sorted to another position.
|
||||
* @see PIXI.settings.SORTABLE_CHILDREN
|
||||
*/
|
||||
sortableChildren: boolean;
|
||||
/**
|
||||
* Should children be sorted by zIndex at the next updateTransform call.
|
||||
*
|
||||
* Will get automatically set to true if a new child is added, or if a child's zIndex changes.
|
||||
*/
|
||||
sortDirty: boolean;
|
||||
parent: Container;
|
||||
containerUpdateTransform: () => void;
|
||||
protected _width: number;
|
||||
protected _height: number;
|
||||
constructor();
|
||||
/**
|
||||
* Overridable method that can be used by Container subclasses whenever the children array is modified.
|
||||
* @param _length
|
||||
*/
|
||||
protected onChildrenChange(_length?: number): void;
|
||||
/**
|
||||
* Adds one or more children to the container.
|
||||
*
|
||||
* Multiple items can be added like so: `myContainer.addChild(thingOne, thingTwo, thingThree)`
|
||||
* @param {...PIXI.DisplayObject} children - The DisplayObject(s) to add to the container
|
||||
* @returns {PIXI.DisplayObject} - The first child that was added.
|
||||
*/
|
||||
addChild<U extends T[]>(...children: U): U[0];
|
||||
/**
|
||||
* Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown
|
||||
* @param {PIXI.DisplayObject} child - The child to add
|
||||
* @param {number} index - The index to place the child in
|
||||
* @returns {PIXI.DisplayObject} The child that was added.
|
||||
*/
|
||||
addChildAt<U extends T>(child: U, index: number): U;
|
||||
/**
|
||||
* Swaps the position of 2 Display Objects within this container.
|
||||
* @param child - First display object to swap
|
||||
* @param child2 - Second display object to swap
|
||||
*/
|
||||
swapChildren(child: T, child2: T): void;
|
||||
/**
|
||||
* Returns the index position of a child DisplayObject instance
|
||||
* @param child - The DisplayObject instance to identify
|
||||
* @returns - The index position of the child display object to identify
|
||||
*/
|
||||
getChildIndex(child: T): number;
|
||||
/**
|
||||
* Changes the position of an existing child in the display object container
|
||||
* @param child - The child DisplayObject instance for which you want to change the index number
|
||||
* @param index - The resulting index number for the child display object
|
||||
*/
|
||||
setChildIndex(child: T, index: number): void;
|
||||
/**
|
||||
* Returns the child at the specified index
|
||||
* @param index - The index to get the child at
|
||||
* @returns - The child at the given index, if any.
|
||||
*/
|
||||
getChildAt(index: number): T;
|
||||
/**
|
||||
* Removes one or more children from the container.
|
||||
* @param {...PIXI.DisplayObject} children - The DisplayObject(s) to remove
|
||||
* @returns {PIXI.DisplayObject} The first child that was removed.
|
||||
*/
|
||||
removeChild<U extends T[]>(...children: U): U[0];
|
||||
/**
|
||||
* Removes a child from the specified index position.
|
||||
* @param index - The index to get the child from
|
||||
* @returns The child that was removed.
|
||||
*/
|
||||
removeChildAt(index: number): T;
|
||||
/**
|
||||
* Removes all children from this container that are within the begin and end indexes.
|
||||
* @param beginIndex - The beginning position.
|
||||
* @param endIndex - The ending position. Default value is size of the container.
|
||||
* @returns - List of removed children
|
||||
*/
|
||||
removeChildren(beginIndex?: number, endIndex?: number): T[];
|
||||
/** Sorts children by zIndex. Previous order is maintained for 2 children with the same zIndex. */
|
||||
sortChildren(): void;
|
||||
/** Updates the transform on all children of this container for rendering. */
|
||||
updateTransform(): void;
|
||||
/**
|
||||
* Recalculates the bounds of the container.
|
||||
*
|
||||
* This implementation will automatically fit the children's bounds into the calculation. Each child's bounds
|
||||
* is limited to its mask's bounds or filterArea, if any is applied.
|
||||
*/
|
||||
calculateBounds(): void;
|
||||
/**
|
||||
* Retrieves the local bounds of the displayObject as a rectangle object.
|
||||
*
|
||||
* Calling `getLocalBounds` may invalidate the `_bounds` of the whole subtree below. If using it inside a render()
|
||||
* call, it is advised to call `getBounds()` immediately after to recalculate the world bounds of the subtree.
|
||||
* @param rect - Optional rectangle to store the result of the bounds calculation.
|
||||
* @param skipChildrenUpdate - Setting to `true` will stop re-calculation of children transforms,
|
||||
* it was default behaviour of pixi 4.0-5.2 and caused many problems to users.
|
||||
* @returns - The rectangular bounding area.
|
||||
*/
|
||||
getLocalBounds(rect?: Rectangle, skipChildrenUpdate?: boolean): Rectangle;
|
||||
/**
|
||||
* Recalculates the content bounds of this object. This should be overriden to
|
||||
* calculate the bounds of this specific object (not including children).
|
||||
* @protected
|
||||
*/
|
||||
protected _calculateBounds(): void;
|
||||
/**
|
||||
* Renders this object and its children with culling.
|
||||
* @protected
|
||||
* @param {PIXI.Renderer} renderer - The renderer
|
||||
*/
|
||||
protected _renderWithCulling(renderer: Renderer): void;
|
||||
/**
|
||||
* Renders the object using the WebGL renderer.
|
||||
*
|
||||
* The [_render]{@link PIXI.Container#_render} method is be overriden for rendering the contents of the
|
||||
* container itself. This `render` method will invoke it, and also invoke the `render` methods of all
|
||||
* children afterward.
|
||||
*
|
||||
* If `renderable` or `visible` is false or if `worldAlpha` is not positive or if `cullable` is true and
|
||||
* the bounds of this object are out of frame, this implementation will entirely skip rendering.
|
||||
* See {@link PIXI.DisplayObject} for choosing between `renderable` or `visible`. Generally,
|
||||
* setting alpha to zero is not recommended for purely skipping rendering.
|
||||
*
|
||||
* When your scene becomes large (especially when it is larger than can be viewed in a single screen), it is
|
||||
* advised to employ **culling** to automatically skip rendering objects outside of the current screen.
|
||||
* See [cullable]{@link PIXI.DisplayObject#cullable} and [cullArea]{@link PIXI.DisplayObject#cullArea}.
|
||||
* Other culling methods might be better suited for a large number static objects; see
|
||||
* [@pixi-essentials/cull]{@link https://www.npmjs.com/package/@pixi-essentials/cull} and
|
||||
* [pixi-cull]{@link https://www.npmjs.com/package/pixi-cull}.
|
||||
*
|
||||
* The [renderAdvanced]{@link PIXI.Container#renderAdvanced} method is internally used when when masking or
|
||||
* filtering is applied on a container. This does, however, break batching and can affect performance when
|
||||
* masking and filtering is applied extensively throughout the scene graph.
|
||||
* @param renderer - The renderer
|
||||
*/
|
||||
render(renderer: Renderer): void;
|
||||
/**
|
||||
* Render the object using the WebGL renderer and advanced features.
|
||||
* @param renderer - The renderer
|
||||
*/
|
||||
protected renderAdvanced(renderer: Renderer): void;
|
||||
/**
|
||||
* To be overridden by the subclasses.
|
||||
* @param _renderer - The renderer
|
||||
*/
|
||||
protected _render(_renderer: Renderer): void;
|
||||
/**
|
||||
* Removes all internal references and listeners as well as removes children from the display list.
|
||||
* Do not use a Container after calling `destroy`.
|
||||
* @param options - Options parameter. A boolean will act as if all options
|
||||
* have been set to that value
|
||||
* @param {boolean} [options.children=false] - if set to true, all the children will have their destroy
|
||||
* method called as well. 'options' will be passed on to those calls.
|
||||
* @param {boolean} [options.texture=false] - Only used for child Sprites if options.children is set to true
|
||||
* Should it destroy the texture of the child sprite
|
||||
* @param {boolean} [options.baseTexture=false] - Only used for child Sprites if options.children is set to true
|
||||
* Should it destroy the base texture of the child sprite
|
||||
*/
|
||||
destroy(options?: IDestroyOptions | boolean): void;
|
||||
/** The width of the Container, setting this will actually modify the scale to achieve the value set. */
|
||||
get width(): number;
|
||||
set width(value: number);
|
||||
/** The height of the Container, setting this will actually modify the scale to achieve the value set. */
|
||||
get height(): number;
|
||||
set height(value: number);
|
||||
}
|
||||
|
||||
export declare interface DisplayObject extends Omit<GlobalMixins.DisplayObject, keyof EventEmitter>, EventEmitter {
|
||||
}
|
||||
|
||||
/**
|
||||
* The base class for all objects that are rendered on the screen.
|
||||
*
|
||||
* This is an abstract class and can not be used on its own; rather it should be extended.
|
||||
*
|
||||
* ## Display objects implemented in PixiJS
|
||||
*
|
||||
* | Display Object | Description |
|
||||
* | ------------------------------- | --------------------------------------------------------------------- |
|
||||
* | {@link PIXI.Container} | Adds support for `children` to DisplayObject |
|
||||
* | {@link PIXI.Graphics} | Shape-drawing display object similar to the Canvas API |
|
||||
* | {@link PIXI.Sprite} | Draws textures (i.e. images) |
|
||||
* | {@link PIXI.Text} | Draws text using the Canvas API internally |
|
||||
* | {@link PIXI.BitmapText} | More scaleable solution for text rendering, reusing glyph textures |
|
||||
* | {@link PIXI.TilingSprite} | Draws textures/images in a tiled fashion |
|
||||
* | {@link PIXI.AnimatedSprite} | Draws an animation of multiple images |
|
||||
* | {@link PIXI.Mesh} | Provides a lower-level API for drawing meshes with custom data |
|
||||
* | {@link PIXI.NineSlicePlane} | Mesh-related |
|
||||
* | {@link PIXI.SimpleMesh} | v4-compatible mesh |
|
||||
* | {@link PIXI.SimplePlane} | Mesh-related |
|
||||
* | {@link PIXI.SimpleRope} | Mesh-related |
|
||||
*
|
||||
* ## Transforms
|
||||
*
|
||||
* The [transform]{@link DisplayObject#transform} of a display object describes the projection from its
|
||||
* local coordinate space to its parent's local coordinate space. The following properties are derived
|
||||
* from the transform:
|
||||
*
|
||||
* <table>
|
||||
* <thead>
|
||||
* <tr>
|
||||
* <th>Property</th>
|
||||
* <th>Description</th>
|
||||
* </tr>
|
||||
* </thead>
|
||||
* <tbody>
|
||||
* <tr>
|
||||
* <td>[pivot]{@link PIXI.DisplayObject#pivot}</td>
|
||||
* <td>
|
||||
* Invariant under rotation, scaling, and skewing. The projection of into the parent's space of the pivot
|
||||
* is equal to position, regardless of the other three transformations. In other words, It is the center of
|
||||
* rotation, scaling, and skewing.
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>[position]{@link PIXI.DisplayObject#position}</td>
|
||||
* <td>
|
||||
* Translation. This is the position of the [pivot]{@link PIXI.DisplayObject#pivot} in the parent's local
|
||||
* space. The default value of the pivot is the origin (0,0). If the top-left corner of your display object
|
||||
* is (0,0) in its local space, then the position will be its top-left corner in the parent's local space.
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>[scale]{@link PIXI.DisplayObject#scale}</td>
|
||||
* <td>
|
||||
* Scaling. This will stretch (or compress) the display object's projection. The scale factors are along the
|
||||
* local coordinate axes. In other words, the display object is scaled before rotated or skewed. The center
|
||||
* of scaling is the [pivot]{@link PIXI.DisplayObject#pivot}.
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>[rotation]{@link PIXI.DisplayObject#rotation}</td>
|
||||
* <td>
|
||||
* Rotation. This will rotate the display object's projection by this angle (in radians).
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>[skew]{@link PIXI.DisplayObject#skew}</td>
|
||||
* <td>
|
||||
* <p>Skewing. This can be used to deform a rectangular display object into a parallelogram.</p>
|
||||
* <p>
|
||||
* In PixiJS, skew has a slightly different behaviour than the conventional meaning. It can be
|
||||
* thought of the net rotation applied to the coordinate axes (separately). For example, if "skew.x" is
|
||||
* ⍺ and "skew.y" is β, then the line x = 0 will be rotated by ⍺ (y = -x*cot⍺) and the line y = 0 will be
|
||||
* rotated by β (y = x*tanβ). A line y = x*tanϴ (i.e. a line at angle ϴ to the x-axis in local-space) will
|
||||
* be rotated by an angle between ⍺ and β.
|
||||
* </p>
|
||||
* <p>
|
||||
* It can be observed that if skew is applied equally to both axes, then it will be equivalent to applying
|
||||
* a rotation. Indeed, if "skew.x" = -ϴ and "skew.y" = ϴ, it will produce an equivalent of "rotation" = ϴ.
|
||||
* </p>
|
||||
* <p>
|
||||
* Another quite interesting observation is that "skew.x", "skew.y", rotation are communtative operations. Indeed,
|
||||
* because rotation is essentially a careful combination of the two.
|
||||
* </p>
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>angle</td>
|
||||
* <td>Rotation. This is an alias for [rotation]{@link PIXI.DisplayObject#rotation}, but in degrees.</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>x</td>
|
||||
* <td>Translation. This is an alias for position.x!</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>y</td>
|
||||
* <td>Translation. This is an alias for position.y!</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>width</td>
|
||||
* <td>
|
||||
* Implemented in [Container]{@link PIXI.Container}. Scaling. The width property calculates scale.x by dividing
|
||||
* the "requested" width by the local bounding box width. It is indirectly an abstraction over scale.x, and there
|
||||
* is no concept of user-defined width.
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>height</td>
|
||||
* <td>
|
||||
* Implemented in [Container]{@link PIXI.Container}. Scaling. The height property calculates scale.y by dividing
|
||||
* the "requested" height by the local bounding box height. It is indirectly an abstraction over scale.y, and there
|
||||
* is no concept of user-defined height.
|
||||
* </td>
|
||||
* </tr>
|
||||
* </tbody>
|
||||
* </table>
|
||||
*
|
||||
* ## Bounds
|
||||
*
|
||||
* The bounds of a display object is defined by the minimum axis-aligned rectangle in world space that can fit
|
||||
* around it. The abstract `calculateBounds` method is responsible for providing it (and it should use the
|
||||
* `worldTransform` to calculate in world space).
|
||||
*
|
||||
* There are a few additional types of bounding boxes:
|
||||
*
|
||||
* | Bounds | Description |
|
||||
* | --------------------- | ---------------------------------------------------------------------------------------- |
|
||||
* | World Bounds | This is synonymous is the regular bounds described above. See `getBounds()`. |
|
||||
* | Local Bounds | This the axis-aligned bounding box in the parent's local space. See `getLocalBounds()`. |
|
||||
* | Render Bounds | The bounds, but including extra rendering effects like filter padding. |
|
||||
* | Projected Bounds | The bounds of the projected display object onto the screen. Usually equals world bounds. |
|
||||
* | Relative Bounds | The bounds of a display object when projected onto a ancestor's (or parent's) space. |
|
||||
* | Natural Bounds | The bounds of an object in its own local space (not parent's space, like in local bounds)|
|
||||
* | Content Bounds | The natural bounds when excluding all children of a `Container`. |
|
||||
*
|
||||
* ### calculateBounds
|
||||
*
|
||||
* [Container]{@link Container} already implements `calculateBounds` in a manner that includes children.
|
||||
*
|
||||
* But for a non-Container display object, the `calculateBounds` method must be overridden in order for `getBounds` and
|
||||
* `getLocalBounds` to work. This method must write the bounds into `this._bounds`.
|
||||
*
|
||||
* Generally, the following technique works for most simple cases: take the list of points
|
||||
* forming the "hull" of the object (i.e. outline of the object's shape), and then add them
|
||||
* using {@link PIXI.Bounds#addPointMatrix}.
|
||||
*
|
||||
* ```js
|
||||
* calculateBounds(): void
|
||||
* {
|
||||
* const points = [...];
|
||||
*
|
||||
* for (let i = 0, j = points.length; i < j; i++)
|
||||
* {
|
||||
* this._bounds.addPointMatrix(this.worldTransform, points[i]);
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* You can optimize this for a large number of points by using {@link PIXI.Bounds#addVerticesMatrix} to pass them
|
||||
* in one array together.
|
||||
*
|
||||
* ## Alpha
|
||||
*
|
||||
* This alpha sets a display object's **relative opacity** w.r.t its parent. For example, if the alpha of a display
|
||||
* object is 0.5 and its parent's alpha is 0.5, then it will be rendered with 25% opacity (assuming alpha is not
|
||||
* applied on any ancestor further up the chain).
|
||||
*
|
||||
* The alpha with which the display object will be rendered is called the [worldAlpha]{@link PIXI.DisplayObject#worldAlpha}.
|
||||
*
|
||||
* ## Renderable vs Visible
|
||||
*
|
||||
* The `renderable` and `visible` properties can be used to prevent a display object from being rendered to the
|
||||
* screen. However, there is a subtle difference between the two. When using `renderable`, the transforms of the display
|
||||
* object (and its children subtree) will continue to be calculated. When using `visible`, the transforms will not
|
||||
* be calculated.
|
||||
*
|
||||
* It is recommended that applications use the `renderable` property for culling. See
|
||||
* [@pixi-essentials/cull]{@link https://www.npmjs.com/package/@pixi-essentials/cull} or
|
||||
* [pixi-cull]{@link https://www.npmjs.com/package/pixi-cull} for more details.
|
||||
*
|
||||
* Otherwise, to prevent an object from rendering in the general-purpose sense - `visible` is the property to use. This
|
||||
* one is also better in terms of performance.
|
||||
* @memberof PIXI
|
||||
*/
|
||||
export declare abstract class DisplayObject extends EventEmitter {
|
||||
abstract sortDirty: boolean;
|
||||
/** The display object container that contains this display object. */
|
||||
parent: Container;
|
||||
/**
|
||||
* The multiplied alpha of the displayObject.
|
||||
* @readonly
|
||||
*/
|
||||
worldAlpha: number;
|
||||
/**
|
||||
* World transform and local transform of this object.
|
||||
* This will become read-only later, please do not assign anything there unless you know what are you doing.
|
||||
*/
|
||||
transform: Transform;
|
||||
/** The opacity of the object. */
|
||||
alpha: number;
|
||||
/**
|
||||
* The visibility of the object. If false the object will not be drawn, and
|
||||
* the updateTransform function will not be called.
|
||||
*
|
||||
* Only affects recursive calls from parent. You can ask for bounds or call updateTransform manually.
|
||||
*/
|
||||
visible: boolean;
|
||||
/**
|
||||
* Can this object be rendered, if false the object will not be drawn but the updateTransform
|
||||
* methods will still be called.
|
||||
*
|
||||
* Only affects recursive calls from parent. You can ask for bounds manually.
|
||||
*/
|
||||
renderable: boolean;
|
||||
/**
|
||||
* Should this object be rendered if the bounds of this object are out of frame?
|
||||
*
|
||||
* Culling has no effect on whether updateTransform is called.
|
||||
*/
|
||||
cullable: boolean;
|
||||
/**
|
||||
* If set, this shape is used for culling instead of the bounds of this object.
|
||||
* It can improve the culling performance of objects with many children.
|
||||
* The culling area is defined in local space.
|
||||
*/
|
||||
cullArea: Rectangle;
|
||||
/**
|
||||
* The area the filter is applied to. This is used as more of an optimization
|
||||
* rather than figuring out the dimensions of the displayObject each frame you can set this rectangle.
|
||||
*
|
||||
* Also works as an interaction mask.
|
||||
*/
|
||||
filterArea: Rectangle;
|
||||
/**
|
||||
* Sets the filters for the displayObject.
|
||||
* IMPORTANT: This is a WebGL only feature and will be ignored by the canvas renderer.
|
||||
* To remove filters simply set this property to `'null'`.
|
||||
*/
|
||||
filters: Filter[] | null;
|
||||
/** Used to fast check if a sprite is.. a sprite! */
|
||||
isSprite: boolean;
|
||||
/** Does any other displayObject use this object as a mask? */
|
||||
isMask: boolean;
|
||||
/**
|
||||
* Which index in the children array the display component was before the previous zIndex sort.
|
||||
* Used by containers to help sort objects with the same zIndex, by using previous array index as the decider.
|
||||
* @protected
|
||||
*/
|
||||
_lastSortedIndex: number;
|
||||
/**
|
||||
* The original, cached mask of the object.
|
||||
* @protected
|
||||
*/
|
||||
_mask: Container | MaskData;
|
||||
/** The bounds object, this is used to calculate and store the bounds of the displayObject. */
|
||||
_bounds: Bounds;
|
||||
/** Local bounds object, swapped with `_bounds` when using `getLocalBounds()`. */
|
||||
_localBounds: Bounds;
|
||||
/**
|
||||
* The zIndex of the displayObject.
|
||||
* A higher value will mean it will be rendered on top of other displayObjects within the same container.
|
||||
* @protected
|
||||
*/
|
||||
protected _zIndex: number;
|
||||
/**
|
||||
* Currently enabled filters.
|
||||
* @protected
|
||||
*/
|
||||
protected _enabledFilters: Filter[];
|
||||
/** Flags the cached bounds as dirty. */
|
||||
protected _boundsID: number;
|
||||
/** Cache of this display-object's bounds-rectangle. */
|
||||
protected _boundsRect: Rectangle;
|
||||
/** Cache of this display-object's local-bounds rectangle. */
|
||||
protected _localBoundsRect: Rectangle;
|
||||
/** If the object has been destroyed via destroy(). If true, it should not be used. */
|
||||
protected _destroyed: boolean;
|
||||
/** The number of times this object is used as a mask by another object. */
|
||||
private _maskRefCount;
|
||||
private tempDisplayObjectParent;
|
||||
displayObjectUpdateTransform: () => void;
|
||||
/**
|
||||
* Mixes all enumerable properties and methods from a source object to DisplayObject.
|
||||
* @param source - The source of properties and methods to mix in.
|
||||
*/
|
||||
static mixin(source: Dict<any>): void;
|
||||
constructor();
|
||||
/**
|
||||
* Fired when this DisplayObject is added to a Container.
|
||||
* @instance
|
||||
* @event added
|
||||
* @param {PIXI.Container} container - The container added to.
|
||||
*/
|
||||
/**
|
||||
* Fired when this DisplayObject is removed from a Container.
|
||||
* @instance
|
||||
* @event removed
|
||||
* @param {PIXI.Container} container - The container removed from.
|
||||
*/
|
||||
/**
|
||||
* Fired when this DisplayObject is destroyed. This event is emitted once
|
||||
* destroy is finished.
|
||||
* @instance
|
||||
* @event destroyed
|
||||
*/
|
||||
/** Readonly flag for destroyed display objects. */
|
||||
get destroyed(): boolean;
|
||||
/** Recalculates the bounds of the display object. */
|
||||
abstract calculateBounds(): void;
|
||||
abstract removeChild(child: DisplayObject): void;
|
||||
/**
|
||||
* Renders the object using the WebGL renderer.
|
||||
* @param renderer - The renderer.
|
||||
*/
|
||||
abstract render(renderer: Renderer): void;
|
||||
/** Recursively updates transform of all objects from the root to this one internal function for toLocal() */
|
||||
protected _recursivePostUpdateTransform(): void;
|
||||
/** Updates the object transform for rendering. TODO - Optimization pass! */
|
||||
updateTransform(): void;
|
||||
/**
|
||||
* Calculates and returns the (world) bounds of the display object as a [Rectangle]{@link PIXI.Rectangle}.
|
||||
*
|
||||
* This method is expensive on containers with a large subtree (like the stage). This is because the bounds
|
||||
* of a container depend on its children's bounds, which recursively causes all bounds in the subtree to
|
||||
* be recalculated. The upside, however, is that calling `getBounds` once on a container will indeed update
|
||||
* the bounds of all children (the whole subtree, in fact). This side effect should be exploited by using
|
||||
* `displayObject._bounds.getRectangle()` when traversing through all the bounds in a scene graph. Otherwise,
|
||||
* calling `getBounds` on each object in a subtree will cause the total cost to increase quadratically as
|
||||
* its height increases.
|
||||
*
|
||||
* The transforms of all objects in a container's **subtree** and of all **ancestors** are updated.
|
||||
* The world bounds of all display objects in a container's **subtree** will also be recalculated.
|
||||
*
|
||||
* The `_bounds` object stores the last calculation of the bounds. You can use to entirely skip bounds
|
||||
* calculation if needed.
|
||||
*
|
||||
* ```js
|
||||
* const lastCalculatedBounds = displayObject._bounds.getRectangle(optionalRect);
|
||||
* ```
|
||||
*
|
||||
* Do know that usage of `getLocalBounds` can corrupt the `_bounds` of children (the whole subtree, actually). This
|
||||
* is a known issue that has not been solved. See [getLocalBounds]{@link PIXI.DisplayObject#getLocalBounds} for more
|
||||
* details.
|
||||
*
|
||||
* `getBounds` should be called with `skipUpdate` equal to `true` in a render() call. This is because the transforms
|
||||
* are guaranteed to be update-to-date. In fact, recalculating inside a render() call may cause corruption in certain
|
||||
* cases.
|
||||
* @param skipUpdate - Setting to `true` will stop the transforms of the scene graph from
|
||||
* being updated. This means the calculation returned MAY be out of date BUT will give you a
|
||||
* nice performance boost.
|
||||
* @param rect - Optional rectangle to store the result of the bounds calculation.
|
||||
* @returns - The minimum axis-aligned rectangle in world space that fits around this object.
|
||||
*/
|
||||
getBounds(skipUpdate?: boolean, rect?: Rectangle): Rectangle;
|
||||
/**
|
||||
* Retrieves the local bounds of the displayObject as a rectangle object.
|
||||
* @param rect - Optional rectangle to store the result of the bounds calculation.
|
||||
* @returns - The rectangular bounding area.
|
||||
*/
|
||||
getLocalBounds(rect?: Rectangle): Rectangle;
|
||||
/**
|
||||
* Calculates the global position of the display object.
|
||||
* @param position - The world origin to calculate from.
|
||||
* @param point - A Point object in which to store the value, optional
|
||||
* (otherwise will create a new Point).
|
||||
* @param skipUpdate - Should we skip the update transform.
|
||||
* @returns - A point object representing the position of this object.
|
||||
*/
|
||||
toGlobal<P extends IPointData = Point>(position: IPointData, point?: P, skipUpdate?: boolean): P;
|
||||
/**
|
||||
* Calculates the local position of the display object relative to another point.
|
||||
* @param position - The world origin to calculate from.
|
||||
* @param from - The DisplayObject to calculate the global position from.
|
||||
* @param point - A Point object in which to store the value, optional
|
||||
* (otherwise will create a new Point).
|
||||
* @param skipUpdate - Should we skip the update transform
|
||||
* @returns - A point object representing the position of this object
|
||||
*/
|
||||
toLocal<P extends IPointData = Point>(position: IPointData, from?: DisplayObject, point?: P, skipUpdate?: boolean): P;
|
||||
/**
|
||||
* Set the parent Container of this DisplayObject.
|
||||
* @param container - The Container to add this DisplayObject to.
|
||||
* @returns - The Container that this DisplayObject was added to.
|
||||
*/
|
||||
setParent(container: Container): Container;
|
||||
/**
|
||||
* Convenience function to set the position, scale, skew and pivot at once.
|
||||
* @param x - The X position
|
||||
* @param y - The Y position
|
||||
* @param scaleX - The X scale value
|
||||
* @param scaleY - The Y scale value
|
||||
* @param rotation - The rotation
|
||||
* @param skewX - The X skew value
|
||||
* @param skewY - The Y skew value
|
||||
* @param pivotX - The X pivot value
|
||||
* @param pivotY - The Y pivot value
|
||||
* @returns - The DisplayObject instance
|
||||
*/
|
||||
setTransform(x?: number, y?: number, scaleX?: number, scaleY?: number, rotation?: number, skewX?: number, skewY?: number, pivotX?: number, pivotY?: number): this;
|
||||
/**
|
||||
* Base destroy method for generic display objects. This will automatically
|
||||
* remove the display object from its parent Container as well as remove
|
||||
* all current event listeners and internal references. Do not use a DisplayObject
|
||||
* after calling `destroy()`.
|
||||
* @param _options
|
||||
*/
|
||||
destroy(_options?: IDestroyOptions | boolean): void;
|
||||
/**
|
||||
* @protected
|
||||
* @member {PIXI.Container}
|
||||
*/
|
||||
get _tempDisplayObjectParent(): TemporaryDisplayObject;
|
||||
/**
|
||||
* Used in Renderer, cacheAsBitmap and other places where you call an `updateTransform` on root
|
||||
*
|
||||
* ```
|
||||
* const cacheParent = elem.enableTempParent();
|
||||
* elem.updateTransform();
|
||||
* elem.disableTempParent(cacheParent);
|
||||
* ```
|
||||
* @returns - current parent
|
||||
*/
|
||||
enableTempParent(): Container;
|
||||
/**
|
||||
* Pair method for `enableTempParent`
|
||||
* @param cacheParent - Actual parent of element
|
||||
*/
|
||||
disableTempParent(cacheParent: Container): void;
|
||||
/**
|
||||
* The position of the displayObject on the x axis relative to the local coordinates of the parent.
|
||||
* An alias to position.x
|
||||
*/
|
||||
get x(): number;
|
||||
set x(value: number);
|
||||
/**
|
||||
* The position of the displayObject on the y axis relative to the local coordinates of the parent.
|
||||
* An alias to position.y
|
||||
*/
|
||||
get y(): number;
|
||||
set y(value: number);
|
||||
/**
|
||||
* Current transform of the object based on world (parent) factors.
|
||||
* @readonly
|
||||
*/
|
||||
get worldTransform(): Matrix;
|
||||
/**
|
||||
* Current transform of the object based on local factors: position, scale, other stuff.
|
||||
* @readonly
|
||||
*/
|
||||
get localTransform(): Matrix;
|
||||
/**
|
||||
* The coordinate of the object relative to the local coordinates of the parent.
|
||||
* @since 4.0.0
|
||||
*/
|
||||
get position(): ObservablePoint;
|
||||
set position(value: IPointData);
|
||||
/**
|
||||
* The scale factors of this object along the local coordinate axes.
|
||||
*
|
||||
* The default scale is (1, 1).
|
||||
* @since 4.0.0
|
||||
*/
|
||||
get scale(): ObservablePoint;
|
||||
set scale(value: IPointData);
|
||||
/**
|
||||
* The center of rotation, scaling, and skewing for this display object in its local space. The `position`
|
||||
* is the projection of `pivot` in the parent's local space.
|
||||
*
|
||||
* By default, the pivot is the origin (0, 0).
|
||||
* @since 4.0.0
|
||||
*/
|
||||
get pivot(): ObservablePoint;
|
||||
set pivot(value: IPointData);
|
||||
/**
|
||||
* The skew factor for the object in radians.
|
||||
* @since 4.0.0
|
||||
*/
|
||||
get skew(): ObservablePoint;
|
||||
set skew(value: IPointData);
|
||||
/**
|
||||
* The rotation of the object in radians.
|
||||
* 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
|
||||
*/
|
||||
get rotation(): number;
|
||||
set rotation(value: number);
|
||||
/**
|
||||
* The angle of the object in degrees.
|
||||
* 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
|
||||
*/
|
||||
get angle(): number;
|
||||
set angle(value: number);
|
||||
/**
|
||||
* The zIndex of the displayObject.
|
||||
*
|
||||
* If a container has the sortableChildren property set to true, children will be automatically
|
||||
* sorted by zIndex value; a higher value will mean it will be moved towards the end of the array,
|
||||
* and thus rendered on top of other display objects within the same container.
|
||||
* @see PIXI.Container#sortableChildren
|
||||
*/
|
||||
get zIndex(): number;
|
||||
set zIndex(value: number);
|
||||
/**
|
||||
* Indicates if the object is globally visible.
|
||||
* @readonly
|
||||
*/
|
||||
get worldVisible(): boolean;
|
||||
/**
|
||||
* Sets a mask for the displayObject. A mask is an object that limits the visibility of an
|
||||
* object to the shape of the mask applied to it. In PixiJS a regular mask must be a
|
||||
* {@link PIXI.Graphics} or a {@link PIXI.Sprite} object. This allows for much faster masking in canvas as it
|
||||
* utilities shape clipping. Furthermore, a mask of an object must be in the subtree of its parent.
|
||||
* Otherwise, `getLocalBounds` may calculate incorrect bounds, which makes the container's width and height wrong.
|
||||
* To remove a mask, set this property to `null`.
|
||||
*
|
||||
* For sprite mask both alpha and red channel are used. Black mask is the same as transparent mask.
|
||||
* @example
|
||||
* const graphics = new PIXI.Graphics();
|
||||
* graphics.beginFill(0xFF3300);
|
||||
* graphics.drawRect(50, 250, 100, 100);
|
||||
* graphics.endFill();
|
||||
*
|
||||
* const sprite = new PIXI.Sprite(texture);
|
||||
* sprite.mask = graphics;
|
||||
* @todo At the moment, PIXI.CanvasRenderer doesn't support PIXI.Sprite as mask.
|
||||
*/
|
||||
get mask(): Container | MaskData | null;
|
||||
set mask(value: Container | MaskData | null);
|
||||
}
|
||||
|
||||
export declare interface IDestroyOptions {
|
||||
children?: boolean;
|
||||
texture?: boolean;
|
||||
baseTexture?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export declare class TemporaryDisplayObject extends DisplayObject {
|
||||
calculateBounds: () => null;
|
||||
removeChild: (child: DisplayObject) => null;
|
||||
render: (renderer: Renderer) => null;
|
||||
sortDirty: boolean;
|
||||
}
|
||||
|
||||
export { }
|
||||
47
live2d/node_modules/@pixi/display/package.json
generated
vendored
Normal file
47
live2d/node_modules/@pixi/display/package.json
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "@pixi/display",
|
||||
"version": "6.5.10",
|
||||
"main": "dist/cjs/display.js",
|
||||
"module": "dist/esm/display.mjs",
|
||||
"bundle": "dist/browser/display.js",
|
||||
"types": "index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./dist/esm/display.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./dist/cjs/display.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Core display functionality",
|
||||
"author": "Mat Groves",
|
||||
"contributors": [
|
||||
"Matt Karl <matt@mattkarl.com>"
|
||||
],
|
||||
"homepage": "http://pixijs.com/",
|
||||
"bugs": "https://github.com/pixijs/pixi.js/issues",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pixijs/pixi.js.git"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"dist",
|
||||
"*.d.ts"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"@pixi/constants": "6.5.10",
|
||||
"@pixi/math": "6.5.10",
|
||||
"@pixi/settings": "6.5.10",
|
||||
"@pixi/utils": "6.5.10"
|
||||
},
|
||||
"gitHead": "8cdbf55064b7adc05f65c51e177f1c22f7329f0f"
|
||||
}
|
||||
21
live2d/node_modules/@pixi/extensions/LICENSE
generated
vendored
Normal file
21
live2d/node_modules/@pixi/extensions/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2022 Matt Karl
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
15
live2d/node_modules/@pixi/extensions/README.md
generated
vendored
Normal file
15
live2d/node_modules/@pixi/extensions/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# @pixi/extensions
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @pixi/extensions
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import { extensions } from '@pixi/extensions';
|
||||
|
||||
extensions.add(MyCustomExtension);
|
||||
```
|
||||
415
live2d/node_modules/@pixi/extensions/dist/browser/extensions.js
generated
vendored
Normal file
415
live2d/node_modules/@pixi/extensions/dist/browser/extensions.js
generated
vendored
Normal file
@@ -0,0 +1,415 @@
|
||||
/*!
|
||||
* @pixi/extensions - v6.5.10
|
||||
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||||
*
|
||||
* @pixi/extensions is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
this.PIXI = this.PIXI || {};
|
||||
var _pixi_extensions = (function (exports) {
|
||||
'use strict';
|
||||
|
||||
/*! *****************************************************************************
|
||||
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 (b.hasOwnProperty(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 __());
|
||||
}
|
||||
|
||||
var __assign = function() {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments$1[i];
|
||||
for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p)) { t[p] = s[p]; } }
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
|
||||
function __rest(s, e) {
|
||||
var t = {};
|
||||
for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
{ t[p] = s[p]; } }
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
{ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
{ t[p[i]] = s[p[i]]; }
|
||||
} }
|
||||
return t;
|
||||
}
|
||||
|
||||
function __decorate(decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") { r = Reflect.decorate(decorators, target, key, desc); }
|
||||
else { for (var i = decorators.length - 1; i >= 0; i--) { if (d = decorators[i]) { r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; } } }
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
}
|
||||
|
||||
function __param(paramIndex, decorator) {
|
||||
return function (target, key) { decorator(target, key, paramIndex); }
|
||||
}
|
||||
|
||||
function __metadata(metadataKey, metadataValue) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") { return Reflect.metadata(metadataKey, metadataValue); }
|
||||
}
|
||||
|
||||
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 };
|
||||
}
|
||||
}
|
||||
|
||||
function __createBinding(o, m, k, k2) {
|
||||
if (k2 === undefined) { k2 = k; }
|
||||
o[k2] = m[k];
|
||||
}
|
||||
|
||||
function __exportStar(m, exports) {
|
||||
for (var p in m) { if (p !== "default" && !exports.hasOwnProperty(p)) { exports[p] = m[p]; } }
|
||||
}
|
||||
|
||||
function __values(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) { return m.call(o); }
|
||||
if (o && typeof o.length === "number") { return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) { o = void 0; }
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
}; }
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
}
|
||||
|
||||
function __read(o, n) {
|
||||
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
||||
if (!m) { return o; }
|
||||
var i = m.call(o), r, ar = [], e;
|
||||
try {
|
||||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) { ar.push(r.value); }
|
||||
}
|
||||
catch (error) { e = { error: error }; }
|
||||
finally {
|
||||
try {
|
||||
if (r && !r.done && (m = i["return"])) { m.call(i); }
|
||||
}
|
||||
finally { if (e) { throw e.error; } }
|
||||
}
|
||||
return ar;
|
||||
}
|
||||
|
||||
function __spread() {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
for (var ar = [], i = 0; i < arguments.length; i++)
|
||||
{ ar = ar.concat(__read(arguments$1[i])); }
|
||||
return ar;
|
||||
}
|
||||
|
||||
function __spreadArrays() {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) { s += arguments$1[i].length; }
|
||||
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
||||
{ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
||||
{ r[k] = a[j]; } }
|
||||
return r;
|
||||
};
|
||||
|
||||
function __await(v) {
|
||||
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
||||
}
|
||||
|
||||
function __asyncGenerator(thisArg, _arguments, generator) {
|
||||
if (!Symbol.asyncIterator) { throw new TypeError("Symbol.asyncIterator is not defined."); }
|
||||
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
||||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
||||
function verb(n) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } }
|
||||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
||||
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
||||
function fulfill(value) { resume("next", value); }
|
||||
function reject(value) { resume("throw", value); }
|
||||
function settle(f, v) { if (f(v), q.shift(), q.length) { resume(q[0][0], q[0][1]); } }
|
||||
}
|
||||
|
||||
function __asyncDelegator(o) {
|
||||
var i, p;
|
||||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
||||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
||||
}
|
||||
|
||||
function __asyncValues(o) {
|
||||
if (!Symbol.asyncIterator) { throw new TypeError("Symbol.asyncIterator is not defined."); }
|
||||
var m = o[Symbol.asyncIterator], i;
|
||||
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
||||
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
||||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
||||
}
|
||||
|
||||
function __makeTemplateObject(cooked, raw) {
|
||||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
||||
return cooked;
|
||||
};
|
||||
|
||||
function __importStar(mod) {
|
||||
if (mod && mod.__esModule) { return mod; }
|
||||
var result = {};
|
||||
if (mod != null) { for (var k in mod) { if (Object.hasOwnProperty.call(mod, k)) { result[k] = mod[k]; } } }
|
||||
result.default = mod;
|
||||
return result;
|
||||
}
|
||||
|
||||
function __importDefault(mod) {
|
||||
return (mod && mod.__esModule) ? mod : { default: mod };
|
||||
}
|
||||
|
||||
function __classPrivateFieldGet(receiver, privateMap) {
|
||||
if (!privateMap.has(receiver)) {
|
||||
throw new TypeError("attempted to get private field on non-instance");
|
||||
}
|
||||
return privateMap.get(receiver);
|
||||
}
|
||||
|
||||
function __classPrivateFieldSet(receiver, privateMap, value) {
|
||||
if (!privateMap.has(receiver)) {
|
||||
throw new TypeError("attempted to set private field on non-instance");
|
||||
}
|
||||
privateMap.set(receiver, value);
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Collection of valid extension types.
|
||||
* @memberof PIXI
|
||||
* @property {string} Application - Application plugins
|
||||
* @property {string} RendererPlugin - Plugins for Renderer
|
||||
* @property {string} CanvasRendererPlugin - Plugins for CanvasRenderer
|
||||
* @property {string} Loader - Plugins to use with Loader
|
||||
* @property {string} LoadParser - Parsers for Assets loader.
|
||||
* @property {string} ResolveParser - Parsers for Assets resolvers.
|
||||
* @property {string} CacheParser - Parsers for Assets cache.
|
||||
*/
|
||||
exports.ExtensionType = void 0;
|
||||
(function (ExtensionType) {
|
||||
ExtensionType["Application"] = "application";
|
||||
ExtensionType["RendererPlugin"] = "renderer-webgl-plugin";
|
||||
ExtensionType["CanvasRendererPlugin"] = "renderer-canvas-plugin";
|
||||
ExtensionType["Loader"] = "loader";
|
||||
ExtensionType["LoadParser"] = "load-parser";
|
||||
ExtensionType["ResolveParser"] = "resolve-parser";
|
||||
ExtensionType["CacheParser"] = "cache-parser";
|
||||
ExtensionType["DetectionParser"] = "detection-parser";
|
||||
})(exports.ExtensionType || (exports.ExtensionType = {}));
|
||||
/**
|
||||
* Convert input into extension format data.
|
||||
* @ignore
|
||||
*/
|
||||
var normalizeExtension = function (ext) {
|
||||
// Class/Object submission, use extension object
|
||||
if (typeof ext === 'function' || (typeof ext === 'object' && ext.extension)) {
|
||||
if (!ext.extension) {
|
||||
throw new Error('Extension class must have an extension object');
|
||||
}
|
||||
var metadata = (typeof ext.extension !== 'object')
|
||||
? { type: ext.extension }
|
||||
: ext.extension;
|
||||
ext = __assign(__assign({}, metadata), { ref: ext });
|
||||
}
|
||||
if (typeof ext === 'object') {
|
||||
ext = __assign({}, ext);
|
||||
}
|
||||
else {
|
||||
throw new Error('Invalid extension type');
|
||||
}
|
||||
if (typeof ext.type === 'string') {
|
||||
ext.type = [ext.type];
|
||||
}
|
||||
return ext;
|
||||
};
|
||||
/**
|
||||
* Global registration of all PixiJS extensions. One-stop-shop for extensibility.
|
||||
* @memberof PIXI
|
||||
* @namespace extensions
|
||||
*/
|
||||
var extensions = {
|
||||
/** @ignore */
|
||||
_addHandlers: null,
|
||||
/** @ignore */
|
||||
_removeHandlers: null,
|
||||
/** @ignore */
|
||||
_queue: {},
|
||||
/**
|
||||
* Remove extensions from PixiJS.
|
||||
* @param extensions - Extensions to be removed.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
remove: function () {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
var _this = this;
|
||||
var extensions = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
extensions[_i] = arguments$1[_i];
|
||||
}
|
||||
extensions.map(normalizeExtension).forEach(function (ext) {
|
||||
ext.type.forEach(function (type) { var _a, _b; return (_b = (_a = _this._removeHandlers)[type]) === null || _b === void 0 ? void 0 : _b.call(_a, ext); });
|
||||
});
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
* Register new extensions with PixiJS.
|
||||
* @param extensions - The spread of extensions to add to PixiJS.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
add: function () {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
var _this = this;
|
||||
var extensions = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
extensions[_i] = arguments$1[_i];
|
||||
}
|
||||
// Handle any extensions either passed as class w/ data or as data
|
||||
extensions.map(normalizeExtension).forEach(function (ext) {
|
||||
ext.type.forEach(function (type) {
|
||||
var handlers = _this._addHandlers;
|
||||
var queue = _this._queue;
|
||||
if (!handlers[type]) {
|
||||
queue[type] = queue[type] || [];
|
||||
queue[type].push(ext);
|
||||
}
|
||||
else {
|
||||
handlers[type](ext);
|
||||
}
|
||||
});
|
||||
});
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
* Internal method to handle extensions by name.
|
||||
* @param type - The extension type.
|
||||
* @param onAdd - Function for handling when extensions are added/registered passes {@link PIXI.ExtensionFormat}.
|
||||
* @param onRemove - Function for handling when extensions are removed/unregistered passes {@link PIXI.ExtensionFormat}.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handle: function (type, onAdd, onRemove) {
|
||||
var addHandlers = this._addHandlers = this._addHandlers || {};
|
||||
var removeHandlers = this._removeHandlers = this._removeHandlers || {};
|
||||
if (addHandlers[type] || removeHandlers[type]) {
|
||||
throw new Error("Extension type " + type + " already has a handler");
|
||||
}
|
||||
addHandlers[type] = onAdd;
|
||||
removeHandlers[type] = onRemove;
|
||||
// Process the queue
|
||||
var queue = this._queue;
|
||||
// Process any plugins that have been registered before the handler
|
||||
if (queue[type]) {
|
||||
queue[type].forEach(function (ext) { return onAdd(ext); });
|
||||
delete queue[type];
|
||||
}
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
* Handle a type, but using a map by `name` property.
|
||||
* @param type - Type of extension to handle.
|
||||
* @param map - The object map of named extensions.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handleByMap: function (type, map) {
|
||||
return this.handle(type, function (extension) {
|
||||
map[extension.name] = extension.ref;
|
||||
}, function (extension) {
|
||||
delete map[extension.name];
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Handle a type, but using a list of extensions.
|
||||
* @param type - Type of extension to handle.
|
||||
* @param list - The list of extensions.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handleByList: function (type, list) {
|
||||
return this.handle(type, function (extension) {
|
||||
var _a, _b;
|
||||
if (list.includes(extension.ref)) {
|
||||
return;
|
||||
}
|
||||
list.push(extension.ref);
|
||||
// TODO: remove me later, only added for @pixi/loaders
|
||||
if (type === exports.ExtensionType.Loader) {
|
||||
(_b = (_a = extension.ref).add) === null || _b === void 0 ? void 0 : _b.call(_a);
|
||||
}
|
||||
}, function (extension) {
|
||||
var index = list.indexOf(extension.ref);
|
||||
if (index !== -1) {
|
||||
list.splice(index, 1);
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
exports.extensions = extensions;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
return exports;
|
||||
|
||||
})({});
|
||||
Object.assign(this.PIXI, _pixi_extensions);
|
||||
//# sourceMappingURL=extensions.js.map
|
||||
1
live2d/node_modules/@pixi/extensions/dist/browser/extensions.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/extensions/dist/browser/extensions.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/extensions/dist/browser/extensions.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/extensions/dist/browser/extensions.min.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*!
|
||||
* @pixi/extensions - v6.5.10
|
||||
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||||
*
|
||||
* @pixi/extensions is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
this.PIXI=this.PIXI||{};var _pixi_extensions=function(e){"use strict";var n,r=function(){return r=Object.assign||function(e){for(var n,r=arguments,t=1,i=arguments.length;t<i;t++)for(var o in n=r[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},r.apply(this,arguments)};e.ExtensionType=void 0,(n=e.ExtensionType||(e.ExtensionType={})).Application="application",n.RendererPlugin="renderer-webgl-plugin",n.CanvasRendererPlugin="renderer-canvas-plugin",n.Loader="loader",n.LoadParser="load-parser",n.ResolveParser="resolve-parser",n.CacheParser="cache-parser",n.DetectionParser="detection-parser";var t=function(e){if("function"==typeof e||"object"==typeof e&&e.extension){var n="object"!=typeof e.extension?{type:e.extension}:e.extension;e=r(r({},n),{ref:e})}if("object"!=typeof e)throw new Error("Invalid extension type");return"string"==typeof(e=r({},e)).type&&(e.type=[e.type]),e},i={_addHandlers:null,_removeHandlers:null,_queue:{},remove:function(){for(var e=arguments,n=this,r=[],i=0;i<arguments.length;i++)r[i]=e[i];return r.map(t).forEach((function(e){e.type.forEach((function(r){var t,i;return null===(i=(t=n._removeHandlers)[r])||void 0===i?void 0:i.call(t,e)}))})),this},add:function(){for(var e=arguments,n=this,r=[],i=0;i<arguments.length;i++)r[i]=e[i];return r.map(t).forEach((function(e){e.type.forEach((function(r){var t=n._addHandlers,i=n._queue;t[r]?t[r](e):(i[r]=i[r]||[],i[r].push(e))}))})),this},handle:function(e,n,r){var t=this._addHandlers=this._addHandlers||{},i=this._removeHandlers=this._removeHandlers||{};t[e]=n,i[e]=r;var o=this._queue;return o[e]&&(o[e].forEach((function(e){return n(e)})),delete o[e]),this},handleByMap:function(e,n){return this.handle(e,(function(e){n[e.name]=e.ref}),(function(e){delete n[e.name]}))},handleByList:function(n,r){return this.handle(n,(function(t){var i,o;r.includes(t.ref)||(r.push(t.ref),n===e.ExtensionType.Loader&&(null===(o=(i=t.ref).add)||void 0===o||o.call(i)))}),(function(e){var n=r.indexOf(e.ref);-1!==n&&r.splice(n,1)}))}};return e.extensions=i,Object.defineProperty(e,"__esModule",{value:!0}),e}({});Object.assign(this.PIXI,_pixi_extensions);
|
||||
//# sourceMappingURL=extensions.min.js.map
|
||||
1
live2d/node_modules/@pixi/extensions/dist/browser/extensions.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/extensions/dist/browser/extensions.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
211
live2d/node_modules/@pixi/extensions/dist/cjs/extensions.js
generated
vendored
Normal file
211
live2d/node_modules/@pixi/extensions/dist/cjs/extensions.js
generated
vendored
Normal file
@@ -0,0 +1,211 @@
|
||||
/*!
|
||||
* @pixi/extensions - v6.5.10
|
||||
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||||
*
|
||||
* @pixi/extensions is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
/*! *****************************************************************************
|
||||
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.
|
||||
***************************************************************************** */
|
||||
|
||||
var __assign = function() {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments$1[i];
|
||||
for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p)) { t[p] = s[p]; } }
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
|
||||
/**
|
||||
* Collection of valid extension types.
|
||||
* @memberof PIXI
|
||||
* @property {string} Application - Application plugins
|
||||
* @property {string} RendererPlugin - Plugins for Renderer
|
||||
* @property {string} CanvasRendererPlugin - Plugins for CanvasRenderer
|
||||
* @property {string} Loader - Plugins to use with Loader
|
||||
* @property {string} LoadParser - Parsers for Assets loader.
|
||||
* @property {string} ResolveParser - Parsers for Assets resolvers.
|
||||
* @property {string} CacheParser - Parsers for Assets cache.
|
||||
*/
|
||||
exports.ExtensionType = void 0;
|
||||
(function (ExtensionType) {
|
||||
ExtensionType["Application"] = "application";
|
||||
ExtensionType["RendererPlugin"] = "renderer-webgl-plugin";
|
||||
ExtensionType["CanvasRendererPlugin"] = "renderer-canvas-plugin";
|
||||
ExtensionType["Loader"] = "loader";
|
||||
ExtensionType["LoadParser"] = "load-parser";
|
||||
ExtensionType["ResolveParser"] = "resolve-parser";
|
||||
ExtensionType["CacheParser"] = "cache-parser";
|
||||
ExtensionType["DetectionParser"] = "detection-parser";
|
||||
})(exports.ExtensionType || (exports.ExtensionType = {}));
|
||||
/**
|
||||
* Convert input into extension format data.
|
||||
* @ignore
|
||||
*/
|
||||
var normalizeExtension = function (ext) {
|
||||
// Class/Object submission, use extension object
|
||||
if (typeof ext === 'function' || (typeof ext === 'object' && ext.extension)) {
|
||||
if (!ext.extension) {
|
||||
throw new Error('Extension class must have an extension object');
|
||||
}
|
||||
var metadata = (typeof ext.extension !== 'object')
|
||||
? { type: ext.extension }
|
||||
: ext.extension;
|
||||
ext = __assign(__assign({}, metadata), { ref: ext });
|
||||
}
|
||||
if (typeof ext === 'object') {
|
||||
ext = __assign({}, ext);
|
||||
}
|
||||
else {
|
||||
throw new Error('Invalid extension type');
|
||||
}
|
||||
if (typeof ext.type === 'string') {
|
||||
ext.type = [ext.type];
|
||||
}
|
||||
return ext;
|
||||
};
|
||||
/**
|
||||
* Global registration of all PixiJS extensions. One-stop-shop for extensibility.
|
||||
* @memberof PIXI
|
||||
* @namespace extensions
|
||||
*/
|
||||
var extensions = {
|
||||
/** @ignore */
|
||||
_addHandlers: null,
|
||||
/** @ignore */
|
||||
_removeHandlers: null,
|
||||
/** @ignore */
|
||||
_queue: {},
|
||||
/**
|
||||
* Remove extensions from PixiJS.
|
||||
* @param extensions - Extensions to be removed.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
remove: function () {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
var _this = this;
|
||||
var extensions = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
extensions[_i] = arguments$1[_i];
|
||||
}
|
||||
extensions.map(normalizeExtension).forEach(function (ext) {
|
||||
ext.type.forEach(function (type) { var _a, _b; return (_b = (_a = _this._removeHandlers)[type]) === null || _b === void 0 ? void 0 : _b.call(_a, ext); });
|
||||
});
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
* Register new extensions with PixiJS.
|
||||
* @param extensions - The spread of extensions to add to PixiJS.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
add: function () {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
var _this = this;
|
||||
var extensions = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
extensions[_i] = arguments$1[_i];
|
||||
}
|
||||
// Handle any extensions either passed as class w/ data or as data
|
||||
extensions.map(normalizeExtension).forEach(function (ext) {
|
||||
ext.type.forEach(function (type) {
|
||||
var handlers = _this._addHandlers;
|
||||
var queue = _this._queue;
|
||||
if (!handlers[type]) {
|
||||
queue[type] = queue[type] || [];
|
||||
queue[type].push(ext);
|
||||
}
|
||||
else {
|
||||
handlers[type](ext);
|
||||
}
|
||||
});
|
||||
});
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
* Internal method to handle extensions by name.
|
||||
* @param type - The extension type.
|
||||
* @param onAdd - Function for handling when extensions are added/registered passes {@link PIXI.ExtensionFormat}.
|
||||
* @param onRemove - Function for handling when extensions are removed/unregistered passes {@link PIXI.ExtensionFormat}.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handle: function (type, onAdd, onRemove) {
|
||||
var addHandlers = this._addHandlers = this._addHandlers || {};
|
||||
var removeHandlers = this._removeHandlers = this._removeHandlers || {};
|
||||
if (addHandlers[type] || removeHandlers[type]) {
|
||||
throw new Error("Extension type " + type + " already has a handler");
|
||||
}
|
||||
addHandlers[type] = onAdd;
|
||||
removeHandlers[type] = onRemove;
|
||||
// Process the queue
|
||||
var queue = this._queue;
|
||||
// Process any plugins that have been registered before the handler
|
||||
if (queue[type]) {
|
||||
queue[type].forEach(function (ext) { return onAdd(ext); });
|
||||
delete queue[type];
|
||||
}
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
* Handle a type, but using a map by `name` property.
|
||||
* @param type - Type of extension to handle.
|
||||
* @param map - The object map of named extensions.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handleByMap: function (type, map) {
|
||||
return this.handle(type, function (extension) {
|
||||
map[extension.name] = extension.ref;
|
||||
}, function (extension) {
|
||||
delete map[extension.name];
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Handle a type, but using a list of extensions.
|
||||
* @param type - Type of extension to handle.
|
||||
* @param list - The list of extensions.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handleByList: function (type, list) {
|
||||
return this.handle(type, function (extension) {
|
||||
var _a, _b;
|
||||
if (list.includes(extension.ref)) {
|
||||
return;
|
||||
}
|
||||
list.push(extension.ref);
|
||||
// TODO: remove me later, only added for @pixi/loaders
|
||||
if (type === exports.ExtensionType.Loader) {
|
||||
(_b = (_a = extension.ref).add) === null || _b === void 0 ? void 0 : _b.call(_a);
|
||||
}
|
||||
}, function (extension) {
|
||||
var index = list.indexOf(extension.ref);
|
||||
if (index !== -1) {
|
||||
list.splice(index, 1);
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
exports.extensions = extensions;
|
||||
//# sourceMappingURL=extensions.js.map
|
||||
1
live2d/node_modules/@pixi/extensions/dist/cjs/extensions.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/extensions/dist/cjs/extensions.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/extensions/dist/cjs/extensions.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/extensions/dist/cjs/extensions.min.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*!
|
||||
* @pixi/extensions - v6.5.10
|
||||
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||||
*
|
||||
* @pixi/extensions is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,n=function(){return n=Object.assign||function(e){for(var n,r=arguments,t=1,o=arguments.length;t<o;t++)for(var a in n=r[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},n.apply(this,arguments)};exports.ExtensionType=void 0,(e=exports.ExtensionType||(exports.ExtensionType={})).Application="application",e.RendererPlugin="renderer-webgl-plugin",e.CanvasRendererPlugin="renderer-canvas-plugin",e.Loader="loader",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser";var r=function(e){if("function"==typeof e||"object"==typeof e&&e.extension){var r="object"!=typeof e.extension?{type:e.extension}:e.extension;e=n(n({},r),{ref:e})}if("object"!=typeof e)throw new Error("Invalid extension type");return"string"==typeof(e=n({},e)).type&&(e.type=[e.type]),e},t={_addHandlers:null,_removeHandlers:null,_queue:{},remove:function(){for(var e=arguments,n=this,t=[],o=0;o<arguments.length;o++)t[o]=e[o];return t.map(r).forEach((function(e){e.type.forEach((function(r){var t,o;return null===(o=(t=n._removeHandlers)[r])||void 0===o?void 0:o.call(t,e)}))})),this},add:function(){for(var e=arguments,n=this,t=[],o=0;o<arguments.length;o++)t[o]=e[o];return t.map(r).forEach((function(e){e.type.forEach((function(r){var t=n._addHandlers,o=n._queue;t[r]?t[r](e):(o[r]=o[r]||[],o[r].push(e))}))})),this},handle:function(e,n,r){var t=this._addHandlers=this._addHandlers||{},o=this._removeHandlers=this._removeHandlers||{};t[e]=n,o[e]=r;var a=this._queue;return a[e]&&(a[e].forEach((function(e){return n(e)})),delete a[e]),this},handleByMap:function(e,n){return this.handle(e,(function(e){n[e.name]=e.ref}),(function(e){delete n[e.name]}))},handleByList:function(e,n){return this.handle(e,(function(r){var t,o;n.includes(r.ref)||(n.push(r.ref),e===exports.ExtensionType.Loader&&(null===(o=(t=r.ref).add)||void 0===o||o.call(t)))}),(function(e){var r=n.indexOf(e.ref);-1!==r&&n.splice(r,1)}))}};exports.extensions=t;
|
||||
//# sourceMappingURL=extensions.min.js.map
|
||||
1
live2d/node_modules/@pixi/extensions/dist/cjs/extensions.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/extensions/dist/cjs/extensions.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/extensions/dist/esm/extensions.min.mjs
generated
vendored
Normal file
9
live2d/node_modules/@pixi/extensions/dist/esm/extensions.min.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*!
|
||||
* @pixi/extensions - v6.5.10
|
||||
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||||
*
|
||||
* @pixi/extensions is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
var e,n=function(){return n=Object.assign||function(e){for(var n,r=arguments,t=1,a=arguments.length;t<a;t++)for(var o in n=r[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},n.apply(this,arguments)};!function(e){e.Application="application",e.RendererPlugin="renderer-webgl-plugin",e.CanvasRendererPlugin="renderer-canvas-plugin",e.Loader="loader",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser"}(e||(e={}));var r=function(e){if("function"==typeof e||"object"==typeof e&&e.extension){var r="object"!=typeof e.extension?{type:e.extension}:e.extension;e=n(n({},r),{ref:e})}if("object"!=typeof e)throw new Error("Invalid extension type");return"string"==typeof(e=n({},e)).type&&(e.type=[e.type]),e},t={_addHandlers:null,_removeHandlers:null,_queue:{},remove:function(){for(var e=arguments,n=this,t=[],a=0;a<arguments.length;a++)t[a]=e[a];return t.map(r).forEach((function(e){e.type.forEach((function(r){var t,a;return null===(a=(t=n._removeHandlers)[r])||void 0===a?void 0:a.call(t,e)}))})),this},add:function(){for(var e=arguments,n=this,t=[],a=0;a<arguments.length;a++)t[a]=e[a];return t.map(r).forEach((function(e){e.type.forEach((function(r){var t=n._addHandlers,a=n._queue;t[r]?t[r](e):(a[r]=a[r]||[],a[r].push(e))}))})),this},handle:function(e,n,r){var t=this._addHandlers=this._addHandlers||{},a=this._removeHandlers=this._removeHandlers||{};t[e]=n,a[e]=r;var o=this._queue;return o[e]&&(o[e].forEach((function(e){return n(e)})),delete o[e]),this},handleByMap:function(e,n){return this.handle(e,(function(e){n[e.name]=e.ref}),(function(e){delete n[e.name]}))},handleByList:function(n,r){return this.handle(n,(function(t){var a,o;r.includes(t.ref)||(r.push(t.ref),n===e.Loader&&(null===(o=(a=t.ref).add)||void 0===o||o.call(a)))}),(function(e){var n=r.indexOf(e.ref);-1!==n&&r.splice(n,1)}))}};export{e as ExtensionType,t as extensions};
|
||||
//# sourceMappingURL=extensions.min.mjs.map
|
||||
1
live2d/node_modules/@pixi/extensions/dist/esm/extensions.min.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/extensions/dist/esm/extensions.min.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
207
live2d/node_modules/@pixi/extensions/dist/esm/extensions.mjs
generated
vendored
Normal file
207
live2d/node_modules/@pixi/extensions/dist/esm/extensions.mjs
generated
vendored
Normal file
@@ -0,0 +1,207 @@
|
||||
/*!
|
||||
* @pixi/extensions - v6.5.10
|
||||
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||||
*
|
||||
* @pixi/extensions is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
/*! *****************************************************************************
|
||||
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.
|
||||
***************************************************************************** */
|
||||
|
||||
var __assign = function() {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments$1[i];
|
||||
for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p)) { t[p] = s[p]; } }
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
|
||||
/**
|
||||
* Collection of valid extension types.
|
||||
* @memberof PIXI
|
||||
* @property {string} Application - Application plugins
|
||||
* @property {string} RendererPlugin - Plugins for Renderer
|
||||
* @property {string} CanvasRendererPlugin - Plugins for CanvasRenderer
|
||||
* @property {string} Loader - Plugins to use with Loader
|
||||
* @property {string} LoadParser - Parsers for Assets loader.
|
||||
* @property {string} ResolveParser - Parsers for Assets resolvers.
|
||||
* @property {string} CacheParser - Parsers for Assets cache.
|
||||
*/
|
||||
var ExtensionType;
|
||||
(function (ExtensionType) {
|
||||
ExtensionType["Application"] = "application";
|
||||
ExtensionType["RendererPlugin"] = "renderer-webgl-plugin";
|
||||
ExtensionType["CanvasRendererPlugin"] = "renderer-canvas-plugin";
|
||||
ExtensionType["Loader"] = "loader";
|
||||
ExtensionType["LoadParser"] = "load-parser";
|
||||
ExtensionType["ResolveParser"] = "resolve-parser";
|
||||
ExtensionType["CacheParser"] = "cache-parser";
|
||||
ExtensionType["DetectionParser"] = "detection-parser";
|
||||
})(ExtensionType || (ExtensionType = {}));
|
||||
/**
|
||||
* Convert input into extension format data.
|
||||
* @ignore
|
||||
*/
|
||||
var normalizeExtension = function (ext) {
|
||||
// Class/Object submission, use extension object
|
||||
if (typeof ext === 'function' || (typeof ext === 'object' && ext.extension)) {
|
||||
if (!ext.extension) {
|
||||
throw new Error('Extension class must have an extension object');
|
||||
}
|
||||
var metadata = (typeof ext.extension !== 'object')
|
||||
? { type: ext.extension }
|
||||
: ext.extension;
|
||||
ext = __assign(__assign({}, metadata), { ref: ext });
|
||||
}
|
||||
if (typeof ext === 'object') {
|
||||
ext = __assign({}, ext);
|
||||
}
|
||||
else {
|
||||
throw new Error('Invalid extension type');
|
||||
}
|
||||
if (typeof ext.type === 'string') {
|
||||
ext.type = [ext.type];
|
||||
}
|
||||
return ext;
|
||||
};
|
||||
/**
|
||||
* Global registration of all PixiJS extensions. One-stop-shop for extensibility.
|
||||
* @memberof PIXI
|
||||
* @namespace extensions
|
||||
*/
|
||||
var extensions = {
|
||||
/** @ignore */
|
||||
_addHandlers: null,
|
||||
/** @ignore */
|
||||
_removeHandlers: null,
|
||||
/** @ignore */
|
||||
_queue: {},
|
||||
/**
|
||||
* Remove extensions from PixiJS.
|
||||
* @param extensions - Extensions to be removed.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
remove: function () {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
var _this = this;
|
||||
var extensions = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
extensions[_i] = arguments$1[_i];
|
||||
}
|
||||
extensions.map(normalizeExtension).forEach(function (ext) {
|
||||
ext.type.forEach(function (type) { var _a, _b; return (_b = (_a = _this._removeHandlers)[type]) === null || _b === void 0 ? void 0 : _b.call(_a, ext); });
|
||||
});
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
* Register new extensions with PixiJS.
|
||||
* @param extensions - The spread of extensions to add to PixiJS.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
add: function () {
|
||||
var arguments$1 = arguments;
|
||||
|
||||
var _this = this;
|
||||
var extensions = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
extensions[_i] = arguments$1[_i];
|
||||
}
|
||||
// Handle any extensions either passed as class w/ data or as data
|
||||
extensions.map(normalizeExtension).forEach(function (ext) {
|
||||
ext.type.forEach(function (type) {
|
||||
var handlers = _this._addHandlers;
|
||||
var queue = _this._queue;
|
||||
if (!handlers[type]) {
|
||||
queue[type] = queue[type] || [];
|
||||
queue[type].push(ext);
|
||||
}
|
||||
else {
|
||||
handlers[type](ext);
|
||||
}
|
||||
});
|
||||
});
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
* Internal method to handle extensions by name.
|
||||
* @param type - The extension type.
|
||||
* @param onAdd - Function for handling when extensions are added/registered passes {@link PIXI.ExtensionFormat}.
|
||||
* @param onRemove - Function for handling when extensions are removed/unregistered passes {@link PIXI.ExtensionFormat}.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handle: function (type, onAdd, onRemove) {
|
||||
var addHandlers = this._addHandlers = this._addHandlers || {};
|
||||
var removeHandlers = this._removeHandlers = this._removeHandlers || {};
|
||||
if (addHandlers[type] || removeHandlers[type]) {
|
||||
throw new Error("Extension type " + type + " already has a handler");
|
||||
}
|
||||
addHandlers[type] = onAdd;
|
||||
removeHandlers[type] = onRemove;
|
||||
// Process the queue
|
||||
var queue = this._queue;
|
||||
// Process any plugins that have been registered before the handler
|
||||
if (queue[type]) {
|
||||
queue[type].forEach(function (ext) { return onAdd(ext); });
|
||||
delete queue[type];
|
||||
}
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
* Handle a type, but using a map by `name` property.
|
||||
* @param type - Type of extension to handle.
|
||||
* @param map - The object map of named extensions.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handleByMap: function (type, map) {
|
||||
return this.handle(type, function (extension) {
|
||||
map[extension.name] = extension.ref;
|
||||
}, function (extension) {
|
||||
delete map[extension.name];
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Handle a type, but using a list of extensions.
|
||||
* @param type - Type of extension to handle.
|
||||
* @param list - The list of extensions.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handleByList: function (type, list) {
|
||||
return this.handle(type, function (extension) {
|
||||
var _a, _b;
|
||||
if (list.includes(extension.ref)) {
|
||||
return;
|
||||
}
|
||||
list.push(extension.ref);
|
||||
// TODO: remove me later, only added for @pixi/loaders
|
||||
if (type === ExtensionType.Loader) {
|
||||
(_b = (_a = extension.ref).add) === null || _b === void 0 ? void 0 : _b.call(_a);
|
||||
}
|
||||
}, function (extension) {
|
||||
var index = list.indexOf(extension.ref);
|
||||
if (index !== -1) {
|
||||
list.splice(index, 1);
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
export { ExtensionType, extensions };
|
||||
//# sourceMappingURL=extensions.mjs.map
|
||||
1
live2d/node_modules/@pixi/extensions/dist/esm/extensions.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/extensions/dist/esm/extensions.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
104
live2d/node_modules/@pixi/extensions/index.d.ts
generated
vendored
Normal file
104
live2d/node_modules/@pixi/extensions/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
/**
|
||||
* Strict extension format that is used internally for registrations.
|
||||
* @memberof PIXI
|
||||
*/
|
||||
export declare interface ExtensionFormat extends ExtensionFormatLoose {
|
||||
/** The extension type, always expressed as multiple, even if a single */
|
||||
type: ExtensionType[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Format when registering an extension. Generally, the extension
|
||||
* should have these values as `extension` static property,
|
||||
* but you can override name or type by providing an object.
|
||||
* @memberof PIXI
|
||||
*/
|
||||
export declare interface ExtensionFormatLoose {
|
||||
/** The extension type, can be multiple types */
|
||||
type: ExtensionType | ExtensionType[];
|
||||
/** Optional. Some plugins provide an API name/property, such as Renderer plugins */
|
||||
name?: string;
|
||||
/** Reference to the plugin object/class */
|
||||
ref: any;
|
||||
}
|
||||
|
||||
export declare type ExtensionHandler = (extension: ExtensionFormat) => void;
|
||||
|
||||
export declare type ExtensionMetadata = ExtensionType | ExtensionMetadataDetails;
|
||||
|
||||
declare interface ExtensionMetadataDetails {
|
||||
type: ExtensionType | ExtensionType[];
|
||||
name?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Global registration of all PixiJS extensions. One-stop-shop for extensibility.
|
||||
* @memberof PIXI
|
||||
* @namespace extensions
|
||||
*/
|
||||
export declare const extensions: {
|
||||
/** @ignore */
|
||||
_addHandlers: Record<ExtensionType, ExtensionHandler>;
|
||||
/** @ignore */
|
||||
_removeHandlers: Record<ExtensionType, ExtensionHandler>;
|
||||
/** @ignore */
|
||||
_queue: Record<ExtensionType, ExtensionFormat[]>;
|
||||
/**
|
||||
* Remove extensions from PixiJS.
|
||||
* @param extensions - Extensions to be removed.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
remove(...extensions: Array<ExtensionFormatLoose | any>): any;
|
||||
/**
|
||||
* Register new extensions with PixiJS.
|
||||
* @param extensions - The spread of extensions to add to PixiJS.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
add(...extensions: Array<ExtensionFormatLoose | any>): any;
|
||||
/**
|
||||
* Internal method to handle extensions by name.
|
||||
* @param type - The extension type.
|
||||
* @param onAdd - Function for handling when extensions are added/registered passes {@link PIXI.ExtensionFormat}.
|
||||
* @param onRemove - Function for handling when extensions are removed/unregistered passes {@link PIXI.ExtensionFormat}.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handle(type: ExtensionType, onAdd: ExtensionHandler, onRemove: ExtensionHandler): any;
|
||||
/**
|
||||
* Handle a type, but using a map by `name` property.
|
||||
* @param type - Type of extension to handle.
|
||||
* @param map - The object map of named extensions.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handleByMap(type: ExtensionType, map: Record<string, any>): any;
|
||||
/**
|
||||
* Handle a type, but using a list of extensions.
|
||||
* @param type - Type of extension to handle.
|
||||
* @param list - The list of extensions.
|
||||
* @returns {PIXI.extensions} For chaining.
|
||||
*/
|
||||
handleByList(type: ExtensionType, list: any[]): any;
|
||||
};
|
||||
|
||||
/**
|
||||
* Collection of valid extension types.
|
||||
* @memberof PIXI
|
||||
* @property {string} Application - Application plugins
|
||||
* @property {string} RendererPlugin - Plugins for Renderer
|
||||
* @property {string} CanvasRendererPlugin - Plugins for CanvasRenderer
|
||||
* @property {string} Loader - Plugins to use with Loader
|
||||
* @property {string} LoadParser - Parsers for Assets loader.
|
||||
* @property {string} ResolveParser - Parsers for Assets resolvers.
|
||||
* @property {string} CacheParser - Parsers for Assets cache.
|
||||
*/
|
||||
export declare enum ExtensionType {
|
||||
Application = "application",
|
||||
RendererPlugin = "renderer-webgl-plugin",
|
||||
CanvasRendererPlugin = "renderer-canvas-plugin",
|
||||
Loader = "loader",
|
||||
LoadParser = "load-parser",
|
||||
ResolveParser = "resolve-parser",
|
||||
CacheParser = "cache-parser",
|
||||
DetectionParser = "detection-parser"
|
||||
}
|
||||
|
||||
export { }
|
||||
38
live2d/node_modules/@pixi/extensions/package.json
generated
vendored
Normal file
38
live2d/node_modules/@pixi/extensions/package.json
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "@pixi/extensions",
|
||||
"version": "6.5.10",
|
||||
"main": "dist/cjs/extensions.js",
|
||||
"module": "dist/esm/extensions.mjs",
|
||||
"bundle": "dist/browser/extensions.js",
|
||||
"types": "index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./dist/esm/extensions.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./dist/cjs/extensions.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Installing and uninstalling extensions for PixiJS",
|
||||
"author": "Matt Karl <matt@mattkarl.com>",
|
||||
"homepage": "http://pixijs.com/",
|
||||
"bugs": "https://github.com/pixijs/pixi.js/issues",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pixijs/pixi.js.git"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"dist",
|
||||
"*.d.ts"
|
||||
],
|
||||
"gitHead": "8cdbf55064b7adc05f65c51e177f1c22f7329f0f"
|
||||
}
|
||||
21
live2d/node_modules/@pixi/loaders/LICENSE
generated
vendored
Normal file
21
live2d/node_modules/@pixi/loaders/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2013-2018 Mathew Groves, Chad Engler
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
33
live2d/node_modules/@pixi/loaders/README.md
generated
vendored
Normal file
33
live2d/node_modules/@pixi/loaders/README.md
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# @pixi/loaders
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @pixi/loaders
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Using the loader directly:
|
||||
|
||||
```js
|
||||
import { Loader } from '@pixi/loaders';
|
||||
|
||||
const loader = new Loader();
|
||||
loader.add('path/to/file.jpg');
|
||||
loader.load(() => {});
|
||||
```
|
||||
|
||||
Using the loader as an Application plugin:
|
||||
|
||||
```js
|
||||
import { AppLoaderPlugin } from '@pixi/loaders';
|
||||
import { Application } from '@pixi/app';
|
||||
import { extensions } from '@pixi/core';
|
||||
|
||||
extensions.add(AppLoaderPlugin);
|
||||
|
||||
const app = new Application();
|
||||
app.loader.add('path/to/file.jpg');
|
||||
app.loader.load(() => {});
|
||||
```
|
||||
2008
live2d/node_modules/@pixi/loaders/dist/browser/loaders.js
generated
vendored
Normal file
2008
live2d/node_modules/@pixi/loaders/dist/browser/loaders.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/loaders/dist/browser/loaders.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/loaders/dist/browser/loaders.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/loaders/dist/browser/loaders.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/loaders/dist/browser/loaders.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/loaders/dist/browser/loaders.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/loaders/dist/browser/loaders.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1944
live2d/node_modules/@pixi/loaders/dist/cjs/loaders.js
generated
vendored
Normal file
1944
live2d/node_modules/@pixi/loaders/dist/cjs/loaders.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/loaders/dist/cjs/loaders.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/loaders/dist/cjs/loaders.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/loaders/dist/cjs/loaders.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/loaders/dist/cjs/loaders.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/loaders/dist/cjs/loaders.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/loaders/dist/cjs/loaders.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/loaders/dist/esm/loaders.min.mjs
generated
vendored
Normal file
9
live2d/node_modules/@pixi/loaders/dist/esm/loaders.min.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/loaders/dist/esm/loaders.min.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/loaders/dist/esm/loaders.min.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1938
live2d/node_modules/@pixi/loaders/dist/esm/loaders.mjs
generated
vendored
Normal file
1938
live2d/node_modules/@pixi/loaders/dist/esm/loaders.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/loaders/dist/esm/loaders.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/loaders/dist/esm/loaders.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
31
live2d/node_modules/@pixi/loaders/global.d.ts
generated
vendored
Normal file
31
live2d/node_modules/@pixi/loaders/global.d.ts
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
declare namespace GlobalMixins
|
||||
{
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface LoaderResource
|
||||
{
|
||||
/** Texture reference for loading images and other textures. */
|
||||
texture?: Texture;
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface IResourceMetadata
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/** @deprecated Use LoaderResource instead */
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface ILoaderResource
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
interface Application
|
||||
{
|
||||
loader: import('@pixi/loaders').Loader;
|
||||
}
|
||||
|
||||
interface IApplicationOptions
|
||||
{
|
||||
sharedLoader?: boolean;
|
||||
}
|
||||
}
|
||||
984
live2d/node_modules/@pixi/loaders/index.d.ts
generated
vendored
Normal file
984
live2d/node_modules/@pixi/loaders/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,984 @@
|
||||
/// <reference path="./global.d.ts" />
|
||||
|
||||
import type { Dict } from '@pixi/utils';
|
||||
import type { ExtensionMetadata } from '@pixi/core';
|
||||
import type { IBaseTextureOptions } from '@pixi/core';
|
||||
import type { Texture } from '@pixi/core';
|
||||
|
||||
/**
|
||||
* Application plugin for supporting loader option. Installing the LoaderPlugin
|
||||
* is not necessary if using **pixi.js** or **pixi.js-legacy**.
|
||||
* @example
|
||||
* import {AppLoaderPlugin} from '@pixi/loaders';
|
||||
* import {extensions} from '@pixi/core';
|
||||
* extensions.add(AppLoaderPlugin);
|
||||
* @memberof PIXI
|
||||
*/
|
||||
export declare class AppLoaderPlugin {
|
||||
/** @ignore */
|
||||
static extension: ExtensionMetadata;
|
||||
/**
|
||||
* Loader instance to help with asset loading.
|
||||
* @memberof PIXI.Application#
|
||||
* @readonly
|
||||
*/
|
||||
static loader: Loader;
|
||||
/**
|
||||
* Called on application constructor
|
||||
* @param options
|
||||
* @private
|
||||
*/
|
||||
static init(options?: GlobalMixins.IApplicationOptions): void;
|
||||
/**
|
||||
* Called when application destroyed
|
||||
* @private
|
||||
*/
|
||||
static destroy(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Options for a call to `.add()`.
|
||||
* @see Loader#add
|
||||
* @property {string} name - The name of the resource to load, if not passed the url is used.
|
||||
* @property {string} key - Alias for `name`.
|
||||
* @property {string} url - The url for this resource, relative to the baseUrl of this loader.
|
||||
* @property {string|boolean} crossOrigin - Is this request cross-origin? Default is to determine automatically.
|
||||
* @property {number} [timeout=0] - A timeout in milliseconds for the load. If the load takes longer
|
||||
* than this time it is cancelled and the load is considered a failure. If this value is
|
||||
* set to `0` then there is no explicit timeout.
|
||||
* @property {LoaderResource.LOAD_TYPE} [loadType=LoaderResource.LOAD_TYPE.XHR] - How should this resource be loaded?
|
||||
* @property {LoaderResource.XHR_RESPONSE_TYPE} [xhrType=LoaderResource.XHR_RESPONSE_TYPE.DEFAULT] - How should the data
|
||||
* being loaded be interpreted when using XHR?
|
||||
* @property {LoaderResource.OnCompleteSignal} onComplete - Callback to add an an onComplete signal istener.
|
||||
* @property {LoaderResource.OnCompleteSignal} callback - Alias for `onComplete`.
|
||||
* @property {IResourceMetadata} metadata - Extra configuration for middleware and the Resource object.
|
||||
*/
|
||||
export declare interface IAddOptions {
|
||||
name?: string;
|
||||
key?: string;
|
||||
url?: string;
|
||||
crossOrigin?: string | boolean;
|
||||
timeout?: number;
|
||||
parentResource?: LoaderResource;
|
||||
loadType?: LoaderResource.LOAD_TYPE;
|
||||
xhrType?: LoaderResource.XHR_RESPONSE_TYPE;
|
||||
onComplete?: LoaderResource.OnCompleteSignal;
|
||||
callback?: LoaderResource.OnCompleteSignal;
|
||||
metadata?: IResourceMetadata;
|
||||
}
|
||||
|
||||
export declare interface ILoaderAdd {
|
||||
(this: Loader, name: string, url: string, callback?: LoaderResource.OnCompleteSignal): Loader;
|
||||
(this: Loader, name: string, url: string, options?: IAddOptions, callback?: LoaderResource.OnCompleteSignal): Loader;
|
||||
(this: Loader, url: string, callback?: LoaderResource.OnCompleteSignal): Loader;
|
||||
(this: Loader, url: string, options?: IAddOptions, callback?: LoaderResource.OnCompleteSignal): Loader;
|
||||
(this: Loader, options: IAddOptions, callback?: LoaderResource.OnCompleteSignal): Loader;
|
||||
(this: Loader, resources: (IAddOptions | string)[], callback?: LoaderResource.OnCompleteSignal): Loader;
|
||||
}
|
||||
|
||||
export declare type ILoaderMiddleware = (resource: LoaderResource, next: (...args: any[]) => void) => void;
|
||||
|
||||
/**
|
||||
* Plugin to be installed for handling specific Loader resources.
|
||||
* @property {Function} add - Function to call immediate after registering plugin.
|
||||
* @property {Function} pre - Middleware function to run before load, the
|
||||
* arguments for this are `(resource, next)`
|
||||
* @property {Function} use - Middleware function to run after load, the
|
||||
* arguments for this are `(resource, next)`
|
||||
*/
|
||||
export declare interface ILoaderPlugin {
|
||||
/** Function to call immediate after registering plugin. */
|
||||
add?(): void;
|
||||
/**
|
||||
* Middleware function to run before load
|
||||
* @param {LoaderResource} resource - resource
|
||||
* @param {LoaderResource} next - next middleware
|
||||
*/
|
||||
pre?(resource: LoaderResource, next: (...args: any[]) => void): void;
|
||||
/**
|
||||
* Middleware function to run after load
|
||||
* @param {LoaderResource} resource - resource
|
||||
* @param {LoaderResource} next - next middleware
|
||||
*/
|
||||
use?(resource: LoaderResource, next: (...args: any[]) => void): void;
|
||||
}
|
||||
|
||||
/** @deprecated - Use LoaderResource instead */
|
||||
export declare type ILoaderResource = LoaderResource;
|
||||
|
||||
/**
|
||||
* Metadata for loader resource. It is very messy way to pass options for loader middlewares
|
||||
*
|
||||
* Can be extended in `GlobalMixins.IResourceMetadata`
|
||||
* @memberof PIXI
|
||||
*/
|
||||
export declare interface IResourceMetadata extends GlobalMixins.IResourceMetadata, IBaseTextureOptions {
|
||||
/** The element to use for loading, instead of creating one. */
|
||||
loadElement?: HTMLImageElement | HTMLAudioElement | HTMLVideoElement;
|
||||
/**
|
||||
* Skips adding source(s) to the load element. This
|
||||
* is useful if you want to pass in a `loadElement` that you already added load sources to.
|
||||
*/
|
||||
skipSource?: boolean;
|
||||
/**
|
||||
* The mime type to use for the source element
|
||||
* of a video/audio elment. If the urls are an array, you can pass this as an array as well
|
||||
* where each index is the mime type to use for the corresponding url index.
|
||||
*/
|
||||
mimeType?: string | string[];
|
||||
/**
|
||||
* Used by BitmapFonts, Spritesheet and CompressedTextures as the options to used for
|
||||
* metadata when loading the child image.
|
||||
*/
|
||||
imageMetadata?: IResourceMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* The new loader, forked from Resource Loader by Chad Engler: https://github.com/englercj/resource-loader
|
||||
*
|
||||
* ```js
|
||||
* const loader = PIXI.Loader.shared; // PixiJS exposes a premade instance for you to use.
|
||||
* // or
|
||||
* const loader = new PIXI.Loader(); // You can also create your own if you want
|
||||
*
|
||||
* const sprites = {};
|
||||
*
|
||||
* // Chainable `add` to enqueue a resource
|
||||
* loader.add('bunny', 'data/bunny.png')
|
||||
* .add('spaceship', 'assets/spritesheet.json');
|
||||
* loader.add('scoreFont', 'assets/score.fnt');
|
||||
*
|
||||
* // Chainable `pre` to add a middleware that runs for each resource, *before* loading that resource.
|
||||
* // This is useful to implement custom caching modules (using filesystem, indexeddb, memory, etc).
|
||||
* loader.pre(cachingMiddleware);
|
||||
*
|
||||
* // Chainable `use` to add a middleware that runs for each resource, *after* loading that resource.
|
||||
* // This is useful to implement custom parsing modules (like spritesheet parsers, spine parser, etc).
|
||||
* loader.use(parsingMiddleware);
|
||||
*
|
||||
* // The `load` method loads the queue of resources, and calls the passed in callback called once all
|
||||
* // resources have loaded.
|
||||
* loader.load((loader, resources) => {
|
||||
* // resources is an object where the key is the name of the resource loaded and the value is the resource object.
|
||||
* // They have a couple default properties:
|
||||
* // - `url`: The URL that the resource was loaded from
|
||||
* // - `error`: The error that happened when trying to load (if any)
|
||||
* // - `data`: The raw data that was loaded
|
||||
* // also may contain other properties based on the middleware that runs.
|
||||
* sprites.bunny = new PIXI.TilingSprite(resources.bunny.texture);
|
||||
* sprites.spaceship = new PIXI.TilingSprite(resources.spaceship.texture);
|
||||
* sprites.scoreFont = new PIXI.TilingSprite(resources.scoreFont.texture);
|
||||
* });
|
||||
*
|
||||
* // throughout the process multiple signals can be dispatched.
|
||||
* loader.onProgress.add(() => {}); // called once per loaded/errored file
|
||||
* loader.onError.add(() => {}); // called once per errored file
|
||||
* loader.onLoad.add(() => {}); // called once per loaded file
|
||||
* loader.onComplete.add(() => {}); // called once when the queued resources all load.
|
||||
* ```
|
||||
* @memberof PIXI
|
||||
*/
|
||||
export declare class Loader {
|
||||
/** The base url for all resources loaded by this loader. */
|
||||
baseUrl: string;
|
||||
/** The progress percent of the loader going through the queue. */
|
||||
progress: number;
|
||||
/** Loading state of the loader, true if it is currently loading resources. */
|
||||
loading: boolean;
|
||||
/**
|
||||
* A querystring to append to every URL added to the loader.
|
||||
*
|
||||
* This should be a valid query string *without* the question-mark (`?`). The loader will
|
||||
* also *not* escape values for you. Make sure to escape your parameters with
|
||||
* [`encodeURIComponent`](https://mdn.io/encodeURIComponent) before assigning this property.
|
||||
* @example
|
||||
* const loader = new Loader();
|
||||
*
|
||||
* loader.defaultQueryString = 'user=me&password=secret';
|
||||
*
|
||||
* // This will request 'image.png?user=me&password=secret'
|
||||
* loader.add('image.png').load();
|
||||
*
|
||||
* loader.reset();
|
||||
*
|
||||
* // This will request 'image.png?v=1&user=me&password=secret'
|
||||
* loader.add('iamge.png?v=1').load();
|
||||
*/
|
||||
defaultQueryString: string;
|
||||
/** The middleware to run before loading each resource. */
|
||||
private _beforeMiddleware;
|
||||
/** The middleware to run after loading each resource. */
|
||||
private _afterMiddleware;
|
||||
/** The tracks the resources we are currently completing parsing for. */
|
||||
private _resourcesParsing;
|
||||
/**
|
||||
* The `_loadResource` function bound with this object context.
|
||||
* @param r - The resource to load
|
||||
* @param d - The dequeue function
|
||||
*/
|
||||
private _boundLoadResource;
|
||||
/** The resources waiting to be loaded. */
|
||||
private _queue;
|
||||
/** All the resources for this loader keyed by name. */
|
||||
resources: Dict<LoaderResource>;
|
||||
/** Dispatched once per loaded or errored resource. */
|
||||
onProgress: Signal<Loader.OnProgressSignal>;
|
||||
/** Dispatched once per errored resource. */
|
||||
onError: Signal<Loader.OnErrorSignal>;
|
||||
/** Dispatched once per loaded resource. */
|
||||
onLoad: Signal<Loader.OnLoadSignal>;
|
||||
/** Dispatched when the loader begins to process the queue. */
|
||||
onStart: Signal<Loader.OnStartSignal>;
|
||||
/** Dispatched when the queued resources all load. */
|
||||
onComplete: Signal<Loader.OnCompleteSignal>;
|
||||
/**
|
||||
* @param baseUrl - The base url for all resources loaded by this loader.
|
||||
* @param concurrency - The number of resources to load concurrently.
|
||||
*/
|
||||
constructor(baseUrl?: string, concurrency?: number);
|
||||
/**
|
||||
* Adds a resource (or multiple resources) to the loader queue.
|
||||
*
|
||||
* This function can take a wide variety of different parameters. The only thing that is always
|
||||
* required the url to load. All the following will work:
|
||||
*
|
||||
* ```js
|
||||
* loader
|
||||
* // normal param syntax
|
||||
* .add('key', 'http://...', function () {})
|
||||
* .add('http://...', function () {})
|
||||
* .add('http://...')
|
||||
*
|
||||
* // object syntax
|
||||
* .add({
|
||||
* name: 'key2',
|
||||
* url: 'http://...'
|
||||
* }, function () {})
|
||||
* .add({
|
||||
* url: 'http://...'
|
||||
* }, function () {})
|
||||
* .add({
|
||||
* name: 'key3',
|
||||
* url: 'http://...'
|
||||
* onComplete: function () {}
|
||||
* })
|
||||
* .add({
|
||||
* url: 'https://...',
|
||||
* onComplete: function () {},
|
||||
* crossOrigin: true
|
||||
* })
|
||||
*
|
||||
* // you can also pass an array of objects or urls or both
|
||||
* .add([
|
||||
* { name: 'key4', url: 'http://...', onComplete: function () {} },
|
||||
* { url: 'http://...', onComplete: function () {} },
|
||||
* 'http://...'
|
||||
* ])
|
||||
*
|
||||
* // and you can use both params and options
|
||||
* .add('key', 'http://...', { crossOrigin: true }, function () {})
|
||||
* .add('http://...', { crossOrigin: true }, function () {});
|
||||
* ```
|
||||
*/
|
||||
add: ILoaderAdd;
|
||||
/**
|
||||
* Same as add, params have strict order
|
||||
* @private
|
||||
* @param name - The name of the resource to load.
|
||||
* @param url - The url for this resource, relative to the baseUrl of this loader.
|
||||
* @param options - The options for the load.
|
||||
* @param callback - Function to call when this specific resource completes loading.
|
||||
* @returns The loader itself.
|
||||
*/
|
||||
protected _add(name: string, url: string, options: IAddOptions, callback?: LoaderResource.OnCompleteSignal): this;
|
||||
/**
|
||||
* Sets up a middleware function that will run *before* the
|
||||
* resource is loaded.
|
||||
* @param fn - The middleware function to register.
|
||||
* @returns The loader itself.
|
||||
*/
|
||||
pre(fn: ILoaderMiddleware): this;
|
||||
/**
|
||||
* Sets up a middleware function that will run *after* the
|
||||
* resource is loaded.
|
||||
* @param fn - The middleware function to register.
|
||||
* @returns The loader itself.
|
||||
*/
|
||||
use(fn: ILoaderMiddleware): this;
|
||||
/**
|
||||
* Resets the queue of the loader to prepare for a new load.
|
||||
* @returns The loader itself.
|
||||
*/
|
||||
reset(): this;
|
||||
/**
|
||||
* Starts loading the queued resources.
|
||||
* @param cb - Optional callback that will be bound to the `complete` event.
|
||||
* @returns The loader itself.
|
||||
*/
|
||||
load(cb?: Loader.OnCompleteSignal): this;
|
||||
/**
|
||||
* The number of resources to load concurrently.
|
||||
* @default 10
|
||||
*/
|
||||
get concurrency(): number;
|
||||
set concurrency(concurrency: number);
|
||||
/**
|
||||
* Prepares a url for usage based on the configuration of this object
|
||||
* @param url - The url to prepare.
|
||||
* @returns The prepared url.
|
||||
*/
|
||||
private _prepareUrl;
|
||||
/**
|
||||
* Loads a single resource.
|
||||
* @param resource - The resource to load.
|
||||
* @param dequeue - The function to call when we need to dequeue this item.
|
||||
*/
|
||||
private _loadResource;
|
||||
/** Called once loading has started. */
|
||||
private _onStart;
|
||||
/** Called once each resource has loaded. */
|
||||
private _onComplete;
|
||||
/**
|
||||
* Called each time a resources is loaded.
|
||||
* @param resource - The resource that was loaded
|
||||
*/
|
||||
private _onLoad;
|
||||
static _plugins: Array<ILoaderPlugin>;
|
||||
private static _shared;
|
||||
/**
|
||||
* If this loader cannot be destroyed.
|
||||
* @default false
|
||||
*/
|
||||
private _protected;
|
||||
/** Destroy the loader, removes references. */
|
||||
destroy(): void;
|
||||
/** A premade instance of the loader that can be used to load resources. */
|
||||
static get shared(): Loader;
|
||||
/**
|
||||
* Use the {@link PIXI.extensions.add} API to register plugins.
|
||||
* @deprecated since 6.5.0
|
||||
* @param plugin - The plugin to add
|
||||
* @returns Reference to PIXI.Loader for chaining
|
||||
*/
|
||||
static registerPlugin(plugin: ILoaderPlugin): typeof Loader;
|
||||
}
|
||||
|
||||
export declare namespace Loader {
|
||||
/**
|
||||
* When the resource starts to load.
|
||||
* @param resource - The resource that the event happened on.
|
||||
*/
|
||||
export type OnStartSignal = (loader: Loader) => void;
|
||||
/**
|
||||
* When the progress changes the loader and resource are dispatched.
|
||||
* @param loader - The loader the progress is advancing on.
|
||||
* @param resource - The resource that has completed or failed to cause the progress to advance.
|
||||
*/
|
||||
export type OnProgressSignal = (loader: Loader, resource: LoaderResource) => void;
|
||||
/**
|
||||
* When a load completes without error the loader and resource are dispatched.
|
||||
* @param loader - The loader that has started loading resources.
|
||||
* @param resource - The resource that has completed.
|
||||
*/
|
||||
export type OnLoadSignal = (loader: Loader, resource: LoaderResource) => void;
|
||||
/**
|
||||
* When the loader starts loading resources it dispatches this callback.
|
||||
* @param loader - The loader that has started loading resources.
|
||||
*/
|
||||
export type OnCompleteSignal = (loader: Loader, resources: Dict<LoaderResource>) => void;
|
||||
/**
|
||||
* When an error occurs the loader and resource are dispatched.
|
||||
* @param loader - The loader the error happened in.
|
||||
* @param resource - The resource that caused the error.
|
||||
*/
|
||||
export type OnErrorSignal = (error: Error, loader: Loader, resource: LoaderResource) => void;
|
||||
}
|
||||
|
||||
export declare interface LoaderResource extends GlobalMixins.LoaderResource, GlobalMixins.ILoaderResource {
|
||||
}
|
||||
|
||||
/**
|
||||
* Manages the state and loading of a resource and all child resources.
|
||||
*
|
||||
* Can be extended in `GlobalMixins.LoaderResource`.
|
||||
* @memberof PIXI
|
||||
*/
|
||||
export declare class LoaderResource {
|
||||
/**
|
||||
* Texture reference for loading images and other textures.
|
||||
* @type {PIXI.Texture}
|
||||
*/
|
||||
texture?: Texture;
|
||||
/** used by parsing middleware */
|
||||
blob?: Blob;
|
||||
/**
|
||||
* The name of this resource.
|
||||
* @readonly
|
||||
* @type {string}
|
||||
*/
|
||||
readonly name: string;
|
||||
/**
|
||||
* The url used to load this resource.
|
||||
* @readonly
|
||||
* @type {string}
|
||||
*/
|
||||
readonly url: string;
|
||||
/**
|
||||
* The extension used to load this resource.
|
||||
* @readonly
|
||||
* @type {string}
|
||||
*/
|
||||
readonly extension: string;
|
||||
/** The data that was loaded by the resource. */
|
||||
data: any;
|
||||
/** Is this request cross-origin? If unset, determined automatically. */
|
||||
crossOrigin: string | boolean;
|
||||
/**
|
||||
* A timeout in milliseconds for the load. If the load takes longer than this time
|
||||
* it is cancelled and the load is considered a failure. If this value is set to `0`
|
||||
* then there is no explicit timeout.
|
||||
* @type {number}
|
||||
*/
|
||||
timeout: number;
|
||||
/**
|
||||
* The method of loading to use for this resource.
|
||||
* @type {PIXI.LoaderResource.LOAD_TYPE}
|
||||
*/
|
||||
loadType: LoaderResource.LOAD_TYPE;
|
||||
/**
|
||||
* The type used to load the resource via XHR. If unset, determined automatically.
|
||||
* @member {string}
|
||||
*/
|
||||
xhrType: string;
|
||||
/**
|
||||
* Extra info for middleware, and controlling specifics about how the resource loads.
|
||||
*
|
||||
* Note that if you pass in a `loadElement`, the Resource class takes ownership of it.
|
||||
* Meaning it will modify it as it sees fit.
|
||||
* @type {PIXI.IResourceMetadata}
|
||||
*/
|
||||
metadata: IResourceMetadata;
|
||||
/**
|
||||
* The error that occurred while loading (if any).
|
||||
* @readonly
|
||||
* @member {Error}
|
||||
*/
|
||||
error: Error;
|
||||
/**
|
||||
* The XHR object that was used to load this resource. This is only set
|
||||
* when `loadType` is `LoaderResource.LOAD_TYPE.XHR`.
|
||||
* @readonly
|
||||
*/
|
||||
xhr: XMLHttpRequest;
|
||||
private xdr;
|
||||
/**
|
||||
* The child resources this resource owns.
|
||||
* @type {PIXI.LoaderResource[]}
|
||||
*/
|
||||
readonly children: LoaderResource[];
|
||||
/**
|
||||
* The resource type.
|
||||
* @readonly
|
||||
* @type {PIXI.LoaderResource.TYPE}
|
||||
*/
|
||||
type: LoaderResource.TYPE;
|
||||
/**
|
||||
* The progress chunk owned by this resource.
|
||||
* @readonly
|
||||
* @member {number}
|
||||
*/
|
||||
progressChunk: number;
|
||||
/**
|
||||
* Dispatched when the resource beings to load.
|
||||
*
|
||||
* The callback looks like {@link LoaderResource.OnStartSignal}.
|
||||
* @type {PIXI.Signal}
|
||||
*/
|
||||
onStart: Signal<LoaderResource.OnStartSignal>;
|
||||
/**
|
||||
* Dispatched each time progress of this resource load updates.
|
||||
* Not all resources types and loader systems can support this event
|
||||
* so sometimes it may not be available. If the resource
|
||||
* is being loaded on a modern browser, using XHR, and the remote server
|
||||
* properly sets Content-Length headers, then this will be available.
|
||||
*
|
||||
* The callback looks like {@link LoaderResource.OnProgressSignal}.
|
||||
* @type {PIXI.Signal}
|
||||
*/
|
||||
onProgress: Signal<LoaderResource.OnProgressSignal>;
|
||||
/**
|
||||
* Dispatched once this resource has loaded, if there was an error it will
|
||||
* be in the `error` property.
|
||||
*
|
||||
* The callback looks like {@link LoaderResource.OnCompleteSignal}.
|
||||
* @type {PIXI.Signal}
|
||||
*/
|
||||
onComplete: Signal<LoaderResource.OnCompleteSignal>;
|
||||
/**
|
||||
* Dispatched after this resource has had all the *after* middleware run on it.
|
||||
*
|
||||
* The callback looks like {@link LoaderResource.OnCompleteSignal}.
|
||||
* @type {PIXI.Signal}
|
||||
*/
|
||||
onAfterMiddleware: Signal<LoaderResource.OnCompleteSignal>;
|
||||
/**
|
||||
* The state flags of this resource.
|
||||
* @private
|
||||
* @member {number}
|
||||
*/
|
||||
private _flags;
|
||||
/**
|
||||
* The `dequeue` method that will be used a storage place for the async queue dequeue method
|
||||
* used privately by the loader.
|
||||
* @private
|
||||
* @member {Function}
|
||||
*/
|
||||
_dequeue: any;
|
||||
/**
|
||||
* Used a storage place for the on load binding used privately by the loader.
|
||||
* @private
|
||||
* @member {Function}
|
||||
*/
|
||||
_onLoadBinding: any;
|
||||
/**
|
||||
* The timer for element loads to check if they timeout.
|
||||
* @private
|
||||
*/
|
||||
private _elementTimer;
|
||||
/**
|
||||
* The `complete` function bound to this resource's context.
|
||||
* @private
|
||||
* @type {Function}
|
||||
*/
|
||||
private _boundComplete;
|
||||
/**
|
||||
* The `_onError` function bound to this resource's context.
|
||||
* @private
|
||||
* @type {Function}
|
||||
*/
|
||||
private _boundOnError;
|
||||
/**
|
||||
* The `_onProgress` function bound to this resource's context.
|
||||
* @private
|
||||
* @type {Function}
|
||||
*/
|
||||
private _boundOnProgress;
|
||||
/**
|
||||
* The `_onTimeout` function bound to this resource's context.
|
||||
* @private
|
||||
* @type {Function}
|
||||
*/
|
||||
private _boundOnTimeout;
|
||||
private _boundXhrOnError;
|
||||
private _boundXhrOnTimeout;
|
||||
private _boundXhrOnAbort;
|
||||
private _boundXhrOnLoad;
|
||||
/**
|
||||
* Sets the load type to be used for a specific extension.
|
||||
* @static
|
||||
* @param {string} extname - The extension to set the type for, e.g. "png" or "fnt"
|
||||
* @param {PIXI.LoaderResource.LOAD_TYPE} loadType - The load type to set it to.
|
||||
*/
|
||||
static setExtensionLoadType(extname: string, loadType: LoaderResource.LOAD_TYPE): void;
|
||||
/**
|
||||
* Sets the load type to be used for a specific extension.
|
||||
* @static
|
||||
* @param {string} extname - The extension to set the type for, e.g. "png" or "fnt"
|
||||
* @param {PIXI.LoaderResource.XHR_RESPONSE_TYPE} xhrType - The xhr type to set it to.
|
||||
*/
|
||||
static setExtensionXhrType(extname: string, xhrType: LoaderResource.XHR_RESPONSE_TYPE): void;
|
||||
/**
|
||||
* @param {string} name - The name of the resource to load.
|
||||
* @param {string|string[]} url - The url for this resource, for audio/video loads you can pass
|
||||
* an array of sources.
|
||||
* @param {object} [options] - The options for the load.
|
||||
* @param {string|boolean} [options.crossOrigin] - Is this request cross-origin? Default is to
|
||||
* determine automatically.
|
||||
* @param {number} [options.timeout=0] - A timeout in milliseconds for the load. If the load takes
|
||||
* longer than this time it is cancelled and the load is considered a failure. If this value is
|
||||
* set to `0` then there is no explicit timeout.
|
||||
* @param {PIXI.LoaderResource.LOAD_TYPE} [options.loadType=LOAD_TYPE.XHR] - How should this resource
|
||||
* be loaded?
|
||||
* @param {PIXI.LoaderResource.XHR_RESPONSE_TYPE} [options.xhrType=XHR_RESPONSE_TYPE.DEFAULT] - How
|
||||
* should the data being loaded be interpreted when using XHR?
|
||||
* @param {PIXI.LoaderResource.IMetadata} [options.metadata] - Extra configuration for middleware
|
||||
* and the Resource object.
|
||||
*/
|
||||
constructor(name: string, url: string | string[], options?: {
|
||||
crossOrigin?: string | boolean;
|
||||
timeout?: number;
|
||||
loadType?: LoaderResource.LOAD_TYPE;
|
||||
xhrType?: LoaderResource.XHR_RESPONSE_TYPE;
|
||||
metadata?: IResourceMetadata;
|
||||
});
|
||||
/**
|
||||
* When the resource starts to load.
|
||||
* @memberof PIXI.LoaderResource
|
||||
* @callback OnStartSignal@callback OnStartSignal
|
||||
* @param {PIXI.Resource} resource - The resource that the event happened on.
|
||||
*/
|
||||
/**
|
||||
* When the resource reports loading progress.
|
||||
* @memberof PIXI.LoaderResource
|
||||
* @callback OnProgressSignal@callback OnProgressSignal
|
||||
* @param {PIXI.Resource} resource - The resource that the event happened on.
|
||||
* @param {number} percentage - The progress of the load in the range [0, 1].
|
||||
*/
|
||||
/**
|
||||
* When the resource finishes loading.
|
||||
* @memberof PIXI.LoaderResource
|
||||
* @callback OnCompleteSignal@callback OnCompleteSignal
|
||||
* @param {PIXI.Resource} resource - The resource that the event happened on.
|
||||
*/
|
||||
/**
|
||||
* @memberof PIXI.LoaderResource
|
||||
* @typedef {object} IMetadata@typedef {object} IMetadata
|
||||
* @property {HTMLImageElement|HTMLAudioElement|HTMLVideoElement} [loadElement=null] - The
|
||||
* element to use for loading, instead of creating one.
|
||||
* @property {boolean} [skipSource=false] - Skips adding source(s) to the load element. This
|
||||
* is useful if you want to pass in a `loadElement` that you already added load sources to.
|
||||
* @property {string|string[]} [mimeType] - The mime type to use for the source element
|
||||
* of a video/audio elment. If the urls are an array, you can pass this as an array as well
|
||||
* where each index is the mime type to use for the corresponding url index.
|
||||
*/
|
||||
/**
|
||||
* Stores whether or not this url is a data url.
|
||||
* @readonly
|
||||
* @member {boolean}
|
||||
*/
|
||||
get isDataUrl(): boolean;
|
||||
/**
|
||||
* Describes if this resource has finished loading. Is true when the resource has completely
|
||||
* loaded.
|
||||
* @readonly
|
||||
* @member {boolean}
|
||||
*/
|
||||
get isComplete(): boolean;
|
||||
/**
|
||||
* Describes if this resource is currently loading. Is true when the resource starts loading,
|
||||
* and is false again when complete.
|
||||
* @readonly
|
||||
* @member {boolean}
|
||||
*/
|
||||
get isLoading(): boolean;
|
||||
/** Marks the resource as complete. */
|
||||
complete(): void;
|
||||
/**
|
||||
* Aborts the loading of this resource, with an optional message.
|
||||
* @param {string} message - The message to use for the error
|
||||
*/
|
||||
abort(message: string): void;
|
||||
/**
|
||||
* Kicks off loading of this resource. This method is asynchronous.
|
||||
* @param {PIXI.LoaderResource.OnCompleteSignal} [cb] - Optional callback to call once the resource is loaded.
|
||||
*/
|
||||
load(cb?: LoaderResource.OnCompleteSignal): void;
|
||||
/**
|
||||
* Checks if the flag is set.
|
||||
* @param flag - The flag to check.
|
||||
* @returns True if the flag is set.
|
||||
*/
|
||||
private _hasFlag;
|
||||
/**
|
||||
* (Un)Sets the flag.
|
||||
* @param flag - The flag to (un)set.
|
||||
* @param value - Whether to set or (un)set the flag.
|
||||
*/
|
||||
private _setFlag;
|
||||
/** Clears all the events from the underlying loading source. */
|
||||
private _clearEvents;
|
||||
/** Finalizes the load. */
|
||||
private _finish;
|
||||
/**
|
||||
* Loads this resources using an element that has a single source,
|
||||
* like an HTMLImageElement.
|
||||
* @private
|
||||
* @param type - The type of element to use.
|
||||
*/
|
||||
_loadElement(type: string): void;
|
||||
/**
|
||||
* Loads this resources using an element that has multiple sources,
|
||||
* like an HTMLAudioElement or HTMLVideoElement.
|
||||
* @param type - The type of element to use.
|
||||
*/
|
||||
private _loadSourceElement;
|
||||
/** Loads this resources using an XMLHttpRequest. */
|
||||
private _loadXhr;
|
||||
/** Loads this resources using an XDomainRequest. This is here because we need to support IE9 (gross). */
|
||||
private _loadXdr;
|
||||
/**
|
||||
* Creates a source used in loading via an element.
|
||||
* @param type - The element type (video or audio).
|
||||
* @param url - The source URL to load from.
|
||||
* @param [mime] - The mime type of the video
|
||||
* @returns The source element.
|
||||
*/
|
||||
private _createSource;
|
||||
/**
|
||||
* Called if a load errors out.
|
||||
* @param event - The error event from the element that emits it.
|
||||
*/
|
||||
private _onError;
|
||||
/**
|
||||
* Called if a load progress event fires for an element or xhr/xdr.
|
||||
* @param event - Progress event.
|
||||
*/
|
||||
private _onProgress;
|
||||
/** Called if a timeout event fires for an element. */
|
||||
private _onTimeout;
|
||||
/** Called if an error event fires for xhr/xdr. */
|
||||
private _xhrOnError;
|
||||
/** Called if an error event fires for xhr/xdr. */
|
||||
private _xhrOnTimeout;
|
||||
/** Called if an abort event fires for xhr/xdr. */
|
||||
private _xhrOnAbort;
|
||||
/** Called when data successfully loads from an xhr/xdr request. */
|
||||
private _xhrOnLoad;
|
||||
/**
|
||||
* Sets the `crossOrigin` property for this resource based on if the url
|
||||
* for this resource is cross-origin. If crossOrigin was manually set, this
|
||||
* function does nothing.
|
||||
* @private
|
||||
* @param url - The url to test.
|
||||
* @param [loc=globalThis.location] - The location object to test against.
|
||||
* @returns The crossOrigin value to use (or empty string for none).
|
||||
*/
|
||||
_determineCrossOrigin(url: string, loc?: any): string;
|
||||
/**
|
||||
* Determines the responseType of an XHR request based on the extension of the
|
||||
* resource being loaded.
|
||||
* @private
|
||||
* @returns {PIXI.LoaderResource.XHR_RESPONSE_TYPE} The responseType to use.
|
||||
*/
|
||||
private _determineXhrType;
|
||||
/**
|
||||
* Determines the loadType of a resource based on the extension of the
|
||||
* resource being loaded.
|
||||
* @private
|
||||
* @returns {PIXI.LoaderResource.LOAD_TYPE} The loadType to use.
|
||||
*/
|
||||
private _determineLoadType;
|
||||
/**
|
||||
* Extracts the extension (sans '.') of the file being loaded by the resource.
|
||||
* @param [url] - url to parse, `this.url` by default.
|
||||
* @returns The extension.
|
||||
*/
|
||||
private _getExtension;
|
||||
/**
|
||||
* Determines the mime type of an XHR request based on the responseType of
|
||||
* resource being loaded.
|
||||
* @param type - The type to get a mime type for.
|
||||
* @private
|
||||
* @returns The mime type to use.
|
||||
*/
|
||||
_getMimeFromXhrType(type: LoaderResource.XHR_RESPONSE_TYPE): string;
|
||||
}
|
||||
|
||||
export declare namespace LoaderResource {
|
||||
/**
|
||||
* When the resource starts to load.
|
||||
* @memberof PIXI.LoaderResource
|
||||
* @callback OnStartSignal@callback OnStartSignal
|
||||
* @param {PIXI.Resource} resource - The resource that the event happened on.
|
||||
*/
|
||||
export type OnStartSignal = (resource: LoaderResource) => void;
|
||||
/**
|
||||
* When the resource reports loading progress.
|
||||
* @memberof PIXI.LoaderResource
|
||||
* @callback OnProgressSignal@callback OnProgressSignal
|
||||
* @param {PIXI.Resource} resource - The resource that the event happened on.
|
||||
* @param {number} percentage - The progress of the load in the range [0, 1].
|
||||
*/
|
||||
export type OnProgressSignal = (resource: LoaderResource, percentage: number) => void;
|
||||
/**
|
||||
* When the resource finishes loading.
|
||||
* @memberof PIXI.LoaderResource
|
||||
* @callback OnCompleteSignal@callback OnCompleteSignal
|
||||
* @param {PIXI.Resource} resource - The resource that the event happened on.
|
||||
*/
|
||||
export type OnCompleteSignal = (resource: LoaderResource) => void;
|
||||
/**
|
||||
* The types of resources a resource could represent.
|
||||
* @static
|
||||
* @readonly
|
||||
* @enum {number}
|
||||
* @memberof PIXI.LoaderResource
|
||||
*/
|
||||
export enum STATUS_FLAGS {
|
||||
/** None */
|
||||
NONE = 0,
|
||||
/** Data URL */
|
||||
DATA_URL = 1,
|
||||
/** Complete */
|
||||
COMPLETE = 2,
|
||||
/** Loading */
|
||||
LOADING = 4
|
||||
}
|
||||
/**
|
||||
* The types of resources a resource could represent.
|
||||
* @static
|
||||
* @readonly
|
||||
* @enum {number}
|
||||
* @memberof PIXI.LoaderResource
|
||||
*/
|
||||
export enum TYPE {
|
||||
/** Unknown */
|
||||
UNKNOWN = 0,
|
||||
/** JSON */
|
||||
JSON = 1,
|
||||
/** XML */
|
||||
XML = 2,
|
||||
/** Image */
|
||||
IMAGE = 3,
|
||||
/** Audio */
|
||||
AUDIO = 4,
|
||||
/** Video */
|
||||
VIDEO = 5,
|
||||
/** Plain text */
|
||||
TEXT = 6
|
||||
}
|
||||
/**
|
||||
* The types of loading a resource can use.
|
||||
* @static
|
||||
* @readonly
|
||||
* @enum {number}
|
||||
* @memberof PIXI.LoaderResource
|
||||
*/
|
||||
export enum LOAD_TYPE {
|
||||
/** Uses XMLHttpRequest to load the resource. */
|
||||
XHR = 1,
|
||||
/** Uses an `Image` object to load the resource. */
|
||||
IMAGE = 2,
|
||||
/** Uses an `Audio` object to load the resource. */
|
||||
AUDIO = 3,
|
||||
/** Uses a `Video` object to load the resource. */
|
||||
VIDEO = 4
|
||||
}
|
||||
/**
|
||||
* The XHR ready states, used internally.
|
||||
* @static
|
||||
* @readonly
|
||||
* @enum {string}
|
||||
* @memberof PIXI.LoaderResource
|
||||
*/
|
||||
export enum XHR_RESPONSE_TYPE {
|
||||
/** string */
|
||||
DEFAULT = "text",
|
||||
/** ArrayBuffer */
|
||||
BUFFER = "arraybuffer",
|
||||
/** Blob */
|
||||
BLOB = "blob",
|
||||
/** Document */
|
||||
DOCUMENT = "document",
|
||||
/** Object */
|
||||
JSON = "json",
|
||||
/** String */
|
||||
TEXT = "text"
|
||||
}
|
||||
const _loadTypeMap: Dict<number>;
|
||||
const _xhrTypeMap: Dict<XHR_RESPONSE_TYPE>;
|
||||
const EMPTY_GIF = "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
|
||||
}
|
||||
|
||||
/**
|
||||
* @memberof PIXI
|
||||
*/
|
||||
declare class Signal<CbType = (...args: any) => void> {
|
||||
_head: SignalBinding<CbType>;
|
||||
_tail: SignalBinding<CbType>;
|
||||
/**
|
||||
* MiniSignal constructor.
|
||||
* @example
|
||||
* let mySignal = new Signal();
|
||||
* let binding = mySignal.add(onSignal);
|
||||
* mySignal.dispatch('foo', 'bar');
|
||||
* mySignal.detach(binding);
|
||||
*/
|
||||
constructor();
|
||||
/**
|
||||
* Return an array of attached SignalBinding.
|
||||
* @param {boolean} [exists=false] - We only need to know if there are handlers.
|
||||
* @returns {PIXI.SignalBinding[] | boolean} Array of attached SignalBinding or Boolean if called with exists = true
|
||||
* @api public
|
||||
*/
|
||||
handlers(exists?: boolean): Array<SignalBinding<CbType>> | boolean;
|
||||
/**
|
||||
* Return true if node is a SignalBinding attached to this MiniSignal
|
||||
* @param {PIXI.SignalBinding} node - Node to check.
|
||||
* @returns {boolean} True if node is attache to mini-signal
|
||||
*/
|
||||
has(node: SignalBinding<CbType>): boolean;
|
||||
/**
|
||||
* Dispaches a signal to all registered listeners.
|
||||
* @param {...any} args
|
||||
* @returns {boolean} Indication if we've emitted an event.
|
||||
*/
|
||||
dispatch(...args: any[]): boolean;
|
||||
/**
|
||||
* Register a new listener.
|
||||
* @param {Function} fn - Callback function.
|
||||
* @param {object} [thisArg] - The context of the callback function.
|
||||
* @returns {PIXI.SignalBinding} The SignalBinding node that was added.
|
||||
*/
|
||||
add(fn: CbType, thisArg?: any): SignalBinding<CbType>;
|
||||
/**
|
||||
* Register a new listener that will be executed only once.
|
||||
* @param {Function} fn - Callback function.
|
||||
* @param {object} [thisArg] - The context of the callback function.
|
||||
* @returns {PIXI.SignalBinding} The SignalBinding node that was added.
|
||||
*/
|
||||
once(fn: CbType, thisArg?: any): SignalBinding<CbType>;
|
||||
/**
|
||||
* Remove binding object.
|
||||
* @param {PIXI.SignalBinding} node - The binding node that will be removed.
|
||||
* @returns {Signal} The instance on which this method was called.
|
||||
@api public */
|
||||
detach(node: SignalBinding<CbType>): this;
|
||||
/**
|
||||
* Detach all listeners.
|
||||
* @returns {Signal} The instance on which this method was called.
|
||||
*/
|
||||
detachAll(): this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @memberof PIXI
|
||||
*/
|
||||
declare class SignalBinding<CbType> {
|
||||
_fn: any;
|
||||
_once: boolean;
|
||||
_next: SignalBinding<CbType>;
|
||||
_prev: SignalBinding<CbType>;
|
||||
_owner: Signal<CbType>;
|
||||
_thisArg: any;
|
||||
/**
|
||||
* SignalBinding constructor.
|
||||
* @constructs SignalBinding
|
||||
* @param {Function} fn - Event handler to be called.
|
||||
* @param {boolean} [once=false] - Should this listener be removed after dispatch
|
||||
* @param {object} [thisArg] - The context of the callback function.
|
||||
* @api private
|
||||
*/
|
||||
constructor(fn: CbType, once: boolean, thisArg: any);
|
||||
detach(): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loader plugin for handling Texture resources.
|
||||
* @memberof PIXI
|
||||
*/
|
||||
export declare class TextureLoader {
|
||||
/** @ignore */
|
||||
static extension: ExtensionMetadata;
|
||||
/** Handle SVG elements a text, render with SVGResource. */
|
||||
static add(): void;
|
||||
/**
|
||||
* Called after a resource is loaded.
|
||||
* @see PIXI.Loader.loaderMiddleware
|
||||
* @param resource
|
||||
* @param {Function} next
|
||||
*/
|
||||
static use(resource: LoaderResource, next: (...args: any[]) => void): void;
|
||||
}
|
||||
|
||||
export { }
|
||||
46
live2d/node_modules/@pixi/loaders/package.json
generated
vendored
Normal file
46
live2d/node_modules/@pixi/loaders/package.json
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "@pixi/loaders",
|
||||
"version": "6.5.10",
|
||||
"main": "dist/cjs/loaders.js",
|
||||
"module": "dist/esm/loaders.mjs",
|
||||
"bundle": "dist/browser/loaders.js",
|
||||
"types": "index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./dist/esm/loaders.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./dist/cjs/loaders.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Load assets and resources",
|
||||
"author": "Mat Groves",
|
||||
"contributors": [
|
||||
"Matt Karl <matt@mattkarl.com>"
|
||||
],
|
||||
"homepage": "http://pixijs.com/",
|
||||
"bugs": "https://github.com/pixijs/pixi.js/issues",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pixijs/pixi.js.git"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"dist",
|
||||
"*.d.ts"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"@pixi/constants": "6.5.10",
|
||||
"@pixi/core": "6.5.10",
|
||||
"@pixi/utils": "6.5.10"
|
||||
},
|
||||
"gitHead": "8cdbf55064b7adc05f65c51e177f1c22f7329f0f"
|
||||
}
|
||||
21
live2d/node_modules/@pixi/math/LICENSE
generated
vendored
Normal file
21
live2d/node_modules/@pixi/math/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2013-2018 Mathew Groves, Chad Engler
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
13
live2d/node_modules/@pixi/math/README.md
generated
vendored
Normal file
13
live2d/node_modules/@pixi/math/README.md
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# @pixi/math
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @pixi/math
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import * as math from '@pixi/math';
|
||||
```
|
||||
1664
live2d/node_modules/@pixi/math/dist/browser/math.js
generated
vendored
Normal file
1664
live2d/node_modules/@pixi/math/dist/browser/math.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/math/dist/browser/math.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/math/dist/browser/math.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/math/dist/browser/math.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/math/dist/browser/math.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/math/dist/browser/math.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/math/dist/browser/math.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1601
live2d/node_modules/@pixi/math/dist/cjs/math.js
generated
vendored
Normal file
1601
live2d/node_modules/@pixi/math/dist/cjs/math.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
live2d/node_modules/@pixi/math/dist/cjs/math.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/math/dist/cjs/math.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/math/dist/cjs/math.min.js
generated
vendored
Normal file
9
live2d/node_modules/@pixi/math/dist/cjs/math.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/math/dist/cjs/math.min.js.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/math/dist/cjs/math.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
live2d/node_modules/@pixi/math/dist/esm/math.min.mjs
generated
vendored
Normal file
9
live2d/node_modules/@pixi/math/dist/esm/math.min.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
live2d/node_modules/@pixi/math/dist/esm/math.min.mjs.map
generated
vendored
Normal file
1
live2d/node_modules/@pixi/math/dist/esm/math.min.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1585
live2d/node_modules/@pixi/math/dist/esm/math.mjs
generated
vendored
Normal file
1585
live2d/node_modules/@pixi/math/dist/esm/math.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user