@realsee/vreo 1.0.0-alpha.8 → 1.1.0-dev.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/CHANGELOG.md +9 -1
- package/README.md +46 -36
- package/lib/PlayController/index.js +1 -1
- package/lib/Player/Controller.d.ts +3 -2
- package/lib/Player/Controller.js +31 -14
- package/lib/Player/index.js +27 -16
- package/lib/Player/modules/VideoAgent/VideoAgentMesh.d.ts +2 -2
- package/lib/Player/modules/VideoAgent/VideoAgentMesh.js +7 -12
- package/lib/Player/modules/VideoAgent/index.js +1 -1
- package/lib/Player/modules/Wave/index.js +160 -25
- package/lib/Player/modules/keyframes/BgMusic/index.js +52 -40
- package/lib/Player/modules/keyframes/PanoTag/index.js +1 -0
- package/lib/fivePlugins/CameraMovementPlugin/index.js +3 -2
- package/lib/shared-utils/Audio.d.ts +14 -0
- package/lib/shared-utils/Audio.js +158 -0
- package/lib/shared-utils/{AduioLike.d.ts → AudioLike.d.ts} +0 -0
- package/lib/shared-utils/{AduioLike.js → AudioLike.js} +4 -6
- package/lib/shared-utils/animationFrame/tween.d.ts +3 -58
- package/lib/shared-utils/animationFrame/tween.js +3 -9
- package/lib/typings/VreoUnit.d.ts +8 -5
- package/package.json +8 -6
- package/stylesheets/default.css +9 -2
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -78
- package/docs/assets/highlight.css +0 -127
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +0 -52
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1414
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/Player.AudioLike.html +0 -52
- package/docs/classes/Player.Controller.html +0 -54
- package/docs/classes/Player.Player-1.html +0 -50
- package/docs/classes/Player.VideoAgentMesh.html +0 -142
- package/docs/classes/Player.VideoAgentScene.html +0 -1
- package/docs/demo/assets/AppReact.6a524c19.js +0 -1
- package/docs/demo/assets/default.361f7c9c.js +0 -3988
- package/docs/demo/assets/default.63ebc790.css +0 -1
- package/docs/demo/assets/dynamic.dc5a9120.js +0 -1
- package/docs/demo/assets/examples.a3b2ec8a.js +0 -25
- package/docs/demo/assets/examples.dac4a6fe.css +0 -1
- package/docs/demo/assets/index.12496cce.js +0 -1
- package/docs/demo/assets/index.9331038f.css +0 -1
- package/docs/demo/assets/main.b05c3bb6.js +0 -1
- package/docs/demo/assets/react.2ee8565f.css +0 -1
- package/docs/demo/assets/react.61c6e2de.js +0 -25
- package/docs/demo/assets/znRoyv06SZQeqA7m.0057e8ae.js +0 -1
- package/docs/demo/examples.html +0 -17
- package/docs/demo/index-react-dynamic.html +0 -20
- package/docs/demo/index-react.html +0 -20
- package/docs/demo/index.html +0 -19
- package/docs/enums/Player.InfoPanelStyleEnum.html +0 -1
- package/docs/enums/Player.InfoPanelTypeEnum.html +0 -3
- package/docs/enums/Player.PanoEffectEnum.html +0 -5
- package/docs/enums/Player.PanoTagEnum.html +0 -3
- package/docs/enums/Player.PanoTagStyleEnum.html +0 -7
- package/docs/enums/Player.VreoKeyframeEnum.html +0 -25
- package/docs/enums/fivePlugins.CameraMovementEffect.html +0 -1
- package/docs/enums/fivePlugins.Rotation.html +0 -1
- package/docs/index.html +0 -245
- package/docs/interfaces/Player.CustomVreoKeyframeProps.html +0 -1
- package/docs/interfaces/Player.PlayerConfigs.html +0 -7
- package/docs/interfaces/Player.Vertex.html +0 -3
- package/docs/interfaces/Player.VideoAgentMeshOptions.html +0 -8
- package/docs/interfaces/Player.VreoKeyframe.html +0 -3
- package/docs/interfaces/Player.VreoUnit.html +0 -3
- package/docs/interfaces/Player.VreoVideo.html +0 -3
- package/docs/interfaces/fivePlugins.CSS3DRenderPluginExportType.html +0 -4
- package/docs/interfaces/fivePlugins.CameraMovementOptsCallback.html +0 -1
- package/docs/interfaces/fivePlugins.CameraMovementPluginExportType.html +0 -7
- package/docs/interfaces/fivePlugins.CameraMovementPluginParameterType.html +0 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginData.html +0 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginExportType.html +0 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginParameterType.html +0 -1
- package/docs/interfaces/fivePlugins.Vector3Position.html +0 -3
- package/docs/interfaces/react.VreoActionCallbacks.html +0 -23
- package/docs/interfaces/react.VreoProviderProps.html +0 -1
- package/docs/modules/Player.html +0 -37
- package/docs/modules/custom.html +0 -3
- package/docs/modules/fivePlugins.html +0 -6
- package/docs/modules/react.html +0 -1
- package/docs/modules.html +0 -1
- package/resources/PlayController/createHTMLAudioElement.ts +0 -53
- package/resources/PlayController/index.ts +0 -154
- package/resources/Player/App.tsx +0 -66
- package/resources/Player/Controller.ts +0 -294
- package/resources/Player/custom/SpatialScenePanel/index.tsx +0 -264
- package/resources/Player/hooks.ts +0 -26
- package/resources/Player/index.tsx +0 -227
- package/resources/Player/modules/Drawer/index.tsx +0 -40
- package/resources/Player/modules/PopUp/index.tsx +0 -26
- package/resources/Player/modules/ResizeObserver/index.tsx +0 -23
- package/resources/Player/modules/VideoAgent/VideoAgentMesh.ts +0 -302
- package/resources/Player/modules/VideoAgent/VideoAgentScene.ts +0 -56
- package/resources/Player/modules/VideoAgent/index.tsx +0 -53
- package/resources/Player/modules/Wave/index.tsx +0 -18
- package/resources/Player/modules/keyframes/BgMusic/index.tsx +0 -66
- package/resources/Player/modules/keyframes/CameraMovement/index.tsx +0 -37
- package/resources/Player/modules/keyframes/InfoPanel/index.tsx +0 -165
- package/resources/Player/modules/keyframes/ModelVideo/index.tsx +0 -77
- package/resources/Player/modules/keyframes/PanoEffect/index.tsx +0 -99
- package/resources/Player/modules/keyframes/PanoEffect/lineAnime.ts +0 -31
- package/resources/Player/modules/keyframes/PanoTag/index.tsx +0 -82
- package/resources/Player/modules/keyframes/PanoTextLabel/index.tsx +0 -117
- package/resources/Player/modules/keyframes/Prompter/index.tsx +0 -56
- package/resources/Player/modules/keyframes/UpdateVRPanorama/index.tsx +0 -99
- package/resources/Player/modules/keyframes/VideoEffect/index.tsx +0 -115
- package/resources/Player/typings.ts +0 -49
- package/resources/fivePlugins/CSS3DRenderPlugin/centerPoint.ts +0 -5
- package/resources/fivePlugins/CSS3DRenderPlugin/createResizeObserver.ts +0 -17
- package/resources/fivePlugins/CSS3DRenderPlugin/evenNumber.ts +0 -4
- package/resources/fivePlugins/CSS3DRenderPlugin/index.ts +0 -254
- package/resources/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.ts +0 -5
- package/resources/fivePlugins/CameraMovementPlugin/index.ts +0 -226
- package/resources/fivePlugins/CameraMovementPlugin/typings.ts +0 -59
- package/resources/fivePlugins/ModelTVVideoPlugin/index.ts +0 -278
- package/resources/index.ts +0 -1
- package/resources/react/index.tsx +0 -121
- package/resources/shared-utils/AduioLike.ts +0 -109
- package/resources/shared-utils/Preloader.ts +0 -35
- package/resources/shared-utils/addResizeListener.ts +0 -46
- package/resources/shared-utils/animationFrame/BetterTween.ts +0 -33
- package/resources/shared-utils/animationFrame/index.ts +0 -48
- package/resources/shared-utils/animationFrame/tween.ts +0 -51
- package/resources/shared-utils/createTransMatrix.ts +0 -12
- package/resources/shared-utils/getFileExpandedName.ts +0 -6
- package/resources/shared-utils/getMediaInfo.ts +0 -52
- package/resources/shared-utils/setElementDataset.ts +0 -18
- package/resources/typings/VreoUnit.ts +0 -314
|
@@ -53,7 +53,7 @@ var AudioLike = /*#__PURE__*/function (_Subscribe) {
|
|
|
53
53
|
this.$currentTime = 0;
|
|
54
54
|
}
|
|
55
55
|
if (this.$timestamp === null) {
|
|
56
|
-
this.$timestamp = performance.now()
|
|
56
|
+
this.$timestamp = performance.now();
|
|
57
57
|
}
|
|
58
58
|
this.stopInterval = (0, _animationFrame.requestAnimationFrameInterval)(function () {
|
|
59
59
|
return _this2.requestAnimationFrameLoop();
|
|
@@ -75,7 +75,8 @@ var AudioLike = /*#__PURE__*/function (_Subscribe) {
|
|
|
75
75
|
value: function requestAnimationFrameLoop() {
|
|
76
76
|
if (this.$timestamp === null) return;
|
|
77
77
|
var now = performance.now();
|
|
78
|
-
this.$currentTime
|
|
78
|
+
this.$currentTime += now - this.$timestamp;
|
|
79
|
+
this.$timestamp = now;
|
|
79
80
|
this.emit('timeupdate');
|
|
80
81
|
if (this.$currentTime >= this.$duration - 10) {
|
|
81
82
|
this.$currentTime = this.$duration;
|
|
@@ -89,7 +90,7 @@ var AudioLike = /*#__PURE__*/function (_Subscribe) {
|
|
|
89
90
|
return this.$currentTime / 1000;
|
|
90
91
|
},
|
|
91
92
|
set: function set(time) {
|
|
92
|
-
this.$currentTime = time;
|
|
93
|
+
this.$currentTime = time * 1000;
|
|
93
94
|
}
|
|
94
95
|
}, {
|
|
95
96
|
key: "duration",
|
|
@@ -97,10 +98,7 @@ var AudioLike = /*#__PURE__*/function (_Subscribe) {
|
|
|
97
98
|
return this.$duration;
|
|
98
99
|
},
|
|
99
100
|
set: function set(duration) {
|
|
100
|
-
this.pause();
|
|
101
101
|
this.$duration = duration;
|
|
102
|
-
this.$timestamp = null;
|
|
103
|
-
this.$currentTime = 0;
|
|
104
102
|
}
|
|
105
103
|
}, {
|
|
106
104
|
key: "ended",
|
|
@@ -1,61 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
None: (amount: number) => number;
|
|
5
|
-
};
|
|
6
|
-
Quadratic: {
|
|
7
|
-
In: (amount: number) => number;
|
|
8
|
-
Out: (amount: number) => number;
|
|
9
|
-
InOut: (amount: number) => number;
|
|
10
|
-
};
|
|
11
|
-
Cubic: {
|
|
12
|
-
In: (amount: number) => number;
|
|
13
|
-
Out: (amount: number) => number;
|
|
14
|
-
InOut: (amount: number) => number;
|
|
15
|
-
};
|
|
16
|
-
Quartic: {
|
|
17
|
-
In: (amount: number) => number;
|
|
18
|
-
Out: (amount: number) => number;
|
|
19
|
-
InOut: (amount: number) => number;
|
|
20
|
-
};
|
|
21
|
-
Quintic: {
|
|
22
|
-
In: (amount: number) => number;
|
|
23
|
-
Out: (amount: number) => number;
|
|
24
|
-
InOut: (amount: number) => number;
|
|
25
|
-
};
|
|
26
|
-
Sinusoidal: {
|
|
27
|
-
In: (amount: number) => number;
|
|
28
|
-
Out: (amount: number) => number;
|
|
29
|
-
InOut: (amount: number) => number;
|
|
30
|
-
};
|
|
31
|
-
Exponential: {
|
|
32
|
-
In: (amount: number) => number;
|
|
33
|
-
Out: (amount: number) => number;
|
|
34
|
-
InOut: (amount: number) => number;
|
|
35
|
-
};
|
|
36
|
-
Circular: {
|
|
37
|
-
In: (amount: number) => number;
|
|
38
|
-
Out: (amount: number) => number;
|
|
39
|
-
InOut: (amount: number) => number;
|
|
40
|
-
};
|
|
41
|
-
Elastic: {
|
|
42
|
-
In: (amount: number) => number;
|
|
43
|
-
Out: (amount: number) => number;
|
|
44
|
-
InOut: (amount: number) => number;
|
|
45
|
-
};
|
|
46
|
-
Back: {
|
|
47
|
-
In: (amount: number) => number;
|
|
48
|
-
Out: (amount: number) => number;
|
|
49
|
-
InOut: (amount: number) => number;
|
|
50
|
-
};
|
|
51
|
-
Bounce: {
|
|
52
|
-
In: (amount: number) => number;
|
|
53
|
-
Out: (amount: number) => number;
|
|
54
|
-
InOut: (amount: number) => number;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
interface ITween<T> extends TWEEN.Tween<T> {
|
|
58
|
-
onDestroy: (fn: () => void) => TWEEN.Tween<T>;
|
|
1
|
+
import { Tween, Easing } from '@tweenjs/tween.js';
|
|
2
|
+
interface ITween<T> extends Tween<T> {
|
|
3
|
+
onDestroy: (fn: () => void) => Tween<T>;
|
|
59
4
|
destroy: () => void;
|
|
60
5
|
}
|
|
61
6
|
/**
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.Easing = void 0;
|
|
8
6
|
exports["default"] = tween;
|
|
9
7
|
exports.tweenProgress = tweenProgress;
|
|
10
|
-
var
|
|
8
|
+
var _tween = require("@tweenjs/tween.js");
|
|
11
9
|
var _index = require("./index");
|
|
12
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
var Easing = TWEEN.Easing;
|
|
15
|
-
exports.Easing = Easing;
|
|
16
10
|
/**
|
|
17
11
|
* 对象变化的补间动画
|
|
18
12
|
* 1. 应用 requestAnimationFrameInterval 做 update
|
|
@@ -24,8 +18,8 @@ exports.Easing = Easing;
|
|
|
24
18
|
* @param easing 过程动画,默认是 Easing.Linear.None
|
|
25
19
|
*/
|
|
26
20
|
function tween(from, to, duration) {
|
|
27
|
-
var easing = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Easing.Linear.None;
|
|
28
|
-
var tween = new
|
|
21
|
+
var easing = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _tween.Easing.Linear.None;
|
|
22
|
+
var tween = new _tween.Tween(from).to(to, duration).easing(easing);
|
|
29
23
|
// 这里注意一下,因为 requestAnimationFrameInterval 给的时间是从 0 开始的,tween 动画也从 0 开始
|
|
30
24
|
(0, _index.nextFrame)(function () {
|
|
31
25
|
return tween.start(0);
|
|
@@ -85,10 +85,13 @@ export interface VreoVideo {
|
|
|
85
85
|
* 剧本结构
|
|
86
86
|
*/
|
|
87
87
|
export interface VreoUnit {
|
|
88
|
-
categoryId
|
|
89
|
-
categoryText
|
|
90
|
-
frontRequestId
|
|
91
|
-
index
|
|
88
|
+
categoryId?: string;
|
|
89
|
+
categoryText?: string;
|
|
90
|
+
frontRequestId?: string;
|
|
91
|
+
index?: string | number;
|
|
92
|
+
configure?: {
|
|
93
|
+
pageTitle?: string;
|
|
94
|
+
};
|
|
92
95
|
keyframes: VreoKeyframe[];
|
|
93
96
|
video: VreoVideo;
|
|
94
97
|
}
|
|
@@ -96,7 +99,7 @@ export interface VreoUnit {
|
|
|
96
99
|
* 剧本事件
|
|
97
100
|
*/
|
|
98
101
|
export declare type VreoKeyframeEvent = {
|
|
99
|
-
[key in VreoKeyframeEnum]: (keyframe: VreoKeyframe) => void;
|
|
102
|
+
[key in VreoKeyframeEnum]: (keyframe: VreoKeyframe, currentTime: number) => void;
|
|
100
103
|
} & {
|
|
101
104
|
loaded: (vreoUnit: VreoUnit) => void;
|
|
102
105
|
paused: (ended?: boolean) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/vreo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0-dev.0",
|
|
4
4
|
"description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"realsee",
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
"private": false,
|
|
13
13
|
"files": [
|
|
14
14
|
"lib",
|
|
15
|
-
"resources",
|
|
16
|
-
"docs",
|
|
17
15
|
"stylesheets",
|
|
18
16
|
"LICENSE",
|
|
19
17
|
"CHANGELOG.md"
|
|
@@ -26,7 +24,10 @@
|
|
|
26
24
|
"packages": "node ./dev-tools/build-packages.js"
|
|
27
25
|
},
|
|
28
26
|
"peerDependencies": {
|
|
29
|
-
"@realsee/five": "^5.0.0
|
|
27
|
+
"@realsee/five": "^5.0.0",
|
|
28
|
+
"@realsee/dnalogel": "^2.3.3",
|
|
29
|
+
"@tweenjs/tween.js": "18.6.4",
|
|
30
|
+
"three": ">=0.115.0 <=0.117.1",
|
|
30
31
|
"react": "^17.0.0",
|
|
31
32
|
"react-dom": "^17.0.0"
|
|
32
33
|
},
|
|
@@ -36,8 +37,10 @@
|
|
|
36
37
|
"@babel/preset-env": "^7.16.4",
|
|
37
38
|
"@babel/preset-react": "^7.16.0",
|
|
38
39
|
"@babel/preset-typescript": "^7.16.0",
|
|
39
|
-
"@realsee/dnalogel": "^2.
|
|
40
|
+
"@realsee/dnalogel": "^2.3.3",
|
|
40
41
|
"@realsee/five": "5.0.0-alpha.149",
|
|
42
|
+
"@tweenjs/tween.js": "18.6.4",
|
|
43
|
+
"@types/node": "^18.11.17",
|
|
41
44
|
"@types/offscreencanvas": "^2019.6.4",
|
|
42
45
|
"@types/react": "^17.0.37",
|
|
43
46
|
"@types/react-dom": "^17.0.11",
|
|
@@ -52,7 +55,6 @@
|
|
|
52
55
|
"vite": "^2.6.14"
|
|
53
56
|
},
|
|
54
57
|
"dependencies": {
|
|
55
|
-
"@tweenjs/tween.js": "18.6.4",
|
|
56
58
|
"classnames": "^2.3.1",
|
|
57
59
|
"mobx": "^6.3.7",
|
|
58
60
|
"mobx-react": "^7.2.1"
|
package/stylesheets/default.css
CHANGED
|
@@ -106,10 +106,18 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.vreo-wave {
|
|
109
|
+
width: 100%;
|
|
109
110
|
position: absolute;
|
|
111
|
+
background-color: transparent;
|
|
112
|
+
border: none;
|
|
110
113
|
bottom: 0;
|
|
111
114
|
}
|
|
112
115
|
|
|
116
|
+
@keyframes vreo-wave-keyframes {
|
|
117
|
+
0% { background-position: 0 0; }
|
|
118
|
+
100% { background-position: 0 100%; }
|
|
119
|
+
}
|
|
120
|
+
|
|
113
121
|
/* @keyframes panel-sprites-animation {
|
|
114
122
|
0% {
|
|
115
123
|
background-position: 0 0;
|
|
@@ -304,7 +312,7 @@
|
|
|
304
312
|
|
|
305
313
|
.vreo-prompter-text {
|
|
306
314
|
position: absolute;
|
|
307
|
-
height:
|
|
315
|
+
height: 0px;
|
|
308
316
|
display: flex;
|
|
309
317
|
align-items: center;
|
|
310
318
|
justify-content: center;
|
|
@@ -327,7 +335,6 @@
|
|
|
327
335
|
}
|
|
328
336
|
|
|
329
337
|
.vreo-prompter-innerText {
|
|
330
|
-
position: absolute;
|
|
331
338
|
font-weight: bold;
|
|
332
339
|
font-size: 14px;
|
|
333
340
|
word-break: break-all;
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
package/docs/assets/custom.css
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
|
|
3
|
-
font-size: 16px;
|
|
4
|
-
color: #2e2e2e;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
blockquote {
|
|
8
|
-
color: #7f8fa4;
|
|
9
|
-
padding: 8px 12px;
|
|
10
|
-
margin: 16px 0;
|
|
11
|
-
border-left: 3px solid #eaeaea;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
blockquote p {
|
|
15
|
-
color: #7f8fa4 !important;
|
|
16
|
-
font-size: inherit;
|
|
17
|
-
line-height: 1.5;
|
|
18
|
-
margin: 0 !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.tsd-typography {
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.tsd-typography h4 {
|
|
26
|
-
line-height: 2;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.hljs {
|
|
30
|
-
background-color: transparent;
|
|
31
|
-
font-family: monospace;
|
|
32
|
-
font-size: 0.85rem;
|
|
33
|
-
}
|
|
34
|
-
code {
|
|
35
|
-
font-size: 14px;
|
|
36
|
-
background-color: rgb(96 125 139 / 10%);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
pre {
|
|
40
|
-
background-color: rgb(205 220 57 / 8%);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
p {
|
|
44
|
-
line-height: 1.5;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
a {
|
|
48
|
-
color: #3832cf;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
a:hover {
|
|
52
|
-
color: darkred;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
body.dark {
|
|
56
|
-
color: #e9e9e9;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.dark a {
|
|
60
|
-
color: var(--color-link);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.dark a:hover {
|
|
64
|
-
color: #ed8e9f;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@media (prefers-color-scheme: dark) {
|
|
68
|
-
body {
|
|
69
|
-
color: #e9e9e9;
|
|
70
|
-
}
|
|
71
|
-
a {
|
|
72
|
-
color: var(--color-link);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
a:hover {
|
|
76
|
-
color: #ed8e9f;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--light-hl-0: #000000;
|
|
3
|
-
--dark-hl-0: #D4D4D4;
|
|
4
|
-
--light-hl-1: #008000;
|
|
5
|
-
--dark-hl-1: #6A9955;
|
|
6
|
-
--light-hl-2: #AF00DB;
|
|
7
|
-
--dark-hl-2: #C586C0;
|
|
8
|
-
--light-hl-3: #0000FF;
|
|
9
|
-
--dark-hl-3: #569CD6;
|
|
10
|
-
--light-hl-4: #001080;
|
|
11
|
-
--dark-hl-4: #9CDCFE;
|
|
12
|
-
--light-hl-5: #A31515;
|
|
13
|
-
--dark-hl-5: #CE9178;
|
|
14
|
-
--light-hl-6: #0070C1;
|
|
15
|
-
--dark-hl-6: #4FC1FF;
|
|
16
|
-
--light-hl-7: #795E26;
|
|
17
|
-
--dark-hl-7: #DCDCAA;
|
|
18
|
-
--light-hl-8: #267F99;
|
|
19
|
-
--dark-hl-8: #4EC9B0;
|
|
20
|
-
--light-hl-9: #800000;
|
|
21
|
-
--dark-hl-9: #808080;
|
|
22
|
-
--light-hl-10: #800000;
|
|
23
|
-
--dark-hl-10: #569CD6;
|
|
24
|
-
--light-hl-11: #FF0000;
|
|
25
|
-
--dark-hl-11: #9CDCFE;
|
|
26
|
-
--light-hl-12: #000000FF;
|
|
27
|
-
--dark-hl-12: #D4D4D4;
|
|
28
|
-
--light-hl-13: #0451A5;
|
|
29
|
-
--dark-hl-13: #9CDCFE;
|
|
30
|
-
--light-hl-14: #098658;
|
|
31
|
-
--dark-hl-14: #B5CEA8;
|
|
32
|
-
--light-code-background: #F5F5F5;
|
|
33
|
-
--dark-code-background: #1E1E1E;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@media (prefers-color-scheme: light) { :root {
|
|
37
|
-
--hl-0: var(--light-hl-0);
|
|
38
|
-
--hl-1: var(--light-hl-1);
|
|
39
|
-
--hl-2: var(--light-hl-2);
|
|
40
|
-
--hl-3: var(--light-hl-3);
|
|
41
|
-
--hl-4: var(--light-hl-4);
|
|
42
|
-
--hl-5: var(--light-hl-5);
|
|
43
|
-
--hl-6: var(--light-hl-6);
|
|
44
|
-
--hl-7: var(--light-hl-7);
|
|
45
|
-
--hl-8: var(--light-hl-8);
|
|
46
|
-
--hl-9: var(--light-hl-9);
|
|
47
|
-
--hl-10: var(--light-hl-10);
|
|
48
|
-
--hl-11: var(--light-hl-11);
|
|
49
|
-
--hl-12: var(--light-hl-12);
|
|
50
|
-
--hl-13: var(--light-hl-13);
|
|
51
|
-
--hl-14: var(--light-hl-14);
|
|
52
|
-
--code-background: var(--light-code-background);
|
|
53
|
-
} }
|
|
54
|
-
|
|
55
|
-
@media (prefers-color-scheme: dark) { :root {
|
|
56
|
-
--hl-0: var(--dark-hl-0);
|
|
57
|
-
--hl-1: var(--dark-hl-1);
|
|
58
|
-
--hl-2: var(--dark-hl-2);
|
|
59
|
-
--hl-3: var(--dark-hl-3);
|
|
60
|
-
--hl-4: var(--dark-hl-4);
|
|
61
|
-
--hl-5: var(--dark-hl-5);
|
|
62
|
-
--hl-6: var(--dark-hl-6);
|
|
63
|
-
--hl-7: var(--dark-hl-7);
|
|
64
|
-
--hl-8: var(--dark-hl-8);
|
|
65
|
-
--hl-9: var(--dark-hl-9);
|
|
66
|
-
--hl-10: var(--dark-hl-10);
|
|
67
|
-
--hl-11: var(--dark-hl-11);
|
|
68
|
-
--hl-12: var(--dark-hl-12);
|
|
69
|
-
--hl-13: var(--dark-hl-13);
|
|
70
|
-
--hl-14: var(--dark-hl-14);
|
|
71
|
-
--code-background: var(--dark-code-background);
|
|
72
|
-
} }
|
|
73
|
-
|
|
74
|
-
body.light {
|
|
75
|
-
--hl-0: var(--light-hl-0);
|
|
76
|
-
--hl-1: var(--light-hl-1);
|
|
77
|
-
--hl-2: var(--light-hl-2);
|
|
78
|
-
--hl-3: var(--light-hl-3);
|
|
79
|
-
--hl-4: var(--light-hl-4);
|
|
80
|
-
--hl-5: var(--light-hl-5);
|
|
81
|
-
--hl-6: var(--light-hl-6);
|
|
82
|
-
--hl-7: var(--light-hl-7);
|
|
83
|
-
--hl-8: var(--light-hl-8);
|
|
84
|
-
--hl-9: var(--light-hl-9);
|
|
85
|
-
--hl-10: var(--light-hl-10);
|
|
86
|
-
--hl-11: var(--light-hl-11);
|
|
87
|
-
--hl-12: var(--light-hl-12);
|
|
88
|
-
--hl-13: var(--light-hl-13);
|
|
89
|
-
--hl-14: var(--light-hl-14);
|
|
90
|
-
--code-background: var(--light-code-background);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
body.dark {
|
|
94
|
-
--hl-0: var(--dark-hl-0);
|
|
95
|
-
--hl-1: var(--dark-hl-1);
|
|
96
|
-
--hl-2: var(--dark-hl-2);
|
|
97
|
-
--hl-3: var(--dark-hl-3);
|
|
98
|
-
--hl-4: var(--dark-hl-4);
|
|
99
|
-
--hl-5: var(--dark-hl-5);
|
|
100
|
-
--hl-6: var(--dark-hl-6);
|
|
101
|
-
--hl-7: var(--dark-hl-7);
|
|
102
|
-
--hl-8: var(--dark-hl-8);
|
|
103
|
-
--hl-9: var(--dark-hl-9);
|
|
104
|
-
--hl-10: var(--dark-hl-10);
|
|
105
|
-
--hl-11: var(--dark-hl-11);
|
|
106
|
-
--hl-12: var(--dark-hl-12);
|
|
107
|
-
--hl-13: var(--dark-hl-13);
|
|
108
|
-
--hl-14: var(--dark-hl-14);
|
|
109
|
-
--code-background: var(--dark-code-background);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.hl-0 { color: var(--hl-0); }
|
|
113
|
-
.hl-1 { color: var(--hl-1); }
|
|
114
|
-
.hl-2 { color: var(--hl-2); }
|
|
115
|
-
.hl-3 { color: var(--hl-3); }
|
|
116
|
-
.hl-4 { color: var(--hl-4); }
|
|
117
|
-
.hl-5 { color: var(--hl-5); }
|
|
118
|
-
.hl-6 { color: var(--hl-6); }
|
|
119
|
-
.hl-7 { color: var(--hl-7); }
|
|
120
|
-
.hl-8 { color: var(--hl-8); }
|
|
121
|
-
.hl-9 { color: var(--hl-9); }
|
|
122
|
-
.hl-10 { color: var(--hl-10); }
|
|
123
|
-
.hl-11 { color: var(--hl-11); }
|
|
124
|
-
.hl-12 { color: var(--hl-12); }
|
|
125
|
-
.hl-13 { color: var(--hl-13); }
|
|
126
|
-
.hl-14 { color: var(--hl-14); }
|
|
127
|
-
pre, code { background: var(--code-background); }
|