@galacean/effects-plugin-model 2.0.0-alpha.2 → 2.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.min.js +2 -2
- package/dist/index.mjs +3 -3
- package/dist/loader.mjs +3 -3
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects player model plugin
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 飂兮
|
|
6
|
-
* Version: v2.0.0-alpha.
|
|
6
|
+
* Version: v2.0.0-alpha.3
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { math, Transform, PLAYER_OPTIONS_ENV_EDITOR, spec, glContext, Texture, TextureSourceType, RenderPassAttachmentStorageType, Material, Mesh, Geometry, DestroyOptions, addItem, removeItem, effectsClass, RendererComponent, ItemBehaviour, TimelineComponent, HitTestType, Renderer, RenderPass, TextureLoadAction, RenderPassDestroyAttachmentType, Player, getDefaultTextureFactory, loadImage, VFXItem, AbstractPlugin, registerPlugin, logger } from '@galacean/effects';
|
|
@@ -9863,7 +9863,7 @@ var CameraGestureHandlerImp = /** @class */ (function () {
|
|
|
9863
9863
|
CameraGestureHandlerImp.prototype.getItem = function () {
|
|
9864
9864
|
var _this = this;
|
|
9865
9865
|
var _a;
|
|
9866
|
-
return (_a = this.composition.items) === null || _a === void 0 ? void 0 : _a.find(function (item) { return item.
|
|
9866
|
+
return (_a = this.composition.items) === null || _a === void 0 ? void 0 : _a.find(function (item) { return item.name === _this.getCurrentTarget(); });
|
|
9867
9867
|
};
|
|
9868
9868
|
CameraGestureHandlerImp.prototype.getCurrentTarget = function () {
|
|
9869
9869
|
return this.startParams.target;
|
|
@@ -11644,7 +11644,7 @@ var GLTFHelper = /** @class */ (function () {
|
|
|
11644
11644
|
|
|
11645
11645
|
registerPlugin('tree', ModelTreePlugin, VFXItem, true);
|
|
11646
11646
|
registerPlugin('model', ModelPlugin, VFXItem);
|
|
11647
|
-
var version = "2.0.0-alpha.
|
|
11647
|
+
var version = "2.0.0-alpha.3";
|
|
11648
11648
|
logger.info('plugin model version: ' + version);
|
|
11649
11649
|
|
|
11650
11650
|
export { BoxMesh, CameraGestureHandlerImp, CameraGestureType, CheckerHelper, CompositionCache, CompositionHitTest, FBOOptions, Float16ArrayWrapper, GeometryBoxProxy, HitTestingProxy, HookOGLFunc, InterpolationSampler, LoaderHelper, LoaderImpl, MeshHelper, ModelCameraComponent, ModelDataType, ModelLightComponent, ModelMeshComponent, ModelPlugin, ModelPluginComponent, ModelSkyboxComponent, ModelTreeComponent, ModelTreeItem, ModelTreePlugin, PAnimInterpType, PAnimPathType, PAnimTexture, PAnimTrack, PAnimation, PAnimationManager, PBlendMode, PCamera, PCameraManager, PCoordinate, PEntity, PFaceSideMode, PGeometry, PGlobalState, PLight, PLightManager, PLightType, PMaterialBase, PMaterialPBR, PMaterialSkyboxFilter, PMaterialType, PMaterialUnlit, PMesh, PMorph, PObject, PObjectType, PPrimitive, PSceneManager, PShaderManager, PShadowType, PSkin, PSkybox, PSkyboxCreator, PSkyboxType, PTextureType, PTransform, PluginHelper, RayBoxTesting, RayIntersectsBoxWithRotation, RayTriangleTesting, TextureDataMode, ToggleItemBounding, TwoStatesSet, VFX_ITEM_TYPE_3D, VertexAttribBuffer, WebGLHelper, WebHelper, createAnimationSampler, createInternalMaterial, createPluginMaterial, getDefaultEffectsGLTFLoader, getDiffuseOnlyShaderCode, getGaussianBlurShaderCodeV1, getGaussianBlurShaderCodeV2, getKawaseBlurShaderCode, getNormalVisShaderCode, getPBRPassShaderCode, getPMeshList, getQuadFilterShaderCode, getRendererGPUInfo, getSceneManager, getShadowPassShaderCode, getSimpleFilterShaderCode, getSkyBoxShaderCode, getTransparecyBaseShader, getTransparecyFilterShader, setDefaultEffectsGLTFLoader, version };
|
package/dist/loader.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects player model plugin
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 飂兮
|
|
6
|
-
* Version: v2.0.0-alpha.
|
|
6
|
+
* Version: v2.0.0-alpha.3
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { math, Transform, spec, PLAYER_OPTIONS_ENV_EDITOR, glContext, TextureSourceType, loadImage, Texture, RenderPassAttachmentStorageType, Material, Mesh, Geometry, DestroyOptions, addItem, removeItem, VFXItem, effectsClass, ItemBehaviour, AbstractPlugin, registerPlugin, logger, RendererComponent, TimelineComponent, HitTestType, Renderer, RenderPass, TextureLoadAction, RenderPassDestroyAttachmentType, getDefaultTextureFactory, Player } from '@galacean/effects';
|
|
@@ -6487,7 +6487,7 @@ var CameraGestureHandlerImp = /** @class */ (function () {
|
|
|
6487
6487
|
CameraGestureHandlerImp.prototype.getItem = function () {
|
|
6488
6488
|
var _this = this;
|
|
6489
6489
|
var _a;
|
|
6490
|
-
return (_a = this.composition.items) === null || _a === void 0 ? void 0 : _a.find(function (item) { return item.
|
|
6490
|
+
return (_a = this.composition.items) === null || _a === void 0 ? void 0 : _a.find(function (item) { return item.name === _this.getCurrentTarget(); });
|
|
6491
6491
|
};
|
|
6492
6492
|
CameraGestureHandlerImp.prototype.getCurrentTarget = function () {
|
|
6493
6493
|
return this.startParams.target;
|
|
@@ -6859,7 +6859,7 @@ var CameraGestureHandlerImp = /** @class */ (function () {
|
|
|
6859
6859
|
|
|
6860
6860
|
registerPlugin('tree', ModelTreePlugin, VFXItem, true);
|
|
6861
6861
|
registerPlugin('model', ModelPlugin, VFXItem);
|
|
6862
|
-
var version = "2.0.0-alpha.
|
|
6862
|
+
var version = "2.0.0-alpha.3";
|
|
6863
6863
|
logger.info('plugin model version: ' + version);
|
|
6864
6864
|
|
|
6865
6865
|
var ModelDataType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-plugin-model",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "Galacean Effects player model plugin",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"registry": "https://registry.npmjs.org"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@galacean/effects-helper": "2.0.0-alpha.
|
|
36
|
+
"@galacean/effects-helper": "2.0.0-alpha.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@vvfx/resource-detection": "0.4.2-alpha.22",
|
|
40
40
|
"@types/hammerjs": "^2.0.45",
|
|
41
41
|
"fpsmeter": "^0.3.1",
|
|
42
42
|
"hammerjs": "^2.0.8",
|
|
43
|
-
"@galacean/effects": "2.0.0-alpha.
|
|
44
|
-
"@galacean/effects-plugin-editor-gizmo": "2.0.0-alpha.
|
|
43
|
+
"@galacean/effects": "2.0.0-alpha.3",
|
|
44
|
+
"@galacean/effects-plugin-editor-gizmo": "2.0.0-alpha.3"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"dev": "vite",
|