scorer-ui-kit 1.7.22 → 1.7.23
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/LineUI/LineReducer.d.ts +15 -1
- package/dist/LineUI/index.d.ts +6 -0
- package/dist/index.js +235 -172
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +235 -172
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPointSet } from './';
|
|
2
|
-
export declare type IReducerActions = UpdateAction | LoadAction | AddSetAction | RemoveAction | AddPointAction | RemovePointAction | UpdateSetOptions | RenameSetAction;
|
|
2
|
+
export declare type IReducerActions = UpdateAction | LoadAction | AddSetAction | RemoveAction | AddPointAction | RemovePointAction | UpdateSetOptions | RenameSetAction | ChangeFillColorAction | ChangeTranparencyLevelAction;
|
|
3
3
|
interface AddSetAction {
|
|
4
4
|
type: 'ADD_SET';
|
|
5
5
|
data: IPointSet;
|
|
@@ -37,5 +37,19 @@ interface RemovePointAction {
|
|
|
37
37
|
type: 'REMOVE_POINT';
|
|
38
38
|
index: number;
|
|
39
39
|
}
|
|
40
|
+
interface ChangeFillColorAction {
|
|
41
|
+
type: 'UPDATE_FILL_COLOR';
|
|
42
|
+
index: number;
|
|
43
|
+
data: {
|
|
44
|
+
areaFillColor: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
interface ChangeTranparencyLevelAction {
|
|
48
|
+
type: 'UPDATE_TRANSPARENCY_LEVEL';
|
|
49
|
+
index: number;
|
|
50
|
+
data: {
|
|
51
|
+
areaTransparencyLevel: number;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
40
54
|
declare const _default: (state: IPointSet[], action: IReducerActions) => IPointSet[];
|
|
41
55
|
export default _default;
|
package/dist/LineUI/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export interface IPointSet {
|
|
|
20
20
|
showPointHandle?: boolean;
|
|
21
21
|
showSmallDirectionMark?: boolean;
|
|
22
22
|
showMoveHandle?: boolean;
|
|
23
|
+
areaFillColor?: string;
|
|
24
|
+
areaTransparencyLevel?: number;
|
|
23
25
|
}
|
|
24
26
|
export interface IMinMax {
|
|
25
27
|
min: number;
|
|
@@ -33,6 +35,7 @@ export interface IDragLineUISharedOptions {
|
|
|
33
35
|
revealSetIndex: boolean;
|
|
34
36
|
handleFinderActive: boolean;
|
|
35
37
|
showPointLabel: boolean;
|
|
38
|
+
showLabelShadow?: boolean;
|
|
36
39
|
showPointHandle: boolean;
|
|
37
40
|
showMoveHandle: boolean;
|
|
38
41
|
setIndexOffset: number;
|
|
@@ -44,6 +47,7 @@ export interface LineUIOptions {
|
|
|
44
47
|
showHandleFinder?: boolean;
|
|
45
48
|
showSetIndex?: boolean;
|
|
46
49
|
showPointLabel?: boolean;
|
|
50
|
+
showLabelShadow?: boolean;
|
|
47
51
|
showPointHandle?: boolean;
|
|
48
52
|
showMoveHandle?: boolean;
|
|
49
53
|
showGrabHandle?: boolean;
|
|
@@ -56,6 +60,8 @@ export interface LineUIOptions {
|
|
|
56
60
|
};
|
|
57
61
|
boundaryOffset?: number;
|
|
58
62
|
showDirectionMark?: boolean;
|
|
63
|
+
areaFillColor?: string;
|
|
64
|
+
areaTransparencyLevel?: number;
|
|
59
65
|
}
|
|
60
66
|
export declare type LineUIVideoOptions = VideoHTMLAttributes<HTMLVideoElement>;
|
|
61
67
|
export { LineUI, LineUIVideo, LineUIRTC, LineReducer, LineSetContext };
|