Flowchart control GoJS deployment tutorial

GoJS is a powerful, fast and lightweight flowchart control that can help you create flowcharts in JavaScript and HTML5 Canvas programs, and greatly simplify your JavaScript / Canvas programs.

Download the latest version of GoJS Huidu

Deployment method

If you have downloaded a copy of the GoJS library from gojs.net to use in your own application, you may have noticed a watermark in the picture. For version 1.7 and higher, you need a license key to remove the watermark from your domain. For version 1.6 or earlier, you need to obtain a generator go.js or go-debug.js library that is bound to your specific domain.

When you want to deploy an application using GoJS to your website, you need to make a request at the following location: https://www.nwoods.com/app/activate.aspx?sku=gojs.

Enter your email address and the email address of the person who purchased the GoJS license, the order number of the purchase, and the domain name of your website. Please make sure that emails from "nwoods.com" are not caught by your company or personal spam filters. If you contact us for further assistance through our website or by sending us an email, please attach the email sent to you by our web server.

Regarding the domain name, for example, if your application is located at: https://www.example.com/app/ProcessEditor.html, please enter example.com as the domain name. This process applies to internal company websites as well as public websites with hostnames and IP addresses. The protocol and port number do not matter. It will work on editors.example.com when the HTML page is served from a subdomain of the permitted domain (such as from). When "localhost" is the domain, it will also work to help you debug and test.

The GoJS library will never "call home"-unless explicitly instructed to do so, it will never initiate any network traffic, such as downloading image files.

For version 1.7 and higher

Our server will generate a GoJS license key for you in the form of JavaScript statements that you need to include in the code. It must be executed after the GoJS library file is loaded but before the first Diagram is created.

//It must be executed after loading the library and before creating the first diagram:
go.Diagram.licenseKey = "YourKeyHere";
Before version 2.0, you need to write:
//It must be after loading the library and creating the first diagram Previously executed:
go.licenseKey = "YourKeyHere";
When using the release library go.js or the debug library, this mechanism is valid go-debug.js, but only for GoJS 1.7 or higher. Please note that this assignment is a static property of the Diagram class: Diagram.licenseKey. Of course, you will need "YourKeyHere" to replace the generated license key string in the go.Diagram.licenseKey distribution statement. The license key is a long string without any embedded spaces or punctuation. You can request license keys for multiple licensed domains.
Unlike the old activation method, you no longer need to get a new domain-specific library every time go.js is updated or upgraded. After the key is in place, you can continue to use the same key when updating the GoJS patch version. For example, the license key for version 1.7.3 will apply to all versions 1.7. *. When upgrading to a new major or minor version of GoJS, remember to obtain a new license key. For example, when upgrading from version 5.3.1 to version 5.4.6, you will need a new license key.

The license key depends only on the major/minor version number and the domain from which the HTML page is served. As long as the major and minor version numbers of the library do not change, and the HTML pages are provided from the same domain, the license key will always be valid.

You can download the library with go.js from the GoJS download page, or install the library through the Node package manager (npm) or NuGet, or you can link to a CDN such as UNPKG or JSDELIVR. As was the case before version 1.7, most customers will no longer need a special version of GoJS.

For unlimited domain OEM customers

If you are an ISV and plan to distribute your application to run on many customers’ websites, please contact the sales staff for our "unlimited domain" option, and the request and use of go.js can be used on any site or platform Description of the custom library.

When using Electron or Cordova or NW to build a desktop application, or as part of a desktop application hosted in WebView, HTML pages will not be served from the web server in the domain. In this case, you will need to use the "Unlimited Domain" option to ensure that your chart does not display a watermark. You should use the domain of your organization as the requested domain name.

The process for unlimited domains is similar to that of 1.6 and earlier, but with the addition of a license key.

1.6 and above

Our automated web server will create go.js and go-debug.js custom libraries to not display watermarks on pages for that domain, and send you instructions on how to download them via email.

You can request permission for any number of domain libraries. If there is a problem, you will receive an email describing the problem from our web server.

When updating or upgrading to a new version of GoJS lower than version 1.7, you will need go.js to use the same steps to get a new domain-specific library again. (Every time we update the website, we must also generate one for the "gojs.net" domain.)

Internationalization and localization

GoJS applications can display text in non-Latin languages. For example, see "Japanese Genealogy".

The GoJS library does not manipulate currency values ​​or date/time values ​​or addresses, so there are no localization issues for these data types and values. GoJS does not contain any icons (images) or cursors of its own.

GoJS also does not display any built-in text strings, so no translation is required. Some error and warning messages may be output to the console, but these messages are only for programmer debugging, not for end users. Only when reading and writing JSON or geometric path strings or CSS colors (all have been defined to use non-localized formats), the reading and writing of values ​​is performed internally.

All user-visible text is completely under the control of the programmer. In order to achieve localization, you may find it convenient to use conversion functions in Binding. The TextEditingTool uses HTML textarea elements to realize in-situ text input and text editing, thereby utilizing the support of the browser's input method editor.

If you think you can benefit from other graphics optimizations, then you will encounter unique or large number of nodes, please contact customer service.

Guess you like

Origin blog.51cto.com/14874181/2554448