Movatterモバイル変換


[0]ホーム

URL:


CN116540996A - Canvas positioning method combining absolute positioning and stream positioning - Google Patents

Canvas positioning method combining absolute positioning and stream positioning
Download PDF

Info

Publication number
CN116540996A
CN116540996ACN202310799674.1ACN202310799674ACN116540996ACN 116540996 ACN116540996 ACN 116540996ACN 202310799674 ACN202310799674 ACN 202310799674ACN 116540996 ACN116540996 ACN 116540996A
Authority
CN
China
Prior art keywords
positioning
canvas
absolute
stream
container component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310799674.1A
Other languages
Chinese (zh)
Inventor
谢云光
戴文艳
杨斌
黄彦予
侯建洪
叶威鑫
刘骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Evecom Information Technology Development Co ltd
Original Assignee
Evecom Information Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Evecom Information Technology Development Co ltdfiledCriticalEvecom Information Technology Development Co ltd
Priority to CN202310799674.1ApriorityCriticalpatent/CN116540996A/en
Publication of CN116540996ApublicationCriticalpatent/CN116540996A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The invention relates to a canvas positioning method combining absolute positioning and stream positioning, which comprises the following steps: setting canvas of application designer as absolute positioning position: an absolute; opening up a region in canvas to be specially used as a stream layout space, and associating stream fragments through a container component built in an application designer; the specified streaming fragment is load rendered by dragging the container component to the specified region in the absolute canvas and by the container component. The invention realizes compatible use of two modes of absolute positioning and stream layout, and can effectively improve the efficiency of application design.

Description

Canvas positioning method combining absolute positioning and stream positioning
Technical Field
The invention relates to the technical field of computers, in particular to a canvas positioning method combining absolute positioning and stream positioning.
Background
The application designer is a tool for helping a user to develop applications rapidly in the Internet of things cloud platform, and equipment data visualization is achieved. When the page design of the existing application designer is carried out, the canvas is positioned by adopting the following two implementation schemes: 1. absolute positioning is realized, and a user is supported to drag a control to any position; 2. the method is a streaming layout, and supports the arrangement of user drag controls according to a streaming layout mode;
both the two modes have limitations, when absolute positioning is adopted, and when a certain component is judged to be hidden by a service, the layout is not recalculated, the blank of the hidden component area can appear, and the height of the component cannot be adaptively unfolded according to the content; the adoption of the stream layout can not support the user to randomly place the elements to any position, so that the use is complex, and the layout design capability is required.
Disclosure of Invention
Therefore, the invention aims to provide a canvas positioning method combining absolute positioning and stream positioning, which realizes compatible use of two modes of absolute positioning and stream layout and can effectively improve the efficiency of application design.
In order to achieve the above purpose, the invention adopts the following technical scheme:
a canvas positioning method combining absolute positioning and stream positioning comprises the following steps:
setting canvas of application designer as absolute positioning position: an absolute;
opening up a region in canvas to be specially used as a stream layout space, and associating stream fragments through a container component built in an application designer;
the specified streaming fragment is load rendered by dragging the container component to the specified region in the absolute canvas and by the container component.
Further, the canvas sets a parent node as position: relative, and a child node as position: absolute.
Further, the streaming layout space realizes the streaming layout of the page by adopting an element-plus layout container component, which is specifically as follows:
rendering by dividing a page line into 24 parts through < el-row >, and rendering elements in proportion by setting < el-col > span attribute under < el-row > nested < el-col >;
in a container component, setting a container component parent node to a position: the absolute is used as absolute positioning to drag any position of the container assembly, child nodes of the absolute are rendered by adopting the < el-row > assembly, and then control information in the fragment is rendered under the el-row label by using the < el-col > label through a designated fragment configuration item.
Further, all the fragment information of the current application is traversed and read and displayed to the user for selection in a tree form, the user reads the configuration information of the fragments through selecting the corresponding fragments, and the container component renders the fragment content according to the types of the fragments.
The canvas positioning system combining absolute positioning and stream positioning comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus; the memory is configured to store at least one executable instruction that causes the processor to:
setting canvas of application designer as absolute positioning position: an absolute;
opening up a region in canvas to be specially used as a stream layout space, and associating stream fragments through a container component built in an application designer;
the specified streaming fragment is load rendered by dragging the container component to the specified region in the absolute canvas and by the container component.
A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps as described above.
Compared with the prior art, the invention has the following beneficial effects:
the invention supports absolute positioning, so that a user can drag a control to any position, and meanwhile, the user can arrange the components in a stream layout mode, and when the supporting components are hidden, other components can be rearranged without blank areas, so that the construction of low-code application is clearer, more convenient and faster.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention;
FIG. 2 is a schematic diagram of a system according to an embodiment of the invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and examples.
Referring to fig. 1, the present invention provides a canvas positioning method combining absolute positioning and stream positioning, comprising the following steps:
setting canvas of application designer as absolute positioning position: an absolute;
opening up a region in canvas to be specially used as a stream layout space, and associating stream fragments through a container component built in an application designer;
the specified streaming fragment is load rendered by dragging the container component to the specified region in the absolute canvas and by the container component.
In this embodiment, the canvas sets the parent node to position: relative and the child node to position: absolute. The canvas can then be positioned in absolute terms based on the parent node.
In this embodiment, the streaming layout space implements the streaming layout of the page by using the element-plus layout container component, as follows:
rendering by dividing a page line into 24 parts through < el-row >, and rendering elements in proportion by setting < el-col > span attribute under < el-row > nested < el-col >;
in a container component, setting a container component parent node to a position: the absolute positioning of the absolute is used for dragging any position of a container component, sub-nodes of the absolute are rendered by adopting a < el-row > component, then control information in a segment is rendered under an el-row label by using a < el-col > label through a specified segment configuration item, and therefore the container can be randomly dragged based on a page, and the components in the container are displayed in a layout mode according to rules.
In this embodiment, the acquisition of the designated fragment is specifically as follows: and traversing and reading all the fragment information of the current application, displaying the fragment information to a user for selection in a tree form, reading the configuration information of the fragment by the user through selecting the corresponding fragment, and rendering the fragment content according to the type of the fragment through a container component.
Referring to fig. 2, the present invention further provides a canvas positioning system combining absolute positioning and stream positioning, comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus; the memory is configured to store at least one executable instruction that causes the processor to:
setting canvas of application designer as absolute positioning position: an absolute;
opening up a region in canvas to be specially used as a stream layout space, and associating stream fragments through a container component built in an application designer;
the specified streaming fragment is load rendered by dragging the container component to the specified region in the absolute canvas and by the container component.
Preferably, the present invention also provides a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to carry out the method steps as described above.
The foregoing description is only of the preferred embodiments of the invention, and all changes and modifications that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (6)

