Skip to content

Commit

Permalink
use touch-control from npm; tag 0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Oct 13, 2022
1 parent 5ed6a15 commit 7caf29f
Show file tree
Hide file tree
Showing 8 changed files with 171 additions and 546 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## Triadica
## Triadica in TYpeScript

![npm package](https://img.shields.io/npm/v/@triadica/touch-control?style=flat-square)

> Tiny tool for playing with WebGL
Expand Down
3 changes: 1 addition & 2 deletions assets/main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

@import url("@quamolit/touch-control/style/touch-control.css");
@import url("./touch-control.css");
@import url("@triadica/touch-control/assets/touch-control.css");

body {
margin: 0;
Expand Down
92 changes: 0 additions & 92 deletions assets/touch-control.css

This file was deleted.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "triadica",
"version": "0.0.9",
"version": "0.0.10",
"description": "Tiny tool for playing with WebGL",
"main": "lib/index.mjs",
"repository": "git@github.com:Triadica/triadica.ts.git",
Expand All @@ -12,14 +12,14 @@
"devDependencies": {
"@types/deep-equal": "^1.0.1",
"prettier": "^2.7.1",
"typescript": "^4.8.3",
"vite": "^3.1.2",
"vite-plugin-glsl": "^0.4.0"
"typescript": "^4.8.4",
"vite": "^3.1.8",
"vite-plugin-glsl": "^0.5.1"
},
"dependencies": {
"@quamolit/touch-control": "^0.0.11",
"@triadica/touch-control": "^0.0.1-a3",
"immer": "^9.0.15",
"ismobilejs": "^1.1.1",
"twgl.js": "^5.0.1"
"twgl.js": "^5.0.4"
}
}
2 changes: 1 addition & 1 deletion src/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { backConeScale, cachedBuildProgram, dpr, isMobile, isPostEffect } from "
import { Atom } from "./atom.mjs";
import { atomGlContext, atomMouseHoldingPaths, atomObjectsBuffer, atomObjectsTree, atomProxiedDispatch } from "./global.mjs";
import { atomViewerPosition, atomViewerUpward, moveViewerBy, newLookatPoint, rotateGlanceBy, spinGlanceBy, transform3d } from "./perspective.mjs";
import { ControlStates } from "./touch-control.mjs";
import { ControlStates } from "@triadica/touch-control";
import { cDistance } from "./math.mjs";
import { V2, TriadicaElement, TriadicaObjectData } from "./primes.mjs";

Expand Down
2 changes: 1 addition & 1 deletion src/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { isDev } from "./config.mjs";
import { Atom } from "./atom.mjs";
import { atomGlContext } from "./global.mjs";
import { loadObjects, onControlEvent, paintCanvas, resetCanvasSize, setupMouseEvents } from "./index.mjs";
import { renderControl, replaceControlLoop, startControlLoop } from "./touch-control.mjs";
import { renderControl, replaceControlLoop, startControlLoop } from "@triadica/touch-control";
import { compContainer } from "./app/container.mjs";
import { updateStates } from "./cursor.mjs";
import { resetMemof1Caches } from "./memof1.mjs";
Expand Down
Loading

0 comments on commit 7caf29f

Please sign in to comment.