@vived/app 4.0.1 → 4.2.0
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/lib/Components/App/UC/EditSlideTextUC.d.ts +1 -0
- package/lib/Components/Babylon/Mocks/MockPixelToSceneRayUC.d.ts +5 -0
- package/lib/Components/Babylon/Mocks/MockPixelToSceneRayUC.js +11 -0
- package/lib/Components/Babylon/Mocks/MockSceneRayPickUC.d.ts +5 -0
- package/lib/Components/Babylon/Mocks/MockSceneRayPickUC.js +11 -0
- package/lib/Components/Selection/Controller/MouseHoverOnAppObject.d.ts +11 -0
- package/lib/Components/Selection/Controller/MouseHoverOnAppObject.js +42 -0
- package/lib/Components/Selection/Controller/MousePressOnAppObject.d.ts +18 -0
- package/lib/Components/Selection/Controller/MousePressOnAppObject.js +81 -0
- package/lib/Components/Selection/Controller/MouseSelectAppObject.d.ts +11 -0
- package/lib/Components/Selection/Controller/MouseSelectAppObject.js +46 -0
- package/lib/Components/Selection/Controller/StylusHoverOnAppObject.d.ts +11 -0
- package/lib/Components/Selection/Controller/StylusHoverOnAppObject.js +42 -0
- package/lib/Components/Selection/Controller/StylusPressOnAppObject.d.ts +18 -0
- package/lib/Components/Selection/Controller/StylusPressOnAppObject.js +77 -0
- package/lib/Components/Selection/Controller/StylusSelectAppObject.d.ts +11 -0
- package/lib/Components/Selection/Controller/StylusSelectAppObject.js +44 -0
- package/lib/Components/Selection/Controller/TapToSelectAppObject.d.ts +16 -0
- package/lib/Components/Selection/Controller/TapToSelectAppObject.js +69 -0
- package/lib/Components/Selection/Controller/TouchPressOnAppObject.d.ts +18 -0
- package/lib/Components/Selection/Controller/TouchPressOnAppObject.js +78 -0
- package/lib/Components/Selection/Controller/index.d.ts +8 -0
- package/lib/Components/Selection/Controller/index.js +20 -0
- package/lib/Components/Selection/Entities/Selectable.d.ts +15 -0
- package/lib/Components/Selection/Entities/Selectable.js +48 -0
- package/lib/Components/Selection/Entities/Selection.d.ts +18 -0
- package/lib/Components/Selection/Entities/Selection.js +122 -0
- package/lib/Components/Selection/Entities/index.d.ts +2 -0
- package/lib/Components/Selection/Entities/index.js +14 -0
- package/lib/Components/Selection/PM/SelectableStatePM.d.ts +16 -0
- package/lib/Components/Selection/PM/SelectableStatePM.js +51 -0
- package/lib/Components/Selection/PM/SelectedObjectPM.d.ts +6 -0
- package/lib/Components/Selection/PM/SelectedObjectPM.js +41 -0
- package/lib/Components/Selection/PM/index.d.ts +2 -0
- package/lib/Components/Selection/PM/index.js +14 -0
- package/lib/Components/Selection/UC/HoverAppObjectUC.d.ts +11 -0
- package/lib/Components/Selection/UC/HoverAppObjectUC.js +59 -0
- package/lib/Components/Selection/UC/PressAppObjectUC.d.ts +11 -0
- package/lib/Components/Selection/UC/PressAppObjectUC.js +60 -0
- package/lib/Components/Selection/UC/SelectAppObjectUC.d.ts +11 -0
- package/lib/Components/Selection/UC/SelectAppObjectUC.js +59 -0
- package/lib/Components/Selection/UC/index.d.ts +3 -0
- package/lib/Components/Selection/UC/index.js +15 -0
- package/lib/Components/Selection/index.d.ts +4 -0
- package/lib/Components/Selection/index.js +16 -0
- package/lib/Components/ThemeColors/Entities/ThemeColors.d.ts +2 -0
- package/lib/Components/ThemeColors/Entities/ThemeColors.js +56 -0
- package/lib/Components/ThemeColors/PM/ThemeColorMapPM.d.ts +11 -0
- package/lib/Components/ThemeColors/PM/ThemeColorMapPM.js +39 -0
- package/lib/Components/ThemeColors/PM/index.d.ts +1 -0
- package/lib/Components/ThemeColors/PM/index.js +13 -0
- package/lib/Components/ThemeColors/index.d.ts +1 -0
- package/lib/Components/ThemeColors/index.js +1 -0
- package/lib/Components/index.d.ts +1 -0
- package/lib/Components/index.js +1 -0
- package/package.json +1 -1
|
@@ -56,6 +56,7 @@ export declare abstract class ThemeColors extends AppObjectEntity {
|
|
|
56
56
|
abstract getColorForType(type: ThemeColorType): Color;
|
|
57
57
|
abstract setColorForType(type: ThemeColorType, val: Color): void;
|
|
58
58
|
abstract setColorHexForType(type: ThemeColorType, hex: string): void;
|
|
59
|
+
abstract setColorHexForSet(colorSet: Map<ThemeColorType, string>): void;
|
|
59
60
|
static get: (appObjects: AppObjectRepo) => ThemeColors | undefined;
|
|
60
61
|
}
|
|
61
62
|
export declare function makeThemeColors(appObject: AppObject): ThemeColorsImp;
|
|
@@ -65,5 +66,6 @@ declare class ThemeColorsImp extends ThemeColors {
|
|
|
65
66
|
getColorForType: (type: ThemeColorType) => Color;
|
|
66
67
|
setColorForType: (type: ThemeColorType, val: Color) => void;
|
|
67
68
|
setColorHexForType: (type: ThemeColorType, hex: string) => void;
|
|
69
|
+
setColorHexForSet(colorSet: Map<ThemeColorType, string>): void;
|
|
68
70
|
}
|
|
69
71
|
export {};
|
|
@@ -98,5 +98,61 @@ class ThemeColorsImp extends ThemeColors {
|
|
|
98
98
|
const memoizedColor = new Entities_1.MemoizedColor(ValueObjects_1.Color.RGBA(0, 0, 0, 0), this.notifyOnChange);
|
|
99
99
|
this.memoizedColorLookup.set(themeColor, memoizedColor);
|
|
100
100
|
}
|
|
101
|
+
const colorsSet = new Map();
|
|
102
|
+
colorsSet.set(ThemeColorType.primary, "#00668A");
|
|
103
|
+
colorsSet.set(ThemeColorType.onPrimary, "#FFFFFF");
|
|
104
|
+
colorsSet.set(ThemeColorType.primaryContainer, "#C4E7FF");
|
|
105
|
+
colorsSet.set(ThemeColorType.onPrimaryContainer, "#001E2C");
|
|
106
|
+
colorsSet.set(ThemeColorType.primaryFixed, "#C4E7FF");
|
|
107
|
+
colorsSet.set(ThemeColorType.onPrimaryFixed, "#001E2C");
|
|
108
|
+
colorsSet.set(ThemeColorType.primaryFixedDim, "#7BD0FF");
|
|
109
|
+
colorsSet.set(ThemeColorType.onPrimaryFixedVariant, "#004C69");
|
|
110
|
+
colorsSet.set(ThemeColorType.secondary, "#4E616D");
|
|
111
|
+
colorsSet.set(ThemeColorType.onSecondary, "#FFFFFF");
|
|
112
|
+
colorsSet.set(ThemeColorType.secondaryContainer, "#D1E5F4");
|
|
113
|
+
colorsSet.set(ThemeColorType.onSecondaryContainer, "#0A1E28");
|
|
114
|
+
colorsSet.set(ThemeColorType.secondaryFixed, "#D1E5F4");
|
|
115
|
+
colorsSet.set(ThemeColorType.onSecondaryFixed, "#0A1E28");
|
|
116
|
+
colorsSet.set(ThemeColorType.secondaryFixedDim, "#B5C9D7");
|
|
117
|
+
colorsSet.set(ThemeColorType.onSecondaryFixedVariant, "#374955");
|
|
118
|
+
colorsSet.set(ThemeColorType.tertiary, "#605A7D");
|
|
119
|
+
colorsSet.set(ThemeColorType.onTertiary, "#FFFFFF");
|
|
120
|
+
colorsSet.set(ThemeColorType.tertiaryContainer, "#E6DEFF");
|
|
121
|
+
colorsSet.set(ThemeColorType.onTertiaryContainer, "#1D1736");
|
|
122
|
+
colorsSet.set(ThemeColorType.tertiaryFixed, "#E6DEFF");
|
|
123
|
+
colorsSet.set(ThemeColorType.onTertiaryFixed, "#1D1736");
|
|
124
|
+
colorsSet.set(ThemeColorType.tertiaryFixedDim, "#CAC1E9");
|
|
125
|
+
colorsSet.set(ThemeColorType.onTertiaryFixedVariant, "#484264");
|
|
126
|
+
colorsSet.set(ThemeColorType.error, "#BA1A1A");
|
|
127
|
+
colorsSet.set(ThemeColorType.onError, "#FFFFFF");
|
|
128
|
+
colorsSet.set(ThemeColorType.errorContainer, "#FFDAD6");
|
|
129
|
+
colorsSet.set(ThemeColorType.onErrorContainer, "#410002");
|
|
130
|
+
colorsSet.set(ThemeColorType.outline, "#71787D");
|
|
131
|
+
colorsSet.set(ThemeColorType.background, "#FBFCFF");
|
|
132
|
+
colorsSet.set(ThemeColorType.onBackground, "#191C1E");
|
|
133
|
+
colorsSet.set(ThemeColorType.surface, "#F8F9FC");
|
|
134
|
+
colorsSet.set(ThemeColorType.onSurface, "#191C1E");
|
|
135
|
+
colorsSet.set(ThemeColorType.surfaceVariant, "#DCE3E9");
|
|
136
|
+
colorsSet.set(ThemeColorType.onSurfaceVariant, "#41484D");
|
|
137
|
+
colorsSet.set(ThemeColorType.inverseSurface, "#2E3133");
|
|
138
|
+
colorsSet.set(ThemeColorType.inverseOnSurface, "#F0F1F3");
|
|
139
|
+
colorsSet.set(ThemeColorType.inversePrimary, "#7BD0FF");
|
|
140
|
+
colorsSet.set(ThemeColorType.shadow, "#000000");
|
|
141
|
+
colorsSet.set(ThemeColorType.surfaceTint, "#00668A");
|
|
142
|
+
colorsSet.set(ThemeColorType.outlineVariant, "#C0C7CD");
|
|
143
|
+
colorsSet.set(ThemeColorType.scrim, "#000000");
|
|
144
|
+
colorsSet.set(ThemeColorType.surfaceContainerHighest, "#E1E2E5");
|
|
145
|
+
colorsSet.set(ThemeColorType.surfaceContainerHigh, "#E7E8EA");
|
|
146
|
+
colorsSet.set(ThemeColorType.surfaceContainer, "#EDEEF0");
|
|
147
|
+
colorsSet.set(ThemeColorType.surfaceContainerLow, "#F3F3F6");
|
|
148
|
+
colorsSet.set(ThemeColorType.surfaceContainerLowest, "#FFFFFF");
|
|
149
|
+
colorsSet.set(ThemeColorType.surfaceBright, "#F8F9FC");
|
|
150
|
+
colorsSet.set(ThemeColorType.surfaceDim, "#D9DADC");
|
|
151
|
+
this.setColorHexForSet(colorsSet);
|
|
152
|
+
}
|
|
153
|
+
setColorHexForSet(colorSet) {
|
|
154
|
+
colorSet.forEach((val, key) => {
|
|
155
|
+
this.setColorHexForType(key, val);
|
|
156
|
+
});
|
|
101
157
|
}
|
|
102
158
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Color } from "../../../ValueObjects";
|
|
2
|
+
import { AppObject, AppObjectPM } from "../../../AppObject";
|
|
3
|
+
import { ThemeColorType } from "../Entities/ThemeColors";
|
|
4
|
+
export declare class ThemeColorMapPM extends AppObjectPM<Map<ThemeColorType, Color>> {
|
|
5
|
+
static readonly type = "ThemeColorMapPM";
|
|
6
|
+
private themeColors?;
|
|
7
|
+
vmsAreEqual(a: Map<ThemeColorType, Color>, b: Map<ThemeColorType, Color>): boolean;
|
|
8
|
+
onThemeColorMapChange: () => void;
|
|
9
|
+
dispose: () => void;
|
|
10
|
+
constructor(appObject: AppObject);
|
|
11
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThemeColorMapPM = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const ThemeColors_1 = require("../Entities/ThemeColors");
|
|
6
|
+
class ThemeColorMapPM extends AppObject_1.AppObjectPM {
|
|
7
|
+
constructor(appObject) {
|
|
8
|
+
super(appObject, ThemeColorMapPM.type);
|
|
9
|
+
this.onThemeColorMapChange = () => {
|
|
10
|
+
const colorMap = new Map();
|
|
11
|
+
for (const themeColor in ThemeColors_1.ThemeColorType) {
|
|
12
|
+
if (!this.themeColors)
|
|
13
|
+
return;
|
|
14
|
+
const castType = themeColor;
|
|
15
|
+
colorMap.set(castType, this.themeColors.getColorForType(castType));
|
|
16
|
+
}
|
|
17
|
+
this.doUpdateView(colorMap);
|
|
18
|
+
};
|
|
19
|
+
this.dispose = () => {
|
|
20
|
+
var _a;
|
|
21
|
+
super.dispose();
|
|
22
|
+
(_a = this.themeColors) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onThemeColorMapChange);
|
|
23
|
+
};
|
|
24
|
+
this.themeColors = ThemeColors_1.ThemeColors.get(appObject.appObjectRepo);
|
|
25
|
+
if (!this.themeColors) {
|
|
26
|
+
this.warn("ThemeColorMapPM is being added to an object that does not have a ThemeColors Entity");
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this.themeColors.addChangeObserver(this.onThemeColorMapChange);
|
|
31
|
+
this.onThemeColorMapChange();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
vmsAreEqual(a, b) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.ThemeColorMapPM = ThemeColorMapPM;
|
|
39
|
+
ThemeColorMapPM.type = "ThemeColorMapPM";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ThemeColorMapPM";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./ThemeColorMapPM"), exports);
|
package/lib/Components/index.js
CHANGED