Visual library for Petriflow objects
Petriflow.SVG is an 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.
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
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.
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.
If you find a bug, let us know. First, please read our Contribution guide
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.