New Tool – Calculator
A simple calculator which looks like the iphone app. You can use it at: https://www.weiy.city/functions/calculator/
A simple calculator which looks like the iphone app. You can use it at: https://www.weiy.city/functions/calculator/
Output: Here are two same variable declaration in the nested for loop. But the second var i will overlay rewriting the first one.So the sum contains only the first row values in the following example. We can use let instead of var for i when declare them in the nested for loop Read more…
Install the precompiled package of Node.js from the official website. (I chose LTS Linux x64.) https://nodejs.org/en/download After extracting it, add the path to the PATH environment variable. Install tsc We can use it successfully after the above steps
My old CPlusPlus project which uses VTK to display 3D scene worked on web page as wasm file. But after upgrading emsdk and compiling the multithreaded version of VTK, I always get the following error on the web page. I test VTK example at vtk/src/Examples/Emscripten/Cxx/Cone from GitHub. But the similar Read more…
We can export a CPlusPlus function in wasm for JS to control the time of invoking vtkRenderWindowInteractor::Start. But after the exported function called, we can’t run the following JS code due to the event loop caused the blockage. Read the code in VTK to find the way to give JS Read more…
Make canvas response to key press event We often create our custom iteractor style object to define our interactive behaviors.Write some debug code in OnKeyPress event.For web page, the element canvas is like Qt’s widget. Set property tabindex for responsing to user key press event. Asynchronous call It’s synchronous for JS code call wasm Read more…
Js code call C interface synchronously, it will wait if the interface is in an infinite loop.Write a function which has an infinite loop. Here is html page Compile C file to wasm and JS file. The web page will be blocked after click on the button to call C Read more…
The test environment is Linux system and C.These interfaces can be used in wasm project to check files in virtual memory.
Here is a funny tool photo box for displaying different images. You can upload your zip file which contains images on this page, the tool can extract these files and show them as a rotating box. It’s recommended to have 6 images in the zip file. The address: https://www.weiy.city/functions/photo-box/