cc-tools-utils 0.0.2 → 0.0.4
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/README.md +26 -2
- package/index.js +12 -0
- package/lib/js/cesiumHooks.js +93 -20
- package/lib/js/tools.js +36 -0
- package/package.json +24 -27
- package/vue-config-helper.js +54 -0
- package/dist/index.d.ts +0 -11
- package/dist/index.js +0 -1
- package/dist/lib/img/Transform.d.ts +0 -3
- package/dist/lib/js/Anima.d.ts +0 -2
- package/dist/lib/js/bus.d.ts +0 -9
- package/dist/lib/js/cesiumHooks.d.ts +0 -66
- package/dist/lib/js/tools.d.ts +0 -53
- package/lib/js/Anima.js +0 -10949
- package/lib/js/bus.ts +0 -24
- package/lib/js/tools.ts +0 -238
package/dist/lib/js/Anima.d.ts
DELETED
package/dist/lib/js/bus.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export function isArrayEqual(arr1: any, arr2: any): any;
|
|
2
|
-
export const DEFAULT_HEIGHT: 25000000;
|
|
3
|
-
export const DEFAULT_POSITION: number[];
|
|
4
|
-
export const MODEL_DISPLAY_DISTANCE: 5000000;
|
|
5
|
-
export const Cesium_Access_Tokens: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2Mzg2ZTAwNy0zODczLTQxYjUtODE3OS0zYzI5ZmM1MTU3MGIiLCJpZCI6Mzc4NzcwLCJpYXQiOjE3Njg0NDQyODd9.u9gpkF-dD_GHOX9dbnNR5k7Zv6oVpUcNm5WOeqvxzu0";
|
|
6
|
-
export const allEntitiesIds: import("vue").Ref<any[]>;
|
|
7
|
-
export function getHeading(pointA: any, pointB: any): number;
|
|
8
|
-
export function getPitch(pointA: any, pointB: any): number;
|
|
9
|
-
export function updataModelPosition(viewer: any, { model, targetPosition, totalDuration }: {
|
|
10
|
-
model: any;
|
|
11
|
-
targetPosition: any;
|
|
12
|
-
totalDuration?: number;
|
|
13
|
-
}): void;
|
|
14
|
-
export function transformCartesian3ToWGS84(cartesian3: any): number[];
|
|
15
|
-
export function toCesiumColor(color: any): Color;
|
|
16
|
-
export function toCesiumPosition(position: any): Cartesian3;
|
|
17
|
-
export function backToChina(viewer: any, callback: any, time: any): void;
|
|
18
|
-
export function initCesium(boxID: any, doSomething: any): {
|
|
19
|
-
viewer: Cesium.Viewer;
|
|
20
|
-
};
|
|
21
|
-
export function divergingWaves(viewer: any, { defaultPosition, r, r2, step, max, speed, defaultColor, id, }: {
|
|
22
|
-
defaultPosition?: number[];
|
|
23
|
-
r?: number;
|
|
24
|
-
r2?: number;
|
|
25
|
-
step?: number;
|
|
26
|
-
max?: number;
|
|
27
|
-
speed?: number;
|
|
28
|
-
defaultColor?: string;
|
|
29
|
-
id?: string;
|
|
30
|
-
}): any;
|
|
31
|
-
export function addEquatorialLine(viewer: any, color?: string): void;
|
|
32
|
-
export function airRouteFn(viewer: any): void;
|
|
33
|
-
export function cameraAnimation(viewer: any, position: any, orientation: any): void;
|
|
34
|
-
export function addPointer(viewer: any, { position, pointColor, pointerSize, id, label, billboard, nearScale, farScale, nearDistance, farDistance, hoverImage, }: {
|
|
35
|
-
position: any;
|
|
36
|
-
pointColor: any;
|
|
37
|
-
pointerSize: any;
|
|
38
|
-
id: any;
|
|
39
|
-
label?: {};
|
|
40
|
-
billboard: any;
|
|
41
|
-
nearScale?: number;
|
|
42
|
-
farScale?: number;
|
|
43
|
-
nearDistance?: number;
|
|
44
|
-
farDistance?: number;
|
|
45
|
-
hoverImage: any;
|
|
46
|
-
}): any;
|
|
47
|
-
export function addLine(viewer: any): void;
|
|
48
|
-
export function add3DModel(viewer: any, airShipPosition: any, cameraPosition: any): void;
|
|
49
|
-
export function initEvents({ viewer, scene, camera, entities, clock }: {
|
|
50
|
-
viewer: any;
|
|
51
|
-
scene: any;
|
|
52
|
-
camera: any;
|
|
53
|
-
entities: any;
|
|
54
|
-
clock: any;
|
|
55
|
-
}): void;
|
|
56
|
-
export function followModel(viewer: any, options: any): void;
|
|
57
|
-
export function initCluster(viewer: any, { source, image: mainImage, imgs }: {
|
|
58
|
-
source: any;
|
|
59
|
-
image: any;
|
|
60
|
-
imgs: any;
|
|
61
|
-
}): any;
|
|
62
|
-
export function combineIconAndLabel(url: any, label: any, size: any): any;
|
|
63
|
-
export function addHover(viewer: Viewer, onHover: Function): () => void;
|
|
64
|
-
import { Color } from "cesium";
|
|
65
|
-
import { Cartesian3 } from "cesium";
|
|
66
|
-
import * as Cesium from "cesium";
|
package/dist/lib/js/tools.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tween动画函数
|
|
3
|
-
* @param begin - 起始状态对象
|
|
4
|
-
* @param end - 结束状态对象
|
|
5
|
-
* @param time - 动画持续时间(秒)
|
|
6
|
-
* @param onUpdate - 更新回调函数
|
|
7
|
-
* @param onComplete - 完成回调函数
|
|
8
|
-
* @returns Tween动画实例
|
|
9
|
-
*/
|
|
10
|
-
export declare const anima: (begin: Record<string, any>, end: Record<string, any>, time: number, onUpdate?: (data: any) => void, onComplete?: () => void) => any;
|
|
11
|
-
/**
|
|
12
|
-
* 防抖函数
|
|
13
|
-
* @param time - 延迟时间(毫秒)
|
|
14
|
-
* @param fn - 要执行的函数
|
|
15
|
-
* @returns 防抖后的函数
|
|
16
|
-
*/
|
|
17
|
-
export declare const debounce: <T extends (...args: any[]) => any>(time: number, fn: T) => (...args: Parameters<T>) => void;
|
|
18
|
-
/**
|
|
19
|
-
* 节流函数
|
|
20
|
-
* @param time - 节流时间间隔(毫秒)
|
|
21
|
-
* @param fn - 要执行的函数
|
|
22
|
-
* @returns 节流后的函数
|
|
23
|
-
*/
|
|
24
|
-
export declare const throttle: <T extends (...args: any[]) => any>(time: number, fn: T) => (...args: Parameters<T>) => void;
|
|
25
|
-
/**
|
|
26
|
-
* 蒙版渐隐动画
|
|
27
|
-
* @param parentDom - 父级DOM元素
|
|
28
|
-
*/
|
|
29
|
-
export declare const maskAnima: (parentDom: Element) => void;
|
|
30
|
-
export declare const callPromises: (arr: any) => any;
|
|
31
|
-
export declare const callFunctions: (arr: any) => void;
|
|
32
|
-
export declare const getIdDom: (idName: string) => Element;
|
|
33
|
-
export declare const getClassDom: (className: string) => Element;
|
|
34
|
-
export declare const hasFocus: (el: any) => boolean;
|
|
35
|
-
export declare const a: (el: any) => any;
|
|
36
|
-
export declare const getSelectedText: () => string;
|
|
37
|
-
export declare const goBack: () => void;
|
|
38
|
-
export declare const getUrlParams: (query: any) => {};
|
|
39
|
-
export declare const isDarkMode: boolean;
|
|
40
|
-
export declare const isEqualArray: (a: any, b: any) => boolean;
|
|
41
|
-
export declare const arrayToObject: (arr: any, key: any) => any;
|
|
42
|
-
export declare const countBy: (arr: any, prop: any) => any;
|
|
43
|
-
export declare const arrayIsNotEmpty: (arr: any) => boolean;
|
|
44
|
-
export declare const flat_entries: (arr: any) => any[];
|
|
45
|
-
export declare const lastItem: (arr: any) => any;
|
|
46
|
-
export declare const isEqualString: (...objects: any[]) => boolean;
|
|
47
|
-
export declare const pluck: (objs: any, property: any) => any;
|
|
48
|
-
export declare const invert: (obj: any) => {};
|
|
49
|
-
export declare const removeNullAndUndefined: (obj: any) => {};
|
|
50
|
-
export declare const sort: (obj: any) => {};
|
|
51
|
-
export declare const isArray: (obj: any) => boolean;
|
|
52
|
-
export declare const isPromise: (obj: any) => boolean;
|
|
53
|
-
export declare const exchange: (a: any, b: any) => [any, any];
|