# fuyao-bpm-editor

> fuyao bpm editor and viewr for bpmn

Latest version **0.0.4** (published 2022-12-08) · 0 weekly downloads

## Install

```sh
npm install fuyao-bpm-editor
pnpm add fuyao-bpm-editor
yarn add fuyao-bpm-editor
bun add fuyao-bpm-editor
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2022-12-08 |
| First published | 2022-12-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 563 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | signup-npm |

## Links

- npm: https://www.npmjs.com/package/fuyao-bpm-editor
- npm.io page: https://npm.io/package/fuyao-bpm-editor

## Dependencies (6)

- [react](https://npm.io/package/react.md) ^18.2.0
- [bpmn-js](https://npm.io/package/bpmn-js.md) ^11.0.3
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [@types/react](https://npm.io/package/@types/react.md) ^18.0.26
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^18.0.9
- [@types/bpmn-moddle](https://npm.io/package/@types/bpmn-moddle.md) ^5.1.6

## Recent versions

- 0.0.4 (latest) — 2022-12-08
- 0.0.3 — 2022-12-08
- 0.0.2 — 2022-12-08
- 0.0.1 — 2022-12-08

## README

# Bpmn React Component

BpmnViewer example
```
 <BpmnViewer style={{'height': '100vh'}} xml={xml} />
```

BpmnEditor example with panel

```
class App extends React.PureComponent {

  protected readonly panelRef =  React.createRef<HTMLDivElement>();
  protected readonly ref = React.createRef<HTMLDivElement>();

  state = {
    bpmModeler: null
  };

  componentDidMount() {
    this.setState({
      bpmModeler: new BpmnModeler({
        container: this.ref.current,
        propertiesPanel: {
            parent: this.panelRef.current
        },
        additionalModules: [BpmnPropertiesPanelModule, BpmnPropertiesProviderModule]
      })
    })
  }

  render() {
    const xml = getXml();
    
    return (
      <BpmnEditor xml={xml} bpmModeler={this.state.bpmModeler}>
          <div ref={this.ref} style={{ 'height': '100vh' }}/>
          <div className='bjs-property-panel' ref={this.panelRef} />
      </BpmnEditor>
    );

  }

```

---
_Source: https://npm.io/package/fuyao-bpm-editor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