CN202310799674.1A2023-07-032023-07-03Canvas positioning method combining absolute positioning and stream positioningPendingCN116540996A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202310799674.1ACN116540996A (en)2023-07-032023-07-03Canvas positioning method combining absolute positioning and stream positioning

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202310799674.1ACN116540996A (en)2023-07-032023-07-03Canvas positioning method combining absolute positioning and stream positioning

Publications (1)

Publication NumberPublication Date
CN116540996Atrue CN116540996A (en)2023-08-04

Family

ID=87452780

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202310799674.1APendingCN116540996A (en)2023-07-032023-07-03Canvas positioning method combining absolute positioning and stream positioning

Country Status (1)

CountryLink
CN (1)CN116540996A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110889056A (en)*2019-12-062020-03-17北京百度网讯科技有限公司Page marking method and device
CN113076105A (en)*2021-06-082021-07-06知学云(北京)科技股份有限公司Componentized page rendering method and system for online education and memory
CN116243918A (en)*2022-12-302023-06-09山东浪潮超高清智能科技有限公司Application method of visual drag engine on conference screen

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110889056A (en)*2019-12-062020-03-17北京百度网讯科技有限公司Page marking method and device
CN113076105A (en)*2021-06-082021-07-06知学云(北京)科技股份有限公司Componentized page rendering method and system for online education and memory
CN116243918A (en)*2022-12-302023-06-09山东浪潮超高清智能科技有限公司Application method of visual drag engine on conference screen

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ZHENGTORNADO: "《div中绝对定位与相对定位和流式布局使用案例》", Retrieved from the Internet <URL:https://blog.csdn.net/zhengTornado/article/details/118936487>*
一只野生饭卡丘: "《前端——如何用绝对定位(position:absolute)完美定位布局及其注意事项》", Retrieved from the Internet <URL:https://blog.csdn.net/Searchin_R/article/details/82990936>*
程序员大阳: "《element layout 布局组件详解》", Retrieved from the Internet <URL:https://www.imooc.com/article/details/id/314762>*

Similar Documents

PublicationPublication DateTitle
CN112506509B (en) A method and related devices for implementing tree controls to support big data rendering
US7661076B2 (en)Two dimensional trees to edit graph-like diagrams
Camara et al.TerraLib: Technology in support of GIS innovation
Greilich et al.Visualizing the evolution of compound digraphs with TimeArcTrees
US20160092428A1 (en)Dynamic Presentation of Suggested Content
CN105094815B (en)Map route edit methods and device
US8872849B2 (en)Relational rendering of multi-faceted data
CN104933057A (en)Map service providing method and apparatus
CN110674227A (en)Method, system, medium and terminal for generating data visualization chart and page
JP2003527671A (en) Database for electronic design automation
US20140368511A1 (en)Interactive visualization for highlighting change in top and relative ranking
Blut et al.CityGML goes mobile: application of large 3D CityGML models on smartphones
CA2668807A1 (en)Resolving inter-page nodes and connectors in process diagrams
TW201317935A (en)System and method for analyzing measurement graphic documents
CN109086515B (en) Modeling method of primary equipment drawing information in SSD of smart substation based on SVG
CN116540996A (en)Canvas positioning method combining absolute positioning and stream positioning
Huang et al.Real-time map rendering and interaction: a stylized hierarchical symbol model
CN111127608B (en)Rendering method, rendering device and storage medium
CN114090666A (en) Slide display method, apparatus, device and storage medium
US9098516B2 (en)Multi-dimensional file system
WO2014011614A1 (en)System and method for organizing and cross-referencing data to enable dynamic display and real-time editing of data in a flexible user interface
US10529100B2 (en)Interaction-driven format for graph visualization
US9230342B1 (en)Rapid truncation of digital content
CN101751683B (en) Point-like symbols based on primitive method and exchange method of point-like map symbols based on path
US9129318B2 (en)System and method for allocating suppliers using geographical information system and supplier capability

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20230804


[8]ページ先頭

©2009-2025 Movatter.jp