@m2c2kit/core 0.3.11 → 0.3.13
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.
- package/dist/index.d.ts +116 -92
- package/dist/index.js +386 -183
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -422,6 +422,8 @@ interface EntityOptions {
|
|
|
422
422
|
position?: Point;
|
|
423
423
|
/** Scale of the entity. Default is 1.0 */
|
|
424
424
|
scale?: number;
|
|
425
|
+
/** Opacity of the entity. 0 is fully transparent, 1 is fully opaque. Default is 1.0. Alpha has multiplicative in inheritance. For example, if the entity's parent is alpha .5 and this entity's is alpha .4, then the entity will appear with alpha .2. */
|
|
426
|
+
alpha?: number;
|
|
425
427
|
/** Does the entity respond to user events, such as taps? Default is false */
|
|
426
428
|
isUserInteractionEnabled?: boolean;
|
|
427
429
|
/** Can the entity be dragged? */
|
|
@@ -502,6 +504,7 @@ declare class Scene extends Entity implements IDrawable, SceneOptions {
|
|
|
502
504
|
* @param callback
|
|
503
505
|
*/
|
|
504
506
|
onAppear(callback: (scene: Scene) => void): void;
|
|
507
|
+
update(): void;
|
|
505
508
|
draw(canvas: Canvas): void;
|
|
506
509
|
warmup(canvas: Canvas): void;
|
|
507
510
|
}
|
|
@@ -1248,6 +1251,7 @@ declare class Game implements Activity {
|
|
|
1248
1251
|
private raiseTapUpEvent;
|
|
1249
1252
|
private raiseTapUpAny;
|
|
1250
1253
|
private raiseM2PointerMoveEvent;
|
|
1254
|
+
private raiseM2PointerLeaveEvent;
|
|
1251
1255
|
private raiseM2DragStartEvent;
|
|
1252
1256
|
private raiseM2DragEvent;
|
|
1253
1257
|
private raiseM2DragEndEvent;
|
|
@@ -1681,39 +1685,41 @@ interface Activity {
|
|
|
1681
1685
|
*/
|
|
1682
1686
|
interface EventBase {
|
|
1683
1687
|
/** Type of event. */
|
|
1684
|
-
type: EventType;
|
|
1688
|
+
type: EventType | string;
|
|
1685
1689
|
/** The object on which the event occurred. */
|
|
1686
1690
|
target: Entity | Session | Activity;
|
|
1687
1691
|
/** Has the event been taken care of by the listener and not be dispatched to other targets? */
|
|
1688
1692
|
handled?: boolean;
|
|
1689
1693
|
}
|
|
1690
1694
|
/**
|
|
1691
|
-
* The different events that are dispatched by m2c2kit.
|
|
1695
|
+
* The different events that are dispatched by m2c2kit core.
|
|
1692
1696
|
*/
|
|
1693
|
-
declare
|
|
1694
|
-
SessionInitialize
|
|
1695
|
-
SessionStart
|
|
1696
|
-
SessionEnd
|
|
1697
|
-
ActivityStart
|
|
1698
|
-
ActivityEnd
|
|
1699
|
-
ActivityCancel
|
|
1700
|
-
ActivityData
|
|
1701
|
-
TapDown
|
|
1702
|
-
TapUp
|
|
1703
|
-
TapUpAny
|
|
1704
|
-
TapLeave
|
|
1705
|
-
PointerDown
|
|
1706
|
-
PointerUp
|
|
1707
|
-
PointerMove
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1697
|
+
declare const EventType: {
|
|
1698
|
+
readonly SessionInitialize: "SessionInitialize";
|
|
1699
|
+
readonly SessionStart: "SessionStart";
|
|
1700
|
+
readonly SessionEnd: "SessionEnd";
|
|
1701
|
+
readonly ActivityStart: "ActivityStart";
|
|
1702
|
+
readonly ActivityEnd: "ActivityEnd";
|
|
1703
|
+
readonly ActivityCancel: "ActivityCancel";
|
|
1704
|
+
readonly ActivityData: "ActivityData";
|
|
1705
|
+
readonly TapDown: "TapDown";
|
|
1706
|
+
readonly TapUp: "TapUp";
|
|
1707
|
+
readonly TapUpAny: "TapUpAny";
|
|
1708
|
+
readonly TapLeave: "TapLeave";
|
|
1709
|
+
readonly PointerDown: "PointerDown";
|
|
1710
|
+
readonly PointerUp: "PointerUp";
|
|
1711
|
+
readonly PointerMove: "PointerMove";
|
|
1712
|
+
readonly PointerLeave: "PointerLeave";
|
|
1713
|
+
readonly Drag: "Drag";
|
|
1714
|
+
readonly DragStart: "DragStart";
|
|
1715
|
+
readonly DragEnd: "DragEnd";
|
|
1716
|
+
readonly CompositeCustom: "CompositeCustom";
|
|
1717
|
+
readonly FrameDidSimulatePhysics: "FrameDidSimulatePhysics";
|
|
1718
|
+
};
|
|
1719
|
+
type EventType = (typeof EventType)[keyof typeof EventType];
|
|
1714
1720
|
|
|
1715
1721
|
interface EntityEventListener {
|
|
1716
|
-
type: EventType;
|
|
1722
|
+
type: EventType | string;
|
|
1717
1723
|
/** For composites that raise events, type of the composite custom event. */
|
|
1718
1724
|
compositeType?: string;
|
|
1719
1725
|
entityUuid: string;
|
|
@@ -1789,6 +1795,7 @@ declare abstract class Entity implements EntityOptions {
|
|
|
1789
1795
|
name: string;
|
|
1790
1796
|
position: Point;
|
|
1791
1797
|
scale: number;
|
|
1798
|
+
alpha: number;
|
|
1792
1799
|
isUserInteractionEnabled: boolean;
|
|
1793
1800
|
draggable: boolean;
|
|
1794
1801
|
hidden: boolean;
|
|
@@ -1799,6 +1806,8 @@ declare abstract class Entity implements EntityOptions {
|
|
|
1799
1806
|
absolutePosition: Point;
|
|
1800
1807
|
size: Size;
|
|
1801
1808
|
absoluteScale: number;
|
|
1809
|
+
absoluteAlpha: number;
|
|
1810
|
+
absoluteAlphaChange: number;
|
|
1802
1811
|
actions: Action[];
|
|
1803
1812
|
queuedAction?: Action;
|
|
1804
1813
|
originalActions: Action[];
|
|
@@ -1810,6 +1819,7 @@ declare abstract class Entity implements EntityOptions {
|
|
|
1810
1819
|
/** Is the entity in a pressed state? E.g., did the user put the pointer
|
|
1811
1820
|
* down on the entity and not yet release it? */
|
|
1812
1821
|
pressed: boolean;
|
|
1822
|
+
withinHitArea: boolean;
|
|
1813
1823
|
/** Is the entity in a pressed state AND is the pointer within the entity's
|
|
1814
1824
|
* hit area? For example, a user may put the pointer down on the entity, but
|
|
1815
1825
|
* then move the pointer, while still down, beyond the entity's hit area. In
|
|
@@ -1915,13 +1925,9 @@ declare abstract class Entity implements EntityOptions {
|
|
|
1915
1925
|
* the bounds of the entity.
|
|
1916
1926
|
*
|
|
1917
1927
|
* @param callback - function to execute
|
|
1918
|
-
* @param
|
|
1919
|
-
* any existing callbacks of the same event type on this entity? Usually
|
|
1920
|
-
* there should be only one callback defined, instead of chaining multiple
|
|
1921
|
-
* ones. It is strongly recommended not to change this, unless you have a
|
|
1922
|
-
* special use case. Default is true.
|
|
1928
|
+
* @param options - {@link CallbackOptions}
|
|
1923
1929
|
*/
|
|
1924
|
-
onTapDown(callback: (tapEvent: TapEvent) => void,
|
|
1930
|
+
onTapDown(callback: (tapEvent: TapEvent) => void, options?: CallbackOptions): void;
|
|
1925
1931
|
/**
|
|
1926
1932
|
* Executes a callback when the user releases a press, that has been fully
|
|
1927
1933
|
* within the entity, from the entity.
|
|
@@ -1931,13 +1937,9 @@ declare abstract class Entity implements EntityOptions {
|
|
|
1931
1937
|
* beyond the bounds of the entity.
|
|
1932
1938
|
*
|
|
1933
1939
|
* @param callback - function to execute
|
|
1934
|
-
* @param
|
|
1935
|
-
* any existing callbacks of the same event type on this entity? Usually
|
|
1936
|
-
* there should be only one callback defined, instead of chaining multiple
|
|
1937
|
-
* ones. It is strongly recommended not to change this, unless you have a
|
|
1938
|
-
* special use case. Default is true.
|
|
1940
|
+
* @param options - {@link CallbackOptions}ue.
|
|
1939
1941
|
*/
|
|
1940
|
-
onTapUp(callback: (tapEvent: TapEvent) => void,
|
|
1942
|
+
onTapUp(callback: (tapEvent: TapEvent) => void, options?: CallbackOptions): void;
|
|
1941
1943
|
/**
|
|
1942
1944
|
* Executes a callback when the user releases a press from the entity within
|
|
1943
1945
|
* the bounds of the entity.
|
|
@@ -1948,13 +1950,9 @@ declare abstract class Entity implements EntityOptions {
|
|
|
1948
1950
|
* release.
|
|
1949
1951
|
*
|
|
1950
1952
|
* @param callback - function to execute
|
|
1951
|
-
* @param
|
|
1952
|
-
* any existing callbacks of the same event type on this entity? Usually
|
|
1953
|
-
* there should be only one callback defined, instead of chaining multiple
|
|
1954
|
-
* ones. It is strongly recommended not to change this, unless you have a
|
|
1955
|
-
* special use case. Default is true.
|
|
1953
|
+
* @param options - {@link CallbackOptions}
|
|
1956
1954
|
*/
|
|
1957
|
-
onTapUpAny(callback: (tapEvent: TapEvent) => void,
|
|
1955
|
+
onTapUpAny(callback: (tapEvent: TapEvent) => void, options?: CallbackOptions): void;
|
|
1958
1956
|
/**
|
|
1959
1957
|
* Executes a callback when the user moves the pointer (mouse, touches) beyond
|
|
1960
1958
|
* the bounds of the entity while the pointer is down.
|
|
@@ -1964,13 +1962,9 @@ declare abstract class Entity implements EntityOptions {
|
|
|
1964
1962
|
* before the press release.
|
|
1965
1963
|
*
|
|
1966
1964
|
* @param callback - function to execute
|
|
1967
|
-
* @param
|
|
1968
|
-
* any existing callbacks of the same event type on this entity? Usually
|
|
1969
|
-
* there should be only one callback defined, instead of chaining multiple
|
|
1970
|
-
* ones. It is strongly recommended not to change this, unless you have a
|
|
1971
|
-
* special use case. Default is true.
|
|
1965
|
+
* @param options - {@link CallbackOptions}
|
|
1972
1966
|
*/
|
|
1973
|
-
onTapLeave(callback: (tapEvent: TapEvent) => void,
|
|
1967
|
+
onTapLeave(callback: (tapEvent: TapEvent) => void, options?: CallbackOptions): void;
|
|
1974
1968
|
/**
|
|
1975
1969
|
* Executes a callback when the pointer first is down on the entity.
|
|
1976
1970
|
*
|
|
@@ -1978,13 +1972,9 @@ declare abstract class Entity implements EntityOptions {
|
|
|
1978
1972
|
* the bounds of the entity. It occurs under the same conditions as TapDown.
|
|
1979
1973
|
*
|
|
1980
1974
|
* @param callback - function to execute
|
|
1981
|
-
* @param
|
|
1982
|
-
* any existing callbacks of the same event type on this entity? Usually
|
|
1983
|
-
* there should be only one callback defined, instead of chaining multiple
|
|
1984
|
-
* ones. It is strongly recommended not to change this, unless you have a
|
|
1985
|
-
* special use case. Default is true.
|
|
1975
|
+
* @param options - {@link CallbackOptions}
|
|
1986
1976
|
*/
|
|
1987
|
-
onPointerDown(callback: (m2PointerEvent: M2PointerEvent) => void,
|
|
1977
|
+
onPointerDown(callback: (m2PointerEvent: M2PointerEvent) => void, options?: CallbackOptions): void;
|
|
1988
1978
|
/**
|
|
1989
1979
|
* Executes a callback when the user releases a press from the entity within
|
|
1990
1980
|
* the bounds of the entity.
|
|
@@ -1994,62 +1984,61 @@ declare abstract class Entity implements EntityOptions {
|
|
|
1994
1984
|
* previous PointerDown on the entity.
|
|
1995
1985
|
*
|
|
1996
1986
|
* @param callback - function to execute
|
|
1997
|
-
* @param
|
|
1998
|
-
* any existing callbacks of the same event type on this entity? Usually
|
|
1999
|
-
* there should be only one callback defined, instead of chaining multiple
|
|
2000
|
-
* ones. It is strongly recommended not to change this, unless you have a
|
|
2001
|
-
* special use case. Default is true.
|
|
1987
|
+
* @param options - {@link CallbackOptions}
|
|
2002
1988
|
*/
|
|
2003
|
-
onPointerUp(callback: (m2PointerEvent: M2PointerEvent) => void,
|
|
1989
|
+
onPointerUp(callback: (m2PointerEvent: M2PointerEvent) => void, options?: CallbackOptions): void;
|
|
2004
1990
|
/**
|
|
2005
1991
|
* Executes a callback when the user moves the pointer (mouse or touches)
|
|
2006
1992
|
* within the bounds of the entity.
|
|
2007
1993
|
*
|
|
2008
1994
|
* @param callback - function to execute
|
|
2009
|
-
* @param
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
*
|
|
1995
|
+
* @param options - {@link CallbackOptions}
|
|
1996
|
+
*/
|
|
1997
|
+
onPointerMove(callback: (m2PointerEvent: M2PointerEvent) => void, options?: CallbackOptions): void;
|
|
1998
|
+
/**
|
|
1999
|
+
* Executes a callback when the user moves the pointer (mouse or touches)
|
|
2000
|
+
* outside the bounds of the entity.
|
|
2001
|
+
*
|
|
2002
|
+
* @param callback - function to execute
|
|
2003
|
+
* @param options - {@link CallbackOptions}
|
|
2014
2004
|
*/
|
|
2015
|
-
|
|
2005
|
+
onPointerLeave(callback: (m2PointerEvent: M2PointerEvent) => void, options?: CallbackOptions): void;
|
|
2016
2006
|
/**
|
|
2017
2007
|
* Executes a callback when the user begins dragging an entity.
|
|
2018
2008
|
*
|
|
2019
2009
|
* @param callback - function to execute
|
|
2020
|
-
* @param
|
|
2021
|
-
* any existing callbacks of the same event type on this entity? Usually
|
|
2022
|
-
* there should be only one callback defined, instead of chaining multiple
|
|
2023
|
-
* ones. It is strongly recommended not to change this, unless you have a
|
|
2024
|
-
* special use case. Default is true.
|
|
2010
|
+
* @param options - {@link CallbackOptions}
|
|
2025
2011
|
*/
|
|
2026
|
-
onDragStart(callback: (m2DragEvent: M2DragEvent) => void,
|
|
2012
|
+
onDragStart(callback: (m2DragEvent: M2DragEvent) => void, options?: CallbackOptions): void;
|
|
2027
2013
|
/**
|
|
2028
2014
|
* Executes a callback when the user continues dragging an entity.
|
|
2029
2015
|
*
|
|
2030
2016
|
* @param callback - function to execute
|
|
2031
|
-
* @param
|
|
2032
|
-
* any existing callbacks of the same event type on this entity? Usually
|
|
2033
|
-
* there should be only one callback defined, instead of chaining multiple
|
|
2034
|
-
* ones. It is strongly recommended not to change this, unless you have a
|
|
2035
|
-
* special use case. Default is true.
|
|
2017
|
+
* @param options - {@link CallbackOptions}
|
|
2036
2018
|
*/
|
|
2037
|
-
onDrag(callback: (m2DragEvent: M2DragEvent) => void,
|
|
2019
|
+
onDrag(callback: (m2DragEvent: M2DragEvent) => void, options?: CallbackOptions): void;
|
|
2038
2020
|
/**
|
|
2039
2021
|
* Executes a callback when the user stop dragging an entity.
|
|
2040
2022
|
*
|
|
2041
2023
|
* @param callback - function to execute
|
|
2042
|
-
* @param
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
* special use case. Default is true.
|
|
2047
|
-
*/
|
|
2048
|
-
onDragEnd(callback: (m2DragEvent: M2DragEvent) => void, callbackOptions?: CallbackOptions): void;
|
|
2049
|
-
addEventListener(type: EventType, callback: (ev: EntityEvent) => void, callbackOptions?: CallbackOptions): void;
|
|
2024
|
+
* @param options - {@link CallbackOptions}
|
|
2025
|
+
*/
|
|
2026
|
+
onDragEnd(callback: (m2DragEvent: M2DragEvent) => void, options?: CallbackOptions): void;
|
|
2027
|
+
addEventListener(type: EventType | string, callback: (ev: EntityEvent) => void, callbackOptions?: CallbackOptions): void;
|
|
2050
2028
|
private parseLayoutConstraints;
|
|
2051
2029
|
private calculateYFromConstraint;
|
|
2052
2030
|
private calculateXFromConstraint;
|
|
2031
|
+
/**
|
|
2032
|
+
* Calculates the absolute alpha of the entity, taking into account the
|
|
2033
|
+
* alpha of all ancestor parent entities.
|
|
2034
|
+
*
|
|
2035
|
+
* @remarks Alpha has multiplicative inheritance from all ancestors.
|
|
2036
|
+
*
|
|
2037
|
+
* @param alpha - Opacity of the entity
|
|
2038
|
+
* @param ancestors - Array of ancestor parent entities
|
|
2039
|
+
* @returns
|
|
2040
|
+
*/
|
|
2041
|
+
private calculateAbsoluteAlpha;
|
|
2053
2042
|
update(): void;
|
|
2054
2043
|
/**
|
|
2055
2044
|
* Draws each child entity that is Drawable and is not hidden, by zPosition
|
|
@@ -2145,6 +2134,15 @@ interface ScaleActionOptions {
|
|
|
2145
2134
|
runDuringTransition?: boolean;
|
|
2146
2135
|
}
|
|
2147
2136
|
|
|
2137
|
+
interface FadeAlphaActionOptions {
|
|
2138
|
+
/** Opacity of the entity. 0 is fully transparent, 1 is fully opaque. */
|
|
2139
|
+
alpha: number;
|
|
2140
|
+
/** Duration of scale, in milliseconds */
|
|
2141
|
+
duration: number;
|
|
2142
|
+
/** Should the action run during screen transitions? Default is no */
|
|
2143
|
+
runDuringTransition?: boolean;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2148
2146
|
interface IActionContainer {
|
|
2149
2147
|
children?: Array<Action>;
|
|
2150
2148
|
}
|
|
@@ -2156,7 +2154,8 @@ declare enum ActionType {
|
|
|
2156
2154
|
Wait = "Wait",
|
|
2157
2155
|
Custom = "Custom",
|
|
2158
2156
|
Move = "Move",
|
|
2159
|
-
Scale = "Scale"
|
|
2157
|
+
Scale = "Scale",
|
|
2158
|
+
FadeAlpha = "FadeAlpha"
|
|
2160
2159
|
}
|
|
2161
2160
|
|
|
2162
2161
|
/**
|
|
@@ -2208,6 +2207,15 @@ declare abstract class Action {
|
|
|
2208
2207
|
* @returns The scale action
|
|
2209
2208
|
*/
|
|
2210
2209
|
static scale(options: ScaleActionOptions): Action;
|
|
2210
|
+
/**
|
|
2211
|
+
* Creates an action that will change the entity's alpha (opacity).
|
|
2212
|
+
*
|
|
2213
|
+
* @remarks Alpha has multiplicative inheritance. For example, if the entity's parent is alpha .5 and this entity's action fades alpha to .4, then the entity will appear with alpha .2.
|
|
2214
|
+
*
|
|
2215
|
+
* @param options - {@link FadeAlphaActionOptions}
|
|
2216
|
+
* @returns The fadeAlpha action
|
|
2217
|
+
*/
|
|
2218
|
+
static fadeAlpha(options: FadeAlphaActionOptions): Action;
|
|
2211
2219
|
/**
|
|
2212
2220
|
* Creates an array of actions that will be run in order.
|
|
2213
2221
|
*
|
|
@@ -2308,6 +2316,12 @@ declare class ScaleAction extends Action {
|
|
|
2308
2316
|
delta: number;
|
|
2309
2317
|
constructor(scale: number, duration: number, runDuringTransition?: boolean);
|
|
2310
2318
|
}
|
|
2319
|
+
declare class FadeAlphaAction extends Action {
|
|
2320
|
+
type: ActionType;
|
|
2321
|
+
alpha: number;
|
|
2322
|
+
delta: number;
|
|
2323
|
+
constructor(alpha: number, duration: number, runDuringTransition?: boolean);
|
|
2324
|
+
}
|
|
2311
2325
|
|
|
2312
2326
|
declare class CanvasKitHelpers {
|
|
2313
2327
|
/**
|
|
@@ -2467,6 +2481,8 @@ declare class Label extends Entity implements IDrawable, IText, LabelOptions {
|
|
|
2467
2481
|
private paragraph?;
|
|
2468
2482
|
private paraStyle?;
|
|
2469
2483
|
private builder?;
|
|
2484
|
+
private _fontPaint?;
|
|
2485
|
+
private _backgroundPaint?;
|
|
2470
2486
|
private _translatedText;
|
|
2471
2487
|
/**
|
|
2472
2488
|
* Single or multi-line text formatted and rendered on the screen.
|
|
@@ -2495,6 +2511,10 @@ declare class Label extends Entity implements IDrawable, IText, LabelOptions {
|
|
|
2495
2511
|
set preferredMaxLayoutWidth(preferredMaxLayoutWidth: number | undefined);
|
|
2496
2512
|
get backgroundColor(): RgbaColor | undefined;
|
|
2497
2513
|
set backgroundColor(backgroundColor: RgbaColor | undefined);
|
|
2514
|
+
private get backgroundPaint();
|
|
2515
|
+
private set backgroundPaint(value);
|
|
2516
|
+
private get fontPaint();
|
|
2517
|
+
private set fontPaint(value);
|
|
2498
2518
|
/**
|
|
2499
2519
|
* Duplicates an entity using deep copy.
|
|
2500
2520
|
*
|
|
@@ -2685,7 +2705,6 @@ declare class Shape extends Entity implements IDrawable, ShapeOptions {
|
|
|
2685
2705
|
ckPath: Path | null;
|
|
2686
2706
|
ckPathWidth?: number;
|
|
2687
2707
|
ckPathHeight?: number;
|
|
2688
|
-
pathSvgString?: string;
|
|
2689
2708
|
cornerRadius: number;
|
|
2690
2709
|
private _fillColor;
|
|
2691
2710
|
private _strokeColor?;
|
|
@@ -2700,10 +2719,9 @@ declare class Shape extends Entity implements IDrawable, ShapeOptions {
|
|
|
2700
2719
|
private svgPathScaleForResizing;
|
|
2701
2720
|
private svgPathWidth;
|
|
2702
2721
|
private svgPathHeight;
|
|
2703
|
-
private svgPreviousAbsoluteScale;
|
|
2704
2722
|
private svgPreviousAbsoluteX;
|
|
2705
2723
|
private svgPreviousAbsoluteY;
|
|
2706
|
-
private
|
|
2724
|
+
private svgFirstPathDraw;
|
|
2707
2725
|
/**
|
|
2708
2726
|
* Rectangular, circular, or path-based shape
|
|
2709
2727
|
*
|
|
@@ -2725,13 +2743,16 @@ declare class Shape extends Entity implements IDrawable, ShapeOptions {
|
|
|
2725
2743
|
duplicate(newName?: string): Shape;
|
|
2726
2744
|
update(): void;
|
|
2727
2745
|
draw(canvas: Canvas): void;
|
|
2746
|
+
private applyAlphaToPaints;
|
|
2728
2747
|
private drawPathFromM2Path;
|
|
2729
2748
|
private drawPathFromSvgString;
|
|
2730
2749
|
private calculateSvgPathY;
|
|
2731
2750
|
private calculateSvgPathX;
|
|
2732
|
-
private
|
|
2751
|
+
private saveSvgPathAbsolutePosition;
|
|
2733
2752
|
private calculateTransformationMatrix;
|
|
2734
2753
|
private pathNeedsTransform;
|
|
2754
|
+
private shapeIsSvgStringPath;
|
|
2755
|
+
private shapeIsM2Path;
|
|
2735
2756
|
private drawCircle;
|
|
2736
2757
|
private drawRectangle;
|
|
2737
2758
|
private drawCircleWithCanvasKit;
|
|
@@ -2775,6 +2796,7 @@ declare class Sprite extends Entity implements IDrawable, SpriteOptions {
|
|
|
2775
2796
|
zPosition: number;
|
|
2776
2797
|
private _imageName;
|
|
2777
2798
|
private loadedImage?;
|
|
2799
|
+
private _paint?;
|
|
2778
2800
|
/**
|
|
2779
2801
|
* Visual image displayed on the screen.
|
|
2780
2802
|
*
|
|
@@ -2787,6 +2809,8 @@ declare class Sprite extends Entity implements IDrawable, SpriteOptions {
|
|
|
2787
2809
|
dispose(): void;
|
|
2788
2810
|
set imageName(imageName: string);
|
|
2789
2811
|
get imageName(): string;
|
|
2812
|
+
private set paint(value);
|
|
2813
|
+
private get paint();
|
|
2790
2814
|
/**
|
|
2791
2815
|
* Duplicates an entity using deep copy.
|
|
2792
2816
|
*
|
|
@@ -3132,4 +3156,4 @@ declare class WebGlInfo {
|
|
|
3132
3156
|
static dispose(): void;
|
|
3133
3157
|
}
|
|
3134
3158
|
|
|
3135
|
-
export { Action, Activity, ActivityKeyValueData, ActivityLifecycleEvent, ActivityResultsEvent, ActivityType, BrowserImage, CallbackOptions, CanvasKitHelpers, Composite, CompositeOptions, Constants, ConstraintType, Constraints, CustomAction, CustomActionOptions, DefaultParameter, Dimensions, DrawableOptions, EasingFunction, Easings, Entity, EntityEvent, EntityEventListener, EntityOptions, EntityType, Equals, EventBase, EventListenerBase, EventType, FontData, FontManager, Game, GameData, GameOptions, GameParameters, GlobalVariables, GoToActivityOptions, GroupAction, I18n, IDataStore, IDrawable, IText, ImageManager, Label, LabelHorizontalAlignmentMode, LabelOptions, Layout, LayoutConstraint, LoadedImage, M2DragEvent, M2Path, MoveAction, MoveActionOptions, MutablePath, NoneTransition, Point, RandomDraws, RectOptions, RgbaColor, ScaleAction, ScaleActionOptions, Scene, SceneOptions, SceneTransition, SequenceAction, Session, SessionDictionaryValues, SessionLifecycleEvent, SessionOptions, Shape, ShapeOptions, ShapeType, Size, SlideTransition, SlideTransitionOptions, Sprite, SpriteOptions, Story, StoryOptions, TapEvent, TextLine, TextLineOptions, TextOptions, Timer, Transition, TransitionDirection, TransitionType, Translations, TrialData, TrialSchema, Uuid, WaitAction, WaitActionOptions, WebColors, WebGlInfo, handleInterfaceOptions };
|
|
3159
|
+
export { Action, Activity, ActivityKeyValueData, ActivityLifecycleEvent, ActivityResultsEvent, ActivityType, BrowserImage, CallbackOptions, CanvasKitHelpers, Composite, CompositeOptions, Constants, ConstraintType, Constraints, CustomAction, CustomActionOptions, DefaultParameter, Dimensions, DrawableOptions, EasingFunction, Easings, Entity, EntityEvent, EntityEventListener, EntityOptions, EntityType, Equals, EventBase, EventListenerBase, EventType, FadeAlphaAction, FadeAlphaActionOptions, FontData, FontManager, Game, GameData, GameOptions, GameParameters, GlobalVariables, GoToActivityOptions, GroupAction, I18n, IDataStore, IDrawable, IText, ImageManager, Label, LabelHorizontalAlignmentMode, LabelOptions, Layout, LayoutConstraint, LoadedImage, M2DragEvent, M2Path, M2PointerEvent, MoveAction, MoveActionOptions, MutablePath, NoneTransition, Point, RandomDraws, RectOptions, RgbaColor, ScaleAction, ScaleActionOptions, Scene, SceneOptions, SceneTransition, SequenceAction, Session, SessionDictionaryValues, SessionLifecycleEvent, SessionOptions, Shape, ShapeOptions, ShapeType, Size, SlideTransition, SlideTransitionOptions, Sprite, SpriteOptions, Story, StoryOptions, TapEvent, TextLine, TextLineOptions, TextOptions, Timer, Transition, TransitionDirection, TransitionType, Translations, TrialData, TrialSchema, Uuid, WaitAction, WaitActionOptions, WebColors, WebGlInfo, handleInterfaceOptions };
|