Skip to content

Commit

Permalink
temp fix for dragging position; tag 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Mar 6, 2024
1 parent 86bfc31 commit fd751f7
Show file tree
Hide file tree
Showing 4 changed files with 207 additions and 119 deletions.
133 changes: 106 additions & 27 deletions calcit.cirru

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 15 additions & 6 deletions compact.cirru
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{} (:package |lagopus)
:configs $ {} (:init-fn |lagopus.main/main!) (:reload-fn |lagopus.main/reload!) (:version |0.5.1)
:configs $ {} (:init-fn |lagopus.main/main!) (:reload-fn |lagopus.main/reload!) (:version |0.5.2)
:modules $ [] |memof/ |quaternion/
:entries $ {}
:files $ {}
Expand Down Expand Up @@ -207,11 +207,20 @@
|comp-drag-point $ %{} :CodeEntry (:doc |)
:code $ quote
defn comp-drag-point (props on-drag)
compDragPoint (to-js-data props)
fn (move d!)
on-drag
v3 (.-0 move) (.-1 move) (.-2 move)
, d!
let
color $ &map:get props :color
position $ &map:get props :position
compDragPoint
js-object
:color $ to-js-data color
:position $ if (tuple? position)
js-array (nth position 1) (nth position 2) (nth position 3)
if (list? position) (to-js-data position)
do (eprintln "\"unknown position" position) (js-array 10 0 0)
fn (move d!)
on-drag
v3 (.-0 move) (.-1 move) (.-2 move)
, d!
|comp-slider $ %{} :CodeEntry (:doc |)
:code $ quote
defn comp-slider (props on-slide)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.5.1",
"version": "0.5.2",
"dependencies": {
"@calcit/procs": "^0.8.38",
"@calcit/std": "^0.0.3",
Expand All @@ -9,7 +9,7 @@
},
"devDependencies": {
"bottom-tip": "^0.1.5",
"vite": "^5.1.4",
"vite": "^5.1.5",
"vite-plugin-glsl": "^1.2.1"
}
}
Loading

0 comments on commit fd751f7

Please sign in to comment.