包详细信息

diagram-js-direct-editing

bpmn-io320.4kMIT3.2.0

Direct editing support for diagram-js

diagram-js, diagram-js-plugin

自述文件

diagram-js-direct-editing

CI

A direct editing box for diagram-js.

Direct Editing Demo

License

MIT

更新日志

Changelog

All notable changes to diagram-js-direct-editing are documented here. We use semantic versioning for releases.

Unreleased

_Note: Yet to be released changes appear here._

3.2.0

  • FEAT: restore focus on Canvas after close
  • DEPS: update to diagram-js@15.0.0

3.1.0

  • DEPS: update to min-dom@4.2.1

3.0.1

This reverts v3.0.0.

  • FEAT: restore background for all textboxes. You can remove the background with custom styles or a style config in direct editing provider.

3.0.0

  • FEAT: remove background for non-resizable textboxes (#23)

Breaking Changes

  • By default, no background is shown when editing a static sized element. To restore old behavior, add a style config when activating direct editing:
    const MyProvider = { 
      activate: (element) => {
        return {
          style: {
            backgroundColor: '#ffffff',
            border: '1px solid #ccc'
          }
          // ...
        }
      }
    }

2.1.2

This reverts v2.1.1.

  • FIX: restore main package export

2.1.1

  • FIX: drop main package export

2.1.0

  • FEAT: allow loading as a module

2.0.1

  • FIX: add package export

2.0.0

  • DEPS: bump utility dependencies

1.8.0

  • DEPS: support diagram-js@9

1.7.0

  • FEAT: allow to query for active element (#25)

1.6.4

  • DEPS: support diagram-js@8

1.6.3

  • FIX: preserve Windows newline characters (#19)

1.6.2

  • DEPS: support diagram-js@7

1.6.1

  • DEPS: support diagram-js@6

1.6.0

  • DEPS: support diagram-js@5

1.5.0

  • DEPS: support diagram-js@4

1.4.3

  • FIX: prevent injection of HTML and JS evaluation on paste (#13)

1.4.2

  • FIX: only trigger update if text or bounds changed (#11)

1.4.1

  • FIX: ignore superfluous whitespace around labels
  • FIX: return correct updated text box bounds
  • CHORE: only compute text box bounds if actually necessary

1.4.0

  • FEAT: mark as compatible to diagram-js@3
  • FEAT: accept fontFamily and fontWeight styles
  • CHORE: use box-sizing: border-box for proper computation of

1.2.2

This reverts v1.2.1.

1.2.1

  • FIX: use textContent to retrieve correct editing values in IE 11 (#5)

...

Check git log for earlier history.