@layoutit/polycss 0.2.6 → 0.2.8
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/README.md +54 -7
- package/dist/PolyShapeElements-BviHejaw.d.cts +371 -0
- package/dist/PolyShapeElements-DV9o3DDi.d.ts +371 -0
- package/dist/createPolyScene-BBjx0kRF.d.cts +5 -0
- package/dist/createPolyScene-DHnue9qz.d.ts +5 -0
- package/dist/elements.cjs +2 -2
- package/dist/elements.d.cts +2 -1
- package/dist/elements.d.ts +2 -1
- package/dist/elements.js +2 -2
- package/dist/index.cjs +20 -20
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +20 -20
- package/dist/three.cjs +799 -0
- package/dist/three.d.cts +23 -0
- package/dist/three.d.ts +23 -0
- package/dist/three.js +799 -0
- package/dist/types-CfRKEj2z.d.cts +359 -0
- package/dist/types-CfRKEj2z.d.ts +359 -0
- package/package.json +17 -2
- package/dist/PolyShapeElements-YDkJX2Fz.d.cts +0 -671
- package/dist/PolyShapeElements-YDkJX2Fz.d.ts +0 -671
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export { g as PolyBoxElement, h as PolyCameraElement, i as PolyCameraOptions, j as PolyConeElement, k as PolyControlsAnimateOptions, l as PolyControlsCamera, m as PolyControlsChangeEvent, n as PolyControlsInteractionEvent, o as PolyCylinderElement, p as PolyDodecahedronElement, q as PolyFirstPersonControlsElement, r as PolyIcosahedronElement, s as PolyIframeElement, t as PolyMapControlsElement, u as PolyMeshElement, v as PolyMeshTransform, w as PolyOctahedronElement, x as PolyOrbitControlsElement, y as PolyOrbitControlsHandle, z as PolyOrbitControlsOptions, A as PolyOrthographicCameraElement, B as PolyOrthographicCameraHandle, C as PolyOrthographicCameraOptions, D as PolyPerspectiveCameraElement, E as PolyPerspectiveCameraHandle, F as PolyPerspectiveCameraOptions, G as PolyPlaneElement, H as PolyPolygonElement, I as PolyRingElement, J as PolySceneElement, K as PolySelectElement, L as PolySphereElement, M as PolyTetrahedronElement, N as PolyTorusElement, O as PolyTransformControlsElement, Q as createPolyCamera, R as createPolyOrbitControls, S as createPolyOrthographicCamera, T as createPolyPerspectiveCamera } from './PolyShapeElements-YDkJX2Fz.cjs';
|
|
1
|
+
export { c as createPolyScene } from './createPolyScene-BBjx0kRF.cjs';
|
|
3
2
|
import * as _layoutit_polycss_core from '@layoutit/polycss-core';
|
|
4
3
|
import { PolyDirectionalLight, PolyAmbientLight, PolyTextureLightingMode, PolyTextureLeafSizing, PolyTextureImageRendering, PolyTextureBackend, PolyTextureProjection, TextureAtlasPlan, TextureQuality, PackedAtlas, PackedPage, TextureAtlasPage, PolyRenderStrategy, SolidPaintDefaults, Polygon, SolidTriangleFrame, Vec3, BoxPolygonsOptions, ParseResult, ConePolygonsOptions, CylinderPolygonsOptions, DodecahedronPolygonsOptions, IcosahedronPolygonsOptions, OctahedronPolygonsOptions, PlanePolygonsOptions, RingPolygonsOptions, SpherePolygonsOptions, TetrahedronPolygonsOptions, TorusPolygonsOptions } from '@layoutit/polycss-core';
|
|
5
4
|
export * from '@layoutit/polycss-core';
|
|
6
5
|
export { ComputeTextureAtlasPlanOptions, PackedAtlas, PackedPage, PackedTextureAtlasEntry, PolyMeshTransformInput, PolyRenderStrategiesOption, PolyRenderStrategy, PolySceneTransformInput, ParseResult as PolyShapeResult, SolidPaintDefaults, SolidTriangleFrame, TextureAtlasPage, TextureAtlasPlan, TextureQuality, buildPolyMeshTransform, buildPolySceneTransform, buildTextureEdgeRepairSets, computeTextureAtlasPlanPublic, cssBorderShapeForPlan, cssDistanceToWorld, cssPositionToWorld, formatBorderShapeEntryMatrix, formatCssLengthPx, formatMatrix3d, formatSolidQuadEntryMatrix, isFullRectSolid, isProjectiveQuadPlan, isSolidTrianglePlan, cssDistanceToWorld as polyCssDistanceToWorld, cssPositionToWorld as polyCssPositionToWorld, worldDirectionToPolyCss, worldDirectionalLightToCss as worldDirectionalLightToPolyCss, worldDistanceToCss, worldDistanceToCss as worldDistanceToPolyCss, worldPositionToPolyCss } from '@layoutit/polycss-core';
|
|
6
|
+
import { P as PolySceneHandle, a as PolyMeshHandle } from './types-CfRKEj2z.cjs';
|
|
7
|
+
export { b as PolyCameraOptions, c as PolyMeshTransform, d as PolyOrthographicCameraHandle, e as PolyOrthographicCameraOptions, f as PolyPerspectiveCameraHandle, g as PolyPerspectiveCameraOptions, h as PolySceneOptions, i as createPolyCamera, j as createPolyOrthographicCamera, k as createPolyPerspectiveCamera } from './types-CfRKEj2z.cjs';
|
|
8
|
+
import { P as PolyControlsHandle, a as PolyControlsBaseOptions, b as PolyControlsEvent, c as PolyControlsListener } from './PolyShapeElements-BviHejaw.cjs';
|
|
9
|
+
export { d as PolyBoxElement, e as PolyCameraElement, f as PolyConeElement, g as PolyControlsAnimateOptions, h as PolyControlsCamera, i as PolyControlsChangeEvent, j as PolyControlsInteractionEvent, k as PolyCylinderElement, l as PolyDodecahedronElement, m as PolyFirstPersonControlsElement, n as PolyIcosahedronElement, o as PolyIframeElement, p as PolyMapControlsElement, q as PolyMeshElement, r as PolyOctahedronElement, s as PolyOrbitControlsElement, t as PolyOrbitControlsHandle, u as PolyOrbitControlsOptions, v as PolyOrthographicCameraElement, w as PolyPerspectiveCameraElement, x as PolyPlaneElement, y as PolyPolygonElement, z as PolyRingElement, A as PolySceneElement, B as PolySelectElement, C as PolySphereElement, D as PolyTetrahedronElement, E as PolyTorusElement, F as PolyTransformControlsElement, G as createPolyOrbitControls } from './PolyShapeElements-BviHejaw.cjs';
|
|
7
10
|
|
|
8
11
|
interface RenderTextureAtlasOptions {
|
|
9
12
|
doc?: Document;
|
|
@@ -104,8 +107,6 @@ declare function updatePolygonsWithStableTopology(rendered: RenderedPoly[], poly
|
|
|
104
107
|
declare function renderPolygonsWithStableTriangles(polygons: Polygon[], options?: RenderTextureAtlasOptions): RenderTextureAtlasResult | null;
|
|
105
108
|
declare function updatePolygonsWithStableTriangles(rendered: RenderedPoly[], polygons: Polygon[], options?: RenderTextureAtlasOptions): RenderTextureAtlasResult | null;
|
|
106
109
|
|
|
107
|
-
declare function createPolyScene(host: HTMLElement, options: PolySceneOptions): PolySceneHandle;
|
|
108
|
-
|
|
109
110
|
/**
|
|
110
111
|
* createPolyMapControls — map/pan-mode camera input for a PolyScene.
|
|
111
112
|
*
|
|
@@ -437,4 +438,4 @@ declare function createPolyTorus(options?: TorusPolygonsOptions): ParseResult;
|
|
|
437
438
|
|
|
438
439
|
declare function injectPolyBaseStyles(doc?: Document): void;
|
|
439
440
|
|
|
440
|
-
export { type PolyCameraSnapshotStats, PolyControlsBaseOptions, PolyControlsEvent, PolyControlsHandle, PolyControlsListener, type PolyFirstPersonControlsHandle, type PolyFirstPersonControlsOptions, type PolyLeafInfo, type PolyMapControlsHandle, type PolyMapControlsOptions, PolyMeshHandle, type PolyRenderLeafStrategy, type PolyRenderStats, type PolyRenderStatsOptions, type PolyRenderSurfaceLeafCounts, PolySceneHandle,
|
|
441
|
+
export { type PolyCameraSnapshotStats, PolyControlsBaseOptions, PolyControlsEvent, PolyControlsHandle, PolyControlsListener, type PolyFirstPersonControlsHandle, type PolyFirstPersonControlsOptions, type PolyLeafInfo, type PolyMapControlsHandle, type PolyMapControlsOptions, PolyMeshHandle, type PolyRenderLeafStrategy, type PolyRenderStats, type PolyRenderStatsOptions, type PolyRenderSurfaceLeafCounts, PolySceneHandle, PolySceneSnapshotError, type PolySceneSnapshotErrorCode, type PolySelectOptions, type PolySelectionHandle, type PolySnapshotRenderStats, type PolyTextureReadiness, type PolyTextureRenderStats, type PolyTransformControlsHandle, type PolyTransformControlsObjectChangeEvent, type PolyTransformControlsOptions, type RenderTextureAtlasAsyncResult, type RenderTextureAtlasOptions, type RenderTextureAtlasResult, type RenderedPoly, buildAtlasPages, collectPolyRenderStats, collectPolyTextureReadiness, createPolyBox, createPolyCone, createPolyCylinder, createPolyDodecahedron, createPolyFirstPersonControls, createPolyIcosahedron, createPolyMapControls, createPolyOctahedron, createPolyPlane, createPolyRing, createPolySphere, createPolyTetrahedron, createPolyTorus, createSelect, createTransformControls, exportPolySceneSnapshot, filterAtlasPlans, getSolidPaintDefaults, getSolidPaintDefaultsFromPlans, injectPolyBaseStyles, isBorderShapeSupported, isSolidTriangleSupported, packTextureAtlasPlansWithScale, queryPolyLeaves, renderPolygonsWithStableTriangles, renderPolygonsWithTextureAtlas, renderPolygonsWithTextureAtlasAsync, updatePolygonsWithStableTopology, updatePolygonsWithStableTriangles, updateStableTriangleFrame };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export { g as PolyBoxElement, h as PolyCameraElement, i as PolyCameraOptions, j as PolyConeElement, k as PolyControlsAnimateOptions, l as PolyControlsCamera, m as PolyControlsChangeEvent, n as PolyControlsInteractionEvent, o as PolyCylinderElement, p as PolyDodecahedronElement, q as PolyFirstPersonControlsElement, r as PolyIcosahedronElement, s as PolyIframeElement, t as PolyMapControlsElement, u as PolyMeshElement, v as PolyMeshTransform, w as PolyOctahedronElement, x as PolyOrbitControlsElement, y as PolyOrbitControlsHandle, z as PolyOrbitControlsOptions, A as PolyOrthographicCameraElement, B as PolyOrthographicCameraHandle, C as PolyOrthographicCameraOptions, D as PolyPerspectiveCameraElement, E as PolyPerspectiveCameraHandle, F as PolyPerspectiveCameraOptions, G as PolyPlaneElement, H as PolyPolygonElement, I as PolyRingElement, J as PolySceneElement, K as PolySelectElement, L as PolySphereElement, M as PolyTetrahedronElement, N as PolyTorusElement, O as PolyTransformControlsElement, Q as createPolyCamera, R as createPolyOrbitControls, S as createPolyOrthographicCamera, T as createPolyPerspectiveCamera } from './PolyShapeElements-YDkJX2Fz.js';
|
|
1
|
+
export { c as createPolyScene } from './createPolyScene-DHnue9qz.js';
|
|
3
2
|
import * as _layoutit_polycss_core from '@layoutit/polycss-core';
|
|
4
3
|
import { PolyDirectionalLight, PolyAmbientLight, PolyTextureLightingMode, PolyTextureLeafSizing, PolyTextureImageRendering, PolyTextureBackend, PolyTextureProjection, TextureAtlasPlan, TextureQuality, PackedAtlas, PackedPage, TextureAtlasPage, PolyRenderStrategy, SolidPaintDefaults, Polygon, SolidTriangleFrame, Vec3, BoxPolygonsOptions, ParseResult, ConePolygonsOptions, CylinderPolygonsOptions, DodecahedronPolygonsOptions, IcosahedronPolygonsOptions, OctahedronPolygonsOptions, PlanePolygonsOptions, RingPolygonsOptions, SpherePolygonsOptions, TetrahedronPolygonsOptions, TorusPolygonsOptions } from '@layoutit/polycss-core';
|
|
5
4
|
export * from '@layoutit/polycss-core';
|
|
6
5
|
export { ComputeTextureAtlasPlanOptions, PackedAtlas, PackedPage, PackedTextureAtlasEntry, PolyMeshTransformInput, PolyRenderStrategiesOption, PolyRenderStrategy, PolySceneTransformInput, ParseResult as PolyShapeResult, SolidPaintDefaults, SolidTriangleFrame, TextureAtlasPage, TextureAtlasPlan, TextureQuality, buildPolyMeshTransform, buildPolySceneTransform, buildTextureEdgeRepairSets, computeTextureAtlasPlanPublic, cssBorderShapeForPlan, cssDistanceToWorld, cssPositionToWorld, formatBorderShapeEntryMatrix, formatCssLengthPx, formatMatrix3d, formatSolidQuadEntryMatrix, isFullRectSolid, isProjectiveQuadPlan, isSolidTrianglePlan, cssDistanceToWorld as polyCssDistanceToWorld, cssPositionToWorld as polyCssPositionToWorld, worldDirectionToPolyCss, worldDirectionalLightToCss as worldDirectionalLightToPolyCss, worldDistanceToCss, worldDistanceToCss as worldDistanceToPolyCss, worldPositionToPolyCss } from '@layoutit/polycss-core';
|
|
6
|
+
import { P as PolySceneHandle, a as PolyMeshHandle } from './types-CfRKEj2z.js';
|
|
7
|
+
export { b as PolyCameraOptions, c as PolyMeshTransform, d as PolyOrthographicCameraHandle, e as PolyOrthographicCameraOptions, f as PolyPerspectiveCameraHandle, g as PolyPerspectiveCameraOptions, h as PolySceneOptions, i as createPolyCamera, j as createPolyOrthographicCamera, k as createPolyPerspectiveCamera } from './types-CfRKEj2z.js';
|
|
8
|
+
import { P as PolyControlsHandle, a as PolyControlsBaseOptions, b as PolyControlsEvent, c as PolyControlsListener } from './PolyShapeElements-DV9o3DDi.js';
|
|
9
|
+
export { d as PolyBoxElement, e as PolyCameraElement, f as PolyConeElement, g as PolyControlsAnimateOptions, h as PolyControlsCamera, i as PolyControlsChangeEvent, j as PolyControlsInteractionEvent, k as PolyCylinderElement, l as PolyDodecahedronElement, m as PolyFirstPersonControlsElement, n as PolyIcosahedronElement, o as PolyIframeElement, p as PolyMapControlsElement, q as PolyMeshElement, r as PolyOctahedronElement, s as PolyOrbitControlsElement, t as PolyOrbitControlsHandle, u as PolyOrbitControlsOptions, v as PolyOrthographicCameraElement, w as PolyPerspectiveCameraElement, x as PolyPlaneElement, y as PolyPolygonElement, z as PolyRingElement, A as PolySceneElement, B as PolySelectElement, C as PolySphereElement, D as PolyTetrahedronElement, E as PolyTorusElement, F as PolyTransformControlsElement, G as createPolyOrbitControls } from './PolyShapeElements-DV9o3DDi.js';
|
|
7
10
|
|
|
8
11
|
interface RenderTextureAtlasOptions {
|
|
9
12
|
doc?: Document;
|
|
@@ -104,8 +107,6 @@ declare function updatePolygonsWithStableTopology(rendered: RenderedPoly[], poly
|
|
|
104
107
|
declare function renderPolygonsWithStableTriangles(polygons: Polygon[], options?: RenderTextureAtlasOptions): RenderTextureAtlasResult | null;
|
|
105
108
|
declare function updatePolygonsWithStableTriangles(rendered: RenderedPoly[], polygons: Polygon[], options?: RenderTextureAtlasOptions): RenderTextureAtlasResult | null;
|
|
106
109
|
|
|
107
|
-
declare function createPolyScene(host: HTMLElement, options: PolySceneOptions): PolySceneHandle;
|
|
108
|
-
|
|
109
110
|
/**
|
|
110
111
|
* createPolyMapControls — map/pan-mode camera input for a PolyScene.
|
|
111
112
|
*
|
|
@@ -437,4 +438,4 @@ declare function createPolyTorus(options?: TorusPolygonsOptions): ParseResult;
|
|
|
437
438
|
|
|
438
439
|
declare function injectPolyBaseStyles(doc?: Document): void;
|
|
439
440
|
|
|
440
|
-
export { type PolyCameraSnapshotStats, PolyControlsBaseOptions, PolyControlsEvent, PolyControlsHandle, PolyControlsListener, type PolyFirstPersonControlsHandle, type PolyFirstPersonControlsOptions, type PolyLeafInfo, type PolyMapControlsHandle, type PolyMapControlsOptions, PolyMeshHandle, type PolyRenderLeafStrategy, type PolyRenderStats, type PolyRenderStatsOptions, type PolyRenderSurfaceLeafCounts, PolySceneHandle,
|
|
441
|
+
export { type PolyCameraSnapshotStats, PolyControlsBaseOptions, PolyControlsEvent, PolyControlsHandle, PolyControlsListener, type PolyFirstPersonControlsHandle, type PolyFirstPersonControlsOptions, type PolyLeafInfo, type PolyMapControlsHandle, type PolyMapControlsOptions, PolyMeshHandle, type PolyRenderLeafStrategy, type PolyRenderStats, type PolyRenderStatsOptions, type PolyRenderSurfaceLeafCounts, PolySceneHandle, PolySceneSnapshotError, type PolySceneSnapshotErrorCode, type PolySelectOptions, type PolySelectionHandle, type PolySnapshotRenderStats, type PolyTextureReadiness, type PolyTextureRenderStats, type PolyTransformControlsHandle, type PolyTransformControlsObjectChangeEvent, type PolyTransformControlsOptions, type RenderTextureAtlasAsyncResult, type RenderTextureAtlasOptions, type RenderTextureAtlasResult, type RenderedPoly, buildAtlasPages, collectPolyRenderStats, collectPolyTextureReadiness, createPolyBox, createPolyCone, createPolyCylinder, createPolyDodecahedron, createPolyFirstPersonControls, createPolyIcosahedron, createPolyMapControls, createPolyOctahedron, createPolyPlane, createPolyRing, createPolySphere, createPolyTetrahedron, createPolyTorus, createSelect, createTransformControls, exportPolySceneSnapshot, filterAtlasPlans, getSolidPaintDefaults, getSolidPaintDefaultsFromPlans, injectPolyBaseStyles, isBorderShapeSupported, isSolidTriangleSupported, packTextureAtlasPlansWithScale, queryPolyLeaves, renderPolygonsWithStableTriangles, renderPolygonsWithTextureAtlas, renderPolygonsWithTextureAtlasAsync, updatePolygonsWithStableTopology, updatePolygonsWithStableTriangles, updateStableTriangleFrame };
|