@cnvx/nodal 0.3.0 → 0.3.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.
@@ -214,7 +214,7 @@
214
214
 
215
215
  <svg
216
216
  shape-rendering="crispEdges"
217
- style="position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%;overflow:visible;z-index:-1;"
217
+ style="position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%;overflow:visible;z-index:0;"
218
218
  {...svgAttributes}
219
219
  >
220
220
  {#each edges.values() as edge}
@@ -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 {};
@@ -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")) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@cnvx/nodal",
3
3
  "private": false,
4
4
  "license": "MIT",
5
- "version": "0.3.0",
5
+ "version": "0.3.2",
6
6
  "scripts": {
7
7
  "dev": "vite dev",
8
8
  "dev-lib": "svelte-package -w",