@das-fed/utils 1.0.3 → 1.0.5
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/api-services/src/create-service.d.ts +1 -2
- package/api-services/src/create-service.js +2 -2
- package/common-tools/get-url-params.js +0 -1
- package/dimple-canvas/index.d.ts +2 -0
- package/dimple-canvas/index.js +5 -0
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.d.ts +28 -0
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js +19946 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/index.d.ts +53 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/index.js +119 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.d.ts +101 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.js +17 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.d.ts +7 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.js +55 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.d.ts +5 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.js +14 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.d.ts +4 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.js +5 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.d.ts +4 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.js +181 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.d.ts +3 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js +7374 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.d.ts +6 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.js +13 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.d.ts +3 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.js +7 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.d.ts +8 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.js +193 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.d.ts +10 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.js +20 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.d.ts +4 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.js +52 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.d.ts +2 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.js +14 -0
- package/dimple-canvas/use-dimple-canvas/index.d.ts +8 -0
- package/dimple-canvas/use-dimple-canvas/index.js +10 -0
- package/micro-app/globalData.d.ts +3 -0
- package/micro-app/globalData.js +11 -0
- package/micro-app/index.d.ts +5 -0
- package/micro-app/index.js +3699 -0
- package/nextTiken/index.d.ts +13 -0
- package/nextTiken/index.js +62 -0
- package/package.json +6 -7
- package/panel/index.d.ts +31 -0
- package/panel/index.js +37 -0
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const createService: (urlPrefix: string, customConfig?: any) => any;
|
|
2
|
-
export { createService };
|
|
1
|
+
export declare const createService: (urlPrefix: string, customConfig?: any) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { curringHttp as wn } from "@das-fed/utils/curring-http";
|
|
2
|
-
import { DasMessage as st } from "@das-fed/ui";
|
|
2
|
+
import { DasMessage as st } from "@das-fed/ui/packages/components/message";
|
|
3
3
|
import { getToken as On, getQuery as En, login as An, getTokenParams as $n, real_uri as Pn } from "@das-fed/utils/api-services/src/sso";
|
|
4
4
|
import { getProjectInfo as Rn } from "@das-fed/utils/common-info";
|
|
5
5
|
import { getAccessToken as xn } from "@das-fed/utils/token-tools";
|
|
@@ -3185,7 +3185,7 @@ const cs = Dr(), bn = cs.sso ?? !0, ls = async (t) => {
|
|
|
3185
3185
|
var r;
|
|
3186
3186
|
return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
|
|
3187
3187
|
};
|
|
3188
|
-
let ae;
|
|
3188
|
+
let ae = {};
|
|
3189
3189
|
const fs = async (t, e) => {
|
|
3190
3190
|
var u, c, d, l, h;
|
|
3191
3191
|
ae || (ae = st, self !== top ? ae = ((u = window.top) == null ? void 0 : u.$__DasMessageForApi) || st : window.$__DasMessageForApi = st);
|
|
@@ -20,7 +20,6 @@ const a = (r, n) => {
|
|
|
20
20
|
i === s.length - 1 ? t += `${l}=${n[l]}` : t += `${l}=${n[l]}&`;
|
|
21
21
|
}), t ? e = location.origin + r + `?${t}` : e = location.origin + r, e;
|
|
22
22
|
}, u = (r, n) => {
|
|
23
|
-
debugger;
|
|
24
23
|
const e = n || location.href, t = a(e), s = Object.keys(t) || [];
|
|
25
24
|
if (!s || !s.length)
|
|
26
25
|
return e.includes("?") ? e.split("?")[0] : e.split("&")[0];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Graph, Shape, Node } from '@antv/x6';
|
|
2
|
+
type ObjectTypeMap = {
|
|
3
|
+
Rect: typeof Shape.Rect;
|
|
4
|
+
Circle: typeof Shape.Circle;
|
|
5
|
+
Ellipse: typeof Shape.Ellipse;
|
|
6
|
+
Polygon: typeof Shape.Polygon;
|
|
7
|
+
Polyline: typeof Shape.Polyline;
|
|
8
|
+
Path: typeof Shape.Path;
|
|
9
|
+
Image: typeof Shape.Image;
|
|
10
|
+
HTML: typeof Shape.HTML;
|
|
11
|
+
BackgroundImage: null;
|
|
12
|
+
};
|
|
13
|
+
declare const useAntvX6: (initOptions?: Graph.Options) => {
|
|
14
|
+
canvasContainerEl: any;
|
|
15
|
+
init: (container: HTMLDivElement) => void;
|
|
16
|
+
waitInit: () => Promise<void>;
|
|
17
|
+
canvas: any;
|
|
18
|
+
onCanvasMounted: (cb: Function) => number;
|
|
19
|
+
addObject: <T extends keyof ObjectTypeMap>(type: T, metadata?: Node.Metadata & {
|
|
20
|
+
src?: string;
|
|
21
|
+
}, options?: Model.AddOptions) => Promise<typeof Node>;
|
|
22
|
+
removeObject: (key: string) => Promise<void>;
|
|
23
|
+
zoom: (type?: 'in' | 'out', radio?: number) => Promise<void>;
|
|
24
|
+
toJSON: () => Promise<any>;
|
|
25
|
+
loadJSON: (data: any) => Promise<any>;
|
|
26
|
+
remove: () => Promise<any>;
|
|
27
|
+
};
|
|
28
|
+
export { useAntvX6, Graph };
|