pacem 0.51.3-carthage → 0.51.3-delphi
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/dist/css/pacem-dark-content.min.css +1 -1
- package/dist/css/pacem-dark-shell.min.css +1 -1
- package/dist/css/pacem-dark.min.css +1 -1
- package/dist/css/pacem-light-content.min.css +1 -1
- package/dist/css/pacem-light-shell.min.css +1 -1
- package/dist/css/pacem-light.min.css +1 -1
- package/dist/css/pacem-phousys-content.min.css +1 -1
- package/dist/css/pacem-phousys-shell.min.css +1 -1
- package/dist/css/pacem-phousys.min.css +1 -1
- package/dist/js/azure-maps.d.ts +1 -1
- package/dist/js/pacem-2d.d.ts +1 -1
- package/dist/js/pacem-2d.js +1 -1
- package/dist/js/pacem-2d.min.js +1 -1
- package/dist/js/pacem-3d.d.ts +89 -25
- package/dist/js/pacem-3d.js +398 -151
- package/dist/js/pacem-3d.min.js +2 -2
- package/dist/js/pacem-charts.d.ts +1 -1
- package/dist/js/pacem-charts.js +1 -1
- package/dist/js/pacem-charts.min.js +1 -1
- package/dist/js/pacem-cms.d.ts +1 -1
- package/dist/js/pacem-cms.js +1 -1
- package/dist/js/pacem-cms.min.js +1 -1
- package/dist/js/pacem-core.d.ts +1 -1
- package/dist/js/pacem-core.js +1 -1
- package/dist/js/pacem-core.min.js +1 -1
- package/dist/js/pacem-foundation.d.ts +1 -1
- package/dist/js/pacem-foundation.js +1 -1
- package/dist/js/pacem-foundation.min.js +1 -1
- package/dist/js/pacem-fx.d.ts +1 -1
- package/dist/js/pacem-fx.js +1 -1
- package/dist/js/pacem-fx.min.js +1 -1
- package/dist/js/pacem-logging.d.ts +1 -1
- package/dist/js/pacem-logging.js +1 -1
- package/dist/js/pacem-logging.min.js +1 -1
- package/dist/js/pacem-maps.d.ts +1 -1
- package/dist/js/pacem-maps.js +1 -1
- package/dist/js/pacem-maps.min.js +1 -1
- package/dist/js/pacem-media.d.ts +1 -1
- package/dist/js/pacem-media.js +1 -1
- package/dist/js/pacem-media.min.js +1 -1
- package/dist/js/pacem-networking.d.ts +1 -1
- package/dist/js/pacem-networking.js +1 -1
- package/dist/js/pacem-networking.min.js +1 -1
- package/dist/js/pacem-numerical.d.ts +1 -1
- package/dist/js/pacem-numerical.js +1 -1
- package/dist/js/pacem-numerical.min.js +1 -1
- package/dist/js/pacem-plus.d.ts +1 -1
- package/dist/js/pacem-plus.js +1 -1
- package/dist/js/pacem-plus.min.js +1 -1
- package/dist/js/pacem-scaffolding.d.ts +1 -1
- package/dist/js/pacem-scaffolding.js +1 -1
- package/dist/js/pacem-scaffolding.min.js +1 -1
- package/dist/js/pacem-ui.d.ts +1 -1
- package/dist/js/pacem-ui.js +1 -1
- package/dist/js/pacem-ui.min.js +1 -1
- package/dist/js/swagger-types.d.ts +1 -1
- package/package.json +1 -1
package/dist/js/azure-maps.d.ts
CHANGED
package/dist/js/pacem-2d.d.ts
CHANGED
package/dist/js/pacem-2d.js
CHANGED
package/dist/js/pacem-2d.min.js
CHANGED
package/dist/js/pacem-3d.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* pacem v0.51.3-
|
|
2
|
+
* pacem v0.51.3-delphi (https://js.pacem.it)
|
|
3
3
|
* Copyright 2025 Pacem (https://pacem.it)
|
|
4
4
|
* Licensed under Apache-2.0
|
|
5
5
|
*/
|
|
@@ -147,7 +147,7 @@ declare namespace Pacem.Drawing3D {
|
|
|
147
147
|
intensity: number;
|
|
148
148
|
target?: Vector3D;
|
|
149
149
|
color: string;
|
|
150
|
-
type: 'spot' | 'direction' | 'omni';
|
|
150
|
+
type: 'spot' | 'direction' | 'omni' | 'ambient';
|
|
151
151
|
attenuationStart?: number;
|
|
152
152
|
attenuationEnd?: number;
|
|
153
153
|
angle?: number;
|
|
@@ -537,11 +537,12 @@ declare namespace Pacem.Drawing3D.WebGPU {
|
|
|
537
537
|
readonly format: GPUTextureFormat;
|
|
538
538
|
}
|
|
539
539
|
type RenderPassEncoderBindDelegate = (pass: GPURenderPassEncoder, ...buffers: RenderableBuffer[]) => void;
|
|
540
|
-
type RenderableBufferKey = 'u32id' | 'cameraViewTransform' | 'objectWorldTransform' | 'geometryPositions' | 'light' | 'geometryNormals' | 'geometryTexCoords' | '
|
|
540
|
+
type RenderableBufferKey = 'u32id' | 'cameraViewTransform' | 'objectWorldTransform' | 'geometryPositions' | 'light' | 'geometryNormals' | 'geometryTexCoords' | 'material' | 'geometry';
|
|
541
541
|
type MaterialKey = 'texture' | 'sampler' | 'normalTexture' | '';
|
|
542
542
|
type Texture = {
|
|
543
543
|
texture?: GPUTexture;
|
|
544
544
|
view?: GPUTextureView;
|
|
545
|
+
source?: ImageBitmap;
|
|
545
546
|
};
|
|
546
547
|
type Buffer = {
|
|
547
548
|
buffer: GPUBuffer;
|
|
@@ -555,7 +556,9 @@ declare namespace Pacem.Drawing3D.WebGPU {
|
|
|
555
556
|
fresh: boolean;
|
|
556
557
|
};
|
|
557
558
|
version?: (key: RenderableBufferKey) => number;
|
|
558
|
-
texture(key?: MaterialKey):
|
|
559
|
+
texture(context: Context, key?: MaterialKey): Texture & {
|
|
560
|
+
fresh: boolean;
|
|
561
|
+
};
|
|
559
562
|
destroy(): any;
|
|
560
563
|
}
|
|
561
564
|
interface RenderableBuffer extends ManagedBuffer<Renderable> {
|
|
@@ -633,9 +636,10 @@ declare namespace Pacem.Drawing3D.WebGPU {
|
|
|
633
636
|
modifiers?: WGSLModifierDelegate;
|
|
634
637
|
};
|
|
635
638
|
interface Material {
|
|
636
|
-
|
|
639
|
+
/** Returns the omni-comprehensive buffer for the material WGSL struct. */
|
|
640
|
+
buffer(ctx: Context): Buffer;
|
|
637
641
|
wgsl: WGSLDelegates;
|
|
638
|
-
texture(
|
|
642
|
+
texture(ctx: Context, key?: MaterialKey): Texture;
|
|
639
643
|
}
|
|
640
644
|
interface Light {
|
|
641
645
|
wgsl: WGSLDelegates;
|
|
@@ -705,6 +709,7 @@ declare namespace Pacem.Drawing3D.WebGPU {
|
|
|
705
709
|
const VERTEX_OUTPUT_LOCATION_VERTEX = 1;
|
|
706
710
|
const VERTEX_OUTPUT_LOCATION_UV = 2;
|
|
707
711
|
const VERTEX_OUTPUT_LOCATION_INDEX = 3;
|
|
712
|
+
const VERTEX_OUTPUT_LOCATION_RAY = 4;
|
|
708
713
|
const UNIFORM_GROUP_INDEX_TRANSFORM = 0;
|
|
709
714
|
const UNIFORM_GROUP_INDEX_CAMERA = 1;
|
|
710
715
|
const UNIFORM_GROUP_INDEX_COLORPICKING = 2;
|
|
@@ -712,28 +717,51 @@ declare namespace Pacem.Drawing3D.WebGPU {
|
|
|
712
717
|
const UNIFORM_BINDING_INDEX_CAMERA = 0;
|
|
713
718
|
const MATERIAL_GROUP_INDEX = 2;
|
|
714
719
|
const UNIFORM_GROUP_INDEX_LIGHTING: number;
|
|
715
|
-
const
|
|
720
|
+
const STORAGE_MATERIAL_INDEX = 0;
|
|
716
721
|
const SAMPLER_BINDING_INDEX = 1;
|
|
717
722
|
const TEXTURE_BINDING_INDEX = 2;
|
|
723
|
+
const MATERIAL_REFERENCE = "material";
|
|
724
|
+
const VERTEX_COLOR_REFERENCE = "color";
|
|
725
|
+
const AMBIENT_COLOR_REFERENCE = "ambient";
|
|
726
|
+
const LIGHTING_COLOR_REFERENCE = "lighting";
|
|
727
|
+
}
|
|
728
|
+
declare namespace Pacem.Drawing3D.WebGPU {
|
|
729
|
+
type BasicMaterialFragmentOptions = {
|
|
730
|
+
/** Output location for normal vector (vec3f). */
|
|
731
|
+
outputNormalLocation?: number;
|
|
732
|
+
/** Output location for vertex vector (vec3f). */
|
|
733
|
+
outputVertexLocation?: number;
|
|
734
|
+
/** Output location for uv vector (vec2f). */
|
|
735
|
+
outputUvLocation?: number;
|
|
736
|
+
/** Output location for vertex index (u32). */
|
|
737
|
+
outputVertexIndexLocation?: number;
|
|
738
|
+
/** Output location for ray vector (vec3f). */
|
|
739
|
+
outputRayIndexLocation?: number;
|
|
740
|
+
storageMaterialGroupIndex?: number;
|
|
741
|
+
storageMaterialBindingIndex?: number;
|
|
742
|
+
};
|
|
743
|
+
function getBasicMaterialFragmentWgsl(extensions?: WGSLFragmentExtra, options?: Partial<BasicMaterialFragmentOptions>): string;
|
|
718
744
|
}
|
|
719
745
|
declare namespace Pacem.Drawing3D.WebGPU {
|
|
720
746
|
class Material {
|
|
721
747
|
static create(material: Pacem.Drawing3D.Material): Material;
|
|
722
|
-
static downloadBitmap(src: string): Promise<ImageBitmap>;
|
|
723
748
|
}
|
|
724
749
|
class BasicMaterial implements Material {
|
|
725
750
|
private _material;
|
|
726
|
-
constructor(_material: Pacem.Drawing3D.
|
|
727
|
-
texture(key?: MaterialKey):
|
|
751
|
+
constructor(_material: Pacem.Drawing3D.BasicMaterial);
|
|
752
|
+
texture({ device }: Context, key?: MaterialKey): Texture;
|
|
728
753
|
get wgsl(): WGSLDelegates;
|
|
729
|
-
|
|
754
|
+
buffer({ device }: Context): Buffer;
|
|
755
|
+
private _diffuseColor;
|
|
756
|
+
static fragment: typeof getBasicMaterialFragmentWgsl;
|
|
730
757
|
}
|
|
731
758
|
}
|
|
732
759
|
declare namespace Pacem.Drawing3D.WebGPU {
|
|
733
760
|
type TextureMapReferences = {
|
|
734
761
|
/** Name of the input UVMap vector parameter. */
|
|
735
762
|
uv: string;
|
|
736
|
-
|
|
763
|
+
inputColor: string;
|
|
764
|
+
outputColors?: string[];
|
|
737
765
|
};
|
|
738
766
|
export function textureMap(references: Partial<TextureMapReferences>, group: number, binding?: number): WGSLFragmentExtra;
|
|
739
767
|
export {};
|
|
@@ -748,6 +776,8 @@ declare namespace Pacem.Drawing3D.WebGPU {
|
|
|
748
776
|
outputUvLocation?: number;
|
|
749
777
|
/** Output location for uv vector (u32). */
|
|
750
778
|
outputVertexIndexLocation?: number;
|
|
779
|
+
/** Output location for ray vector (vec3f). */
|
|
780
|
+
outputRayLocation?: number;
|
|
751
781
|
/** Uniform group index for world transform matrix (mat4x4f). */
|
|
752
782
|
uniformWorldGroupIndex?: number;
|
|
753
783
|
/** Uniform group index for camera view matrix (mat4x4f). */
|
|
@@ -947,24 +977,21 @@ declare namespace Pacem.Components.Drawing3D {
|
|
|
947
977
|
export {};
|
|
948
978
|
}
|
|
949
979
|
declare namespace Pacem.Drawing3D.WebGPU {
|
|
950
|
-
type
|
|
951
|
-
/**
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
|
|
955
|
-
/** Output location for uv vector (vec2f). */
|
|
956
|
-
outputUvLocation?: number;
|
|
957
|
-
/** Output location for vertex index (u32). */
|
|
958
|
-
outputVertexIndexLocation?: number;
|
|
959
|
-
storageMaterialGroupIndex?: number;
|
|
960
|
-
storageMaterialBindingIndex?: number;
|
|
980
|
+
type AmbientLightReferences = {
|
|
981
|
+
/** Name of the input vertex color variable/constant. */
|
|
982
|
+
inputColor: string;
|
|
983
|
+
/** Name of the input vertex color variable/constant. */
|
|
984
|
+
outputColor: string;
|
|
961
985
|
};
|
|
962
|
-
function
|
|
986
|
+
export function ambientLight(references: Partial<AmbientLightReferences>, group: number, binding: number): WGSLFragmentExtra;
|
|
987
|
+
export {};
|
|
963
988
|
}
|
|
964
989
|
declare namespace Pacem.Drawing3D.WebGPU {
|
|
965
990
|
type DirectionalLightReferences = {
|
|
966
991
|
/** Name of the input vertex color variable/constant. */
|
|
967
|
-
inputColor
|
|
992
|
+
inputColor?: string;
|
|
993
|
+
/** Name of the output vertex color variable. */
|
|
994
|
+
outputColor?: string;
|
|
968
995
|
/** Name of the input normal vector parameter. */
|
|
969
996
|
normal: string;
|
|
970
997
|
};
|
|
@@ -988,6 +1015,43 @@ declare namespace Pacem.Drawing3D.WebGPU {
|
|
|
988
1015
|
*/
|
|
989
1016
|
function getColorPickingFragmentWgsl(groupIndex?: number): string;
|
|
990
1017
|
}
|
|
1018
|
+
declare namespace Pacem.Drawing3D.WebGPU {
|
|
1019
|
+
type OmniLightReferences = {
|
|
1020
|
+
/** Name of the input vertex color variable/constant. */
|
|
1021
|
+
inputColor?: string;
|
|
1022
|
+
/** Name of the output vertex color variable. */
|
|
1023
|
+
outputColor?: string;
|
|
1024
|
+
/** Name of the specular color variable. */
|
|
1025
|
+
specularColor?: string;
|
|
1026
|
+
/** Name of the shininess variable. */
|
|
1027
|
+
shininess?: string;
|
|
1028
|
+
/** Name of the input normal vector parameter. */
|
|
1029
|
+
normal: string;
|
|
1030
|
+
/** Name of the input vertex position parameter. */
|
|
1031
|
+
position: string;
|
|
1032
|
+
/** Name of the input ray (eye-to-vertex) vector parameter. */
|
|
1033
|
+
ray: string;
|
|
1034
|
+
};
|
|
1035
|
+
export function omniLight(references: Partial<OmniLightReferences>, group: number, binding: number): WGSLFragmentExtra;
|
|
1036
|
+
export {};
|
|
1037
|
+
}
|
|
1038
|
+
declare namespace Pacem.Drawing3D.WebGPU {
|
|
1039
|
+
type StandardMaterialFragmentOptions = {
|
|
1040
|
+
/** Output location for normal vector (vec3f). */
|
|
1041
|
+
outputNormalLocation?: number;
|
|
1042
|
+
/** Output location for vertex vector (vec3f). */
|
|
1043
|
+
outputVertexLocation?: number;
|
|
1044
|
+
/** Output location for uv vector (vec2f). */
|
|
1045
|
+
outputUvLocation?: number;
|
|
1046
|
+
/** Output location for vertex index (u32). */
|
|
1047
|
+
outputVertexIndexLocation?: number;
|
|
1048
|
+
/** Output location for ray vector (vec3f). */
|
|
1049
|
+
outputRayIndexLocation?: number;
|
|
1050
|
+
storageMaterialGroupIndex?: number;
|
|
1051
|
+
storageMaterialBindingIndex?: number;
|
|
1052
|
+
};
|
|
1053
|
+
function getStandardMaterialFragmentWgsl(extensions?: WGSLFragmentExtra, options?: Partial<StandardMaterialFragmentOptions>): string;
|
|
1054
|
+
}
|
|
991
1055
|
declare namespace Pacem.Components.Drawing3D {
|
|
992
1056
|
class BasicMaterialElement extends MaterialElement {
|
|
993
1057
|
constructor();
|