This is used in LinkLabels In Front sample. The pyTemplate method makes a deep copy of a Panel, including its Bindings, to allow use of the result in templates.The GraphObject.findBindingPanel method walks up the visual tree to return the first Panel whose Panel.data is bound to data.The LinkingBaseTool.linkingCursor property modifies the cursor during linking.The p圜ursor, DraggingTool.moveCursor, and DraggingTool.nodropCursor properties modify the cursors during a drag.The CommandHandler.isZoomToFitRestoreEnabled property controls whether the CommandHandler.zoomToFit command ever restores the previous Diagram scale and position.The Overview.drawsGrid and Overview.updateDelay properties control drawing by an Overview.The layInitialization's argument function is now a passed a reference to the Diagram.The toScrollInterval property controls the milliseconds between autoscroll events.There is an example of this property in the Spot Panel section of the Panel intro page. This can be useful for creating Spot panels with multiple item arrays that align to the same main element. Spot Panels now support Panel.alignmentFocusName on the main element.new go.TextBlock("Some Text", )įor more information and examples, see the intro page on Building Objects.The first is the value for a common property, and the second is a JavaScript Object detailing properties to initialize. GraphObject constructors now accept one or two optional arguments. Animation.add, and Animation.addTemporaryPart.Diagram.addLayer, Diagram.addLayerBefore, Diagram.addLayerAfter.Diagram.addEventListener, Diagram.addChangedListener, Diagram.addModelChangedListener, Model.addChangedListener.igger - to add AnimationTriggers to a GraphObject.GraphObject.bind, which also has new functionality via method overloads.tProperties and tProperties - and their new synonyms GraphObject.attach and Diagram.attach.Several existing methods now return their instance: GoJS 2.2 also introduces several new methods or arguments to allow type-checking of settings by compilers and in text editors. In GoJS 2.2 many methods that previously returned void now return the method's instance, to promote method chaining. Method Chaining and New Ways to Build Objects The library and the extensions continue to target ES5 (ES2012), so that apps using the library can still work on IE11. Some of the samples and written documentation have been upgraded to use more modern JavaScript: classes, arrow functions, const and let, so the samples and documentation might no longer be viewable using old browsers such as Internet Explorer 11 or some old Android browsers. GoJS 2.2 also includes several performance enhancements when drawing large graphs, reduced memory usage, and more efficient replacing or merging of item Arrays. GoJS 2.2 also includes new methods for constructing objects, and enhances TypeScript typings support. GoJS 2.2 introduces a number of properties and methods for convenience and to improve customization.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |