MANIPULATING GRAPHICAL OBJECTS
In one example, a method for a method for rendering graphical information on a display includes storing data for rendering a graphical object in an intermediate data structure including multiple information items defining attributes of the graphical object. The method also includes rendering the attributes of the graphical object based on the information items. The method also includes displaying the graphical object on a display based on the rendered attributes. The method also includes receiving user input that causes at least some of the information items to change. The method also includes, based on the changed information items, re-rendering some, but not all, of the attributes of the graphical object.
This patent application is a continuation of U.S. patent application Ser. No. 14/664,809, filed Mar. 21, 2015, which is a continuation of U.S. patent application Ser. No. 12/896,664, filed Oct. 1, 2010. Both of the foregoing applications are incorporated herein by reference.
BACKGROUND Field of the InventionThe present invention relates generally to graphical objects. More particularly, some example embodiments relate to rendering and manipulating complex graphical objects.
Related TechnologyExisting techniques for drawing, displaying, and/or manipulating graphical objects in web applications using native browser functionality are slow. This is seen when objects move on/across the screen or when users interact with graphical objects.
Typically, the entire working area that the user sees is redrawn every time an object moves. This is due to the existing implementations of native browser drawing capabilities. In the case of the HTML5 canvas element, the entire drawing area is a single raster device, and must be redrawn from scratch on most changes. In the case of SVG (scalable vector graphics), even the simplest changes to the markup representing the final object display can require the browser to “re-flow” and re-render the entire scene.
Hence the responsiveness of graphical applications delivered in a browser is often poor, frequently resulting in a visual latency or lag that causes a poor user experience. Alternatively, instead of giving users a real-time dynamic view of what changes will look like, many web based applications only provide a limited representation of tentative changes being made before the change is committed. For example, when a user clicks on an object and drags it with a mouse to move it, many applications will only show an outline or shadow of the object move along with the user's mouse cursor; it is only when the user releases the click (to confirm the move) that the object—and the page—is redrawn with the object in its new location and the rest of the page updated accordingly.
As a result, many “rich internet applications” delivered over the web make use of non-native browser technologies, such as browser plugins, e.g., Flash, Java or Silverlight, that make use of precompiled code running on virtual machines to allow rendering of and interaction with graphic elements. With plugins such as Flash, however, each time a change is made in code, the code must be re-compiled into a .swf (“Small Web Format” or “ShockWave Flash”) file and uploaded to the server. The end-user must consequently re-download the entire application binary. These technologies also limit the deployment of the application to those platforms that support the required plugin.
Building on a proprietary plugin like Flash also restricts applications from using standard form controls that are common in web sites and web applications. This makes the whole user experience of Flash applications significantly different from that of other web applications, which can cause frustration and confusion for users.
Allowing other developers to create extensions for an application is difficult with Flash and similar technologies due to their closed, compiled nature. In addition, generating graphical output that is consistent across different browsers or different file types is difficult. For example, different browsers use different rendering techniques for graphics—Internet Explorer uses VML, whereas many other browsers support Canvas—so that building applications that present a consistent output across different browsers is difficult. The main challenge is that different output devices, such as different browsers, file formats, or image generation libraries, implement different subsets of common rendering functionality. Furthermore, outputting what the user sees in the browser to different file formats (such as vector PDF, for printing, or image formats such as PNG) in a consistent manner so that what is seen in the browser is the same as the PDF/PNG is also challenging.
The subject matter claimed herein is not limited to embodiments that solve any disadvantages or that operate only in environments such as those described above. Rather, this background is only provided to illustrate one exemplary technology area where some embodiments described herein may be practiced
BRIEF SUMMARY OF SOME EXAMPLE EMBODIMENTSIn general, some embodiments disclosed herein relate to rendering and manipulating graphical objects.
In one example embodiment, a method for rendering graphical objects on a display includes rendering each of a plurality of graphical objects within respective layers. The plurality of graphical objects includes first, second and third graphical objects. The second graphical object is directly linked to the first graphical object and the third graphical object is directly linked to the second graphical object. The method additionally includes receiving user input manipulating one of the graphical objects in a manner that affects a directly linked graphical object. The method additionally includes re-rendering the manipulated graphical object and the directly linked graphical object without re-rendering graphical objects that are not directly linked to the manipulated graphical object.
In another example embodiment, a method of representing and rendering graphical objects includes separating information for rendering a graphical object into a plurality of sets defining attributes of the graphical object, the graphical object configured to render within a local graphics context of a layer. The method additionally includes creating the layer at a particular position of a viewport having a global graphics context defining a global coordinate frame. The method additionally includes translating and scaling the local graphics context to match the global graphics context. The method additionally includes rendering the graphical object at the particular position of the viewport within the layer using the global coordinate frame.
In yet another example embodiment, a method of demonstrating the operation of an application includes receiving, from one or more input devices connected to a computing device, user input effective to initiate a demonstration of an application, the application being executable by the computing device. The method additionally includes initiating the demonstrating by generating input for the application based on simulated user actions. The method additionally includes executing the application using the generated input. Executing the application using the generated input includes creating and rendering a plurality of graphical objects on a display connected to the computing device in response to first generated input. Executing the application using the generated input additionally includes, in response to second generated input effective to manipulate one or more of the plurality of graphical objects, updating and re-rendering on the display one or more of the plurality of graphical objects affected by the manipulation substantially in real time as the manipulation occurs while continuously displaying all of the plurality of graphical objects unaffected by the manipulation.
In yet another example embodiment, a method for rendering graphical objects on a display includes receiving user input causing a first graphical object to be drawn on a display, the first graphical object being rendered in a first layer. The method additionally includes receiving user input causing a second graphical object to be drawn on the display, the second graphical object being rendered in a second layer different from the first layer, the first and second graphical objects being rendered simultaneously visible on the display. The method additionally includes receiving user input causing a connector to be drawn on the display, the connector connecting the first and second graphical objects and being rendered in a third layer different from the first and second layers. The method additionally includes receiving user input manipulating the first graphical object connected by the connector to the second graphical object. The method additionally includes continuously updating and rendering the first graphical object, second graphical object and connector in response to and during the manipulating substantially in real time. During the continuous updating and rendering, the first graphical object in the first layer is redrawn and the connector in the third layer is redrawn without redrawing the second graphical object in the second layer.
In yet another example embodiment, a method for rendering graphical information on a display includes storing data for rendering a graphical object in an intermediate data structure including a plurality of information items defining attributes of the graphical object. The method additionally includes rendering the attributes of the graphical object based on the plurality of information items. The method additionally includes displaying the graphical object on a display based on the rendered attributes. The method additionally includes receiving user input that causes at least some of the plurality of information items to change. The method additionally includes re-rendering some, but not all, of the attributes of the graphical object based on the changed information items.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The features and advantages of the invention may be realized and obtained by means of the instruments and combinations particularly pointed out in the appended claims. These and other features of the present invention will become more fully apparent from the following description and appended claims, or may be learned by the practice of the invention as set forth hereinafter.
To further clarify the above and other advantages and features of the present invention, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. It is appreciated that these drawings depict only typical embodiments of the invention and are therefore not to be considered limiting of its scope. The invention will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
Embodiments of the invention generally relate to rendering and manipulating graphical objects (hereinafter “objects”) in a web browser or other application. As used herein, “manipulating” an object includes moving, resizing, or changing some other attribute of the object. In some embodiments, each object is rendered in a different layer than other objects. Accordingly, when an object is manipulated, some embodiments permit the manipulated object to be re-rendered in its respective layer without re-rendering other unaffected objects in different layers.
Alternately or additionally, information to render an object is separated into different sets defining different attributes of the object. When one attribute of the object is changed, the changed attribute can be re-rendered without re-rendering unaffected attributes of the object.
Reference will now be made to the drawings to describe various aspects of example embodiments of the invention. It is to be understood that the drawings are diagrammatic and schematic representations of such example embodiments, and are not limiting of the present invention, nor are they necessarily drawn to scale.
I. First Example EmbodimentWith reference first to
Additionally, the first object 101 is a process block. The second object 102 is a connector. The third object 103 is a decision block. More generally, the objects 101-103 can be any object.
Some embodiments may alternately or additionally include various other types of objects that are not shown in
Alternately or additionally, some embodiments may include images and/or other objects selected by a user or associated with a user or group of users. By way of example and not limitation, a user may select images or other objects stored locally on a client device, and/or images or other objects stored or available elsewhere (e.g., on a network, including but not limited to the public Internet), and organize these user-selected objects in a library or libraries. According to some embodiments, these objects may be selected by “dragging and dropping” such objects to the viewport 100, from any one of a variety of source locations such as, for example, a client desktop or local file system, or from a web page displayed on the client device. Similarly, objects and/or libraries may be selected by or associated with a group, such as a work group (for example, company logos, images, templates, etc.), a group of friends or inferred friends, a group with common or similar interests (known or inferred), according to any method now known or later developed. In these and other embodiments, the organization of objects into libraries may serve to help users more easily locate desired objects. In other embodiments, the objects are not organized into libraries.
One or more of the libraries 201-216 may be provided in a toolbar in the same UI as the UI viewport 100 of
Returning to
The UI viewport 100 is displayed on a display of a client device. The client device has one or more input devices, such as a keyboard, mouse, or the like, and/or the display may be a touchscreen display capable of receiving user input. In the illustrated embodiment, the client device on which the UI viewport 100 is displayed includes a mouse represented by a mouse cursor 107 in the UI viewport 100. The mouse or other input device permits a user to manipulate the objects 101-103 in the present example. Briefly, for instance, the user may operate the mouse or use a touchscreen interface to move or resize one of the objects 101-103, connect two objects together, or change some other attribute of an object.
According to some embodiments, rendering objects 101-103 within different layers 104-106 minimizes processing overhead for re-rendering the UI viewport 100 when one of the objects 101-103 is manipulated such as when one of the objects 101-103 is moved. In this and other embodiments, the moved object and one or more objects directly linked to the moved object are re-rendered in their respective layers while other objects not directly linked to the moved object are not re-rendered.
For instance, when the first object 101 is moved, the first object 101 is continuously re-rendered in the first layer 104. Because the second object 102 is directly linked to the first object 101, the second object 102 is affected in some embodiments by the movement of the first object 101. Accordingly, the second object 102 is continuously re-rendered in the second layer 105 while the first object 101 is being moved in this example. Moreover, because the third object 103 is not directly linked to the first object 101, the third object 103 is not re-rendered.
II. Hardware ConfigurationTurning next to
The client device 300 typically has resident thereon a suitable operating system (“OS”) such as a Microsoft Windows OS (e.g., 7, Vista, XP), a MAC OS, a Unix OS, a Linux OS, a mobile OS (e.g. iPhone OS, Windows Mobile, Symbian, Android OS, Blackberry OS, etc.) or other suitable OS. Those skilled in the art will appreciate that the embodiments disclosed herein may alternately be implemented on platforms and operating systems other than those explicitly mentioned herein.
In some embodiments, the client device 300 executes a web browser to download and interact with web pages hosted by the server 304. The web browser may be loaded to RAM 312 or stored in some other computer storage and executed by the CPU 306, for instance. One or more of the web pages provided by the server 304 to the client device 300 may include a runtime script. The runtime script is JavaScript in some examples. Alternately v or additionally, the runtime script includes instructions executable by the client device 300 to perform one or more of the methods described herein.
III. Object RepresentationAs described above with respect to
In this and other examples, each object to be rendered is represented in an intermediate data structure describing how the object is to be rendered. For instance,
In more detail, the first information set 402 defines one or more of a color 406 of a line making up the outline of the object, a weight 408 of the line making up the outline, a gradient 410 (e.g., solid, dashed, dotted) of the line making up the outline, a shape 412 of an area bounded by the outline, a fill color 414 of the area bounded by the outline, a fill gradient 416 of the fill color and a transparency level 418 of the fill color.
The shape 412 information may include one or more commands defining the shape of the object's outline. “Move,” “line,” “quadratic Bezier curve,” and “close shape” commands are examples of commands that can be included in the shape 412 information to define the shape of the object's outline.
The first information set 402 may omit some or all of the foregoing rendering information depending on the object represented by the intermediate data structure 400. For instance, fill color 414, fill gradient 416 and transparency 418 may be omitted from the first information set 402 for an object such as the connector 102 of
The second information set 404 defines one or more of a bounding box 420 in relation to the object outline and within which rich text is rendered and a canonical representation 422 of the rich text. In some embodiments, the canonical representation 422 of the rich text is an extensible markup language (“XML”) representation of the rich text specifying one or more of color, font, bold, italics, underline, size or other aspects of the rich text. In these and certain other embodiments, the XML somewhat resembles hypertext markup language (“HTML”) and can be derived from any valid HTML. Text is edited by translating the canonical representation into rich text such as HTML, receiving user input effective to edit the text through a browser- or other application-based rich-text editor, and then translating the result back into the canonical representation.
Decomposing complex rendering information for each object in a file into the limited information included in the intermediate data structure 400 of
Alternately or additionally, decomposing the rendering information into limited information included in an intermediate data structure can result in less processing and faster rendering of an object when attributes of the object are changed. For example, when only an outline of an object is changed, the outline can be re-rendered without re-rendering text of the object. As another example, when only text of an object is changed, the text can be re-rendered without re-rendering the outline of the object. By re-rendering only those attributes of an object that are affected by changes, it takes relatively less processing power and time to re-render an object compared to re-rendering every attribute of the object whether or not every attribute is affected by a given change.
The information sets 402, 404 and rendering information 406, 408, 410, 412, 414, 416, 418, 420, 422 are provided by way of example only and should not be construed to limit the invention. For instance, intermediate data structure 400 according to embodiments of the invention may include more than two information sets 402, 404 and/or different information sets than information sets 402, 404, such as (by way of example and not limitation) an information set generally defining semantic attributes of the object, or other information sets. Similarly, rendering information according to various embodiments of the invention may include different and/or additional rendering information, such as (by way of example and not limitation) rendering information defining whether an object represents an interface, rendering information defining whether an object is to be included in one but not both of a displayed and printed version of a document, rendering information defining a number of drop-down items associated with an object, rendering information defining a uniform resource identifier (“URI”), or other rendering information.
IV. User InterfaceOne or more of the object libraries 201-216 of
According to some embodiments, another toolbar 508 is provided above the UI viewport 502. Optionally, the buttons available in the toolbar 508 vary depending on whether an object is selected and/or the type of the object. For instance, in the example of
In the illustrated embodiment of
Alternately, in the example of
Alternately, in the example of
Referring to
In some embodiments, objects, such as the third object 103, are rendered on the UI 500 with reference to the corresponding layer, such as the third layer 106. For instance, the size and position of the layer may correspond to the size and position of the object. In these and other embodiments, for example, as a user manipulates the third object 103 the third layer 106 may also change accordingly. In this regard, the layer containing the object may include one or more controls that can be used to manipulate the layer and the object. Further, according to some embodiments, the controls are positioned in certain areas of the layer and may be highlighted in response to certain user input. For instance, the controls may be highlighted in response to a user selecting the object, in response to the mouse cursor 107 hovering over an area corresponding to the control, or both.
In the illustrated embodiment of
The resizing controls 526 can be used to resize the third layer 106 and the third object 103 by, e.g., a user moving the mouse cursor 107 to one of the resizing controls 526, depressing the left mouse button while the mouse cursor 107 is hovering over the resizing control 526, dragging the mouse cursor 107 and resizing control 526 in a direction effective to resize the third layer 106, and releasing the left mouse button when the third layer 106 is a desired size. For example, clicking and dragging resizing control 526A to the left and/or upwards increases the size of the third layer 106 and third object 103, while clicking and dragging resizing control 526A to the right and/or downwards decreases the size of the third layer 106 and third object 103.
The action of a user depressing a mouse button, dragging the mouse cursor 107 to a different location and releasing the mouse button may be referred to herein as “clicking and dragging.” Depending on the input device involved and/or the configuration of the input device, other actions of a user may similarly result in a click and drag action.
The connection controls 528 can be used to attach a connector to the third layer 106, and thus the third object 103 by, e.g., a user positioning the mouse cursor 107 over one of the connection controls 528, and clicking and dragging the mouse cursor 107 to a terminal location where the resulting connector terminates. In some embodiments, the resulting connector is rendered in the UI 500 after the mouse cursor 107 has been dragged a predetermined distance from the connection control 528, the resulting connector beginning at the connection control 528 and terminating at the mouse cursor 107. Alternately or additionally, until the left mouse button is released and while the user is dragging the mouse cursor 107 about the UI 500, the resulting connector is continuously re-rendered in the UI 500 and terminates at a location near the moving mouse cursor 107 each time it is re-rendered.
In the example of
In
The display of the resizing controls 530 and connection controls 532 in the UI viewport 502 serves to highlight some of the controls available for the first layer 104 and first object 101. Alternately or additionally, a specific control that can be activated in a particular area may be highlighted by altering the appearance of the mouse cursor 107 when the mouse cursor 107 is hovering over the particular area to thereby indicate that the corresponding control can be activated while the mouse cursor 107 is in the particular area.
For instance, in response to the mouse cursor 107 hovering over an area of the first layer 104 near one of the resizing controls 530, the mouse cursor 107 may be altered to appear as a resizing cursor 107A that visually indicates to a user that the first layer 104 and first object 101 can be resized by clicking and dragging anywhere in the area in which the mouse cursor 107 appears as a resizing cursor 107A.
Alternately or additionally, in response to the mouse cursor 107 hovering over an area of the first layer 104 near one of the connection controls 532, the mouse cursor 107 may be altered to appear as a connection cursor 107B that visually indicates to a user that a connector can be connected to and/or initiated from the first layer 104 and first object 101 by clicking anywhere in the area in which the mouse cursor 107 appears as the connection cursor 107B. In response to dragging the connection cursor 107B—which may continue to appear as the connection cursor 107B or return to appear as the mouse cursor 107 during the drag—to a terminal location, a connector may be created that is connected to the first layer 104 and first object 101 at a connection point in the area where the click occurred and that terminates at the terminal location.
It should be noted that, although connection controls 528 are shown as discrete points on the corners of the third layer 106 and third object 103 in
Alternately or additionally, in response to the mouse cursor 107 hovering over an area of the first layer 104 that is more than a predetermined distance from the nearest resizing control 530, connection control 532, or text field of the first object 101, the mouse cursor 107 may be altered to appear as a translation cursor 107C. The translation cursor 107C visually indicates to a user that the first layer 104 and first object 101 can be moved to a different location in the UI viewport 502 by clicking anywhere in the area in which the mouse cursor 107 appears as the translation cursor 107C. In response to dragging the translation cursor 107C—which may continue to appear as the translation cursor 107C or return to appear as the mouse cursor 107 during the drag—the first layer 104 and first object 101 are moved about the UI viewport 502 wherever the cursor 107C or 107 is dragged.
While
Optionally, first predetermined text 536 is automatically populated in the connector 534 based on the object to which the connector 534 is connected and/or whether any other connectors 534 have already been created that are connected to the third object 103. In this case, whereas the third object 103 is a decision block in a flowchart and decision blocks are often followed by a “Yes” path and a “No” path, the first connector 534 may be automatically populated with the text “Yes” while the next connector that is connected to the third object 103 may be automatically populated with the text “No.” Alternately, the first connector 534 can be automatically populated with the text “No” while the next connector can be automatically populated with the text “Yes.” Alternately or additionally, a user can configure connectors that are connected to decision blocks (or other objects) to automatically populate with some other predetermined text besides “Yes” or “No.”
Alternately or additionally, in response to the user releasing the mouse cursor 107 at a desired terminal location for terminating the connector 534, a set 538 of objects are presented in the UI viewport 502 to the user near the terminal location or elsewhere in the UI viewport 502. In certain embodiments, the set 538 of objects is presented to the user in a new pop-up or context menu. The set 538 of objects may include objects that are likely to be added to the document and connected to the connector 534 based on the objects 101-103 and/or 534 already included in the document, the type of diagram or document being drawn, user history or preferences, settings, object libraries that are open or have been recently or frequently used, etc. For instance, in the example illustrated by
After the set 538 of objects is presented in the UI viewport 502, the user can select a particular object from the set 538. In response to the user selection, the selected object is created, connected to the connector 534 near the terminal location and rendered in the UI viewport 502. For instance, the object presented at the upper left corner of the set 538 of objects represents a process block. If the user selects the representation of the process block, the process block 540 of
Vertical alignment hint lines are alternately or additionally displayed when the decision block 542 is being moved above or below the first object 101 and the vertical axis 544 of the decision block 542 comes within a predetermined distance from the vertical axis 548 of the first object 101. More generally, vertical, horizontal, and/or other alignment hint lines are displayed in some examples when a first object is being moved about and a vertical, horizontal, or other axis of the first objects comes within a predetermined distance of a corresponding vertical, horizontal, or other axis of a second object.
In the illustrated embodiment of
Optionally, and as seen in
According to certain embodiments, when the connector 552 is first created, it has two control points 560, 562, one each at the beginning and end of the connector 552. In response to the user selecting a line editing mode, a control bar 564, 566 passing through each control point 560, 562 is displayed in the UI viewport 502. The angle of each control bar 564, 566 in some embodiments generally determines the angle of the connector 552 as it approaches the corresponding control point 560, 562. The length of each control bar 564, 566 may generally determine the amount of length of the connector 552 that approaches the corresponding control point 560, 562 at about the determined angle.
By clicking on and rotating the control bar 564, 566 about the corresponding control point 560, 566, the user can change the angle of the control bar 564, 566, and thus the angle of the connector 552 as it approaches the corresponding control point 560, 562. Alternately or additionally, by clicking on and resizing the ends of the control bar 564, 566, the user can change the amount of length of the connector 552 that approaches the corresponding control point 560, 562 at about the determined angle. For instance,
Alternately or additionally, the user can add new control points, such as the user-added control point 568, by, e.g., clicking at a desired location on the connector 552 for the control point 568. The user-added control point 568 may generally define a point in the UI viewport 502 through which the connector 552 passes. Optionally, the user-added control point 568 can be repositioned by clicking and dragging on the user-added control point 568. Additionally, a control bar 570 associated with the user-added control point 568 may provide the same functions as the control bars 564, 566 associated with control points 560, 562.
In some examples, a jump feature such as the jump feature 574 is added to a particular connector such as the second object 102 when a different connector such as the connector 572 is created that crosses over the particular connector or is repositioned such that it crosses over the particular connector. Thus, even though none of the attributes of the particular connector have been changed by the creation or repositioning of the different connector, the creation or repositioning of the different connector may nevertheless affect how the final rendered existing connector appears. Accordingly, some embodiments track which connectors have changed since a previous rendering and additionally run a preprocessing routine that identifies any other connectors that may have been affected by the changes.
The preprocessing routine may include one or more tests to determine whether two connectors actually intersect such that a jump feature should be added to one or the other. For instance, the preprocessing routine can include a computationally heavy connector intersection test to determine whether two connectors actually intersect. Alternately or additionally, the preprocessing routine includes a computationally simple axis-aligned bounding box (“AABB”) test to determine if two connectors potentially overlap, followed by the actual connector intersection test on positives of the AABB test. Alternately or additionally, the AABB test can be followed up with a second AABB test in a rotated coordinate frame to eliminate false positives from the first AABB test, followed by the actual connector intersection test on only the positives from the second AABB test.
All connectors that are found to overlap may be marked as changed and, at render time, some amount of reprocessing is done on the marked connectors to determine if an update of the connector is needed. While the preprocessing routine has been described in the context of overlapping connectors, the preprocessing routine is more generally applicable to any set of objects that potentially overlap one another.
Connection controls have previously been disclosed with respect to, e.g.,
For example,
One such additional connection control 580 located on a lower edge of the object 576 is illustrated in
According to some embodiments, text included in an object, such as text 586 included in connector 572, can be moved along the object and continuously updated/rendered in real time as the text is moved around. For example, as shown in
While
As depicted in
Various embodiments of the invention have been described in relation to actions performed by a user with an input device such as a mouse. Alternately or additionally, the embodiments disclosed herein can be described in relation to the user input received by the client device via any input device, such as a mouse or a touchscreen interface (including those with multi-touch capability) or the like. Generally, the user input includes data and/or signals indicative of the actions performed by the user. Those skilled in the art will appreciate, with the benefit of the present disclosure, the relation between the actions performed by a user with an input device and the user input received by the client device.
V. Example Methods of OperationTurning next to
The method 600 begins by rendering 602 a plurality of objects 101-103 within respective layers 104-105. The second object 102 is directly linked to the first object 101 and the third object 103 is directly linked to the second object 102. According to some embodiments, each of objects 101-103 is rendered 602 within respective layers 104-105 based on corresponding intermediate data structures 400 (
The method 600 continues by receiving 604 user input manipulating one of the objects 101-103 in a manner that affects a directly linked object 101-103. In the present example, the user input is effective to move the first object 101 from the position shown in
The method 600 proceeds by re-rendering 606 the manipulated first object 101 and the second object 102 that is directly linked to the first object 101 without re-rendering the third object 103 that is not directly linked to the first object 101. In some embodiments, the manipulated first object 101 and directly linked second object 102 are re-rendered substantially in real time while the first object 101 is being manipulated.
Although not shown in
As another example, each of the first layer 104 and third layer 106 may include connection points corresponding to connection controls 532, 528 of the first and third layer 104, 106. Further, the first and third objects 101, 103 may be created prior to creating the second object 102, analogous to the manner in which the first object 101 and decision block 542 of
Alternately or additionally, and continuing with the example of the previous paragraph, the method 600 may further include, prior to receiving user input terminating the second object 102, providing a visual indication, such as the indicator 558 of
As another example, the method 600 may include acts described in relation to
Alternately or additionally, instructions that are executable by a computing device, such as the client device 300 of
At 652, user input is receiving causing a first object to be rendered within a first layer and displayed on a display.
At 654, user input is received causing a second object to be rendered within a second layer and displayed on the display. In some embodiments, both of the first and second objects are simultaneously visible to a user after both objects have been rendered.
At 656, user input is received causing a connector to be rendered within a third layer and displayed on the display, the connector connecting the first and second objects. Note that in some embodiments, the connector may be a line that corresponds to a line drawn on the display between the first and second objects, but that in other embodiments of the invention, the connector may be of another nature and/or may take other shapes or forms.
At 658, user input is received manipulating the first object connected by the connector to the second object.
At 660, the first object, second object and connector are continuously updated and displayed substantially in real time during the manipulating of the first object. In some embodiments, act 660 includes continuously re-rendering the first object within the first layer v and the third object within the third layer without re-rendering the second object within the <<second layer.
The method 700 begins by separating 702 information for rendering an object into a plurality of sets defining attributes of the object, such as the information sets 402, 404 of
At 704, the layer is created at a particular position of the UI viewport. The particular position of the UI viewport may correspond to a position of the UI viewport to where the user drags an object from a toolbar, such as the toolbar 504 of
At 706, the graphics context of the layer is translated and scaled to match the graphics context of the UI viewport.
At 708, the object is rendered at the particular position of the UI viewport within the layer using the global coordinate frame. Rendering 708 the object within the layer may include separately rendering the attributes of the object defined by the plurality of sets of information.
Although not shown in
Alternately or additionally, instructions that are executable by a computing device, such as the client device 300 of
At 752, the canonical representation of the text is translated to rich text.
At 754, user input effective to edit the rich text is received through a rich-text editor. The rich-text editor is a web browser-based editor according to some embodiments.
At 756, the edited rich text is translated into a canonical representation of the edited rich text.
In some embodiments, the canonical representation of the text is an XML representation of the text. Alternately or additionally, the rich text is an HTML representation of the text.
The method 800 begins by storing 802 data for rendering a graphical object in an intermediate data structure including a plurality of information items defining attributes of the graphical object. One example of an intermediate data structure is provided in
At 804, the attributes of the graphical object are rendered based on the information items.
At 806, the graphical object is displayed on a display based on the rendered attributes.
At 808, user input is received that causes at least some of the information items to change.
At 810, based on the changed information items, some, but not all, of the attributes of the graphical object are re-rendered. The act 810 may include, for example, determining whether each of the attributes of the graphical object is affected by the changed information items and re-rendering only those attributes that are determined to be affected by the changed information items. Alternately or additionally, act 810 may include re-rending an outline of the graphical object without re-rendering a rich text are of the graphical object. Alternately or additionally, act 810 may include re-rendering a rich text area of the graphical object without re-rendering an outline of the graphical object.
Alternately or additionally, instructions that are executable by a computing device, such as the client device 300 of
In view of the disclosure provided above, those skilled in the art will appreciate that some embodiments disclosed herein enable objects to be re-rendered virtually instantly in response to user commands without the processing delays associated with re-rendering objects in some applications. The ability to re-render objects virtually instantly can be leveraged to enable live “demonstrations” of products that implement some of the methods disclosed herein.
In this regard, it is noted that many websites and applications offer video demonstrations of how a particular application or service works. Many of these demonstrations include pre-recorded video that is a video screen capture showing the application interface, how the application responds, and how to use the application to accomplish certain desired actions or results.
According to some embodiments, however, an actual live demonstration can be provided on a client device for a user to see an application in action. In other words, rather than the demonstration being a mere video screen capture, the demonstration is an actual execution of the application using simulated user actions to show the application in action.
At 902, user input effective to initiate the demonstration of the application is received, e.g., by the client device. At 904, the demonstration is initiated by generating input for the application based on simulated user actions.
The generated input is provided to the application which is executed 906 using the generated input to provide a demonstration of the application in action. In some embodiments, executing 906 the application using the generated input includes creating and rendering a plurality of graphical objects on a display connected to the computing device in response to first generated input, and in response to second generated input effective to manipulate one or more of the plurality of graphical objects, updating and re-rendering on the display one or more of the plurality of graphical objects affected by the manipulation substantially in real time as the manipulation occurs.
Although not shown in
The user actions simulated in the method 900 of
In some embodiments, simulating a user action includes displaying output corresponding to the user action on a display. For example if the user action being simulated is a mouse click, the appearance of a mouse cursor displayed on the display may change to indicate that a mouse click occurred. Alternately or additionally, if the user action being simulated is a mouse movement, the mouse cursor displayed on the display may move across the display. Similarly, if the user action being simulated is a finger swipe, an indication of a swiping action may appear on the display. Alternately or additionally, if the user action being simulated is typing on a keyboard, text may appear on the display.
Accordingly, the user viewing the demonstration experiences an actual execution of the application where all the steps that are required to perform certain actions in the application necessarily happen right in front of the user since the application is actually being executed. In contrast, a video representation of an execution of an application may be edited and/or may omit certain steps such that it does not accurately represent the application.
Additionally, when an application is updated, a video demonstration of an earlier version of the application may become outdated and should also be updated to accurately reflect the newer version of the application. According to embodiments of the live demonstration disclosed herein, however, there is no video demonstration to update. Instead, when the application is updated, the live demonstration is also necessarily updated since the live demonstration includes execution of the application.
Further, from the point of view of a user viewing a video demonstration, the video demonstration may show a user how to use an application to create application output, such as a document, but the video demonstration itself does not produce the application output. For instance, while the video demonstration may show the user how to use an application to produce or edit a document, the video demonstration does not create an actual document that can be edited or otherwise used by the user. In contrast, because embodiments of the live demonstration described herein actually execute the application during the demonstration, any document or object created or edited during the demonstration becomes available to be edited or used by the user when the demonstration terminates.
Returning to
Alternately or additionally, some embodiments of a UI presented to the user in response to execution of the application present different object libraries that can be collapsed and/or hidden by the user, as discussed above with respect to
Those skilled in the art will appreciate, with the benefit of the present disclosure, that the invention disclosed herein can be implemented in many different scenarios. For instance, an example website may allow users to drag and drop images of products into a electronic collage or other document. The products may be, for instance, apparel and accessories or other products. The principals disclosed herein can easily be applied to improve the rendering speed of such a website when a user drags new images into a collage, makes changes to existing images already in the collage, connects images together, views a demonstration of how the website works, or the like or any combination thereof. The foregoing is only one specific example of a specific application of some of the principles of the present invention and those skilled in the art will appreciate how to apply the principals of the present invention in other situations.
VI. General Aspects of Example EmbodimentsThose skilled in the art will appreciate, with the benefit of the present disclosure, that the embodiments described herein can be adapted for alternative implementations beyond those explicitly disclosed herein. For example, while some embodiments have been described as methods implemented by instructions of a runtime script provided in a web page executed in a web browser, the methods or variations thereof can alternately be implemented in a proprietary plugin to obtain similar benefits to those described herein.
As another example, some of the methods described herein are optimized for a raster-based canvas implementation. However, the methods or variations thereof can be adapted for tag-based vector representations in a web browser, such as the Scalable Vector Graphics (“SVG”) representation, through careful use of container elements, for instance.
The embodiments described herein may include the use of a special purpose or general-purpose computer including various computer hardware or software modules, as discussed in greater detail below.
Embodiments within the scope of the present invention also include computer-readable media for carrying or having computer-executable instructions or data structures stored thereon. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media include physical computer readable storage media such as RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other physical medium which can be used to carry or store desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or a combination of hardwired or wireless) to a computer, the computer properly views the connection as a computer-readable medium. Thus, any such connection is properly termed a computer-readable medium. Combinations of the above should also be included within the scope of computer-readable media.
Computer-executable instructions include, for example, instructions and data which cause a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
As used herein, the term “module” or “component” can refer to software objects or routines that execute on the computing system. The different components, modules, engines, and services described herein may be implemented as objects or processes that execute on the computing system (e.g., as separate threads). While the system and methods described herein are preferably implemented in software, implementations in hardware or a combination of software and hardware are also possible and contemplated. In this description, a “computing entity” may be any computing system as previously defined herein, or any module or combination of modulates running on a computing system.
The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.
Claims
1. A method for rendering graphical information on a display, the method comprising:
- storing data for rendering a graphical object in an intermediate data structure including a plurality of information items defining attributes of the graphical object;
- rendering the attributes of the graphical object based on the plurality of information items;
- displaying the graphical object on a display based on the rendered attributes;
- receiving user input that causes at least some of the plurality of information items to change; and
- based on the changed information items, re-rendering some, but not all, of the attributes of the graphical object.
2. The method of claim 1, wherein re-rendering some, but not all, of the attributes of the graphical object includes:
- determining whether each of the attributes of the graphical object is affected by the changed information items; and
- re-rendering only the attributes of the graphical object determined to be affected by the changed information items.
3. The method of claim 1, wherein re-rendering some, but not all, of the attributes of the graphical object includes re-rendering an outline of the object without re-rendering a rich text area of the object.
4. The method of claim 1, wherein re-rendering some, but not all, of the attributes of the graphical object includes re-rendering a rich text area of the object without re-rendering an outline of the object.
5. The method of claim 1, further comprising displaying the graphical object on the display based on both the rendered attributes for one or more attributes that were not re-rendered and based on the re-rendered attributes for one or more attributes that were re-rendered.
6. The method of claim 1, wherein the graphical object is configured to render within a local graphics context of a layer, the method further comprising:
- creating the layer at a particular position of a viewport having a global graphics context defining a global coordinate frame;
- translating and scaling the local graphics context to match the global graphics context; and
- rendering the graphical object at the particular position of the viewport within the layer using the global coordinate frame.
7. The method of claim 1, wherein:
- the plurality of information items are separated into a plurality of sets, a graphical representation of the given graphical object determined by all of the attributes in combination;
- rendering the attributes of the graphical object based on the plurality of information items comprises rendering all of the attributes of the graphical object based on the plurality of information items; and
- receiving user input that causes at least some of the plurality of information items to change comprises receiving user input that causes at least some of the plurality of information items to change to edit the graphical representation of the graphical object.
8. A non-transitory computer-readable storage medium having instructions stored thereon that are executable by a computing device to perform operations comprising:
- storing data for rendering a graphical object in an intermediate data structure including a plurality of information items defining attributes of the graphical object;
- rendering the attributes of the graphical object based on the plurality of information items;
- displaying the graphical object on a display based on the rendered attributes;
- receiving user input that causes at least some of the plurality of information items to change; and
- based on the changed information items, re-rendering some, but not all, of the attributes of the graphical object.
9. The non-transitory computer-readable storage medium of claim 8, wherein re-rendering some, but not all, of the attributes of the graphical object includes:
- determining whether each of the attributes of the graphical object is affected by the changed information items; and
- re-rendering only the attributes of the graphical object determined to be affected by the changed information items.
10. The non-transitory computer-readable storage medium of claim 8, wherein re-rendering some, but not all, of the attributes of the graphical object includes re-rendering an outline of the object without re-rendering a rich text area of the object.
11. The non-transitory computer-readable storage medium of claim 8, wherein re-rendering some, but not all, of the attributes of the graphical object includes re-rendering a rich text area of the object without re-rendering an outline of the object.
12. The non-transitory computer-readable storage medium of claim 8, the operations further comprising displaying the graphical object on the display based on both the rendered attributes for one or more attributes that were not re-rendered and based on the re-rendered attributes for one or more attributes that were re-rendered.
13. The non-transitory computer-readable storage medium of claim 8, wherein the graphical object is configured to render within a local graphics context of a layer, the method further comprising:
- creating the layer at a particular position of a viewport having a global graphics context defining a global coordinate frame;
- translating and scaling the local graphics context to match the global graphics context; and
- rendering the graphical object at the particular position of the viewport within the layer using the global coordinate frame.
14. The non-transitory computer-readable storage medium of claim 8, wherein:
- the plurality of information items are separated into a plurality of sets, a graphical representation of the given graphical object determined by all of the attributes in combination;
- rendering the attributes of the graphical object based on the plurality of information items comprises rendering all of the attributes of the graphical object based on the plurality of information items; and
- receiving user input that causes at least some of the plurality of information items to change comprises receiving user input that causes at least some of the plurality of information items to change to edit the graphical representation of the graphical object.
15. A method for rendering graphical information on a display, the method comprising:
- storing data for rendering a given graphical object in an intermediate data structure including a plurality of information items defining attributes of the given graphical object, the plurality of information items separated into a plurality of sets, a graphical representation of the given graphical object determined by all of the attributes in combination;
- rendering all of the attributes of the given graphical object based on the plurality of information items;
- displaying the given graphical object on a display based on the rendered attributes;
- receiving user input that causes at least some of the plurality of information items to change to edit the graphical representation of the given graphical object; and
- based on the changed information items, re-rendering some, but not all, of the attributes of the given graphical object.
16. The method of claim 15, wherein re-rendering some, but not all, of the attributes of the given graphical object includes:
- determining whether each of the attributes of the given graphical object is affected by the changed information items; and
- re-rendering only the attributes of the given graphical object determined to be affected by the changed information items.
17. The method of claim 15, wherein re-rendering some, but not all, of the attributes of the given graphical object includes re-rendering an outline of the given graphical object without re-rendering a rich text area of the given graphical object.
18. The method of claim 15, wherein re-rendering some, but not all, of the attributes of the given graphical object includes re-rendering a rich text area of the given graphical object without re-rendering an outline of the given graphical object.
19. The method of claim 15, further comprising displaying the given graphical object on the display based on both the rendered attributes for one or more attributes that were not re-rendered and based on the re-rendered attributes for one or more attributes that were re-rendered.
20. The method of claim 15, wherein the given graphical object is configured to render within a local graphics context of a layer the method further comprising:
- creating the layer at a particular position of a viewport having a global graphics context defining a global coordinate frame;
- translating and scaling the local graphics context to match the global graphics context; and
- rendering the graphical object at the particular position of the viewport within the layer using the global coordinate frame.
Type: Application
Filed: Dec 18, 2017
Publication Date: Apr 19, 2018
Inventor: Benjamin N. Dilts (Spanish Fork, UT)
Application Number: 15/845,952