No description
Find a file
DaOfficialWizard f764f6a210
feat: initial tauri commit (#206)
* feat: initial tauri commit

* feat: finish up CI system

* fix: fix release asset types

* feat: update tauri version

- added support for native windows shadows
- upgraded tauri version to newest LTS
- added tauri commands to package.json

* feat: add setup scripts for setting up tauri dev environment

* fix: script for linux

- use user input instead of auto-detection

* feat: initial cir release

* fix: remove caching of pnpm in ci

* fix: remove old path

* fix: windows failing to build

* fix: .releasesrc file not having a main branch

* fix: .releasesrc file not having a main branch

* Tauri (#1)

* fix: release to tauri branch

* fix: release to tauri branch

* fix: release to tauri branch

* fix: release to tauri

* fix: fix app not loading on linux builds

- update tauri
- fix dist directory path

BREAKING CHANGES

* fix: update readme

* fix: semantic-release

* Update .releaserc

* Update ci.yaml

* fix: Update .releaserc

* fix: remove repo from package.json

* chore(major): 1.0.0-tauri.1 [skip ci]

## 1.0.0-tauri.1 (2023-05-09)

### ⚠ BREAKING CHANGES

* CHANGES

### 🍕 Features

* add setup scripts for setting up tauri dev environment ([0c41a33](0c41a33d0e))
* **dxf:** add support for dimensions in dxf. ([56c884c](56c884ccfd))
* add support for dxf blocks ([#200](https://github.com/ZanzyTHEbar/jsketcher/issues/200)) ([322d47f](322d47f802))
* add support for dxf files import ([2fa2866](2fa2866296))
* finish up CI system ([5a688d1](5a688d1a9e))
* initial cir release ([2f94a6e](2f94a6eb82))
* initial tauri commit ([0a0bb54](0a0bb5485e))
* update tauri version ([90168da](90168da42c))

### 🐛 Bug Fixes

* .releasesrc file not having a main branch ([04f2e2c](04f2e2c6b7))
* .releasesrc file not having a main branch ([25ae8a4](25ae8a464b))
* **dxf:** add dimLayers to the export. ([#183](https://github.com/ZanzyTHEbar/jsketcher/issues/183)) ([a3349b5](a3349b5da4))
* fix app not loading on linux builds ([9ef599d](9ef599ddc9))
* fix release asset types ([8f73410](8f73410c74))
* release to tauri ([0ba5387](0ba5387601))
* release to tauri branch ([11fcf2e](11fcf2e87a))
* release to tauri branch ([e8486a5](e8486a5e65))
* release to tauri branch ([6076573](6076573c98))
* remove caching of pnpm in ci ([96165f3](96165f3e1e))
* remove old path ([f0b426c](f0b426c14f))
* remove repo from package.json ([dd099b8](dd099b8ad8))
* script for linux ([46bda82](46bda82726))
* semantic-release ([3edb4cf](3edb4cf635))
* Update .releaserc ([3343d2c](3343d2cb4a))
* update readme ([b00299d](b00299d5c1))
* windows failing to build ([def0782](def0782b76))

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>

* fix: appimage failing to build

* Feat: Update ci.yaml

swap to use older version of ubuntu.

* Add full CI and Support for linux (#3)

* fix: release to tauri branch

* fix: release to tauri branch

* fix: release to tauri branch

* fix: release to tauri

* fix: fix app not loading on linux builds

- update tauri
- fix dist directory path

BREAKING CHANGES

* fix: update readme

* fix: semantic-release

* Update .releaserc

* Update ci.yaml

* fix: Update .releaserc

* fix: remove repo from package.json

* chore(major): 1.0.0-tauri.1 [skip ci]

## 1.0.0-tauri.1 (2023-05-09)

### ⚠ BREAKING CHANGES

* CHANGES

### 🍕 Features

* add setup scripts for setting up tauri dev environment ([0c41a33](0c41a33d0e))
* **dxf:** add support for dimensions in dxf. ([56c884c](56c884ccfd))
* add support for dxf blocks ([#200](https://github.com/ZanzyTHEbar/jsketcher/issues/200)) ([322d47f](322d47f802))
* add support for dxf files import ([2fa2866](2fa2866296))
* finish up CI system ([5a688d1](5a688d1a9e))
* initial cir release ([2f94a6e](2f94a6eb82))
* initial tauri commit ([0a0bb54](0a0bb5485e))
* update tauri version ([90168da](90168da42c))

### 🐛 Bug Fixes

* .releasesrc file not having a main branch ([04f2e2c](04f2e2c6b7))
* .releasesrc file not having a main branch ([25ae8a4](25ae8a464b))
* **dxf:** add dimLayers to the export. ([#183](https://github.com/ZanzyTHEbar/jsketcher/issues/183)) ([a3349b5](a3349b5da4))
* fix app not loading on linux builds ([9ef599d](9ef599ddc9))
* fix release asset types ([8f73410](8f73410c74))
* release to tauri ([0ba5387](0ba5387601))
* release to tauri branch ([11fcf2e](11fcf2e87a))
* release to tauri branch ([e8486a5](e8486a5e65))
* release to tauri branch ([6076573](6076573c98))
* remove caching of pnpm in ci ([96165f3](96165f3e1e))
* remove old path ([f0b426c](f0b426c14f))
* remove repo from package.json ([dd099b8](dd099b8ad8))
* script for linux ([46bda82](46bda82726))
* semantic-release ([3edb4cf](3edb4cf635))
* Update .releaserc ([3343d2c](3343d2cb4a))
* update readme ([b00299d](b00299d5c1))
* windows failing to build ([def0782](def0782b76))

* fix: appimage failing to build

* fix: test ubuntu 18.04

* fix: test ubuntu 18.04

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* chore(minor): 1.0.0-tauri.2 [skip ci]

## [1.0.0-tauri.2](https://github.com/ZanzyTHEbar/jsketcher/compare/v1.0.0-tauri.1...v1.0.0-tauri.2) (2023-05-11)

### 🐛 Bug Fixes

* appimage failing to build ([8dc6217](8dc62170a9))
* test ubuntu 18.04 ([8f55f4d](8f55f4d1c1))
* test ubuntu 18.04 ([0afd146](0afd14642b))

### 🍕 Features

* update ci to use docker container ([7bcacb0](7bcacb0251))
* update ci to use docker container ([98de939](98de93981f))
* update ci to use docker container ([0750c00](0750c006f3))
* update ci to use docker container ([715780f](715780f8f6))
* update ci to use docker container ([ccbacdb](ccbacdba32))
* update ci to use docker container ([60aa80d](60aa80d636))
* update ci to use docker container ([f629258](f629258426))
* update ci to use docker container ([278cf82](278cf82cea))
* update ci to use docker container ([02ec38c](02ec38c1b7))
* update ci to use docker container ([8fb7924](8fb7924dc2))
* update ci to use docker container ([d0493b3](d0493b3e0c))
* update ci to use docker container ([09fbb4f](09fbb4f9b9))
* update ci to use docker container ([c7e39b9](c7e39b92f7))
* update ci to use docker container ([d9221a7](d9221a77fe))
* update ci to use docker container ([9e96489](9e96489eb7))
* update ci to use docker container ([765b708](765b708a19))
* update ci to use docker container ([484b722](484b722a49))
* update ci to use docker container ([1023d90](1023d90529))
* update ci to use docker container ([1d9fd84](1d9fd84aa2))

* feat: update rust deps

* chore(minor): 1.0.0-tauri.3 [skip ci]

## [1.0.0-tauri.3](https://github.com/ZanzyTHEbar/jsketcher/compare/v1.0.0-tauri.2...v1.0.0-tauri.3) (2023-05-11)

### 🍕 Features

* update rust deps ([b809c28](b809c28b8c))

* fix: wasm not loading in webkit

* chore(patch): 1.0.0-tauri.4 [skip ci]

## [1.0.0-tauri.4](https://github.com/ZanzyTHEbar/jsketcher/compare/v1.0.0-tauri.3...v1.0.0-tauri.4) (2023-05-11)

### 🐛 Bug Fixes

* wasm not loading in webkit ([0e74582](0e74582848))

* feat: add windows binary

* fix: windows ci

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>

* Fix windows CI (#4)

* fix: release to tauri branch

* fix: release to tauri branch

* fix: release to tauri branch

* fix: release to tauri

* fix: fix app not loading on linux builds

- update tauri
- fix dist directory path

BREAKING CHANGES

* fix: update readme

* fix: semantic-release

* Update .releaserc

* Update ci.yaml

* fix: Update .releaserc

* fix: remove repo from package.json

* chore(major): 1.0.0-tauri.1 [skip ci]

## 1.0.0-tauri.1 (2023-05-09)

### ⚠ BREAKING CHANGES

* CHANGES

### 🍕 Features

* add setup scripts for setting up tauri dev environment ([0c41a33](0c41a33d0e))
* **dxf:** add support for dimensions in dxf. ([56c884c](56c884ccfd))
* add support for dxf blocks ([#200](https://github.com/ZanzyTHEbar/jsketcher/issues/200)) ([322d47f](322d47f802))
* add support for dxf files import ([2fa2866](2fa2866296))
* finish up CI system ([5a688d1](5a688d1a9e))
* initial cir release ([2f94a6e](2f94a6eb82))
* initial tauri commit ([0a0bb54](0a0bb5485e))
* update tauri version ([90168da](90168da42c))

### 🐛 Bug Fixes

* .releasesrc file not having a main branch ([04f2e2c](04f2e2c6b7))
* .releasesrc file not having a main branch ([25ae8a4](25ae8a464b))
* **dxf:** add dimLayers to the export. ([#183](https://github.com/ZanzyTHEbar/jsketcher/issues/183)) ([a3349b5](a3349b5da4))
* fix app not loading on linux builds ([9ef599d](9ef599ddc9))
* fix release asset types ([8f73410](8f73410c74))
* release to tauri ([0ba5387](0ba5387601))
* release to tauri branch ([11fcf2e](11fcf2e87a))
* release to tauri branch ([e8486a5](e8486a5e65))
* release to tauri branch ([6076573](6076573c98))
* remove caching of pnpm in ci ([96165f3](96165f3e1e))
* remove old path ([f0b426c](f0b426c14f))
* remove repo from package.json ([dd099b8](dd099b8ad8))
* script for linux ([46bda82](46bda82726))
* semantic-release ([3edb4cf](3edb4cf635))
* Update .releaserc ([3343d2c](3343d2cb4a))
* update readme ([b00299d](b00299d5c1))
* windows failing to build ([def0782](def0782b76))

* fix: appimage failing to build

* fix: test ubuntu 18.04

* fix: test ubuntu 18.04

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* feat: update ci to use docker container

* chore(minor): 1.0.0-tauri.2 [skip ci]

## [1.0.0-tauri.2](https://github.com/ZanzyTHEbar/jsketcher/compare/v1.0.0-tauri.1...v1.0.0-tauri.2) (2023-05-11)

### 🐛 Bug Fixes

* appimage failing to build ([8dc6217](8dc62170a9))
* test ubuntu 18.04 ([8f55f4d](8f55f4d1c1))
* test ubuntu 18.04 ([0afd146](0afd14642b))

### 🍕 Features

* update ci to use docker container ([7bcacb0](7bcacb0251))
* update ci to use docker container ([98de939](98de93981f))
* update ci to use docker container ([0750c00](0750c006f3))
* update ci to use docker container ([715780f](715780f8f6))
* update ci to use docker container ([ccbacdb](ccbacdba32))
* update ci to use docker container ([60aa80d](60aa80d636))
* update ci to use docker container ([f629258](f629258426))
* update ci to use docker container ([278cf82](278cf82cea))
* update ci to use docker container ([02ec38c](02ec38c1b7))
* update ci to use docker container ([8fb7924](8fb7924dc2))
* update ci to use docker container ([d0493b3](d0493b3e0c))
* update ci to use docker container ([09fbb4f](09fbb4f9b9))
* update ci to use docker container ([c7e39b9](c7e39b92f7))
* update ci to use docker container ([d9221a7](d9221a77fe))
* update ci to use docker container ([9e96489](9e96489eb7))
* update ci to use docker container ([765b708](765b708a19))
* update ci to use docker container ([484b722](484b722a49))
* update ci to use docker container ([1023d90](1023d90529))
* update ci to use docker container ([1d9fd84](1d9fd84aa2))

* feat: update rust deps

* chore(minor): 1.0.0-tauri.3 [skip ci]

## [1.0.0-tauri.3](https://github.com/ZanzyTHEbar/jsketcher/compare/v1.0.0-tauri.2...v1.0.0-tauri.3) (2023-05-11)

### 🍕 Features

* update rust deps ([b809c28](b809c28b8c))

* fix: wasm not loading in webkit

* chore(patch): 1.0.0-tauri.4 [skip ci]

## [1.0.0-tauri.4](https://github.com/ZanzyTHEbar/jsketcher/compare/v1.0.0-tauri.3...v1.0.0-tauri.4) (2023-05-11)

### 🐛 Bug Fixes

* wasm not loading in webkit ([0e74582](0e74582848))

* feat: add windows binary

* fix: windows ci

* fix: windows ci deps

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Mike Molinari <mike@smbisoft.com>
2023-05-11 22:44:45 -04:00
.github feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
.vscode feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
build fix eslint issues 2022-08-15 00:22:42 -07:00
dev-guide fix verification errors for snippets 2022-08-15 23:47:20 -07:00
misc datum move and rotate icons 2019-02-21 22:34:24 -08:00
modules working move body command 2023-05-04 03:41:38 +00:00
scripts feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
src-tauri feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
test simplify bundle system 2022-08-14 20:48:44 -07:00
web feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
.babelrc upgrade typescript version to 4.7.4 2022-08-15 23:47:20 -07:00
.editorconfig add prettier and editorconfig files 2022-11-05 21:23:16 -07:00
.eslintrc.json feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
.gitignore feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
.prettierrc add prettier and editorconfig files 2022-11-05 21:23:16 -07:00
.releaserc feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
CHANGELOG.md feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
cypress.json fixing tests 2020-07-18 21:19:46 -07:00
externals.d.ts Fixing lint issues before merging to main 2022-11-05 21:23:16 -07:00
Gruntfile.js feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
LICENSE format license 2022-06-25 18:01:18 -07:00
package.json feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
pnpm-lock.yaml feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
README.md feat: initial tauri commit (#206) 2023-05-11 22:44:45 -04:00
tsconfig.json add no emit to tsconfig.json 2022-08-15 23:47:20 -07:00
webpack.config.js Make JSketcher work on codeserver dev environment. 2023-04-11 03:16:26 +00:00

JSketcher

=========== JSketcher Logo

JSketcher is a parametric 2D and 3D CAD modeler written for the web. Sketch solver is completely implemented in javascript/typescript.

YouTube Tutorial Video

Live Sample Demo

2D Sketcher

Help Docs

Workbench Dev Guide

Commercial Licensing

Please consider supporting this project by becoming a backer

==============

Current Status

==============

JSketcher is a parametric 3d modeler employing a 2D constraint solver for sketches and the feature/history metaphor to build models. The 2D constraint solver is completely written in javascript/typescript and is implemented in both the 3D CAD and the 2D sketcher. Originally developed by xibyte to make models for 3d printing. Today JSketcher provides a rich set of tools for visualizing, selecting/interacting with 3D geometry, tracking and storing model history all built on the foundation of the 2D sketcher engine and employing a custom wasm build of the OpenCascade kernel for solid modeling operations.

Major Components and features

==============

  • Geometric Constraint Solver. This is a most crucial component which allows to solve a system of geometric constraints applied to a sketch.

See below the list of supported constraints.

  • 2D Sketcher. Allows to design 2d sketches applying geometric constraints. Uses HTML5 canvas for rendering.
  • 3D Boolean engine. OpenCascade is used to perform booleans on BREP objects.
  • Feature History. Accumulates features builds a 3d model step by step. A compare step is employed to propagate edge/face IDs forward to provide a stable and robust model.
  • Export to STL, DWG and SVG formats
  • Saving projects in the browser locale storage
  • Repository of dimensions. For example if there is a line length constraint applied, it's not necessary to hardcode some length value.

Note

: A dimension with a symbolic name can be created and the constraint can refer to that dimension by name. Once value of dimension gets changed the sketch is resolved again accordingly to the new dimension values.

  • 2D measurement tool. Allows adding dimensions on a 2D drawing(Linear, Vertical, Horizontal and Arc/Circle dimension are supported)
  • No any server-side needed. Only client side Javascript and wasm.

This modeler is already used for:

  • Designing of 3d models to get them 3d-printed. 3D models are based on parametric 2D sketches. All models can be exported as an STL file and 3d-printed after.
  • Creating of 2d parametric sketches which could be exported to DWG or SVG format.

Supported Constraints

=====================

  • Coincident
  • Vertical
  • Horizontal
  • Parallel
  • Perpendicular
  • Point to Line Distance
  • Point to Object Distance
  • Entity Equality(radius/length)
  • Tangent
  • Radius
  • Point On Line
  • Point On Arc / Ellipse
  • Point In Middle
  • Angle
  • Symmetry
  • Lock Convexity
  • Fillet Meta Constraint

Get Started With the Code

=========================

Install node.js and packages

For this step, you can use any package manager you like.

We recommend using pnpm

npm install -g pnpm
pnpm install
pnpm start

Navigate http://localhost:3000 using your browser. Tested on google chrome but known to work in firefox and edge.

Generate Tauri Build for desktop

=========================

Install Tauri Deps

Navigate to the scripts folder and run the following command:

chmod +x ./setup_tauri.sh

Build for Desktop

pnpm tauri build

The resulting binary will be placed in the dist folder that is generated.

Note

: Build targeting windows from linux requires wine to be installed.

Linux build produces app image and deb for installation. To use the app image you must do a chmod:

chmod +x jsketcher-*.*.*.AppImage

Contributing Please see .github/CONTRIBUTING.md

=========================