@moxa/graph 2.7.0 → 2.7.2
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/assets/worker-D2tlLpGE.js +13 -0
- package/index.cjs +92 -100
- package/index.js +12802 -12547
- package/lib/behavior/brush-select.d.ts.map +1 -1
- package/lib/behavior/create-edge.d.ts +23 -35
- package/lib/behavior/create-edge.d.ts.map +1 -1
- package/lib/behavior/fix-element-size.d.ts +2 -82
- package/lib/behavior/fix-element-size.d.ts.map +1 -1
- package/lib/behavior/helper/behavior.mapper.d.ts +3 -0
- package/lib/behavior/helper/behavior.mapper.d.ts.map +1 -1
- package/lib/edge/helper/edge-g6.mapper.d.ts +3 -0
- package/lib/edge/helper/edge-g6.mapper.d.ts.map +1 -1
- package/lib/edge/helper/edge.mapper.d.ts +3 -0
- package/lib/edge/helper/edge.mapper.d.ts.map +1 -1
- package/lib/graph/graph.d.ts +25 -2
- package/lib/graph/graph.d.ts.map +1 -1
- package/lib/group/custom/device-group.d.ts.map +1 -1
- package/lib/group/helper/group-g6.mapper.d.ts +10 -1
- package/lib/group/helper/group-g6.mapper.d.ts.map +1 -1
- package/lib/group/helper/group.mapper.d.ts +14 -1
- package/lib/group/helper/group.mapper.d.ts.map +1 -1
- package/lib/model/behavior.model.d.ts +1 -1
- package/lib/model/behavior.model.d.ts.map +1 -1
- package/lib/node/custom/device-node.d.ts.map +1 -1
- package/lib/node/helper/node-g6.mapper.d.ts +3 -0
- package/lib/node/helper/node-g6.mapper.d.ts.map +1 -1
- package/lib/node/helper/node.mapper.d.ts +3 -0
- package/lib/node/helper/node.mapper.d.ts.map +1 -1
- package/lib/plugin/element-toolbar.d.ts +22 -15
- package/lib/plugin/element-toolbar.d.ts.map +1 -1
- package/lib/plugin/fixed-toolbar.d.ts +4 -3
- package/lib/plugin/fixed-toolbar.d.ts.map +1 -1
- package/lib/plugin/graph-background.d.ts +8 -4
- package/lib/plugin/graph-background.d.ts.map +1 -1
- package/package.json +1 -1
- package/assets/worker-B2aNklqP.js +0 -13
|
@@ -13,18 +13,22 @@ export type MxGraphBackgroundOptions = BasePluginOptions & {
|
|
|
13
13
|
};
|
|
14
14
|
opacity?: number;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
16
19
|
export declare const getGraphBackgroundOptions: MxPluginFunction<MxGraphBackgroundOptions, MxGraphBackgroundOptions>;
|
|
17
20
|
export declare class MxGraphBackground extends BasePlugin<MxGraphBackgroundOptions> {
|
|
18
21
|
static defaultOptions: Partial<MxGraphBackgroundOptions>;
|
|
19
22
|
imageNode: Image | undefined;
|
|
20
23
|
constructor(context: RuntimeContext, options: MxGraphBackgroundOptions);
|
|
21
|
-
|
|
24
|
+
getEvents: () => {
|
|
25
|
+
[key: string]: (event: IElementEvent) => void;
|
|
26
|
+
};
|
|
22
27
|
update(options: Partial<MxGraphBackgroundOptions>): void;
|
|
23
28
|
setBackgroundImage(): void;
|
|
29
|
+
protected onGraphSizeChange: (e: IElementEvent) => void;
|
|
30
|
+
destroy(): void;
|
|
24
31
|
private bindEvents;
|
|
25
32
|
private unbindEvents;
|
|
26
|
-
onViewPortChange(e: IElementEvent): void;
|
|
27
|
-
onGraphSizeChange(e: IElementEvent): void;
|
|
28
|
-
destroy(): void;
|
|
29
33
|
}
|
|
30
34
|
//# sourceMappingURL=graph-background.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-background.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/plugin/graph-background.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,cAAc,EACf,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAA+B,MAAM,UAAU,CAAC;AACnE,OAAO,EAAqB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,GAAG;IACzD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,gBAAgB,CACtD,wBAAwB,EACxB,wBAAwB,CAQzB,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,UAAU,CAAC,wBAAwB,CAAC;IACzE,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAMtD;IACF,SAAS,EAAE,KAAK,GAAG,SAAS,CAAa;gBAE7B,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,wBAAwB;IAUtE,
|
|
1
|
+
{"version":3,"file":"graph-background.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/plugin/graph-background.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,cAAc,EACf,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAA+B,MAAM,UAAU,CAAC;AACnE,OAAO,EAAqB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,GAAG;IACzD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAA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