Skip to content

Commit

Permalink
Ver 2.3.3.(a)
Browse files Browse the repository at this point in the history
Ver 2.3.3.(a)
  • Loading branch information
yuhsukeogawa authored Dec 13, 2024
1 parent 6ab8124 commit 859fb7b
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions ns_l3_diagram_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def process_elements(array):

''' OFFSET Ver 2.3.3 '''
if self.click_value_l3 == 'L3-4-1':
if action_type == 'CREATE' and tmp_tmp_target_position_shape_array not in '_AIR_':
if action_type == 'CREATE' and tmp_tmp_target_position_shape_array not in '_AIR_' and self.flag_second_page == False:
shape_name = tmp_tmp_target_position_shape_array
left_offset += create_master_file_one_area.get_l3_shape_offset(self,shape_name ,left_offset)

Expand Down Expand Up @@ -2244,25 +2244,6 @@ def get_l3_shape_offset(self,shape_name,left_offset):

offset_value = area_value - left_offset

'''
To prevent the lines from overlapping, activate the following code. However, the figure would be very long.
'''
if self.flag_second_page == True:
if area_value >= left_value:
offset_value = area_value - left_offset
else:
offset_value = 0.0
#print(shape_name, area_value, left_value, offset_value,left_offset)

### Calculate the offset for the area from the second row onwards ###
if area_value == 1.0 and left_value != 1.0:
self.flag_area_equel_left = False
self.second_area_offset = left_offset

if self.flag_area_equel_left == False and area_value != 1.0 :
offset_value = area_value + self.second_area_offset - left_offset - 1.0


else:
offset_value = 0.0

Expand Down

0 comments on commit 859fb7b

Please sign in to comment.