targetj 1.0.258 → 1.0.260

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.
@@ -0,0 +1,103 @@
1
+ import type { AttributeTargetName } from "./attributes.js";
2
+
3
+ export type TransformTargetName =
4
+ | "x"
5
+ | "y"
6
+ | "z"
7
+ | "translateX"
8
+ | "translateY"
9
+ | "translateZ"
10
+ | "perspective"
11
+ | "rotate"
12
+ | "rotateX"
13
+ | "rotateY"
14
+ | "rotateZ"
15
+ | "rotate3DX"
16
+ | "rotate3DY"
17
+ | "rotate3DZ"
18
+ | "rotate3DAngle"
19
+ | "scale"
20
+ | "scaleX"
21
+ | "scaleY"
22
+ | "scaleZ"
23
+ | "scale3DX"
24
+ | "scale3DY"
25
+ | "scale3DZ"
26
+ | "skew"
27
+ | "skewX"
28
+ | "skewY";
29
+
30
+ export type UnitStyleTargetName =
31
+ | "width"
32
+ | "height"
33
+ | "fontSize"
34
+ | "lineHeight"
35
+ | "borderRadius"
36
+ | "padding"
37
+ | "paddingLeft"
38
+ | "paddingRight"
39
+ | "paddingTop"
40
+ | "paddingBottom"
41
+ | "left"
42
+ | "top"
43
+ | "right"
44
+ | "bottom"
45
+ | "wordSpacing"
46
+ | "letterSpacing";
47
+
48
+ export type ColorStyleTargetName =
49
+ | "color"
50
+ | "backgroundColor"
51
+ | "borderColor"
52
+ | "background";
53
+
54
+ export type DirectStyleTargetName =
55
+ | "dim"
56
+ | "opacity"
57
+ | "zIndex"
58
+ | "border"
59
+ | "borderTop"
60
+ | "borderLeft"
61
+ | "borderRight"
62
+ | "borderBottom";
63
+
64
+ export type AsyncStyleTargetName =
65
+ | "position"
66
+ | "css"
67
+ | "style"
68
+ | "textAlign"
69
+ | "boxSizing"
70
+ | "transformStyle"
71
+ | "transformOrigin"
72
+ | "attributes"
73
+ | "justifyContent"
74
+ | "flexDirection"
75
+ | "alignItems"
76
+ | "display"
77
+ | "cursor"
78
+ | "fontFamily"
79
+ | "overflow"
80
+ | "overflowX"
81
+ | "overflowY"
82
+ | "textDecoration"
83
+ | "boxShadow"
84
+ | "fontWeight"
85
+ | "willChange"
86
+ | "backgroundImage"
87
+ | "backgroundSize"
88
+ | "flexWrap"
89
+ | "userSelect"
90
+ | "outline"
91
+ | "backfaceVisibility"
92
+ | "filter";
93
+
94
+ export type StyleTargetName =
95
+ | TransformTargetName
96
+ | UnitStyleTargetName
97
+ | ColorStyleTargetName
98
+ | DirectStyleTargetName
99
+ | AsyncStyleTargetName;
100
+
101
+ export type StylableTargetName =
102
+ | StyleTargetName
103
+ | AttributeTargetName;
@@ -0,0 +1,89 @@
1
+ import type {
2
+ EasingValue,
3
+ SetTargetMap,
4
+ TargetDefinition,
5
+ TargetInput
6
+ } from "./core.js";
7
+
8
+ export class TModel<
9
+ TTargets extends TargetDefinition = TargetDefinition
10
+ > {
11
+ constructor(
12
+ type: string,
13
+ targets: TTargets,
14
+ oid?: string,
15
+ options?: unknown
16
+ );
17
+
18
+ oid: string;
19
+ targets: TTargets;
20
+
21
+ parent?: TModel;
22
+
23
+ visibleChildren: TModel[];
24
+
25
+ $dom?: {
26
+ getScrollTop(): number;
27
+ getScrollLeft?(): number;
28
+ };
29
+
30
+ mount(element: string | Element): this;
31
+
32
+ val<T = unknown>(
33
+ targetName: string
34
+ ): T;
35
+
36
+ val<T = unknown>(
37
+ targetName: string,
38
+ value: T
39
+ ): T;
40
+
41
+ pval<T = unknown>(
42
+ targetName: string
43
+ ): T;
44
+
45
+ setTarget<T>(
46
+ targetName: string,
47
+ value: TargetInput<T>,
48
+ steps?: number,
49
+ interval?: number,
50
+ easing?: EasingValue
51
+ ): this;
52
+
53
+ setTarget(
54
+ targets: SetTargetMap,
55
+ steps?: number,
56
+ interval?: number,
57
+ easing?: EasingValue
58
+ ): this;
59
+
60
+ activateTarget(
61
+ targetName: string,
62
+ ...args: any[]
63
+ ): unknown;
64
+
65
+ getChild(
66
+ id: string | number
67
+ ): TModel | undefined;
68
+
69
+ getParent(): TModel | undefined;
70
+
71
+ getLastChild(): TModel | undefined;
72
+
73
+ getWidth(): number;
74
+ getHeight(): number;
75
+ getX(): number;
76
+ getY(): number;
77
+
78
+ isVisible(): boolean;
79
+
80
+ isTargetVisibleTreeComplete(
81
+ targetName?: string
82
+ ): boolean;
83
+
84
+ addChild(
85
+ definition: TargetDefinition | TModel
86
+ ): TModel;
87
+
88
+ removeChildren(): void;
89
+ }
@@ -0,0 +1,37 @@
1
+ export const Moves: any;
2
+
3
+ export const SearchUtil: any;
4
+
5
+ export const TargetData: any;
6
+
7
+ export const TargetUtil: any;
8
+
9
+ export const TargetParser: any;
10
+
11
+ export const TModelUtil: any;
12
+
13
+ export const TUtil: any;
14
+
15
+ export const DomInit: any;
16
+
17
+ export const $Dom: any;
18
+
19
+ export const Bracket: any;
20
+
21
+ export const BracketGenerator: any;
22
+
23
+ export const ColorUtil: any;
24
+
25
+ export const Easing: any;
26
+
27
+ export const TargetExecutor: any;
28
+
29
+ export const AnimationManager: any;
30
+
31
+ export const AnimationUtil: any;
32
+
33
+ export const VisibilityUtil: any;
34
+
35
+ export const ScheduleUtil: any;
36
+
37
+ export const StateUtil: any;