[mxcad_2d API documentation] (../README. md)/[2d] (../modules/2d. md)/MxCompare
Class: MxCompare
2d.MxCompare
Comparison of two MxCompare drawings
Table of contents
Constructors
Methods
Constructors
constructor
• new MxCompare()
Methods
do
▸ do(base_database
): boolean
Compare the content displayed by the current control with the drawing of base_database. Base_database can be considered as the original drawing, and the newly drawn object on the current control is the newly added object.
Parameters
Name | Type |
---|---|
base_database | McDbDatabase |
Returns
boolean
getResult
▸ getResult(): any
[]
Obtain the comparison results of the drawings
Returns
any
[]
regenDisplay
▸ regenDisplay(strColor?
): boolean
Generate a new display based on the current comparison results. Mark the modified areas with different colors. Display the modified object in pink The added objects are displayed in green The deleted objects are displayed in red strColor: '{"add_color":0xFF0000,"erase_color":0x00FF00,"modify_color":0x0000FF,"not_modify_color":0x505050}'
Parameters
Name | Type | Default value |
---|---|---|
strColor | string | "" |
Returns
boolean