[ts] Add missing js extension on imports.

This commit is contained in:
Davide Tantillo 2025-07-18 14:28:18 +02:00
parent 0099c9b03a
commit cb9bdc8294
11 changed files with 45 additions and 46 deletions

View File

@ -27,8 +27,8 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { Inherit } from "./BoneData";
import { Pose } from "./Pose"
import { Inherit } from "./BoneData.js";
import { Pose } from "./Pose.js"
/** Stores a bone's local pose. */
export class BoneLocal implements Pose<BoneLocal> {

View File

@ -27,13 +27,13 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { Bone } from "./Bone";
import { Inherit } from "./BoneData";
import { BoneLocal } from "./BoneLocal";
import { Physics } from "./Physics";
import { Skeleton } from "./Skeleton";
import { Update } from "./Update";
import { MathUtils, Vector2 } from "./Utils";
import { Bone } from "./Bone.js";
import { Inherit } from "./BoneData.js";
import { BoneLocal } from "./BoneLocal.js";
import { Physics } from "./Physics.js";
import { Skeleton } from "./Skeleton.js";
import { Update } from "./Update.js";
import { MathUtils, Vector2 } from "./Utils.js";
/** The applied pose for a bone. This is the {@link Bone} pose with constraints applied and the world transform computed by
* {@link Skeleton#updateWorldTransform()}. */

View File

@ -27,12 +27,12 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { ConstraintData } from "./ConstraintData";
import { Physics } from "./Physics";
import { Pose } from "./Pose";
import { PosedActive } from "./PosedActive";
import { Skeleton } from "./Skeleton";
import { Update } from "./Update";
import { ConstraintData } from "./ConstraintData.js";
import { Physics } from "./Physics.js";
import { Pose } from "./Pose.js";
import { PosedActive } from "./PosedActive.js";
import { Skeleton } from "./Skeleton.js";
import { Update } from "./Update.js";
export abstract class Constraint<
T extends Constraint<T, D, P>,

View File

@ -27,10 +27,10 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { Constraint } from "./Constraint";
import { Pose } from "./Pose";
import { PosedData } from "./PosedData";
import { Skeleton } from "./Skeleton";
import { Constraint } from "./Constraint.js";
import { Pose } from "./Pose.js";
import { PosedData } from "./PosedData.js";
import { Skeleton } from "./Skeleton.js";
/** The base class for all constraint datas. */
export abstract class ConstraintData<

View File

@ -27,8 +27,8 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { Pose } from "./Pose";
import { PosedData } from "./PosedData";
import { Pose } from "./Pose.js";
import { PosedData } from "./PosedData.js";
export abstract class Posed<
D extends PosedData<P>,

View File

@ -27,9 +27,9 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { Pose } from "./Pose";
import { Posed } from "./Posed";
import { PosedData } from "./PosedData";
import { Pose } from "./Pose.js";
import { Posed } from "./Posed.js";
import { PosedData } from "./PosedData.js";
import type { Skeleton } from "./Skeleton";

View File

@ -27,7 +27,7 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { Pose } from "./Pose";
import { Pose } from "./Pose.js";
/** The base class for all constrained datas. */
export abstract class PosedData<P extends Pose<any>> {

View File

@ -27,13 +27,13 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { isConstraintTimeline, isSlotTimeline, MixBlend, MixDirection, PhysicsConstraintTimeline } from "./Animation";
import { Bone } from "./Bone";
import { Constraint } from "./Constraint";
import { Physics } from "./Physics";
import { Skeleton } from "./Skeleton";
import { SliderData } from "./SliderData";
import { SliderPose } from "./SliderPose";
import { isConstraintTimeline, isSlotTimeline, MixBlend, MixDirection, PhysicsConstraintTimeline } from "./Animation.js";
import { Bone } from "./Bone.js";
import { Constraint } from "./Constraint.js";
import { Physics } from "./Physics.js";
import { Skeleton } from "./Skeleton.js";
import { SliderData } from "./SliderData.js";
import { SliderPose } from "./SliderPose.js";
/** Stores the setup pose for a {@link PhysicsConstraint}.
*

View File

@ -27,13 +27,13 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { Animation } from "./Animation";
import { BoneData } from "./BoneData";
import { ConstraintData } from "./ConstraintData";
import { Skeleton } from "./Skeleton";
import { Slider } from "./Slider";
import { SliderPose } from "./SliderPose";
import { FromProperty } from "./TransformConstraintData";
import { Animation } from "./Animation.js";
import { BoneData } from "./BoneData.js";
import { ConstraintData } from "./ConstraintData.js";
import { Skeleton } from "./Skeleton.js";
import { Slider } from "./Slider.js";
import { SliderPose } from "./SliderPose.js";
import { FromProperty } from "./TransformConstraintData.js";
/** Stores the setup pose for a {@link SliderConstraint}.
*

View File

@ -27,7 +27,7 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { Pose } from "./Pose";
import { Pose } from "./Pose.js";
/** Stores a pose for a slider. */
export class SliderPose implements Pose<SliderPose> {

View File

@ -27,12 +27,11 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
import { Pose } from "./Pose";
import { Color } from "./Utils";
import { VertexAttachment } from "./attachments/Attachment";
import { Attachment } from "./attachments/Attachment";
import type { Sequence } from "./attachments/Sequence";
import { Pose } from "./Pose.js";
import { Color } from "./Utils.js";
import { VertexAttachment } from "./attachments/Attachment.js";
import { Attachment } from "./attachments/Attachment.js";
import type { Sequence } from "./attachments/Sequence.js";
/** Stores a slot's pose. Slots organize attachments for {@link Skeleton#drawOrder} purposes and provide a place to store state
* for an attachment. State cannot be stored in an attachment itself because attachments are stateless and may be shared across