@revideo/2d 0.5.10 → 0.5.11-alpha.1101
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/editor/editor/NodeInspectorConfig.d.ts +3 -0
- package/editor/editor/NodeInspectorConfig.d.ts.map +1 -0
- package/editor/editor/PreviewOverlayConfig.d.ts +3 -0
- package/editor/editor/PreviewOverlayConfig.d.ts.map +1 -0
- package/editor/editor/Provider.d.ts +17 -0
- package/editor/editor/Provider.d.ts.map +1 -0
- package/editor/editor/SceneGraphTabConfig.d.ts +3 -0
- package/editor/editor/SceneGraphTabConfig.d.ts.map +1 -0
- package/editor/editor/icons/CircleIcon.d.ts +2 -0
- package/editor/editor/icons/CircleIcon.d.ts.map +1 -0
- package/editor/editor/icons/CodeBlockIcon.d.ts +2 -0
- package/editor/editor/icons/CodeBlockIcon.d.ts.map +1 -0
- package/editor/editor/icons/CurveIcon.d.ts +2 -0
- package/editor/editor/icons/CurveIcon.d.ts.map +1 -0
- package/editor/editor/icons/GridIcon.d.ts +2 -0
- package/editor/editor/icons/GridIcon.d.ts.map +1 -0
- package/editor/editor/icons/IconMap.d.ts +3 -0
- package/editor/editor/icons/IconMap.d.ts.map +1 -0
- package/editor/editor/icons/ImgIcon.d.ts +2 -0
- package/editor/editor/icons/ImgIcon.d.ts.map +1 -0
- package/editor/editor/icons/LayoutIcon.d.ts +2 -0
- package/editor/editor/icons/LayoutIcon.d.ts.map +1 -0
- package/editor/editor/icons/LineIcon.d.ts +2 -0
- package/editor/editor/icons/LineIcon.d.ts.map +1 -0
- package/editor/editor/icons/NodeIcon.d.ts +2 -0
- package/editor/editor/icons/NodeIcon.d.ts.map +1 -0
- package/editor/editor/icons/RayIcon.d.ts +2 -0
- package/editor/editor/icons/RayIcon.d.ts.map +1 -0
- package/editor/editor/icons/RectIcon.d.ts +2 -0
- package/editor/editor/icons/RectIcon.d.ts.map +1 -0
- package/editor/editor/icons/ShapeIcon.d.ts +2 -0
- package/editor/editor/icons/ShapeIcon.d.ts.map +1 -0
- package/editor/editor/icons/TxtIcon.d.ts +2 -0
- package/editor/editor/icons/TxtIcon.d.ts.map +1 -0
- package/editor/editor/icons/VideoIcon.d.ts +2 -0
- package/editor/editor/icons/VideoIcon.d.ts.map +1 -0
- package/editor/editor/icons/View2DIcon.d.ts +2 -0
- package/editor/editor/icons/View2DIcon.d.ts.map +1 -0
- package/editor/editor/index.d.ts +4 -0
- package/editor/editor/index.d.ts.map +1 -0
- package/editor/editor/tree/DetachedRoot.d.ts +2 -0
- package/editor/editor/tree/DetachedRoot.d.ts.map +1 -0
- package/editor/editor/tree/NodeElement.d.ts +8 -0
- package/editor/editor/tree/NodeElement.d.ts.map +1 -0
- package/editor/editor/tree/TreeElement.d.ts +15 -0
- package/editor/editor/tree/TreeElement.d.ts.map +1 -0
- package/editor/editor/tree/TreeRoot.d.ts +3 -0
- package/editor/editor/tree/TreeRoot.d.ts.map +1 -0
- package/editor/editor/tree/ViewRoot.d.ts +2 -0
- package/editor/editor/tree/ViewRoot.d.ts.map +1 -0
- package/editor/editor/tree/index.d.ts +4 -0
- package/editor/editor/tree/index.d.ts.map +1 -0
- package/editor/editor/tsconfig.build.tsbuildinfo +1 -1
- package/lib/code/CodeSignal.d.ts +1 -1
- package/lib/code/CodeSignal.d.ts.map +1 -1
- package/lib/code/index.d.ts +1 -1
- package/lib/code/index.d.ts.map +1 -1
- package/lib/code/index.js +2 -2
- package/lib/components/Audio.js +3 -3
- package/lib/components/Img.d.ts +18 -3
- package/lib/components/Img.d.ts.map +1 -1
- package/lib/components/Img.js +37 -21
- package/lib/components/Layout.js +4 -2
- package/lib/components/Line.d.ts.map +1 -1
- package/lib/components/Line.js +34 -2
- package/lib/components/Media.d.ts +3 -3
- package/lib/components/Media.d.ts.map +1 -1
- package/lib/components/Media.js +32 -6
- package/lib/components/Node.d.ts.map +1 -1
- package/lib/components/Node.js +2 -2
- package/lib/components/Rive.d.ts +3 -3
- package/lib/components/Rive.d.ts.map +1 -1
- package/lib/components/Rive.js +8 -5
- package/lib/components/Spline.d.ts.map +1 -1
- package/lib/components/Spline.js +28 -2
- package/lib/components/TxtLeaf.d.ts +0 -1
- package/lib/components/TxtLeaf.d.ts.map +1 -1
- package/lib/components/TxtLeaf.js +5 -14
- package/lib/components/Video.d.ts.map +1 -1
- package/lib/components/Video.js +4 -4
- package/lib/components/View2D.d.ts.map +1 -1
- package/lib/components/View2D.js +1 -1
- package/lib/components/index.d.ts +2 -2
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +3 -3
- package/lib/curves/Polynomial2D.d.ts.map +1 -1
- package/lib/curves/index.d.ts +5 -5
- package/lib/curves/index.d.ts.map +1 -1
- package/lib/curves/index.js +6 -6
- package/lib/partials/Pattern.d.ts.map +1 -1
- package/lib/partials/Pattern.js +1 -1
- package/lib/scenes/Scene2D.d.ts.map +1 -1
- package/lib/scenes/Scene2D.js +3 -4
- package/lib/scenes/index.d.ts +1 -1
- package/lib/scenes/index.d.ts.map +1 -1
- package/lib/scenes/index.js +2 -2
- package/lib/scenes/makeScene2D.d.ts +1 -1
- package/lib/scenes/makeScene2D.d.ts.map +1 -1
- package/lib/scenes/makeScene2D.js +3 -4
- package/lib/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -8
- package/src/lib/code/index.ts +1 -1
- package/src/lib/components/Audio.ts +2 -2
- package/src/lib/components/Img.ts +48 -20
- package/src/lib/components/Layout.ts +3 -3
- package/src/lib/components/Line.ts +33 -1
- package/src/lib/components/Media.ts +30 -6
- package/src/lib/components/Rive.ts +7 -11
- package/src/lib/components/Spline.ts +27 -1
- package/src/lib/components/TxtLeaf.ts +4 -13
- package/src/lib/components/Video.ts +2 -3
- package/src/lib/components/View2D.ts +1 -0
- package/src/lib/components/__tests__/mockScene2D.ts +1 -5
- package/src/lib/components/index.ts +2 -2
- package/src/lib/curves/index.ts +5 -5
- package/src/lib/globals.d.ts +0 -1
- package/src/lib/partials/Pattern.ts +0 -1
- package/src/lib/scenes/Scene2D.ts +2 -3
- package/src/lib/scenes/index.ts +1 -1
- package/src/lib/scenes/makeScene2D.ts +3 -6
- package/src/lib/tsconfig.json +3 -7
- package/lib/components/Asset.d.ts +0 -24
- package/lib/components/Asset.d.ts.map +0 -1
- package/lib/components/Asset.js +0 -40
- package/src/lib/components/Asset.ts +0 -51
- package/src/lib/components/__logs__/image-without-source.md +0 -17
- package/src/lib/components/__logs__/line-without-points.md +0 -30
- package/src/lib/components/__logs__/reactive-playback-rate.md +0 -21
- package/src/lib/components/__logs__/spline-with-insufficient-knots.md +0 -24
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeInspectorConfig.d.ts","sourceRoot":"","sources":["../../src/editor/NodeInspectorConfig.tsx"],"names":[],"mappings":"AACA,OAAO,EAML,qBAAqB,EAKtB,MAAM,aAAa,CAAC;AA4DrB,eAAO,MAAM,mBAAmB,EAAE,qBAGjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewOverlayConfig.d.ts","sourceRoot":"","sources":["../../src/editor/PreviewOverlayConfig.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,mBAAmB,EAGpB,MAAM,aAAa,CAAC;AAuDrB,eAAO,MAAM,oBAAoB,EAAE,mBAGlC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReadonlySignal, Signal } from '@preact/signals';
|
|
2
|
+
import { Scene2D } from '@revideo/2d';
|
|
3
|
+
import { ComponentChildren } from 'preact';
|
|
4
|
+
export interface PluginState {
|
|
5
|
+
selectedKey: Signal<string | null>;
|
|
6
|
+
hoveredKey: Signal<string | null>;
|
|
7
|
+
openNodes: Map<string, boolean>;
|
|
8
|
+
scene: ReadonlySignal<Scene2D | null>;
|
|
9
|
+
selectedChain: ReadonlySignal<Set<string>>;
|
|
10
|
+
afterRender: ReadonlySignal<number>;
|
|
11
|
+
}
|
|
12
|
+
export declare const NodeInspectorKey = "@revideo/2d/node-inspector";
|
|
13
|
+
export declare function usePluginState(): PluginState;
|
|
14
|
+
export declare function Provider({ children }: {
|
|
15
|
+
children?: ComponentChildren;
|
|
16
|
+
}): import("preact").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../src/editor/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,MAAM,EAIP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAGpC,OAAO,EAAC,iBAAiB,EAAgB,MAAM,QAAQ,CAAC;AAGxD,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,KAAK,EAAE,cAAc,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IACtC,aAAa,EAAE,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3C,WAAW,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;CACrC;AAID,eAAO,MAAM,gBAAgB,+BAA+B,CAAC;AAE7D,wBAAgB,cAAc,gBAE7B;AAED,wBAAgB,QAAQ,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAAC,gCAkElE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SceneGraphTabConfig.d.ts","sourceRoot":"","sources":["../../src/editor/SceneGraphTabConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,eAAe,EAMhB,MAAM,aAAa,CAAC;AAmErB,eAAO,MAAM,mBAAmB,EAAE,eAIjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircleIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/CircleIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,iCAMzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlockIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/CodeBlockIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,iCAO5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurveIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/CurveIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,iCAMxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/GridIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,iCAMvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconMap.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/IconMap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,iBAAiB,EAAC,MAAM,QAAQ,CAAC;AAgBzC,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAgBrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImgIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/ImgIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,iCAOtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/LayoutIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,iCAQzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/LineIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,iCAMvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/NodeIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,iCAMvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RayIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/RayIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,iCAMtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RectIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/RectIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,iCAMvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShapeIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/ShapeIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,iCAMxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TxtIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/TxtIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,iCAOtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/VideoIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,iCAMxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"View2DIcon.d.ts","sourceRoot":"","sources":["../../../src/editor/icons/View2DIcon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,iCASzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;;AAQrB,wBAQG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DetachedRoot.d.ts","sourceRoot":"","sources":["../../../src/editor/tree/DetachedRoot.tsx"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,wCAgB3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeElement.d.ts","sourceRoot":"","sources":["../../../src/editor/tree/NodeElement.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,IAAI,EAAC,MAAM,aAAa,CAAC;AAM5C,UAAU,gBAAgB;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,WAAW,CAAC,EAAC,IAAI,EAAE,KAAS,EAAC,EAAE,gBAAgB,gCA4D9D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Signal } from '@preact/signals';
|
|
2
|
+
import { ComponentChildren, JSX } from 'preact';
|
|
3
|
+
import { Ref } from 'preact/hooks';
|
|
4
|
+
interface TreeElementProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, 'label' | 'icon'> {
|
|
5
|
+
icon?: ComponentChildren;
|
|
6
|
+
label: ComponentChildren;
|
|
7
|
+
children?: ComponentChildren;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
open: Signal<boolean>;
|
|
10
|
+
depth?: number;
|
|
11
|
+
forwardRef?: Ref<HTMLDivElement>;
|
|
12
|
+
}
|
|
13
|
+
export declare function TreeElement({ label, children, selected, depth, open, icon, forwardRef, ...props }: TreeElementProps): JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=TreeElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeElement.d.ts","sourceRoot":"","sources":["../../../src/editor/tree/TreeElement.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAGvC,OAAO,EAAC,iBAAiB,EAAE,GAAG,EAAC,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAC,GAAG,EAAC,MAAM,cAAc,CAAC;AAKjC,UAAU,gBACR,SAAQ,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAClE,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAClC;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAS,EACT,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,GAAG,KAAK,EACT,EAAE,gBAAgB,eA0ClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeRoot.d.ts","sourceRoot":"","sources":["../../../src/editor/tree/TreeRoot.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAG3B,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,eAEpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewRoot.d.ts","sourceRoot":"","sources":["../../../src/editor/tree/ViewRoot.tsx"],"names":[],"mappings":"AAKA,wBAAgB,QAAQ,wCAcvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/tree/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|