@angflow/angular 0.0.4 → 0.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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 angflow contributors
4
+ Copyright (c) 2019-2025 webkid GmbH
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/dist/base.css CHANGED
@@ -717,13 +717,13 @@ svg.xy-flow__connectionline {
717
717
 
718
718
 
719
719
  /*
720
- * @ngflow/angular — Complete stylesheet
720
+ * @angflow/angular — Complete stylesheet
721
721
  *
722
722
  * Import this once in your app's global styles:
723
- * @import '@ngflow/angular/styles/ng-flow.css';
723
+ * @import '@angflow/angular/styles/ng-flow.css';
724
724
  *
725
725
  * Or in angular.json:
726
- * "styles": ["node_modules/@ngflow/angular/styles/ng-flow.css"]
726
+ * "styles": ["node_modules/@angflow/angular/styles/ng-flow.css"]
727
727
  */
728
728
 
729
729
  /* ── CSS Custom Properties (theme defaults) ─────────────────────── */
@@ -9,7 +9,7 @@ export class AttributionComponent {
9
9
  class="ng-flow__attribution xy-flow__attribution"
10
10
  style="font-size: 10px; color: #999; pointer-events: all;"
11
11
  >
12
- ngflow
12
+ angflow
13
13
  </span>
14
14
  </ng-flow-panel>
15
15
  `, isInline: true, dependencies: [{ kind: "component", type: PanelComponent, selector: "ng-flow-panel", inputs: ["position"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
@@ -27,7 +27,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImpor
27
27
  class="ng-flow__attribution xy-flow__attribution"
28
28
  style="font-size: 10px; color: #999; pointer-events: all;"
29
29
  >
30
- ngflow
30
+ angflow
31
31
  </span>
32
32
  </ng-flow-panel>
33
33
  `,
@@ -1 +1 @@
1
- {"version":3,"file":"edge-toolbar.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/edge-toolbar/edge-toolbar.component.ts"],"names":[],"mappings":";AAIA,qBAea,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqB;IAE3C,kDAAkD;IAClD,QAAQ,CAAC,MAAM,8CAA4B;IAE3C,+CAA+C;IAC/C,QAAQ,CAAC,CAAC,8CAA4B;IAEtC,6CAA6C;IAC7C,QAAQ,CAAC,CAAC,8CAA4B;IAEtC,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,mEAAgD;IAE/D,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,mEAAgD;IAE/D,0EAA0E;IAC1E,QAAQ,CAAC,SAAS,2DAAyC;IAE3D,QAAQ,CAAC,UAAU,0CAKhB;IAEH,QAAQ,CAAC,MAAM,sCAGZ;IAEH,QAAQ,CAAC,gBAAgB,yCAGtB;yCApCQ,oBAAoB;2CAApB,oBAAoB;CAqChC"}
1
+ {"version":3,"file":"edge-toolbar.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/edge-toolbar/edge-toolbar.component.ts"],"names":[],"mappings":";AAIA,qBAea,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqB;IAE3C,kDAAkD;IAClD,QAAQ,CAAC,MAAM,8CAA4B;IAE3C,+CAA+C;IAC/C,QAAQ,CAAC,CAAC,8CAA4B;IAEtC,6CAA6C;IAC7C,QAAQ,CAAC,CAAC,8CAA4B;IAEtC,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,mEAAgD;IAE/D,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,mEAAgD;IAE/D,0EAA0E;IAC1E,QAAQ,CAAC,SAAS,2DAAyC;IAE3D,QAAQ,CAAC,UAAU,0CAKhB;IAEH,QAAQ,CAAC,MAAM,sCAGZ;IAEH,QAAQ,CAAC,gBAAgB,yCAMtB;yCAvCQ,oBAAoB;2CAApB,oBAAoB;CAwChC"}
@@ -29,8 +29,11 @@ export class EdgeToolbarComponent {
29
29
  return (edge?.zIndex ?? 0) + 1;
30
30
  }, ...(ngDevMode ? [{ debugName: "zIndex" }] : /* istanbul ignore next */ []));
