@cnvx/nodal 0.3.0 → 0.3.1
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/dist/svelte-actions.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ type IndividualConnectActionParam = string | (SurfaceEdgeParams & {
|
|
|
6
6
|
}) | (SurfaceEdgeParams & {
|
|
7
7
|
source: string | string[];
|
|
8
8
|
});
|
|
9
|
-
export declare function createNodal({ svgAttributes, }
|
|
9
|
+
export declare function createNodal({ svgAttributes, }?: Partial<{
|
|
10
10
|
svgAttributes: HTMLAttributes<SVGElement>;
|
|
11
|
-
}): Attachment;
|
|
11
|
+
}>): Attachment;
|
|
12
12
|
export declare function connectTo(...edges: IndividualConnectActionParam[]): Attachment;
|
|
13
13
|
export {};
|
package/dist/svelte-actions.js
CHANGED
|
@@ -34,7 +34,7 @@ function drawCall(surface) {
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
export function createNodal({ svgAttributes = {}, }) {
|
|
37
|
+
export function createNodal({ svgAttributes = {}, } = {}) {
|
|
38
38
|
return (element) => {
|
|
39
39
|
console.debug("Creating nodal sruface..");
|
|
40
40
|
if (!Object.hasOwn(element, "_nodalSurface")) {
|