File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
packages/compass-data-modeling/src Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,9 @@ export function getExportPngDataUri(diagram: DiagramInstance): Promise<string> {
115
115
height : `${ bounds . height } px` ,
116
116
transform : `translate(${ transform . x } px, ${ transform . y } px) scale(${ transform . zoom } )` ,
117
117
} ,
118
+ filter : ( node ) => {
119
+ return ! node . classList ?. contains ( 'node-add-field-button' ) ;
120
+ } ,
118
121
} )
119
122
. then ( resolve )
120
123
. catch ( reject )
Original file line number Diff line number Diff line change 5
5
IconButton ,
6
6
InlineDefinition ,
7
7
css ,
8
+ cx ,
8
9
} from '@mongodb-js/compass-components' ;
9
10
import type { NodeProps , EdgeProps , BaseNode } from '@mongodb-js/diagramming' ;
10
11
import type { MongoDBJSONSchema } from 'mongodb-schema' ;
@@ -187,7 +188,7 @@ export function collectionToDiagramNode({
187
188
actions : onClickAddNewFieldToCollection ? (
188
189
< IconButton
189
190
aria-label = "Add Field"
190
- className = { addNewFieldStyles }
191
+ className = { cx ( addNewFieldStyles , 'node-add-field-button' ) }
191
192
onClick = { ( event : React . MouseEvent < HTMLButtonElement > ) => {
192
193
event . stopPropagation ( ) ;
193
194
onClickAddNewFieldToCollection ( ) ;
You can’t perform that action at this time.
0 commit comments