[ts][pixi-v7][pixi-v8] Add missing jsdoc.

This commit is contained in:
Davide Tantillo 2025-01-24 15:17:33 +01:00
parent 6f8ed12686
commit b443dd1e29
2 changed files with 4 additions and 0 deletions

View File

@ -348,6 +348,8 @@ export class Spine extends Container {
* slot before adding it to the current one. * slot before adding it to the current one.
* @param slotRef - The slot index, or the slot name, or the Slot where the pixi object will be added to. * @param slotRef - The slot index, or the slot name, or the Slot where the pixi object will be added to.
* @param pixiObject - The pixi Container to add. * @param pixiObject - The pixi Container to add.
* @param options - Optional settings for the attachment.
* @param options.followAttachmentTimeline - If true, the attachment will follow the slot's attachment timeline.
*/ */
addSlotObject (slotRef: number | string | Slot, pixiObject: Container, options?: { followAttachmentTimeline?: boolean }): void { addSlotObject (slotRef: number | string | Slot, pixiObject: Container, options?: { followAttachmentTimeline?: boolean }): void {
let slot = this.getSlotFromRef(slotRef); let slot = this.getSlotFromRef(slotRef);

View File

@ -712,6 +712,8 @@ export class Spine extends ViewContainer {
* *
* @param container - The container to attach to the slot * @param container - The container to attach to the slot
* @param slotRef - The slot id or slot to attach to * @param slotRef - The slot id or slot to attach to
* @param options - Optional settings for the attachment.
* @param options.followAttachmentTimeline - If true, the attachment will follow the slot's attachment timeline.
*/ */
public addSlotObject (slot: number | string | Slot, container: Container, options?: { followAttachmentTimeline?: boolean }) { public addSlotObject (slot: number | string | Slot, container: Container, options?: { followAttachmentTimeline?: boolean }) {
slot = this.getSlotFromRef(slot); slot = this.getSlotFromRef(slot);