A method, device, electronic device and storage medium for adjusting graphic position
By automatically adjusting the position of the graphics and according to the size change and boundary distance, the overlap or adjacent relationship breaking caused by the size change in the home decoration design software is solved, the design efficiency is improved, and the adaptability of the graphics is achieved.
Patent Information
- Application Number
- CN202110896728.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-05
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2041-08-05
AI Technical Summary
In home decoration design software, manual adjustments are required when graphic dimensions change to avoid overlap or breaking adjacent relationships, resulting in inefficiency in design.
By obtaining the size change amount and boundary distance of the figure, the position of the figure is automatically adjusted to restore the adjacent and non-overlapping state, including comparing the size change amount with the boundary distance, determining the amount of movement of the figure in the preset direction or the opposite direction, ensuring the figure's adjacent relationship.
Improve design efficiency, avoid the tedious process of manual adjustment, and realize automatic adaptation of graphics after dimension changes, ensuring adjacent and non-overlapping states between graphics.
Smart Images

Figure CN113591193B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of home decoration graphic drawing, and in particular to a graphic position adjustment method, device, electronic device and storage medium. Background Art
[0002] In the design software of the home decoration industry, it is often necessary to increase the size of the graphics corresponding to a cabinet, which will cause the graphics to partially overlap with adjacent graphics, while reducing the size of the graphics will break the original adjacent relationship. When overlap occurs or the original adjacent relationship is broken, in order to restore the state of neither overlapping nor adjacent, it is necessary to manually move the graphics one by one until all graphics are adjacent and non-overlapping. Especially in the home decoration design industry, it is often necessary to modify the size of a cabinet in a row of adjacent cabinets. Manual adjustment will greatly reduce design efficiency. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for adjusting the position of a graphic, which can automatically adjust the position and restore all graphics to a state where they are adjacent and non-overlapping when the size of a certain graphic changes, thereby solving the problem of manual adjustment methods reducing design efficiency.
[0004] The present application provides a method for adjusting a graphic position, the method comprising:
[0005] When the size of the current graphic changes, get the size change of the current graphic;
[0006] Get the boundary distance between the boundary graphic and the space boundary;
[0007] The size change amount is compared with the boundary distance to adjust the position of the graphic according to the comparison result.
[0008] In the above implementation process, after the size of the graphic changes, the position of the graphic can be automatically adjusted according to the boundary distance, so that the graphics are restored to an adjacent and non-overlapping state, avoiding manual adjustment and improving design efficiency.
[0009] Furthermore, the graphics corresponding to the cabinet are arranged in a straight line, and the comparing the size change amount with the boundary distance to adjust the position of the graphics according to the comparison result includes:
[0010] If the size change is positive, comparing the size change with the first boundary distance on one side of the preset direction;
[0011] If the first boundary distance is not less than the size change amount, all graphics that need to be moved are moved to one side of a preset direction until they are adjacent to the current graphic;
[0012] If the first boundary distance is smaller than the size change, the size change is compared with a second boundary distance on the opposite side of the preset direction.
[0013] In the above implementation process, if there is a preset direction, the first boundary distance on one side of the preset direction must be considered first. If the moving condition is met, all the graphics of the current graphic on the side of the preset direction can be moved. After the movement, the current graphic and the adjacent graphics remain non-overlapping and adjacent. Otherwise, consider whether it can be moved to the opposite direction of the preset direction.
[0014] Furthermore, if the first boundary distance is smaller than the size change, comparing the size change with a second boundary distance on the opposite side of the preset direction includes:
[0015] If the second boundary distance is not less than the size change amount, all graphics that need to be moved are moved in the opposite direction of the preset direction until they are adjacent to the current graphic.
[0016] In the above implementation process, a judgment condition for moving to the opposite direction of the preset direction is given.
[0017] Furthermore, comparing the size change amount with the boundary distance to adjust the position of the graphic according to the comparison result includes:
[0018] If the size change is negative, all graphics that need to be moved in a preset direction are moved to be adjacent to the current graphic.
[0019] In the above implementation process, if the size change is negative, it means that the size of the current graphic becomes smaller, there is a gap between the current graphic and the adjacent graphic, and all graphics in the preset direction need to be moved to be adjacent to the current graphic.
[0020] Furthermore, the graphics corresponding to the cabinet are arranged in an L-shape or a U-shape, and the step of obtaining the boundary distance between the boundary graphics and the boundary of the space includes:
[0021] There is no relative displacement between two adjacent graphics at the corner connection, and the distance from the outermost graphic closest to the boundary to the space boundary is obtained and used as the boundary distance.
[0022] In the above implementation process, if the graphics corresponding to the cabinets are arranged in an L-shape or a U-shape, since in the home improvement industry, a certain amount of space is required to open the cabinet doors, the two adjacent cabinets at the corners cannot be completely aligned, so no relative displacement can occur at the corners of the L-shape or U-shape arrangement. Therefore, the movement method is essentially the same as that of the straight line.
[0023] Furthermore, comparing the size change amount with the boundary distance to adjust the position of the graphic according to the comparison result includes:
[0024] If both the first boundary distance and the second boundary distance are greater than the size change, obtaining the number of first graphics that need to be moved in a preset direction and the number of second graphics that need to be moved in a direction opposite to the preset direction;
[0025] If the number of the first graphics is not less than the number of the second graphics, the graphics in the opposite direction of the preset direction are moved.
[0026] In the above implementation process, if both sides of the preset direction can be moved, it can be determined which side to move according to the amount of movement required, so as to achieve the purpose by moving the least number of graphics.
[0027] The present application also provides a device for adjusting the position of a graphic, the device comprising:
[0028] The size change acquisition module is used to acquire the size change of the current graphic when the size of the current graphic changes;
[0029] A distance acquisition module is used to acquire the boundary distance between the boundary graphic and the space boundary;
[0030] The comparison module is used to compare the size change amount with the boundary distance to adjust the position of the graphic according to the comparison result.
[0031] In the above implementation process, after the size of the graphic changes, the position of the graphic can be automatically adjusted according to the boundary distance, so that the graphics are restored to an adjacent and non-overlapping state, avoiding manual adjustment and improving design efficiency.
[0032] Furthermore, the graphics corresponding to the cabinet are arranged in a straight line, and the comparison module includes:
[0033] A first comparison module, configured to compare the size change with a first boundary distance on one side of a preset direction if the size change is positive;
[0034] A moving module, configured to move all graphics to be moved to one side of a preset direction until they are adjacent to the current graphic if the first boundary distance is not less than the size change amount;
[0035] The second comparison module is configured to compare the size change with a second boundary distance on the opposite side of the preset direction if the first boundary distance is smaller than the size change.
[0036] In the above implementation process, if there is a preset direction, the first boundary distance on one side of the preset direction must be considered first. If the moving condition is met, all the graphics of the current graphic on the side of the preset direction can be moved. After the movement, the current graphic and the adjacent graphics remain non-overlapping and adjacent. Otherwise, consider whether it can be moved to the opposite direction of the preset direction.
[0037] An embodiment of the present application further provides an electronic device, which includes a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute any of the above-mentioned graphic position adjustment methods.
[0038] An embodiment of the present application further provides a readable storage medium, wherein the readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, any of the above-mentioned graphic position adjustment methods is executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A flowchart of a method for adjusting a graphic position provided in an embodiment of the present application;
[0041] Figure 2 A flow chart of moving a one-line arrangement graphic provided in an embodiment of the present application;
[0042] Figure 3 A schematic diagram of rightward movement provided in an embodiment of the present application;
[0043] Figure 4 A schematic diagram of the current graphic 2 provided in an embodiment of the present application moving to the left;
[0044] Figure 5 A schematic diagram of movement when the current graphic 3 becomes smaller provided in an embodiment of the present application;
[0045] Figure 6 A graphical schematic diagram of an L-shaped arrangement provided in an embodiment of the present application;
[0046] Figure 7 A schematic diagram of an L-shaped arrangement when the graph 2 provided in an embodiment of the present application is enlarged;
[0047] Figure 8 A schematic diagram of a U-shaped arrangement provided in an embodiment of the present application;
[0048] Fig. 9 A flow chart of another moving method provided in an embodiment of the present application;
[0049] Fig.10 A schematic diagram of the left and right side movement of the L-shaped arrangement provided in an embodiment of the present application;
[0050] Fig.11 A schematic diagram of the left and right side movement of the U-shaped arrangement provided in an embodiment of the present application;
[0051] Fig.12 A structural block diagram of a graphics position adjustment device provided in an embodiment of the present application;
[0052] Fig.13 This is a block diagram of the overall structure of the graphic position adjustment device provided in an embodiment of the present application.
[0053] icon:
[0054] 100 - size change acquisition module; 200 - distance acquisition module; 300 - comparison module; 311 - first comparison module; 312 - first movement module; 313 - second comparison module; 321 - movement calculation module; 322 - second movement module. DETAILED DESCRIPTION
[0055] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0056] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0057] Please see Figure 1 , Figure 1 A flowchart of a method for adjusting the position of a graphic provided in an embodiment of the present application. The method is specifically applied to design software in the home improvement industry. For example, when drawing a row of cabinets, if the size of one of the cabinets is increased or decreased, multiple cabinets need to be manually adjusted to restore them to a state where they are neither overlapping nor adjacent. However, the present method automatically adjusts the position of other adjacent graphics after the size of one of the graphics is modified, achieving automatic adaptation to avoid the problem of manual adjustment.
[0058] The method specifically comprises the following steps:
[0059] Step S100: when the size of the current graphic changes, obtaining the size change amount of the current graphic;
[0060] The size change can be expressed as: offsetValue=size after modification-size before modification.
[0061] The size change of graphics in drawing software generally refers to the change in length, but the method described in this application is also applicable to the case where the length and width change at the same time, and no limitation is made here.
[0062] Step S200: obtaining the boundary distance between the boundary graphic and the space boundary;
[0063] For example, the preset direction may be right, and the right side may be used as a reference for priority consideration. Of course, the reference direction may not be set and the moving direction may be selected as required.
[0064] The boundary distance here includes the left boundary distance ld and the right boundary distance rd.
[0065] Step S300: comparing the size change amount with the boundary distance to adjust the position of the graphic according to the comparison result.
[0066] As one implementation method, when the graphics corresponding to the cabinet are arranged in a straight line, such as Figure 2 As shown, it is a flow chart of moving a one-line arrangement graphic, which specifically includes the following steps:
[0067] Step S311: if the size change is positive, compare the size change with the first boundary distance on one side of the preset direction;
[0068] For example, if the preset direction is the right side, the first boundary distance is the right boundary distance rd.
[0069] Step S312: if the first boundary distance is not less than the size change amount, all graphics that need to be moved are moved to one side of a preset direction until they are adjacent to the current graphic and do not overlap;
[0070] like Figure 3 As shown, it is a schematic diagram of moving to the right. If rd>=offsetValue, it means that the right boundary distance is large enough and it can be moved to the right, that is, the graphics 4, 5 and 6 on the right side of the current graphic 3 are moved to the right, so that 3 and 4 are adjacent and do not overlap.
[0071] Step S313: If the first boundary distance is smaller than the size change, compare the size change with a second boundary distance on the opposite side of the preset direction.
[0072] like Figure 4As shown, it is a schematic diagram of the current Figure 2 moving to the left. If rd < offsetValue, it indicates that the space on the right is not sufficient to accommodate the current Figure 2 after the size change. At this time, it is necessary to judge the left boundary distance ld. Specifically:
[0073] If the distance of the second boundary is not less than the amount of size change, move all the figures that need to be moved to the opposite side of the preset direction until they are adjacent to the current figure.
[0074] If ld >= offsetValue, move the left figure and the current Figure 2 to the left. Since the current Figure 2 changes on the right side and there is an overlap with the right figure, it is necessary to move the current Figure 2 itself.
[0075] If ld < offsetValue, it means that the space on the left is also not sufficient to accommodate the figure after the size change, and moving further to the left will move out of the space boundary. At this time, a prompt can be thrown: Unable to move any figure.
[0076] In addition, if the amount of size change is negative, move all the figures that need to be moved in the preset direction until they are adjacent to the current figure.
[0077] As Figure 5 shown, it is a schematic diagram of the movement when the current Figure 3 becomes smaller. If offsetValue is negative (indicating that the size of the current Figure 3 becomes smaller), then move the figures on the right side of the current Figure 3, namely 4, 5, and 6, to the left until they are adjacent to the current Figure 3, and the movement value is the absolute value of offsetValue.
[0078] As another implementation manner, the figures corresponding to the cabinet body are arranged in an L shape or a U shape. Then, there is no relative displacement between the two adjacent figures at the corner connection, and the distance from the outermost figure closest to the boundary to the space boundary is obtained and used as the boundary distance.
[0079] Since in the home improvement industry, a certain space is required to open the cabinet door, the two adjacent cabinet bodies at the corner cannot be completely aligned. Therefore, no relative displacement can occur at the corner of the L-shaped or U-shaped arrangement. As Figure 6 shown, it is a schematic diagram of the figures arranged in an L shape. Figures 3 and 4 are at the corner. Since the cabinet body corresponding to Figure 4 requires space to open the cabinet door, Figure 4 cannot move upward. It is necessary to regard Figures 1-4 as a whole. Then, the left boundary distance from Figure 4 to the boundary, that is, the distance from the outermost figure closest to the boundary to the space boundary, which is also the distance from the outside of Figures 1-3 to the space boundary, is 0.
[0080] If the size of figure 5 increases, 5 and 6 overlap, and 1-4 are considered as a whole, that is, the leftmost figure is aligned with the left boundary, that is, ld = 0. It is necessary to judge the size of offsetValue and rd. If rd is larger, it can be moved to the right by 6. Therefore, its movement method is essentially the same as that of the single font.
[0081] Another embodiment, such as Figure 7 As shown in the figure, it is a schematic diagram of the L-shaped arrangement when the size of figure 2 is increased. When the size of 2 is increased, 2 and 3 overlap. At this time, 3-6 are regarded as a whole, and the distance from the rightmost figure 4-6 to the right border is 0, that is, rd = 0. Then it is necessary to judge the size of ld and offsetValue. If ld is larger, 1 and 2 can be moved to the left. The moving method is essentially the same as that of the one-character type, which will not be repeated here.
[0082] For the L-shaped arrangement, when the distance between any side and the space boundary is 0 or the distance between both sides is not 0, the movement judgment method is substantially the same as that of the straight line arrangement, and will not be described in detail here.
[0083] For a U-shaped arrangement, such as Figure 8 As shown, it is a schematic diagram of the U-shaped arrangement. When the size of Figure 2 increases, 3-8 are regarded as a whole, and the moving method is the same as that of the L-shaped arrangement, which will not be repeated here.
[0084] The above-mentioned moving method is based on setting the moving reference (right side) and the preset direction. As another implementation method, the reference and direction may not be set, and the side with fewer moving graphics may be preferentially selected for moving, such as Fig. 9 FIG. 1 is a flow chart of another moving method, which specifically includes the following steps:
[0085] Step S321: if both the first boundary distance and the second boundary distance are greater than the size change, obtaining the number of first graphics that need to be moved in a preset direction and the number of second graphics that need to be moved in a direction opposite to the preset direction;
[0086] Step S322: If the number of the first graphics is not less than the number of the second graphics, move the graphics in the opposite direction of the preset direction.
[0087] If the number of graphics required to move the right side is much greater than the number of graphics required to move the left side, then moving the right side will reduce the movement efficiency.
[0088] like Fig.10 As shown in the figure, it is a schematic diagram of the left and right side movement of the L-shaped arrangement. Fig.11The figure shows the schematic diagram of the left and right side movement of the U-shaped arrangement. When ld and rd are both greater than offsetValue, when moving the left figure, two figures 1 and 2 need to be moved, and when moving the right figure, six figures 3-8 need to be moved. Therefore, moving the two figures 1 and 2 on the left can greatly improve the movement efficiency.
[0089] The present application also provides a device for adjusting the position of a graphic. Fig.12 As shown, it is a structural block diagram of a graphic position adjustment device, which includes but is not limited to:
[0090] The size change acquisition module 100 is used to acquire the size change of the current graphic when the size of the current graphic changes;
[0091] The distance acquisition module 200 is used to acquire the boundary distance between the boundary graphic and the space boundary;
[0092] The comparison module 300 is used to compare the size change amount with the boundary distance to adjust the position of the graphic according to the comparison result.
[0093] like Fig.13 FIG. 1 is a block diagram of the overall structure of the graphic position adjustment device. As one implementation, the comparison module 300 includes:
[0094] A first comparison module 311 is used for comparing the size change with a first boundary distance on one side of a preset direction if the size change is positive;
[0095] A first moving module 312, configured to move all graphics to be moved toward one side of a preset direction until they are adjacent to the current graphic if the first boundary distance is not less than the size change amount;
[0096] The second comparison module 313 is configured to compare the size change with a second boundary distance on the opposite side of the preset direction if the first boundary distance is smaller than the size change.
[0097] As another implementation, the comparison module 300 includes:
[0098] A movement amount calculation module 321 is used for obtaining the number of first graphics that need to be moved in a preset direction and the number of second graphics that need to be moved in a direction opposite to the preset direction if both the first boundary distance and the second boundary distance are greater than the size change amount;
[0099] The second moving module 322 is configured to move the graphics in a direction opposite to a preset direction if the number of the first graphics is not less than the number of the second graphics.
[0100] By using this method, when the size of a certain graphic changes, other surrounding graphics can be adaptively adjusted according to the amount of size change, so that the graphics are neither overlapping nor adjacent, avoiding the problem of low design efficiency caused by manual adjustment.
[0101] An embodiment of the present application further provides an electronic device, which includes a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute any of the above-mentioned graphic position adjustment methods.
[0102] An embodiment of the present application further provides a readable storage medium, wherein the readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, any of the above-mentioned graphic position adjustment methods is executed.
[0103] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0104] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0105] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0106] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0107] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0108] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for adjusting a graphic position, characterized in that: The method comprises: When the size of the current graphic changes, the size change amount of the current graphic is obtained, and the size change amount is expressed as: offsetValue = size after modification - size before modification; Obtain the boundary distance between the boundary graphic and the space boundary. If the graphics corresponding to the cabinet are arranged in an L-shape or a U-shape, there is no relative displacement between the two adjacent graphics at the corner connection, and the distance from the outermost graphic closest to the boundary to the space boundary is obtained as the boundary distance, which includes the left boundary distance and the right boundary distance. Compare the size change with the boundary distance to adjust the position of the graphic according to the comparison result. Specifically, if the graphics corresponding to the cabinet are arranged in a straight line, if the size change is positive, compare the size change with the first boundary distance on one side of the preset direction; If the first boundary distance is not less than the size change amount, all graphics that need to be moved are moved to one side of the preset direction until they are adjacent to the current graphic and do not overlap; If the first boundary distance is less than the size change, compare the size change with the second boundary distance on the opposite side of the preset direction. Specifically, if the second boundary distance is not less than the size change, move all the graphics that need to be moved to the opposite side of the preset direction until they are adjacent to the current graphic. The comparing the size change amount with the boundary distance to adjust the position of the graphic according to the comparison result includes: if the size change amount is negative, moving all graphics that need to be moved in a preset direction to be adjacent to the current graphic; For an L-shaped arrangement or a U-shaped arrangement, when the distance between any side and the space boundary is 0 or the distance between both sides is not 0, the movement judgment method is the same as the judgment method when the graphics corresponding to the cabinet are arranged in a straight line.
2. The method for adjusting the position of a graphic according to claim 1, characterized in that: The comparing the size change amount with the boundary distance to adjust the position of the graphic according to the comparison result includes: If both the first boundary distance and the second boundary distance are greater than the size change, obtaining the number of first graphics that need to be moved in a preset direction and the number of second graphics that need to be moved in a direction opposite to the preset direction; If the number of the first graphics is not less than the number of the second graphics, the graphics in the opposite direction of the preset direction are moved.
3. A graphic position adjustment device, characterized in that: The device comprises: The size change acquisition module is used to acquire the size change of the current graphic when the size of the current graphic changes; A distance acquisition module is used to acquire the boundary distance between the boundary graphic and the space boundary; A comparison module is used to compare the size change with the boundary distance to adjust the position of the graphic according to the comparison result. The graphics corresponding to the cabinet are arranged in a straight line. The comparison module includes: A first comparison module, configured to compare the size change with a first boundary distance on one side of a preset direction if the size change is positive; A moving module, configured to move all graphics to be moved to one side of a preset direction until they are adjacent to the current graphic if the first boundary distance is not less than the size change amount; The second comparison module is configured to compare the size change with a second boundary distance on the opposite side of the preset direction if the first boundary distance is smaller than the size change.
4. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the graphic position adjustment method according to any one of claims 1 to 2.
5. A readable storage medium, characterized in that: The readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, the graphic position adjustment method according to any one of claims 1 to 2 is executed.