@netgrif/petriflow.svg
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Petriflow.SVG

GitHub npm dev dependency version (scoped) Petriflow 1.0.1 npm (scoped) npm build Quality Gate Status Known Vulnerabilities

Visual library for Petriflow objects

Petriflow.SVG is a Angular library for visual representation of Petriflow objects. The library is for rendering and modeling Petriflow objects as SVG elements. The library offers component that is functionally container for SVG objects. Within the component a user can draw/model a Petriflow process. The library is updated together with the Petriflow specification to ensure up-to-date compatibility.

Full specification of Petriflow low-code language can be found at Petriflow.com

The library is based on the library Petri.SVG that is also developed in this project (folder projects/petri-svg). Petri.SVG is pure Typescript library of visual representation (SVG elements) of Petri Nets components. For more information see Petri.SVG.

Install

First, make sure you have installed the latest version of Node.js and npm with it (You may need to restart your computer after this step).

You can install it with the following command:

npm install --save @netgrif/petriflow.svg

Requirements

As the library is an Angular library the main dependency is Angular 13 and its modules. For more information about dependencies see the library package.json.

Since npm v7+ does not install peer dependencies you need to install them yourself. Please see peerDependencies attribute in the library package.json.

Usage

The library publishes Angular component petriflow-svg-canvas that represent drawing canvas for SVG objects. The component does not have any inputs or output. See documentation for more information.

Reporting issues

If you find a bug, let us know. First, please read our Contribution guide

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package Sidebar

Install

npm i @netgrif/petriflow.svg

Weekly Downloads

2

Version

1.1.0

License

Apache-2.0

Unpacked Size

361 kB

Total Files

50

Last publish

Collaborators

  • devopsnetgrif
  • bawix
  • mladoniczky