
Wacom-digital-ink-esm.js - ECMA6 distribution This is used for CDN imports or for bundling.įor bundles additional configuration is required - there are native dependencies which should be excluded from the bundle. Wacom-digital-ink.js - UMD distribution. Rendering primitives is almost the same but data format is completely different.Ī converter from a WILL 2 to a WILL 3 data file is available if needed. There is no migration guide between WILL 2 and 3 because WILL 3 provides completely new concepts of path building and technology. WILL 3 significantly reduces the complexity of canvas interaction and works as an extension of 2D context - it just adds inking functionality. WebGL is also available for complex tools used in sketching apps. The underlying technology used for inking is 2D.
#Docsink setup file windows
WILL 3 for Windows is a pure JavaScript library based on ECMA6. Module.js is a wrapper whose purpose is to adopt asm.js and to extend its functionality with pure JavaScript code. The underlying technology used for inking is WebGL. WILL 2 for Windows is based on asm.js ( ). What are the differences between WILL 2.0 and 3.0 and do you have any guidance for migrating? Answer While the Web SDK does not have support for the WILL file format, it provides InkEncoder and InkDecoder classes that can access the protobuf data from the file.įor more information about the structure of the file see WILL File FormatĪlso we highly recommend you to check 2.2 (Stroke serialization) from the examples which can be found in the downloaded SDK. The only way to get the information from the file is to extract its contents. Under Google Chrome Start the executable with the following parameter:Ĭhrome -allow-file-access-from-files Web tutorial: handling a WILL fileĭue to the specifics of the web architecture there is no support for the WILL file contents. To do this, enter about:config in the address bar, then search for the parameter. Set the _origin_policy parameter to false.

NOTE This solution is not recommended because the modified browser settings could later become a security issue. Then access it under An alternative solution is to tell the browser to skip security restrictions. This is simplest way to start a server without any configuration. In the samples folder you can execute: python -m SimpleHTTPServer 8080 The recommended solution is to execute examples in a web environment. The browser throws a security exception because the Ink Engine loads local resources. Most probably you are trying to access tutorials from your filesystem. The operation of transforming the data from pressure/timestamp to size is irreversible and there is no way to get pressure information from the file.

In both cases the output looks the same and it contains neither pressure, nor timestamp values. Input (containing x, y and timestamp) -> is passed to the SpeedPathBuilder -> Produces output (containing X, Y and Size) -> Output is saved in.

Input (containing x, y and pressure) -> is passed to the PressurePathBuilder -> Produces output (containing X, Y and Size) -> Output is saved in. No pressure data is recorded in WILL 2.0 files. Does a WILL 2.0 data file include pressure data?
