@lukekaalim/act-three 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/package.json +4 -4
- package/render.ts +7 -13
- package/space.ts +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @lukekaalim/act-three
|
|
2
2
|
|
|
3
|
+
## 6.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Scheduling refactor
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @lukekaalim/act-backstage@2.0.0
|
|
13
|
+
- @lukekaalim/act-recon@2.0.0
|
|
14
|
+
- @lukekaalim/act-web@3.3.0
|
|
15
|
+
|
|
3
16
|
## 6.1.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukekaalim/act-three",
|
|
3
3
|
"main": "mod.ts",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.2.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@types/three": ">= 0.171.0",
|
|
7
|
-
"@lukekaalim/act-web": "^3.
|
|
7
|
+
"@lukekaalim/act-web": "^3.3.0",
|
|
8
8
|
"@lukekaalim/act": "^3.1.0",
|
|
9
|
-
"@lukekaalim/act-recon": "^
|
|
10
|
-
"@lukekaalim/act-backstage": "^
|
|
9
|
+
"@lukekaalim/act-recon": "^2.0.0",
|
|
10
|
+
"@lukekaalim/act-backstage": "^2.0.0"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"three": ">= 0.171.0"
|
package/render.ts
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { createRenderFunction
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { createRenderFunction } from "@lukekaalim/act-backstage";
|
|
2
|
+
import { createDOMScheduler } from '@lukekaalim/act-web';
|
|
3
|
+
import { createThreeWebSpace } from "./space";
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const render = createRenderFunction<NodeJS.Timeout, HTMLElement>(intervalScheduler, (tree, root) => RenderSpace.combine([
|
|
12
|
-
createWebSpace(tree, root),
|
|
13
|
-
createFinaleSpace(tree),
|
|
14
|
-
]));
|
|
5
|
+
export const render = createRenderFunction<HTMLElement>(
|
|
6
|
+
createDOMScheduler(),
|
|
7
|
+
createThreeWebSpace
|
|
8
|
+
);
|
package/space.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { createSimpleRenderSpace } from "@lukekaalim/act-backstage
|
|
1
|
+
import { createSimpleRenderSpace, RenderSpace } from "@lukekaalim/act-backstage"
|
|
2
2
|
import { act, recon, three } from "./deps"
|
|
3
3
|
import { setProps } from "./props";
|
|
4
4
|
import { primitiveNodeTypes, renderNodeType } from "@lukekaalim/act";
|
|
5
5
|
import { getElementHandler } from "./elements";
|
|
6
|
+
import { createWebSpace } from "@lukekaalim/act-web";
|
|
7
|
+
import { CommitTree } from "@lukekaalim/act-recon";
|
|
6
8
|
|
|
7
9
|
export const ThreeJS: act.Component = ({ children }) => act.h(renderNodeType, { type: 'threejs' }, children)
|
|
8
10
|
|
|
@@ -30,4 +32,11 @@ export const createFinaleSpace = (tree: recon.CommitTree) => {
|
|
|
30
32
|
})
|
|
31
33
|
}
|
|
32
34
|
|
|
35
|
+
export const createThreeWebSpace = (tree: CommitTree, root: HTMLElement) => {
|
|
36
|
+
return RenderSpace.combine([
|
|
37
|
+
createWebSpace(tree, root),
|
|
38
|
+
createFinaleSpace(tree),
|
|
39
|
+
]);
|
|
40
|
+
}
|
|
41
|
+
|
|
33
42
|
export const finale = createFinaleSpace;
|