@cc-component/cc-ex-component 1.5.0 → 1.5.1
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.
|
@@ -44,17 +44,17 @@ export class ExComponentModule {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
static async EmitLoadSprite(param: any): Promise<SpriteFrame> {
|
|
47
|
-
return ExComponentModule.Ins.paramSprite
|
|
47
|
+
return ExComponentModule.Ins.paramSprite?.loadSprite?.(param)
|
|
48
48
|
}
|
|
49
49
|
static EmitGetSprite(param: any): SpriteFrame {
|
|
50
|
-
return ExComponentModule.Ins.paramSprite
|
|
50
|
+
return ExComponentModule.Ins.paramSprite?.getSprite?.(param)
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
static async EmitLoadSpine(param: any): Promise<sp.SkeletonData> {
|
|
54
|
-
return ExComponentModule.Ins.paramSpine
|
|
54
|
+
return ExComponentModule.Ins.paramSpine?.loadSpine?.(param)
|
|
55
55
|
}
|
|
56
56
|
static EmitGetSpine(param: any): sp.SkeletonData {
|
|
57
|
-
return ExComponentModule.Ins.paramSpine
|
|
57
|
+
return ExComponentModule.Ins.paramSpine?.getSpine?.(param)
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
window.ExComponentModule = ExComponentModule;
|