31
31
  this.toolbarTransform = computed(() => {
32
- const zoom = this.store.transform()[2];
33
- return getEdgeToolbarTransform(this.x(), this.y(), zoom, this.alignX(), this.alignY());
32
+ const [tx, ty, zoom] = this.store.transform();
33
+ // x,y are in flow coordinates; convert to viewport pixel coordinates
34
+ const vx = this.x() * zoom + tx;
35
+ const vy = this.y() * zoom + ty;
36
+ return getEdgeToolbarTransform(vx, vy, zoom, this.alignX(), this.alignY());
34
37
  }, ...(ngDevMode ? [{ debugName: "toolbarTransform" }] : /* istanbul ignore next */ []));
35
38
  }
36
39
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: EdgeToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -1 +1 @@
1
- {"version":3,"file":"edge-toolbar.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edge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IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;YAClE,OAAO,CAAE,IAAY,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QAC1C,CAAC,6EAAC,CAAC;QAEM,qBAAgB,GAAG,QAAQ,CAAC,GAAG,EAAE;YACxC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;YACvC,OAAO,uBAAuB,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACzF,CAAC,uFAAC,CAAC;KACJ;8GArCY,oBAAoB;kGAApB,oBAAoB,umCAFrB,gBAAgB;;2FAEf,oBAAoB;kBAfhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE;wBACJ,OAAO,EAAE,6CAA6C;wBACtD,iBAAiB,EAAE,iCAAiC;wBACpD,kBAAkB,EAAE,YAAY;wBAChC,mBAAmB,EAAE,oBAAoB;wBACzC,0BAA0B,EAAE,OAAO;wBACnC,iBAAiB,EAAE,UAAU;wBAC7B,wBAAwB,EAAE,OAAO;qBAClC;oBACD,QAAQ,EAAE,gBAAgB;iBAC3B"}
1
+ {"version":3,"file":"edge-toolbar.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edge-toolbar/edge-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAA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BAAgB,GAAG,QAAQ,CAAC,GAAG,EAAE;YACxC,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;YAC9C,qEAAqE;YACrE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,GAAG,EAAE,CAAC;YAChC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,GAAG,EAAE,CAAC;YAChC,OAAO,uBAAuB,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAC7E,CAAC,uFAAC,CAAC;KACJ;8GAxCY,oBAAoB;kGAApB,oBAAoB,umCAFrB,gBAAgB;;2FAEf,oBAAoB;kBAfhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE;wBACJ,OAAO,EAAE,6CAA6C;wBACtD,iBAAiB,EAAE,iCAAiC;wBACpD,kBAAkB,EAAE,YAAY;wBAChC,mBAAmB,EAAE,oBAAoB;wBACzC,0BAA0B,EAAE,OAAO;wBACnC,iBAAiB,EAAE,UAAU;wBAC7B,wBAAwB,EAAE,OAAO;qBAClC;oBACD,QAAQ,EAAE,gBAAgB;iBAC3B"}
package/dist/style.css CHANGED
@@ -905,13 +905,13 @@ svg.xy-flow__connectionline {
905
905
 
906
906
 
907
907
  /*
908
- * @ngflow/angular — Complete stylesheet
908
+ * @angflow/angular — Complete stylesheet
909
909
  *
910
910
  * Import this once in your app's global styles:
911
- * @import '@ngflow/angular/styles/ng-flow.css';
911
+ * @import '@angflow/angular/styles/ng-flow.css';
912
912
  *
913
913
  * Or in angular.json:
914
- * "styles": ["node_modules/@ngflow/angular/styles/ng-flow.css"]
914
+ * "styles": ["node_modules/@angflow/angular/styles/ng-flow.css"]
915
915
  */
916
916
 
917
917
  /* ── CSS Custom Properties (theme defaults) ─────────────────────── */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angflow/angular",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "description": "Angular Flow - A highly customizable Angular library for building node-based editors and interactive flow charts.",
6
6
  "keywords": [
@@ -10,11 +10,11 @@
10
10
  "diagram",
11
11
  "workflow",
12
12
  "angular-flow",
13
- "ngflow"
13
+ "angflow"
14
14
  ],
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "https://github.com/ngflow/ngflow.git",
17
+ "url": "https://github.com/angflow/angflow.git",
18
18
  "directory": "packages/angular"
19
19
  },
20
20
  "files": [