@galacean/engine-spine 0.0.0-experimental-engine-spine-2025420 → 0.0.0-experimental-engine-spine-20250613
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/browser.js +1 -1
- package/dist/main.js +3 -2
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +3 -2
- package/dist/module.js +3 -2
- package/dist/module.js.map +1 -1
- package/package.json +4 -3
- package/types/SpineAnimation.d.ts +48 -0
- package/types/SpineLoader.d.ts +32 -0
- package/types/SpineMaterial.d.ts +6 -0
- package/types/SpineRenderer.d.ts +38 -0
- package/types/core/MeshGenerator.d.ts +43 -0
- package/types/core/SpineMesh.d.ts +11 -0
- package/types/renderer/SpineAnimationRenderer.d.ts +5 -0
- package/types/spine-core/Animation.d.ts +378 -0
- package/types/spine-core/AnimationState.d.ts +365 -0
- package/types/spine-core/AnimationStateData.d.ts +23 -0
- package/types/spine-core/AssetManager.d.ts +36 -0
- package/types/spine-core/AtlasAttachmentLoader.d.ts +23 -0
- package/types/spine-core/BlendMode.d.ts +7 -0
- package/types/spine-core/Bone.d.ts +110 -0
- package/types/spine-core/BoneData.d.ts +44 -0
- package/types/spine-core/ConstraintData.d.ts +7 -0
- package/types/spine-core/Event.d.ts +16 -0
- package/types/spine-core/EventData.d.ts +13 -0
- package/types/spine-core/IkConstraint.d.ts +38 -0
- package/types/spine-core/IkConstraintData.d.ts +26 -0
- package/types/spine-core/PathConstraint.d.ts +46 -0
- package/types/spine-core/PathConstraintData.d.ts +52 -0
- package/types/spine-core/SharedAssetManager.d.ts +19 -0
- package/types/spine-core/Skeleton.d.ts +134 -0
- package/types/spine-core/SkeletonBinary.d.ts +49 -0
- package/types/spine-core/SkeletonBounds.d.ts +48 -0
- package/types/spine-core/SkeletonClipping.d.ts +22 -0
- package/types/spine-core/SkeletonData.d.ts +89 -0
- package/types/spine-core/SkeletonJson.d.ts +34 -0
- package/types/spine-core/Skin.d.ts +43 -0
- package/types/spine-core/Slot.d.ts +42 -0
- package/types/spine-core/SlotData.d.ts +23 -0
- package/types/spine-core/Texture.d.ts +46 -0
- package/types/spine-core/TextureAtlas.d.ts +30 -0
- package/types/spine-core/TransformConstraint.d.ts +36 -0
- package/types/spine-core/TransformConstraintData.d.ts +34 -0
- package/types/spine-core/Triangulator.d.ts +14 -0
- package/types/spine-core/Updatable.d.ts +9 -0
- package/types/spine-core/Utils.d.ts +124 -0
- package/types/spine-core/VertexEffect.d.ts +7 -0
- package/types/spine-core/attachments/Attachment.d.ts +43 -0
- package/types/spine-core/attachments/AttachmentLoader.d.ts +25 -0
- package/types/spine-core/attachments/AttachmentType.d.ts +9 -0
- package/types/spine-core/attachments/BoundingBoxAttachment.d.ts +12 -0
- package/types/spine-core/attachments/ClippingAttachment.d.ts +14 -0
- package/types/spine-core/attachments/MeshAttachment.d.ts +46 -0
- package/types/spine-core/attachments/PathAttachment.d.ts +19 -0
- package/types/spine-core/attachments/PointAttachment.d.ts +20 -0
- package/types/spine-core/attachments/RegionAttachment.d.ts +88 -0
- package/types/spine-core/polyfills.d.ts +3 -0
- package/types/spine-core/vertexeffects/JitterEffect.d.ts +11 -0
- package/types/spine-core/vertexeffects/SwirlEffect.d.ts +16 -0
- package/types/types.d.ts +4 -0
package/dist/miniprogram.js
CHANGED
|
@@ -10994,7 +10994,7 @@ var SpineMaterial = /*#__PURE__*/ function(Material) {
|
|
|
10994
10994
|
return SpineMaterial;
|
|
10995
10995
|
}(miniprogram.Material);
|
|
10996
10996
|
SpineMaterial._spineVS = "\n uniform mat4 renderer_MVPMat;\n\n attribute vec3 POSITION;\n attribute vec2 TEXCOORD_0;\n attribute vec4 COLOR_0;\n \n varying vec2 v_uv;\n varying vec4 v_color;\n \n void main()\n {\n gl_Position = renderer_MVPMat * vec4(POSITION, 1.0);\n \n v_uv = TEXCOORD_0;\n v_color = COLOR_0;\n }\n ";
|
|
10997
|
-
SpineMaterial._spineFS = "\n uniform sampler2D material_SpineTexture;\n\n varying vec2 v_uv;\n varying vec4 v_color;\n \n void main()\n {\n
|
|
10997
|
+
SpineMaterial._spineFS = "\n #include <common>\n uniform sampler2D material_SpineTexture;\n\n varying vec2 v_uv;\n varying vec4 v_color;\n \n void main()\n {\n vec4 baseColor = texture2DSRGB(material_SpineTexture, v_uv);\n gl_FragColor = baseColor * sRGBToLinear(v_color);\n }\n ";
|
|
10998
10998
|
|
|
10999
10999
|
/**
|
|
11000
11000
|
* Spine animation renderer, capable of rendering spine animations and providing functions for animation and skeleton manipulation.
|
|
@@ -11036,6 +11036,7 @@ SpineMaterial._spineFS = "\n uniform sampler2D material_SpineTexture;\n\n
|
|
|
11036
11036
|
state.apply(skeleton);
|
|
11037
11037
|
skeleton.update(delta);
|
|
11038
11038
|
skeleton.updateWorldTransform(exports.Physics.update);
|
|
11039
|
+
this.onBeforeBuildPrimitive == null ? void 0 : this.onBeforeBuildPrimitive.call(this);
|
|
11039
11040
|
SpineAnimationRenderer._spineGenerator.buildPrimitive(this._skeleton, this);
|
|
11040
11041
|
this._dirtyUpdateFlag |= 1;
|
|
11041
11042
|
};
|
|
@@ -11635,7 +11636,7 @@ for(var key in RendererObject){
|
|
|
11635
11636
|
for(var key1 in LoaderObject){
|
|
11636
11637
|
miniprogram.Loader.registerClass(key1, LoaderObject[key1]);
|
|
11637
11638
|
}
|
|
11638
|
-
var version = "0.0.0-experimental-engine-spine-
|
|
11639
|
+
var version = "0.0.0-experimental-engine-spine-20250613";
|
|
11639
11640
|
console.log("Galacean spine version: " + version);
|
|
11640
11641
|
|
|
11641
11642
|
exports.AlphaTimeline = AlphaTimeline;
|
package/dist/module.js
CHANGED
|
@@ -10989,7 +10989,7 @@ var SpineMaterial = /*#__PURE__*/ function(Material) {
|
|
|
10989
10989
|
return SpineMaterial;
|
|
10990
10990
|
}(Material);
|
|
10991
10991
|
SpineMaterial._spineVS = "\n uniform mat4 renderer_MVPMat;\n\n attribute vec3 POSITION;\n attribute vec2 TEXCOORD_0;\n attribute vec4 COLOR_0;\n \n varying vec2 v_uv;\n varying vec4 v_color;\n \n void main()\n {\n gl_Position = renderer_MVPMat * vec4(POSITION, 1.0);\n \n v_uv = TEXCOORD_0;\n v_color = COLOR_0;\n }\n ";
|
|
10992
|
-
SpineMaterial._spineFS = "\n uniform sampler2D material_SpineTexture;\n\n varying vec2 v_uv;\n varying vec4 v_color;\n \n void main()\n {\n
|
|
10992
|
+
SpineMaterial._spineFS = "\n #include <common>\n uniform sampler2D material_SpineTexture;\n\n varying vec2 v_uv;\n varying vec4 v_color;\n \n void main()\n {\n vec4 baseColor = texture2DSRGB(material_SpineTexture, v_uv);\n gl_FragColor = baseColor * sRGBToLinear(v_color);\n }\n ";
|
|
10993
10993
|
|
|
10994
10994
|
/**
|
|
10995
10995
|
* Spine animation renderer, capable of rendering spine animations and providing functions for animation and skeleton manipulation.
|
|
@@ -11031,6 +11031,7 @@ SpineMaterial._spineFS = "\n uniform sampler2D material_SpineTexture;\n\n
|
|
|
11031
11031
|
state.apply(skeleton);
|
|
11032
11032
|
skeleton.update(delta);
|
|
11033
11033
|
skeleton.updateWorldTransform(Physics.update);
|
|
11034
|
+
this.onBeforeBuildPrimitive == null ? void 0 : this.onBeforeBuildPrimitive.call(this);
|
|
11034
11035
|
SpineAnimationRenderer._spineGenerator.buildPrimitive(this._skeleton, this);
|
|
11035
11036
|
this._dirtyUpdateFlag |= 1;
|
|
11036
11037
|
};
|
|
@@ -11630,7 +11631,7 @@ for(var key in RendererObject){
|
|
|
11630
11631
|
for(var key1 in LoaderObject){
|
|
11631
11632
|
Loader.registerClass(key1, LoaderObject[key1]);
|
|
11632
11633
|
}
|
|
11633
|
-
var version = "0.0.0-experimental-engine-spine-
|
|
11634
|
+
var version = "0.0.0-experimental-engine-spine-20250613";
|
|
11634
11635
|
console.log("Galacean spine version: " + version);
|
|
11635
11636
|
|
|
11636
11637
|
export { AlphaTimeline, Animation, AnimationState, AnimationStateAdapter, AnimationStateData, AssetManagerBase, AtlasAttachmentLoader, Attachment, AttachmentTimeline, BinaryInput, BlendMode, Bone, BoneData, BoundingBoxAttachment, CURRENT, ClippingAttachment, Color, ConstraintData, CurveTimeline, CurveTimeline1, CurveTimeline2, DebugUtils, DeformTimeline, Downloader, DrawOrderTimeline, Event, EventData, EventQueue, EventTimeline, EventType, FIRST, FakeTexture, HOLD_FIRST, HOLD_MIX, HOLD_SUBSEQUENT, IkConstraint, IkConstraintData, IkConstraintTimeline, Inherit, InheritTimeline, IntSet, Interpolation, LoaderUtils, MathUtils, MeshAttachment, MixBlend, MixDirection, PathAttachment, PathConstraint, PathConstraintData, PathConstraintMixTimeline, PathConstraintPositionTimeline, PathConstraintSpacingTimeline, Physics, PhysicsConstraintDampingTimeline, PhysicsConstraintGravityTimeline, PhysicsConstraintInertiaTimeline, PhysicsConstraintMassTimeline, PhysicsConstraintMixTimeline, PhysicsConstraintResetTimeline, PhysicsConstraintStrengthTimeline, PhysicsConstraintTimeline, PhysicsConstraintWindTimeline, PointAttachment, Pool, PositionMode, Pow, PowOut, RGB2Timeline, RGBA2Timeline, RGBATimeline, RGBTimeline, RegionAttachment, RotateMode, RotateTimeline, SETUP, SUBSEQUENT, ScaleTimeline, ScaleXTimeline, ScaleYTimeline, SequenceTimeline, ShearTimeline, ShearXTimeline, ShearYTimeline, Skeleton, SkeletonBinary, SkeletonBounds, SkeletonClipping, SkeletonData, SkeletonJson, Skin, SkinEntry, Slot, SlotData, SpacingMode, SpineAnimationRenderer, SpineMaterial, SpineResource, StringSet, Texture, TextureAtlas, TextureAtlasPage, TextureAtlasRegion, TextureFilter, TextureRegion, TextureWrap, TimeKeeper, Timeline, TrackEntry, TransformConstraint, TransformConstraintData, TransformConstraintTimeline, TranslateTimeline, TranslateXTimeline, TranslateYTimeline, Triangulator, Utils, Vector2, VertexAttachment, WindowedMean, version };
|