File tree 4 files changed +21
-16
lines changed
extension/src/components/selection-select
4 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ const article = [
96
96
97
97
const verisonInfo = [
98
98
'0.3.0' ,
99
- '0.4.0'
99
+ '0.4.0' ,
100
+ '0.6.0'
100
101
] ;
101
102
102
103
module . exports = {
Original file line number Diff line number Diff line change
1
+ # 0.6.0
2
+
3
+ ## API
4
+
5
+ - [ feat: 插件DndPanel支持默认文本] ( /guide/extension/component-dnd-panel.html )
6
+ [ #255 ] ( https://github.com/didi/LogicFlow/issues/225 )
7
+ - [ feat: 选区组件使用优化] ( /guide/extension/component-selection.html )
8
+
9
+ ## bugfix
10
+
11
+ - fix: 解决html节点无法动态基于properties修改的问题
12
+
13
+
Original file line number Diff line number Diff line change 100
100
const height = 130 ;
101
101
this . width = width ;
102
102
this . height = height ;
103
+ const properties = this . properties ;
103
104
this . anchorsOffset = [
104
105
[ width / 2 , 0 ] ,
105
106
[ 0 , height / 2 ] ,
111
112
class UmlNode extends HtmlNode {
112
113
setHtml ( rootEl ) {
113
114
const { properties } = this . getAttributes ( ) ;
114
- console . log ( 7777 , properties )
115
115
const el = document . createElement ( 'div' ) ;
116
116
el . className = 'uml-wrapper' ;
117
117
const html = `
502
502
lf . on ( 'text:update' , ( data ) => {
503
503
console . log ( 'test:update' , data )
504
504
} ) ;
505
- lf . on ( 'node:click' , ( { data } ) => {
506
- console . log ( 6666 )
507
- lf . setProperties ( data . id , {
508
- name : 'xt'
509
- } )
510
- console . log ( lf . getProperties ( data . id ) ) ;
511
- } )
505
+ // lf.on('node:click', ({ data }) => {
506
+ // const model = lf.graphModel.getElement(data.id)
507
+ // model.fill = 'red'
508
+ // })
512
509
// lf.on('node:mouseup',()=> {
513
510
// console.log('nodeup')
514
511
// })
Original file line number Diff line number Diff line change 1
- import LogicFlow , { Extension } from '@logicflow/core' ;
2
-
3
- interface SelectionSelectPlugin extends Extension {
4
- open : ( ) => void ;
5
- close : ( ) => void ;
6
- [ x : string ] : any ;
7
- }
1
+ import LogicFlow from '@logicflow/core' ;
8
2
9
3
class SelectionSelect {
10
4
__domContainer : HTMLElement ;
You can’t perform that action at this time.
0 commit comments