Przeglądaj źródła

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

Davide Tantillo 7 miesięcy temu
rodzic
commit
b443dd1e29

+ 2 - 0
spine-ts/spine-pixi-v7/src/Spine.ts

@@ -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);

+ 2 - 0
spine-ts/spine-pixi-v8/src/Spine.ts

@@ -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);