/// /// /// /// /// /// declare module "copyright" { export class DataResourceModelCopyright { static toString(): string; } } declare module "sk/data/resource/base/AssetResourceUtil" { import { StorageContentEnum } from 'foundation/data/common/enumeration/StorageContentEnum'; import { StorageModeEnum } from 'foundation/data/common/enumeration/StorageModeEnum'; import { StorageResourceTypeEnum } from 'foundation/data/common/enumeration/StorageResourceTypeEnum'; import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil'; export class AssetResourceUtil { static NotExistsModelId: string; static isValidModelId(id: string): boolean; static getValidModelId(id: string): string; static makeUri(modeCd: StorageModeEnum, contentCd: StorageContentEnum, resourceCd: StorageResourceTypeEnum, id: string, version: AssetVersionType, name: string): string; static makeUrl(modeCd: StorageModeEnum, contentCd: StorageContentEnum, resourceCd: StorageResourceTypeEnum, id: string, version: AssetVersionType, name: string): string; static makeMaterialDiffuseUrl(id: string, version?: string, qualityCd?: string): string; } } declare module "sk/data/resource/enumeration/MaterialQualityEnum" { import { EnumItem } from 'cross/runtime/lang/EnumItem'; import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject'; export class MaterialQualityEnum extends EnumerationObject { static Unknown: string; static Low: string; static High: string; static Ultra: string; private static _items; static get Items(): Array; } } declare module "sk/data/resource/enumeration/MaterialTypeEnum" { import { EnumItem } from 'cross/runtime/lang/EnumItem'; import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject'; export class MaterialTypeEnum extends EnumerationObject { static Unknown: string; static Standard: string; static Basic: string; static Pbr: string; private static _items; static get Items(): Array; static isHigh(typeCd: string): boolean; } } declare module "sk/data/resource/enumeration/MaterialTextureTypeEnum" { import { EnumItem } from 'cross/runtime/lang/EnumItem'; import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject'; export class MaterialTextureTypeEnum extends EnumerationObject { static Unknown: string; static Resource: string; static Name: string; static Uri: string; static Data: string; static MaterialName: string; static Reference: string; private static _items; static get Items(): Array; } } declare module "sk/data/resource/base/IGraphicMaterialTextureInfo" { import { MaterialTextureTypeEnum } from "sk/data/resource/enumeration/MaterialTextureTypeEnum"; export interface IGraphicMaterialTextureInfo { optionValid: boolean; optionAlpha: boolean; name: string; typeCd: MaterialTextureTypeEnum; resourceId: string; resourceVersion: string; resourceTypeCode?: string; value: string; level: number; uvIndex: number; url?: string; uri?: string; ext?: string; } } declare module "sk/data/resource/base/MaterialTextureStructure" { import { StructureObject } from 'cross/runtime/framework/base/StructureObject'; import { MaterialTextureTypeEnum } from "sk/data/resource/enumeration/MaterialTextureTypeEnum"; import { IGraphicMaterialTextureInfo } from "sk/data/resource/base/IGraphicMaterialTextureInfo"; export class MaterialTextureStructure extends StructureObject implements IGraphicMaterialTextureInfo { static CLASS_ID: string; static CLASS_NAME: string; name: string; typeCd: MaterialTextureTypeEnum; optionValid: boolean; optionAlpha: boolean; resourceId: string; resourceVersion: string; uvIndex: number; level: number; factor: number; value: string; fresnelValid: boolean; fresnelBias: number; fresnelPower: number; fresnelLeftColor: string; dataType: string; fresnelRightColor: string; resourceTypeCode: string; url: string; ext: string; constructor(); loadConfig(context: any, config: any): void; assign(struct: MaterialTextureStructure): void; reset(): void; } } declare module "sk/data/resource/base/element/ResourceMaterialElement" { import { BrepElement } from 'sk/data/family/element/brep/BrepElement'; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { MaterialTypeEnum } from "sk/data/resource/enumeration/MaterialTypeEnum"; import { MaterialTextureStructure } from "sk/data/resource/base/MaterialTextureStructure"; export class ResourceMaterialElement extends BrepElement { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_REFERENCE_ID: string; static FIELD_REFERENCE_EFFECT_ID: string; static FIELD_TYPE_CD: string; static FIELD_QUALITY_CD: string; static FIELD_OPTION_LIGHTING: string; static FIELD_OPTION_DOUBLE_SIDE: string; static FIELD_SIMULTANEOUS_LIGHTS: string; static FIELD_ALPHA_BASE: string; static FIELD_ALPHA: string; static FIELD_OPACITY: string; static FIELD_ANISOTROPY: string; static FIELD_AMBIENT_COLOR: string; static FIELD_AMBIENT_TEXTURE: string; static FIELD_BASE_COLOR: string; static FIELD_BASE_TEXTURE: string; static FIELD_ALBEDO_COLOR: string; static FIELD_ALBEDO_TEXTURE: string; static FIELD_OPACITY_TEXTURE: string; static FIELD_DIFFUSE_COLOR: string; static FIELD_DIFFUSE_TEXTURE: string; static FIELD_NORMAL_TEXTURE: string; static FIELD_DISPLACEMENT_TEXTURE: string; static FIELD_BUMP_TEXTURE: string; static FIELD_CLEAR_COAT: string; static FIELD_CLEAR_COAT_ROUGHNESS: string; static FIELD_SPECULAR_COLOR: string; static FIELD_SPECULAR_POWER: string; static FIELD_SPECULAR_TEXTURE: string; static FIELD_METALLIC: string; static FIELD_METALLIC_TEXTURE: string; static FIELD_ROUGHNESS: string; static FIELD_ROUGHNESS_TEXTURE: string; static FIELD_SHEEN_COLOR: string; static FIELD_SHEEN_ROUGHNESS: string; static FIELD_MICRO_SURFACE: string; static FIELD_MICRO_SURFACE_TEXTURE: string; static FIELD_GLOSSINESS: string; static FIELD_REFLECTANCE: string; static FIELD_REFLECTION_COLOR: string; static FIELD_REFLECTION_TEXTURE: string; static FIELD_REFLECTIVITY_COLOR: string; static FIELD_REFLECTIVITY_TEXTURE: string; static FIELD_REFRACTION_RATE: string; static FIELD_REFRACTION_TEXTURE: string; static FIELD_EMISSIVE: string; static FIELD_EMISSIVE_TEXTURE: string; static FIELD_EMISSIVE_COLOR: string; static FIELD_LIGHTMAP_TEXTURE: string; static FIELD_METALLIC_ROUGHNESS_TEXTURE: string; static FIELD_SPECULAR_GLOSSINESS_TEXTURE: string; static FIELD_AMBIENT_OCCLUSION: string; static FIELD_OCCLUSION_STRENGTH: string; static FIELD_OCCLUSION_TEXTURE: string; static FIELD_ENVIRONMENT_TEXTURE: string; static FIELD_ENVIRONMENT_INTENSITY: string; static FIELD_POST_LIGHTING_COLOR: string; static FIELD_TILING_U: string; static FIELD_TILING_V: string; static FIELD_TILING_W: string; static FIELD_OPTION_EFFECT: string; referenceId: string; referenceEffectId: string; typeCd: MaterialTypeEnum; qualityCd: MaterialQualityEnum; optionLighting: boolean; optionDoubleSide: boolean; simultaneousLights: number; alphaBase: number; alpha: number; opacity: number; anisotropy: number; ambientColor: string; protected _ambientTexture: MaterialTextureStructure; baseColor: string; protected _baseTexture: MaterialTextureStructure; albedoColor: string; protected _albedoTexture: MaterialTextureStructure; protected _opacityTexture: MaterialTextureStructure; diffuseColor: string; protected _diffuseTexture: MaterialTextureStructure; protected _normalTexture: MaterialTextureStructure; protected _displacementTexture: MaterialTextureStructure; protected _bumpTexture: MaterialTextureStructure; clearCoat: number; clearCoatRoughness: number; specularColor: string; specularPower: number; protected _specularTexture: MaterialTextureStructure; metallic: number; protected _metallicTexture: MaterialTextureStructure; roughness: number; protected _roughnessTexture: MaterialTextureStructure; sheenColor: string; sheenRoughness: number; microSurface: number; protected _microSurfaceTexture: MaterialTextureStructure; glossiness: number; reflectance: number; reflectionColor: string; protected _reflectionTexture: MaterialTextureStructure; reflectivityColor: string; protected _reflectivityTexture: MaterialTextureStructure; refractionRate: number; protected _refractionTexture: MaterialTextureStructure; emissive: string; protected _emissiveTexture: MaterialTextureStructure; emissiveColor: string; protected _lightmapTexture: MaterialTextureStructure; protected _metallicRoughnessTexture: MaterialTextureStructure; protected _specularGlossinessTexture: MaterialTextureStructure; ambientOcclusion: number; occlusionStrength: number; protected _occlusionTexture: MaterialTextureStructure; protected _environmentTexture: MaterialTextureStructure; environmentIntensity: number; postLightingColor: string; tilingU: number; tilingV: number; tilingW: number; optionEffect: boolean; constructor(); get ambientTexture(): MaterialTextureStructure; get baseTexture(): MaterialTextureStructure; get albedoTexture(): MaterialTextureStructure; get opacityTexture(): MaterialTextureStructure; get diffuseTexture(): MaterialTextureStructure; get normalTexture(): MaterialTextureStructure; get displacementTexture(): MaterialTextureStructure; get bumpTexture(): MaterialTextureStructure; get specularTexture(): MaterialTextureStructure; get metallicTexture(): MaterialTextureStructure; get roughnessTexture(): MaterialTextureStructure; get microSurfaceTexture(): MaterialTextureStructure; get reflectionTexture(): MaterialTextureStructure; get reflectivityTexture(): MaterialTextureStructure; get refractionTexture(): MaterialTextureStructure; get emissiveTexture(): MaterialTextureStructure; get lightmapTexture(): MaterialTextureStructure; get metallicRoughnessTexture(): MaterialTextureStructure; get specularGlossinessTexture(): MaterialTextureStructure; get occlusionTexture(): MaterialTextureStructure; get environmentTexture(): MaterialTextureStructure; reset(): void; dispose(): void; } export type ResourceMaterialElementMap = { [key: string]: ResourceMaterialElement; }; } declare module "sk/data/resource/enumeration/ResourcePictureTypeEnum" { import { EnumItem } from 'cross/runtime/lang/EnumItem'; import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject'; export class ResourcePictureTypeEnum extends EnumerationObject { static Unknown: string; static Resource: string; static Name: string; static MaterialName: string; static Reference: string; static Uri: string; private static _items; static get Items(): Array; } } declare module "sk/data/resource/base/element/ResourcePictureElement" { import { BrepElement } from 'sk/data/family/element/brep/BrepElement'; import { ResourcePictureTypeEnum } from "sk/data/resource/enumeration/ResourcePictureTypeEnum"; export class ResourcePictureElement extends BrepElement { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_TYPE_CD: string; static FIELD_VALUE: string; static FIELD_STRUCTURE_ELEMENT: string; typeCd: ResourcePictureTypeEnum; value: string; structureElement: any; constructor(); reset(): void; dispose(): void; } export type ResourcePictureElementMap = { [key: string]: ResourcePictureElement; }; } declare module "sk/data/resource/material/element/MaterialOptionStructure" { import { StructureObject } from 'cross/runtime/framework/base/StructureObject'; export class MaterialOptionStructure extends StructureObject { static CLASS_ID: string; static CLASS_NAME: string; platformCd: string; ultraImageSize: string; highImageSize: string; middleImageSize: string; lowImageSize: string; constructor(); reset(): void; } } declare module "sk/data/resource/base/IGraphicMaterialInfo" { import { Types } from 'cross/runtime/lang/collection/Types'; import { QualityEnum } from 'cross/runtime/framework/quality/QualityEnum'; import { MaterialOptionStructure } from "sk/data/resource/material/element/MaterialOptionStructure"; import { MaterialTypeEnum } from "sk/data/resource/enumeration/MaterialTypeEnum"; import { IGraphicMaterialTextureInfo } from "sk/data/resource/base/IGraphicMaterialTextureInfo"; export interface IGraphicMaterialInfo { qualityCd: QualityEnum; typeCd: MaterialTypeEnum; displayMode: number; optionLighting: boolean; optionDoubleSide: boolean; simultaneousLights: number; alphaBase: number; alpha: number; opacity: number; metallic: number; glossiness: number; roughness: number; microSurface: number; baseColor: string; baseTexture: IGraphicMaterialTextureInfo; albedoColor: string; albedoTexture: IGraphicMaterialTextureInfo; ambientColor: string; ambientTexture: IGraphicMaterialTextureInfo; opacityTexture: IGraphicMaterialTextureInfo; diffuseColor: string; diffuseTexture: IGraphicMaterialTextureInfo; normalTexture: IGraphicMaterialTextureInfo; bumpTexture: IGraphicMaterialTextureInfo; specularColor: string; specularPower: number; specularTexture: IGraphicMaterialTextureInfo; reflectionColor: string; reflectionTexture: IGraphicMaterialTextureInfo; reflectivityColor: string; reflectivityTexture: IGraphicMaterialTextureInfo; refractionRate: number; refractionTexture: IGraphicMaterialTextureInfo; microSurfaceTexture: IGraphicMaterialTextureInfo; emissiveColor: string; emissiveTexture: IGraphicMaterialTextureInfo; metallicTexture: IGraphicMaterialTextureInfo; metallicRoughnessTexture: IGraphicMaterialTextureInfo; roughnessTexture?: IGraphicMaterialTextureInfo; specularGlossinessTexture: IGraphicMaterialTextureInfo; occlusionStrength: number; occlusionTexture: IGraphicMaterialTextureInfo; lightmapTexture: IGraphicMaterialTextureInfo; environmentIntensity: number; environmentTexture: IGraphicMaterialTextureInfo; displacementTexture: IGraphicMaterialTextureInfo; baseUri: string; textureInvertY: boolean; reflectance?: number; clearCoat?: number; clearCoatRoughness?: number; sheenColor?: string; sheenRoughness?: number; ambientOcclusion?: number; emissive?: string; anisotropy?: number; postLightingColor?: string; tilingU?: number; tilingV?: number; tilingW?: number; options?: Types; effectCode?: string; backFaceCulling: boolean; } } declare module "sk/data/resource/effect/element/EffectMaterialElement" { import { ResourceMaterialElement } from "sk/data/resource/base/element/ResourceMaterialElement"; export class EffectMaterialElement extends ResourceMaterialElement { static CLASS_ID: string; static CLASS_NAME: string; constructor(); reset(): void; dispose(): void; } export type EffectMaterialElementMap = { [key: string]: EffectMaterialElement; }; } declare module "sk/data/resource/effect/element/EffectElement" { import { BrepElement } from 'sk/data/family/element/brep/BrepElement'; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { EffectMaterialElement } from "sk/data/resource/effect/element/EffectMaterialElement"; export class EffectElement extends BrepElement { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_TYPE_CD: string; static FIELD_MATERIAL: string; static FIELD_MATERIAL_QUALITY_CD: string; typeCd: string; material: EffectMaterialElement; materialQualityCd: MaterialQualityEnum; constructor(); reset(): void; dispose(): void; } export type EffectElementMap = { [key: string]: EffectElement; }; } declare module "sk/data/resource/base/node/ResourceMaterialNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { DataNode } from 'foundation/data/common/model/base/DataNode'; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { MaterialTypeEnum } from "sk/data/resource/enumeration/MaterialTypeEnum"; import { IGraphicMaterialInfo } from "sk/data/resource/base/IGraphicMaterialInfo"; import { MaterialTextureStructure } from "sk/data/resource/base/MaterialTextureStructure"; export class ResourceMaterialNode extends DataNode implements IGraphicMaterialInfo { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_TYPE_CD: string; static FIELD_QUALITY_CD: string; static FIELD_OPTION_LIGHTING: string; static FIELD_OPTION_DOUBLE_SIDE: string; static FIELD_SIMULTANEOUS_LIGHTS: string; static FIELD_ALPHA_BASE: string; static FIELD_ALPHA: string; static FIELD_OPACITY: string; static FIELD_ANISOTROPY: string; static FIELD_AMBIENT_COLOR: string; static FIELD_AMBIENT_TEXTURE: string; static FIELD_BASE_COLOR: string; static FIELD_BASE_TEXTURE: string; static FIELD_ALBEDO_COLOR: string; static FIELD_ALBEDO_TEXTURE: string; static FIELD_OPACITY_TEXTURE: string; static FIELD_DIFFUSE_COLOR: string; static FIELD_DIFFUSE_TEXTURE: string; static FIELD_NORMAL_TEXTURE: string; static FIELD_DISPLACEMENT_TEXTURE: string; static FIELD_BUMP_TEXTURE: string; static FIELD_CLEAR_COAT: string; static FIELD_CLEAR_COAT_ROUGHNESS: string; static FIELD_SPECULAR_COLOR: string; static FIELD_SPECULAR_POWER: string; static FIELD_SPECULAR_TEXTURE: string; static FIELD_METALLIC: string; static FIELD_METALLIC_TEXTURE: string; static FIELD_ROUGHNESS: string; static FIELD_ROUGHNESS_TEXTURE: string; static FIELD_SHEEN_COLOR: string; static FIELD_SHEEN_ROUGHNESS: string; static FIELD_MICRO_SURFACE: string; static FIELD_MICRO_SURFACE_TEXTURE: string; static FIELD_GLOSSINESS: string; static FIELD_REFLECTANCE: string; static FIELD_REFLECTION_COLOR: string; static FIELD_REFLECTION_TEXTURE: string; static FIELD_REFLECTIVITY_COLOR: string; static FIELD_REFLECTIVITY_TEXTURE: string; static FIELD_REFRACTION_RATE: string; static FIELD_REFRACTION_TEXTURE: string; static FIELD_EMISSIVE: string; static FIELD_EMISSIVE_TEXTURE: string; static FIELD_EMISSIVE_COLOR: string; static FIELD_LIGHTMAP_TEXTURE: string; static FIELD_METALLIC_ROUGHNESS_TEXTURE: string; static FIELD_SPECULAR_GLOSSINESS_TEXTURE: string; static FIELD_AMBIENT_OCCLUSION: string; static FIELD_OCCLUSION_STRENGTH: string; static FIELD_OCCLUSION_TEXTURE: string; static FIELD_ENVIRONMENT_TEXTURE: string; static FIELD_ENVIRONMENT_INTENSITY: string; static FIELD_POST_LIGHTING_COLOR: string; static FIELD_TILING_U: string; static FIELD_TILING_V: string; static FIELD_TILING_W: string; typeCd: MaterialTypeEnum; qualityCd: MaterialQualityEnum; optionLighting: boolean; optionDoubleSide: boolean; simultaneousLights: number; alphaBase: number; alpha: number; opacity: number; anisotropy: number; ambientColor: string; protected _ambientTexture: MaterialTextureStructure; baseColor: string; protected _baseTexture: MaterialTextureStructure; albedoColor: string; protected _albedoTexture: MaterialTextureStructure; protected _opacityTexture: MaterialTextureStructure; diffuseColor: string; protected _diffuseTexture: MaterialTextureStructure; protected _normalTexture: MaterialTextureStructure; protected _displacementTexture: MaterialTextureStructure; protected _bumpTexture: MaterialTextureStructure; clearCoat: number; clearCoatRoughness: number; specularColor: string; specularPower: number; protected _specularTexture: MaterialTextureStructure; metallic: number; protected _metallicTexture: MaterialTextureStructure; roughness: number; protected _roughnessTexture: MaterialTextureStructure; sheenColor: string; sheenRoughness: number; microSurface: number; protected _microSurfaceTexture: MaterialTextureStructure; glossiness: number; reflectance: number; reflectionColor: string; protected _reflectionTexture: MaterialTextureStructure; reflectivityColor: string; protected _reflectivityTexture: MaterialTextureStructure; refractionRate: number; protected _refractionTexture: MaterialTextureStructure; emissive: string; protected _emissiveTexture: MaterialTextureStructure; emissiveColor: string; protected _lightmapTexture: MaterialTextureStructure; protected _metallicRoughnessTexture: MaterialTextureStructure; protected _specularGlossinessTexture: MaterialTextureStructure; ambientOcclusion: number; occlusionStrength: number; protected _occlusionTexture: MaterialTextureStructure; protected _environmentTexture: MaterialTextureStructure; environmentIntensity: number; postLightingColor: string; tilingU: number; tilingV: number; tilingW: number; baseUri: string; textureInvertY: boolean; backFaceCulling: boolean; displayMode: number; constructor(); get ambientTexture(): MaterialTextureStructure; get baseTexture(): MaterialTextureStructure; get albedoTexture(): MaterialTextureStructure; get opacityTexture(): MaterialTextureStructure; get diffuseTexture(): MaterialTextureStructure; get normalTexture(): MaterialTextureStructure; get displacementTexture(): MaterialTextureStructure; get bumpTexture(): MaterialTextureStructure; get specularTexture(): MaterialTextureStructure; get metallicTexture(): MaterialTextureStructure; get roughnessTexture(): MaterialTextureStructure; get microSurfaceTexture(): MaterialTextureStructure; get reflectionTexture(): MaterialTextureStructure; get reflectivityTexture(): MaterialTextureStructure; get refractionTexture(): MaterialTextureStructure; get emissiveTexture(): MaterialTextureStructure; get lightmapTexture(): MaterialTextureStructure; get metallicRoughnessTexture(): MaterialTextureStructure; get specularGlossinessTexture(): MaterialTextureStructure; get occlusionTexture(): MaterialTextureStructure; get environmentTexture(): MaterialTextureStructure; dispose(): void; static create(document: Document): ResourceMaterialNode; } export type ResourceMaterialNodeMap = { [key: string]: ResourceMaterialNode; }; } declare module "sk/data/resource/effect/model/EffectMaterialNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { ResourceMaterialNode } from "sk/data/resource/base/node/ResourceMaterialNode"; import { IGraphicMaterialInfo } from "sk/data/resource/base/IGraphicMaterialInfo"; export class EffectMaterialNode extends ResourceMaterialNode implements IGraphicMaterialInfo { static CLASS_ID: string; static CLASS_NAME: string; transparencyMode: number; indexOfRefraction: number; invertNormalMapX: boolean; invertNormalMapY: boolean; constructor(); reset(): void; dispose(): void; static create(document: Document): EffectMaterialNode; } export type EffectMaterialNodeMap = { [key: string]: EffectMaterialNode; }; } declare module "sk/data/resource/effect/model/EffectNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { ContentNode } from 'foundation/data/common/model/brep/ContentNode'; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { EffectMaterialNode } from "sk/data/resource/effect/model/EffectMaterialNode"; export class EffectNode extends ContentNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_TYPE_CD: string; static FIELD_MATERIAL: string; static FIELD_MATERIAL_QUALITY_CD: string; typeCd: string; material: EffectMaterialNode; materialQualityCd: MaterialQualityEnum; constructor(); dispose(): void; static create(document: Document): EffectNode; } export type EffectNodeMap = { [key: string]: EffectNode; }; } declare module "sk/data/resource/effect/util/EffectAssetUtil" { import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil'; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; export class EffectAssetUtil { static makeBaseUrl(id: string, version?: AssetVersionType, qualityCd?: MaterialQualityEnum): string; static makeBaseUri(id: string, version?: AssetVersionType, qualityCd?: MaterialQualityEnum): string; static makeConfigUrl(id: string, version?: AssetVersionType): string; } } declare module "sk/data/resource/material/element/MaterialMaterialElement" { import { ResourceMaterialElement } from "sk/data/resource/base/element/ResourceMaterialElement"; export class MaterialMaterialElement extends ResourceMaterialElement { static CLASS_ID: string; static CLASS_NAME: string; constructor(); reset(): void; dispose(): void; } export type MaterialMaterialElementMap = { [key: string]: MaterialMaterialElement; }; } declare module "sk/data/resource/material/element/MaterialElement" { import { BrepElement } from 'sk/data/family/element/brep/BrepElement'; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { MaterialMaterialElement } from "sk/data/resource/material/element/MaterialMaterialElement"; export class MaterialElement extends BrepElement { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_TYPE_CD: string; static FIELD_MATERIAL: string; static FIELD_MATERIAL_QUALITY_CD: string; typeCd: string; material: MaterialMaterialElement; materialQualityCd: MaterialQualityEnum; constructor(); reset(): void; dispose(): void; } export type MaterialElementMap = { [key: string]: MaterialElement; }; } declare module "sk/data/resource/material/model/MaterialMaterialNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { ResourceMaterialNode } from "sk/data/resource/base/node/ResourceMaterialNode"; import { IGraphicMaterialInfo } from "sk/data/resource/base/IGraphicMaterialInfo"; export class MaterialMaterialNode extends ResourceMaterialNode implements IGraphicMaterialInfo { static CLASS_ID: string; static CLASS_NAME: string; transparencyMode: number; indexOfRefraction: number; invertNormalMapX: boolean; invertNormalMapY: boolean; constructor(); reset(): void; dispose(): void; static create(document: Document): MaterialMaterialNode; } export type MaterialMaterialNodeMap = { [key: string]: MaterialMaterialNode; }; } declare module "sk/data/resource/material/model/MaterialNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { ContentNode } from 'foundation/data/common/model/brep/ContentNode'; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { MaterialMaterialNode } from "sk/data/resource/material/model/MaterialMaterialNode"; export class MaterialNode extends ContentNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_TYPE_CD: string; static FIELD_MATERIAL: string; static FIELD_MATERIAL_QUALITY_CD: string; typeCd: string; material: MaterialMaterialNode; materialQualityCd: MaterialQualityEnum; constructor(); dispose(): void; static create(document: Document): MaterialNode; } export type MaterialNodeMap = { [key: string]: MaterialNode; }; } declare module "sk/data/resource/picture/util/PictureAssetUtil" { import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil'; export class PictureAssetUtil { static makePathUrl(id: string, version?: AssetVersionType): string; static makeConfigUrl(id: string, version?: AssetVersionType): string; static makePreviewUrl(id: string, version?: AssetVersionType): string; static makePictureUrl(id: string, version?: AssetVersionType): string; } } declare module "sk/data/resource/model/element/ResourceStructureElement" { import { Types } from 'cross/runtime/lang/collection/Types'; import { Element } from 'sk/data/family/element/base/Element'; import { StructureElement } from 'sk/data/family/element/base/StructureElement'; import { ResourceMaterialElement } from "sk/data/resource/base/element/ResourceMaterialElement"; import { ResourcePictureElement } from "sk/data/resource/base/element/ResourcePictureElement"; export class ResourceStructureElement extends StructureElement { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_MATERIALS: string; static FIELD_PICTURES: string; protected _materials: Types; protected _pictures: Types; constructor(); get materials(): Types; get pictures(): Types; addChild(element: Element): void; removeChild(element: Element, pooled?: boolean): void; reset(): void; dispose(): void; } export type ResourceStructureElementMap = { [key: string]: ResourceStructureElement; }; } declare module "sk/data/resource/effect/element/EffectStructureElement" { import { ResourceStructureElement } from "sk/data/resource/model/element/ResourceStructureElement"; export class EffectStructureElement extends ResourceStructureElement { static CLASS_ID: string; static CLASS_NAME: string; constructor(); reset(): void; dispose(): void; } export type EffectStructureElementMap = { [key: string]: EffectStructureElement; }; } declare module "sk/data/resource/base/ResourceDocumentTypeEnum" { export class ResourceDocumentTypeEnum { static CurveDocument: string; static EffectDocument: string; static MaterialDocument: string; static ModelDocument: string; } } declare module "sk/data/resource/material/model/ShapeEnum" { export class ShapeEnum { static Sphere: string; static Cube: string; static Column: string; static Model: string; } } declare module "sk/data/resource/effect/element/EffectFamilyStructure" { import { FamilyStructure } from 'sk/data/family/library/FamilyStructure'; import { EffectStructureElement } from "sk/data/resource/effect/element/EffectStructureElement"; export class EffectFamilyStructure extends FamilyStructure { static CLASS_NAME: string; static TYPE_NAME: string; structure: EffectStructureElement; constructor(); setup(): void; } } declare module "sk/data/resource/base/ResourceBlueprintNode" { import { Dictionary } from 'cross/runtime/lang/collection/Dictionary'; import { Document } from 'cross/runtime/framework/document/Document'; import { DataNode } from 'foundation/data/common/model/base/DataNode'; import { DataBlueprintNode } from 'foundation/data/common/model/DataBlueprintNode'; import { ResourceMaterialNode } from "sk/data/resource/base/node/ResourceMaterialNode"; export class ResourceBlueprintNode extends DataBlueprintNode { static CLASS_ID: string; static CLASS_NAME: string; materials: Dictionary; constructor(); clearNodesByType(clazz: any): void; addChild(node: DataNode, dispatch?: boolean): void; removeChild(node: DataNode, dispatch?: boolean): void; dispose(): void; static create(document: Document): ResourceBlueprintNode; } export type ResourceBlueprintNodeMap = { [key: string]: ResourceBlueprintNode; }; } declare module "sk/data/resource/effect/model/EffectObserverEnum" { export class EffectObserverEnum { static Main: string; } } declare module "sk/data/resource/effect/model/EffectShapeNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { ContentNode } from 'foundation/data/common/model/brep/ContentNode'; import { EffectMaterialNode } from "sk/data/resource/effect/model/EffectMaterialNode"; export class EffectShapeNode extends ContentNode { static CLASS_NAME: string; static FIELD_TYPE_CD: string; static FIELD_MATERIAL: string; typeCd: string; material: EffectMaterialNode; constructor(); static create(document: Document): EffectShapeNode; } export type EffectShapeNodeMap = { [key: string]: EffectShapeNode; }; } declare module "sk/data/resource/effect/model/EffectBlueprintNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { GridNode } from 'sk/data/family/model/assistant/GridNode'; import { ResourceBlueprintNode } from "sk/data/resource/base/ResourceBlueprintNode"; import { EffectShapeNode } from "sk/data/resource/effect/model/EffectShapeNode"; export class EffectBlueprintNode extends ResourceBlueprintNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_SHAPE: string; static FIELD_GRID: string; shape: EffectShapeNode; grid: GridNode; constructor(); reset(): void; dispose(): void; static create(document: Document): EffectBlueprintNode; } export type EffectBlueprintNodeMap = { [key: string]: EffectBlueprintNode; }; } declare module "sk/data/resource/effect/model/EffectDocument" { import { ResourceDocument } from "sk/data/resource/base/ResourceDocument"; import { EffectElement } from "sk/data/resource/effect/element/EffectElement"; import { EffectFamilyStructure } from "sk/data/resource/effect/element/EffectFamilyStructure"; import { EffectMaterialElement } from "sk/data/resource/effect/element/EffectMaterialElement"; import { EffectStructureElement } from "sk/data/resource/effect/element/EffectStructureElement"; import { EffectBlueprintNode } from "sk/data/resource/effect/model/EffectBlueprintNode"; import { EffectMaterialNode } from "sk/data/resource/effect/model/EffectMaterialNode"; import { EffectNode } from "sk/data/resource/effect/model/EffectNode"; export class EffectDocument extends ResourceDocument { blueprint: EffectBlueprintNode; elementClass: typeof EffectElement; nodeClass: typeof EffectNode; materialElementClass: typeof EffectMaterialElement; materialNodeClass: typeof EffectMaterialNode; get rootFamilyStructure(): EffectFamilyStructure; get rootStructure(): EffectStructureElement; loadJson(jconfig: any, options?: any): void; reset(): void; } } declare module "sk/data/resource/effect/model/ShapeEnum" { export class ShapeEnum { static Sphere: string; static Cube: string; static Column: string; static Model: string; } } declare module "sk/data/resource/effect/model/ShapeNode" { import { ContentNode } from 'foundation/data/common/model/brep/ContentNode'; import { EffectMaterialNode } from "sk/data/resource/effect/model/EffectMaterialNode"; import { ShapeEnum } from "sk/data/resource/effect/model/ShapeEnum"; export class ShapeNode extends ContentNode { modelGuid: string; modelVersion: string; material: EffectMaterialNode; modelType: ShapeEnum; constructor(); dispose(): void; } } declare module "sk/data/resource/effect/model/EffectDataDocument" { import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory'; import { EffectDocument } from "sk/data/resource/effect/model/EffectDocument"; import { ShapeNode } from "sk/data/resource/effect/model/ShapeNode"; export type a = {}; export class EffectDataDocument extends EffectDocument { protected static _factory: PersistentFactory; get model(): ShapeNode; static get Factory(): PersistentFactory; get factory(): PersistentFactory; static createEmptyDocument(json?: any, loadNode?: boolean): EffectDataDocument; static createDefaultDocument(): EffectDataDocument; } } declare module "sk/data/resource/effect/service/EffectDocumentService" { import { ContextObject } from 'cross/runtime/lang/ContextObject'; import { ResultObject } from 'cross/runtime/lang/ResultObject'; import { DataDocumentParameters } from 'cross/data/module/document/DataDocumentParameters'; import { MongoStorageDownloadParameters } from 'foundation/data/common/storage/mongo/MongoStorageDownloadParameters'; import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil'; import { DataDocumentService } from 'foundation/data/common/service/DataDocumentService'; import { EffectDocument } from "sk/data/resource/effect/model/EffectDocument"; export class EffectDocumentService extends DataDocumentService { defaultEffectID: string; constructor(); protected makeUrl(parameters: DataDocumentParameters): string; protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters; protected makeDocument(parameters: DataDocumentParameters, content: any): EffectDocument; loadDefaultEffectDocumentAsync(context: ContextObject, version?: AssetVersionType, force?: boolean | DataDocumentParameters): Promise; } } declare module "sk/data/resource/material/element/MaterialStructureElement" { import { Types } from 'cross/runtime/lang/collection/Types'; import { ResourceStructureElement } from "sk/data/resource/model/element/ResourceStructureElement"; import { MaterialOptionStructure } from "sk/data/resource/material/element/MaterialOptionStructure"; export class MaterialStructureElement extends ResourceStructureElement { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_OPTION_EFFECT: string; static FIELD_EFFECT_RESOURCE_ID: string; static FIELD_OPTIONS: string; optionEffect: boolean; effectResourceId: string; options: Types; constructor(); reset(): void; dispose(): void; } export type MaterialStructureElementMap = { [key: string]: MaterialStructureElement; }; } declare module "sk/data/resource/material/model/ShapeNode" { import { ContentNode } from 'foundation/data/common/model/brep/ContentNode'; import { MaterialMaterialNode } from "sk/data/resource/material/model/MaterialMaterialNode"; import { ShapeEnum } from "sk/data/resource/material/model/ShapeEnum"; export class ShapeNode extends ContentNode { modelGuid: string; modelVersion: string; material: MaterialMaterialNode; modelType: ShapeEnum; constructor(); dispose(): void; } } declare module "sk/data/resource/material/model/MaterialDataDocument" { import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory'; import { MaterialDocument } from "sk/data/resource/material/model/MaterialDocument"; import { ShapeNode } from "sk/data/resource/material/model/ShapeNode"; export class MaterialDataDocument extends MaterialDocument { protected static _factory: PersistentFactory; get model(): ShapeNode; static get Factory(): PersistentFactory; get factory(): PersistentFactory; static createEmptyDocument(json?: any): MaterialDataDocument; static createDefaultDocument(): MaterialDataDocument; } } declare module "sk/data/resource/material/service/MaterialDocumentService" { import { DataDocumentParameters } from 'cross/data/module/document/DataDocumentParameters'; import { MongoStorageDownloadParameters } from 'foundation/data/common/storage/mongo/MongoStorageDownloadParameters'; import { DataDocumentService } from 'foundation/data/common/service/DataDocumentService'; import { MaterialDocument } from "sk/data/resource/material/model/MaterialDocument"; export class MaterialDocumentService extends DataDocumentService { constructor(); protected makeUrl(parameters: DataDocumentParameters): string; protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters; protected makeDocument(parameters: DataDocumentParameters, content: any): MaterialDocument; } } declare module "sk/data/resource/model/element/ModelStructureElement" { import { ResourceStructureElement } from "sk/data/resource/model/element/ResourceStructureElement"; export class ModelStructureElement extends ResourceStructureElement { static CLASS_ID: string; static CLASS_NAME: string; constructor(); reset(): void; dispose(): void; } export type ModelStructureElementMap = { [key: string]: ModelStructureElement; }; } declare module "sk/data/resource/model/element/ModelGeometryElement" { import { ContentElement } from 'sk/data/family/element/brep/ContentElement'; export class ModelGeometryElement extends ContentElement { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_VERTEX_COUNT: string; static FIELD_FACE_COUNT: string; static FIELD_BOUNDING_BOX: string; vertexCount: number; faceCount: number; boundingBox: string; constructor(); reset(): void; dispose(): void; } export type ModelGeometryElementMap = { [key: string]: ModelGeometryElement; }; } declare module "sk/data/resource/model/element/ModelMeshElement" { import { ContentElement } from 'sk/data/family/element/brep/ContentElement'; import { ModelGeometryElement } from "sk/data/resource/model/element/ModelGeometryElement"; export class ModelMeshElement extends ContentElement { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_GEOMETRY: string; geometry: ModelGeometryElement; constructor(); reset(): void; dispose(): void; } export type ModelMeshElementMap = { [key: string]: ModelMeshElement; }; } declare module "sk/data/resource/model/element/ModelElement" { import { Types } from 'cross/runtime/lang/collection/Types'; import { ContentElement } from 'sk/data/family/element/brep/ContentElement'; import { ModelMeshElement } from "sk/data/resource/model/element/ModelMeshElement"; export class ModelElement extends ContentElement { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_MODEL_ID: string; static FIELD_MODEL_VERSION: string; static FIELD_BOUNDING_BOX: string; static FIELD_MESHS: string; static FIELD_TEMP_ID: string; modelId: string; modelVersion: string; boundingBox: string; meshs: Types; tempId: string; constructor(); reset(): void; dispose(): void; } export type ModelElementMap = { [key: string]: ModelElement; }; } declare module "sk/data/resource/model/element/ModelFamilyStructure" { import { FamilyStructure } from 'sk/data/family/library/FamilyStructure'; import { ModelStructureElement } from "sk/data/resource/model/element/ModelStructureElement"; export class ModelFamilyStructure extends FamilyStructure { static CLASS_NAME: string; static TYPE_NAME: string; structure: ModelStructureElement; constructor(); setup(): void; } } declare module "sk/data/resource/model/element/ModelMaterialElement" { import { ResourceMaterialElement } from "sk/data/resource/base/element/ResourceMaterialElement"; export class ModelMaterialElement extends ResourceMaterialElement { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_EFFECT_RESOURCE_ID: string; effectResourceId: string; textureInvertY: boolean; backFaceCulling: boolean; transparencyMode: number; displayMode: number; indexOfRefraction: number; invertNormalMapX: boolean; invertNormalMapY: boolean; baseUri: string; constructor(); reset(): void; dispose(): void; } export type ModelMaterialElementMap = { [key: string]: ModelMaterialElement; }; } declare module "sk/data/resource/model/resource/BufferResource" { import { IInputStream } from 'cross/runtime/lang/stream/IInputStream'; import { IOutputStream } from 'cross/runtime/lang/stream/IOutputStream'; import { ResourceObject } from 'foundation/core/resource/ResourceObject'; export class BufferResource extends ResourceObject { name: string; elementDataCd: number; elementCount: number; normalize: boolean; dataStride: number; dataCount: number; length: number; byteLength: number; data: any; unserialize(stream: IInputStream): void; serialize(output: IOutputStream): void; } export type BufferResourceMap = { [key: string]: BufferResource; }; } declare module "sk/data/resource/model/resource/GeometryResource" { import { IInputStream } from 'cross/runtime/lang/stream/IInputStream'; import { IOutputStream } from 'cross/runtime/lang/stream/IOutputStream'; import { BufferGeometry } from 'foundation/runtime/graphics/data/BufferGeometry'; import { ResourceComponent } from 'foundation/core/resource/ResourceComponent'; import { BufferResource, BufferResourceMap } from "sk/data/resource/model/resource/BufferResource"; export class GeometryResource extends ResourceComponent { vertexes: BufferResourceMap; indexes: Array; constructor(); get vertexCount(): number; get indexCount(): number; toBufferGeometry(): BufferGeometry; fromBufferGeometry(geometry: BufferGeometry): void; unserialize(input: IInputStream): void; private addNormalOrUv; serialize(output: IOutputStream): void; } } declare module "sk/data/resource/model/resource/MaterialResource" { import { IInputStream } from 'cross/runtime/lang/stream/IInputStream'; import { Color4 } from 'foundation/runtime/math/Color4'; import { ResourceComponent } from 'foundation/core/resource/ResourceComponent'; export class MaterialResource extends ResourceComponent { effectCode: string; ambientColor: Color4; diffuseColor: Color4; specularColor: Color4; emissiveColor: Color4; shininess: number; transparencyFactor: number; reflectionFactor: number; constructor(); unserialize(stream: IInputStream): void; } export type MaterialResourceMap = { [key: string]: MaterialResource; }; } declare module "sk/data/resource/model/resource/MeshResource" { import { IInputStream } from 'cross/runtime/lang/stream/IInputStream'; import { IOutputStream } from 'cross/runtime/lang/stream/IOutputStream'; import { Quaternion } from 'foundation/runtime/math/Quaternion'; import { Vector3 } from 'foundation/runtime/math/Vector3'; import { ResourceComponent } from 'foundation/core/resource/ResourceComponent'; import { GeometryResource } from "sk/data/resource/model/resource/GeometryResource"; import { MaterialResource } from "sk/data/resource/model/resource/MaterialResource"; export class MeshResource extends ResourceComponent { position: Vector3; quaternion: Quaternion; rotation: Vector3; scale: Vector3; geometry: GeometryResource; material: MaterialResource; constructor(); get vertexCount(): number; get indexCount(): number; unserialize(input: IInputStream): void; serialize(output: IOutputStream): void; } export type MeshResourceMap = { [key: string]: MeshResource; }; } declare module "sk/data/resource/model/resource/ModelResource" { import { DataStream } from 'cross/runtime/lang/stream/DataStream'; import { IInputStream } from 'cross/runtime/lang/stream/IInputStream'; import { ResourceStorage } from 'foundation/core/resource/ResourceStorage'; import { MeshResource } from "sk/data/resource/model/resource/MeshResource"; export class ModelResource extends ResourceStorage { meshs: Array; constructor(); get vertexTotal(): number; get indexTotal(): number; findMeshByName(name: string): MeshResource; unserialize(input: IInputStream): void; serialize(output: DataStream): void; } } declare module "sk/data/resource/model/model/ModelMaterialNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { NodeContext } from 'cross/runtime/framework/node/NodeContext'; import { ResourceMaterialNode } from "sk/data/resource/base/node/ResourceMaterialNode"; import { IGraphicMaterialInfo } from "sk/data/resource/base/IGraphicMaterialInfo"; export class ModelMaterialNode extends ResourceMaterialNode implements IGraphicMaterialInfo { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_OPTION_EFFECT: string; static FIELD_EFFECT_RESOURCE_ID: string; optionEffect: boolean; effectResourceId: string; transparencyMode: number; indexOfRefraction: number; invertNormalMapX: boolean; invertNormalMapY: boolean; constructor(); loadConfig(context: NodeContext, jconfig: any): void; reset(): void; dispose(): void; static create(document: Document): ModelMaterialNode; } export type ModelMaterialNodeMap = { [key: string]: ModelMaterialNode; }; } declare module "sk/data/resource/model/model/ModelGeometryNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { ContentNode } from 'foundation/data/common/model/brep/ContentNode'; export class ModelGeometryNode extends ContentNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_VERTEX_COUNT: string; static FIELD_FACE_COUNT: string; static FIELD_BOUNDING_BOX: string; vertexCount: number; faceCount: number; boundingBox: string; constructor(); dispose(): void; static create(document: Document): ModelGeometryNode; } export type ModelGeometryNodeMap = { [key: string]: ModelGeometryNode; }; } declare module "sk/data/resource/model/model/ModelMeshNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { QualityModeEnum } from 'cross/runtime/framework/quality/QualityModeEnum'; import { Matrix4 } from 'foundation/runtime/math/Matrix4'; import { BufferGeometry } from 'foundation/runtime/graphics/data/BufferGeometry'; import { ContentNode } from 'foundation/data/common/model/brep/ContentNode'; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { MeshResource } from "sk/data/resource/model/resource/MeshResource"; import { ModelGeometryNode } from "sk/data/resource/model/model/ModelGeometryNode"; import { ModelMaterialNode } from "sk/data/resource/model/model/ModelMaterialNode"; export class ModelMeshNode extends ContentNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_GEOMETRY: string; geometry: ModelGeometryNode; static FIELD_SCALE_X: string; static FIELD_SCALE_Y: string; static FIELD_SCALE_Z: string; scaleX: number; scaleY: number; scaleZ: number; vertexCount: number; faceCount: number; resource: MeshResource; geometryResource: BufferGeometry; constructor(); findMaterialByName(name: string): ModelMaterialNode; findMaterialByQuality(qualityCd: MaterialQualityEnum): ModelMaterialNode; searchMaterialByQuality(modeCd: QualityModeEnum, qualityCd: MaterialQualityEnum): ModelMaterialNode; computeMeshMatrix(): Matrix4; dispose(): void; static create(document: Document): ModelMeshNode; } export type ModelMeshNodeMap = { [key: string]: ModelMeshNode; }; } declare module "sk/data/resource/model/model/ModelNode" { import { Types } from 'cross/runtime/lang/collection/Types'; import { Document } from 'cross/runtime/framework/document/Document'; import { DataNode } from 'foundation/data/common/model/base/DataNode'; import { ContentNode } from 'foundation/data/common/model/brep/ContentNode'; import { ModelResource } from "sk/data/resource/model/resource/ModelResource"; import { ModelMaterialNode } from "sk/data/resource/model/model/ModelMaterialNode"; import { ModelMeshNode } from "sk/data/resource/model/model/ModelMeshNode"; export class ModelNode extends ContentNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_MODEL_ID: string; static FIELD_MODEL_VERSION: string; static FIELD_BOUNDING_BOX: string; static FIELD_MESHS: string; static FIELD_TEMP_ID: string; modelId: string; modelVersion: string; boundingBox: string; meshs: Types; tempId: string; vertexCount: number; faceCount: number; constructor(); findMeshByName(name: string): ModelMeshNode; getMeshByMaterial(material: ModelMaterialNode): Array; addChild(node: DataNode, dispatch?: boolean): void; removeChild(node: DataNode, dispatch?: boolean): void; computeResourceBoundary(resource: ModelResource): void; dispose(): void; static create(document: Document): ModelNode; } export type ModelNodeMap = { [key: string]: ModelNode; }; } declare module "sk/data/resource/model/model/ModelObserverEnum" { export class ModelObserverEnum { static Main: string; } } declare module "sk/data/resource/model/model/ModelBlueprintNode" { import { Types } from 'cross/runtime/lang/collection/Types'; import { Document } from 'cross/runtime/framework/document/Document'; import { GridNode } from 'sk/data/family/model/assistant/GridNode'; import { MaterialOptionStructure } from "sk/data/resource/material/element/MaterialOptionStructure"; import { ResourceBlueprintNode } from "sk/data/resource/base/ResourceBlueprintNode"; import { ModelNode } from "sk/data/resource/model/model/ModelNode"; export class ModelBlueprintNode extends ResourceBlueprintNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_GRID: string; static FIELD_OPTIONS: string; grid: GridNode; options: Types; constructor(); get model(): ModelNode; reset(): void; dispose(): void; static create(document: Document): ModelBlueprintNode; } export type ModelBlueprintNodeMap = { [key: string]: ModelBlueprintNode; }; } declare module "sk/data/resource/model/model/ModelDocumentMeta" { import { DataDocumentMeta } from 'foundation/data/common/model/DataDocumentMeta'; export class ModelDocumentMeta extends DataDocumentMeta { lengthX: number; lengthY: number; lengthZ: number; processVersion: number; } } declare module "sk/data/resource/model/model/ModelDocument" { import { ResourceDocument } from "sk/data/resource/base/ResourceDocument"; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { ModelElement } from "sk/data/resource/model/element/ModelElement"; import { ModelFamilyStructure } from "sk/data/resource/model/element/ModelFamilyStructure"; import { ModelMaterialElement } from "sk/data/resource/model/element/ModelMaterialElement"; import { ModelStructureElement } from "sk/data/resource/model/element/ModelStructureElement"; import { ModelBlueprintNode } from "sk/data/resource/model/model/ModelBlueprintNode"; import { ModelDocumentMeta } from "sk/data/resource/model/model/ModelDocumentMeta"; import { ModelMaterialNode } from "sk/data/resource/model/model/ModelMaterialNode"; import { ModelMeshNode } from "sk/data/resource/model/model/ModelMeshNode"; import { ModelNode } from "sk/data/resource/model/model/ModelNode"; export class ModelDocument extends ResourceDocument { static MODEL_PROCESS_VERSION: number; blueprint: ModelBlueprintNode; elementClass: typeof ModelElement; nodeClass: typeof ModelNode; materialElementClass: typeof ModelMaterialElement; materialNodeClass: typeof ModelMaterialNode; tempId: string; get meta(): ModelDocumentMeta; get rootStructure(): ModelStructureElement; get model(): ModelNode; protected innerCreateClass(clazz: any): any; getModelFamilyStructure(): ModelFamilyStructure; findMeshById(meshId: string): ModelMeshNode; findMaterialElement(qualityCd: MaterialQualityEnum): ModelMaterialElement; loadJsonMeta(jconfig: any): void; loadJson(jconfig: any, options?: any): void; saveJson(): any; reset(): void; } } declare module "sk/data/resource/base/ResourceDocumentUtil" { import { ContextObject } from 'cross/runtime/lang/ContextObject'; import { IContext } from 'cross/runtime/lang/IContext'; import { ResultObject } from 'cross/runtime/lang/ResultObject'; import { QualityModeEnum } from 'cross/runtime/framework/quality/QualityModeEnum'; import { DataNode } from 'foundation/data/common/model/base/DataNode'; import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil'; import { EffectMaterialNode } from "sk/data/resource/effect/model/EffectMaterialNode"; import { EffectNode } from "sk/data/resource/effect/model/EffectNode"; import { ModelDocument } from "sk/data/resource/model/model/ModelDocument"; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { ResourcePictureTypeEnum } from "sk/data/resource/enumeration/ResourcePictureTypeEnum"; import { ResourcePictureElement } from "sk/data/resource/base/element/ResourcePictureElement"; import { ResourceMaterialNode } from "sk/data/resource/base/node/ResourceMaterialNode"; import { IGraphicMaterialInfo } from "sk/data/resource/base/IGraphicMaterialInfo"; import { IGraphicMaterialTextureInfo } from "sk/data/resource/base/IGraphicMaterialTextureInfo"; import { ResourceDocument } from "sk/data/resource/base/ResourceDocument"; export class ResourceDocumentUtil { static PICTURE_STRUCTURE_DIR_NAME: string; static QUALITY_MAP: { [x: string]: string | number; 0: string; 1: string; 2: string; }; static INVALID_MERGE_FIELD_NAME_MAP: { alpha: boolean; typeCd: boolean; qualityCd: boolean; }; static QUALITY_SETTING: { [x: string]: { ambient: number; opacity: number; diffuse: number; albedo: number; normal: number; occlusion: number; roughness: number; metallic: number; metallicroughness?: undefined; } | { ambient: number; opacity: number; diffuse: number; normal: number; metallicroughness: number; occlusion: number; albedo: number; roughness: number; metallic: number; }; }; static getMaterialQuality(modeCd: QualityModeEnum): MaterialQualityEnum; static replenishUltraMaterial(document: ResourceDocument | ModelDocument, parentClass: any, materialClass: any): void; static loadMaterialInfoByResourceMaterialIdAsync(context: ContextObject, resourceId: string, qualityCd?: MaterialQualityEnum, useEffectDocumentflag?: boolean): Promise; static getMaterialInfoByEntityAsync(context: ContextObject, materialNode: ResourceMaterialNode, qualityCd?: MaterialQualityEnum, useEffectDocumentflag?: boolean): Promise>; static getMaterialInfoByParentAsync(context: ContextObject, parentNode: DataNode, qualityCd?: MaterialQualityEnum, useEffectDocumentflag?: boolean): Promise>; static mergeMaterialInfo(materialInfo: IGraphicMaterialInfo, effectInfo: IGraphicMaterialInfo, createNew?: boolean, isReferenceMaterial?: boolean): IGraphicMaterialInfo; private static resizeImageUrl; static loadEffectMaterialNodeAsync(context: IContext, resourceId: string, qualityCd: MaterialQualityEnum, resourceVersion?: AssetVersionType): Promise>; static loadEffectNodeAsync(context: IContext, resourceId: string, resourceVersion?: AssetVersionType): Promise>; static getMaterialNodeByQualityCd(parentNode: DataNode, qualityCd: any): ResourceMaterialNode; static getTextureStructureByQualityCd(parentNode: DataNode, qualityCd: string, fieldName: string): IGraphicMaterialTextureInfo; static getTextureInfoByEntity(materialNode: ResourceMaterialNode, qualityCd: string, fieldName: string): { content: IGraphicMaterialTextureInfo; uri: string; url: string; }; static getTextureInfoByEntityAsync(context: IContext, materialNode: ResourceMaterialNode, qualityCd: string, fieldName: string): Promise>; static getTextureInfoByParentAsync(context: IContext, parentNode: DataNode, qualityCd: string, fieldName: string): Promise>; static makeTextureImageRemotePath(materialNode: ResourceMaterialNode, textureInfo: IGraphicMaterialTextureInfo, resourceTypeCode: string, pathType: 'uri' | 'url', textureName?: string): string; static makeResourcePictureRemotePath(picElement: ResourcePictureElement, pathType: 'uri' | 'url'): String; static getResourcePictureElementValue(picElement: ResourcePictureElement, ext: string, typeCd: ResourcePictureTypeEnum, defaultValue?: string): string; } } declare module "sk/data/resource/material/element/MaterialFamilyStructure" { import { FamilyStructure } from 'sk/data/family/library/FamilyStructure'; import { MaterialStructureElement } from "sk/data/resource/material/element/MaterialStructureElement"; export class MaterialFamilyStructure extends FamilyStructure { static CLASS_NAME: string; static TYPE_NAME: string; structure: MaterialStructureElement; constructor(); setup(): void; } } declare module "sk/data/resource/material/model/MaterialObserverEnum" { export class MaterialObserverEnum { static Main: string; } } declare module "sk/data/resource/material/model/MaterialShapeNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { ContentNode } from 'foundation/data/common/model/brep/ContentNode'; import { MaterialMaterialNode } from "sk/data/resource/material/model/MaterialMaterialNode"; export class MaterialShapeNode extends ContentNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_TYPE_CD: string; static FIELD_MATERIAL: string; typeCd: string; material: MaterialMaterialNode; constructor(); dispose(): void; static create(document: Document): MaterialShapeNode; } export type MaterialShapeNodeMap = { [key: string]: MaterialShapeNode; }; } declare module "sk/data/resource/material/model/MaterialBlueprintNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { GridNode } from 'sk/data/family/model/assistant/GridNode'; import { ResourceBlueprintNode } from "sk/data/resource/base/ResourceBlueprintNode"; import { MaterialShapeNode } from "sk/data/resource/material/model/MaterialShapeNode"; export class MaterialBlueprintNode extends ResourceBlueprintNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_OPTION_EFFECT: string; static FIELD_EFFECT_RESOURCE_ID: string; static FIELD_SHAPE: string; static FIELD_GRID: string; optionEffect: boolean; effectResourceId: string; shape: MaterialShapeNode; grid: GridNode; constructor(); reset(): void; dispose(): void; static create(document: Document): MaterialBlueprintNode; } export type MaterialBlueprintNodeMap = { [key: string]: MaterialBlueprintNode; }; } declare module "sk/data/resource/material/model/MaterialDocument" { import { ResourceDocument } from "sk/data/resource/base/ResourceDocument"; import { MaterialElement } from "sk/data/resource/material/element/MaterialElement"; import { MaterialFamilyStructure } from "sk/data/resource/material/element/MaterialFamilyStructure"; import { MaterialMaterialElement } from "sk/data/resource/material/element/MaterialMaterialElement"; import { MaterialStructureElement } from "sk/data/resource/material/element/MaterialStructureElement"; import { MaterialBlueprintNode } from "sk/data/resource/material/model/MaterialBlueprintNode"; import { MaterialMaterialNode } from "sk/data/resource/material/model/MaterialMaterialNode"; import { MaterialNode } from "sk/data/resource/material/model/MaterialNode"; export class MaterialDocument extends ResourceDocument { blueprint: MaterialBlueprintNode; elementClass: typeof MaterialElement; nodeClass: typeof MaterialNode; materialElementClass: typeof MaterialMaterialElement; materialNodeClass: typeof MaterialMaterialNode; get rootFamilyStructure(): MaterialFamilyStructure; get rootStructure(): MaterialStructureElement; loadJson(jconfig: any, options?: any): void; reset(): void; } } declare module "sk/data/resource/material/util/MaterialAssetUtil" { import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil'; import { MaterialTextureStructure } from "sk/data/resource/base/MaterialTextureStructure"; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { MaterialDocument } from "sk/data/resource/material/model/MaterialDocument"; import { MaterialMaterialNode } from "sk/data/resource/material/model/MaterialMaterialNode"; export type ResourceMaterialFeature = { metallic: number | null; roughness: number | null; opacity: number | null; tilingU: number | null; tilingV: number | null; bumpFile: boolean; metallicFile: boolean; roughnessFile: boolean; opacityFile: boolean; }; export const QualityList: string[]; export const MaterialJPGConfig: { [key: string]: string; }; export const MaterialJPGList: [fileName: string, jpgName: string, label: string][]; export const MaterialPNGList: [fileName: string, jpgName: string, label: string][]; export const MaterialCheckList: string[]; export const MaterialParamList: [name: string, label: string, min: number, max: number, step: number, accuracy: number][]; export class MaterialAssetUtil { static makePathUrl(id: string, version?: AssetVersionType, qualityCd?: string): string; static makeBaseUri(id: string, version?: AssetVersionType, qualityCd?: MaterialQualityEnum): string; static makeConfigUrl(id: string, version?: AssetVersionType): string; static makeTextureUrl(materailNode: MaterialMaterialNode, textureNode: MaterialTextureStructure): string; static makeFeaturesFromDocument(document: MaterialDocument): ResourceMaterialFeature; } } declare module "sk/data/resource/base/ResourceDocument" { import { UniqueTypes } from 'cross/runtime/lang/collection/UniqueTypes'; import { DataNode } from 'foundation/data/common/model/base/DataNode'; import { Element } from 'sk/data/family/element/base/Element'; import { BrepElement } from 'sk/data/family/element/brep/BrepElement'; import { FamilyDocument } from 'sk/data/family/library/FamilyDocument'; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { ResourceMaterialElement } from "sk/data/resource/base/element/ResourceMaterialElement"; import { ResourcePictureElement } from "sk/data/resource/base/element/ResourcePictureElement"; import { ResourceMaterialNode } from "sk/data/resource/base/node/ResourceMaterialNode"; import { ResourceBlueprintNode } from "sk/data/resource/base/ResourceBlueprintNode"; export class ResourceDocument extends FamilyDocument { blueprint: ResourceBlueprintNode; elementClass: any; nodeClass: any; materialElementClass: any; materialNodeClass: any; static FIELD_NAMES: string[]; constructor(); getMaterialNode(qualityCd: MaterialQualityEnum): DataNode; get lowMaterialNode(): DataNode; get highMaterialNode(): DataNode; get ultraMaterialNode(): DataNode; findMaterialNode(qualityCd: MaterialQualityEnum): DataNode; getMaterialElement(qualityCd: MaterialQualityEnum): BrepElement; get lowMaterialElement(): BrepElement; get highMaterialElement(): BrepElement; get ultraMaterialElement(): BrepElement; findMaterialElement(qualityCd: MaterialQualityEnum): BrepElement; compute(): void; computeNodeLoop(elements: UniqueTypes, parentNode: DataNode): void; computeNode(element: Element, node: any): void; getReferenceMaterialElement(id: string): ResourceMaterialElement; getReferencePictureElement(id: string): ResourcePictureElement; getReferenceMaterialNode(id: string): ResourceMaterialNode; private getItemById; createNode(element: Element): any; } } declare module "sk/data/resource/base/GraphicMaterialUtil" { import { GraphicMaterialInfo } from "sk/data/resource/base/GraphicMaterialInfo"; import { IGraphicMaterialInfo } from "sk/data/resource/base/IGraphicMaterialInfo"; export class GraphicMaterialUtil { static reset(material: IGraphicMaterialInfo): void; static getMaterialInfoByEntity(entity: IGraphicMaterialInfo): GraphicMaterialInfo; } } declare module "sk/data/resource/base/GraphicMaterialInfo" { import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; import { MaterialTypeEnum } from "sk/data/resource/enumeration/MaterialTypeEnum"; import { IGraphicMaterialInfo } from "sk/data/resource/base/IGraphicMaterialInfo"; import { MaterialTextureStructure } from "sk/data/resource/base/MaterialTextureStructure"; export class GraphicMaterialInfo implements IGraphicMaterialInfo { typeCd: MaterialTypeEnum; qualityCd: MaterialQualityEnum; optionLighting: boolean; optionDoubleSide: boolean; simultaneousLights: number; alphaBase: number; alpha: number; opacity: number; anisotropy: number; ambientColor: string; protected _ambientTexture: MaterialTextureStructure; baseColor: string; protected _baseTexture: MaterialTextureStructure; albedoColor: string; protected _albedoTexture: MaterialTextureStructure; protected _opacityTexture: MaterialTextureStructure; diffuseColor: string; protected _diffuseTexture: MaterialTextureStructure; protected _normalTexture: MaterialTextureStructure; protected _displacementTexture: MaterialTextureStructure; protected _bumpTexture: MaterialTextureStructure; clearCoat: number; clearCoatRoughness: number; specularColor: string; specularPower: number; protected _specularTexture: MaterialTextureStructure; metallic: number; protected _metallicTexture: MaterialTextureStructure; roughness: number; protected _roughnessTexture: MaterialTextureStructure; sheenColor: string; sheenRoughness: number; microSurface: number; protected _microSurfaceTexture: MaterialTextureStructure; glossiness: number; reflectance: number; reflectionColor: string; protected _reflectionTexture: MaterialTextureStructure; reflectivityColor: string; protected _reflectivityTexture: MaterialTextureStructure; refractionRate: number; protected _refractionTexture: MaterialTextureStructure; emissive: string; protected _emissiveTexture: MaterialTextureStructure; emissiveColor: string; protected _lightmapTexture: MaterialTextureStructure; protected _metallicRoughnessTexture: MaterialTextureStructure; protected _specularGlossinessTexture: MaterialTextureStructure; ambientOcclusion: number; occlusionStrength: number; protected _occlusionTexture: MaterialTextureStructure; protected _environmentTexture: MaterialTextureStructure; environmentIntensity: number; postLightingColor: string; textureInvertY: boolean; backFaceCulling: boolean; transparencyMode: number; displayMode: number; indexOfRefraction: number; invertNormalMapX: boolean; invertNormalMapY: boolean; baseUri: string; constructor(); get ambientTexture(): MaterialTextureStructure; get baseTexture(): MaterialTextureStructure; get albedoTexture(): MaterialTextureStructure; get opacityTexture(): MaterialTextureStructure; get diffuseTexture(): MaterialTextureStructure; get normalTexture(): MaterialTextureStructure; get displacementTexture(): MaterialTextureStructure; get bumpTexture(): MaterialTextureStructure; get specularTexture(): MaterialTextureStructure; get metallicTexture(): MaterialTextureStructure; get roughnessTexture(): MaterialTextureStructure; get microSurfaceTexture(): MaterialTextureStructure; get reflectionTexture(): MaterialTextureStructure; get reflectivityTexture(): MaterialTextureStructure; get refractionTexture(): MaterialTextureStructure; get emissiveTexture(): MaterialTextureStructure; get lightmapTexture(): MaterialTextureStructure; get metallicRoughnessTexture(): MaterialTextureStructure; get specularGlossinessTexture(): MaterialTextureStructure; get occlusionTexture(): MaterialTextureStructure; get environmentTexture(): MaterialTextureStructure; reset(): void; } } declare module "sk/data/resource/base/ResourceMaterialUtil" { export class ResourceMaterialUtil { static isTransparent(alpha: number): boolean; static getAlphaBase(alphaBase: number): number; } } declare module "sk/data/resource/cache/effect/document/EffectDocumentCache" { import { CacheUnit } from 'foundation/data/common/cache/CacheUnit'; export class EffectDocumentCache extends CacheUnit { static CLASS_NAME: string; id: string; content: any; constructor(); } } declare module "sk/data/resource/cache/effect/document/EffectDocumentCacheService" { import { CacheUnitService } from 'foundation/data/common/cache/CacheUnitService'; import { EffectDocumentCache } from "sk/data/resource/cache/effect/document/EffectDocumentCache"; export class EffectDocumentCacheService extends CacheUnitService { constructor(); } } declare module "sk/data/resource/cache/material/document/MaterialDocumentCache" { import { CacheUnit } from 'foundation/data/common/cache/CacheUnit'; export class MaterialDocumentCache extends CacheUnit { static CLASS_NAME: string; id: string; content: any; constructor(); } } declare module "sk/data/resource/cache/material/document/MaterialDocumentCacheService" { import { CacheUnitService } from 'foundation/data/common/cache/CacheUnitService'; import { MaterialDocumentCache } from "sk/data/resource/cache/material/document/MaterialDocumentCache"; export class MaterialDocumentCacheService extends CacheUnitService { constructor(); } } declare module "sk/data/resource/cache/model/document/ResourceDocumentCache" { import { CacheUnit } from 'foundation/data/common/cache/CacheUnit'; export class ResourceDocumentCache extends CacheUnit { static CLASS_NAME: string; id: string; content: any; constructor(); } } declare module "sk/data/resource/cache/model/document/ResourceDocumentCacheService" { import { CacheUnitService } from 'foundation/data/common/cache/CacheUnitService'; import { ResourceDocumentCache } from "sk/data/resource/cache/model/document/ResourceDocumentCache"; export class ResourceDocumentCacheService extends CacheUnitService { constructor(); } } declare module "sk/data/resource/config/IResourceConfigMaterialInfo" { export interface IResourceConfigMaterialInfo { tenantId: string; libraryId: string; effectResourceId: string; } } declare module "sk/data/resource/config/ResourceConfigMaterialInfo" { import { InstanceObject } from 'cross/runtime/lang/InstanceObject'; import { IResourceConfigMaterialInfo } from "sk/data/resource/config/IResourceConfigMaterialInfo"; export class ResourceConfigMaterialInfo extends InstanceObject implements IResourceConfigMaterialInfo { tenantId: string; libraryId: string; effectResourceId: string; loadConfig(jconfig: any): void; } } declare module "sk/data/resource/curve/model/CurveNode" { import { DataNode } from 'foundation/data/common/model/base/DataNode'; export class CurveNode extends DataNode { _paramA: number; _paramB: number; _paramR: number; constructor(); get paramA(): number; get paramB(): number; get paramR(): number; compute(): void; } } declare module "sk/data/resource/curve/model/CurveNodeEnum" { export class CurveNodeEnum { static Line: string; static Arc: string; static Bezier: string; static Polygon: string; static Blueprint: string; static PointSet: string; } } declare module "sk/data/resource/curve/model/LineCurveNode" { import { Line2 } from 'foundation/runtime/math/Line2'; import { Vector2 } from 'foundation/runtime/math/Vector2'; import { CurveNode } from "sk/data/resource/curve/model/CurveNode"; export class LineCurveNode extends CurveNode { static CLASS_NAME: string; startX: number; startY: number; endX: number; endY: number; isSelect: boolean; isLock: boolean; data: Line2; protected _start: Vector2; protected _end: Vector2; constructor(); compute(): void; solveWithLine(line: CurveNode): Array; solveWithArc(arc: CurveNode): Array; } } declare module "sk/data/resource/curve/model/ArcCurveNode" { import { Arc2 } from 'foundation/runtime/math/Arc2'; import { Vector2 } from 'foundation/runtime/math/Vector2'; import { CurveNode } from "sk/data/resource/curve/model/CurveNode"; export class ArcCurveNode extends CurveNode { static CLASS_NAME: string; startX: number; startY: number; endX: number; endY: number; radius: number; clockwise: boolean; isSelect: boolean; isLock: boolean; data: Arc2; constructor(); updateShape(): void; setArcData(): void; onFieldChanged(event: any): void; compute(): void; solveWithLine(line: CurveNode): Array; solveWithArc(arc: CurveNode): Array; } } declare module "sk/data/resource/curve/model/BezierCurveNode" { import { Bezier2 } from 'foundation/runtime/math/Bezier2'; import { CurveNode } from "sk/data/resource/curve/model/CurveNode"; export class BezierCurveNode extends CurveNode { static CLASS_NAME: string; startX: number; startY: number; endX: number; endY: number; point1X: number; point1Y: number; point2X: number; point2Y: number; data: Bezier2; constructor(); updateShape(): void; setData(): void; onFieldChanged(event: any): void; compute(): void; } } declare module "sk/data/resource/curve/model/CurveObserverEnum" { export class CurveObserverEnum { static Main: string; } } declare module "sk/data/resource/curve/model/CurveBlueprintNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { DataBlueprintNode } from 'foundation/data/common/model/DataBlueprintNode'; import { GridNode } from 'sk/data/family/model/assistant/GridNode'; export class CurveBlueprintNode extends DataBlueprintNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_GRID: string; grid: GridNode; constructor(); reset(): void; update(): void; dispose(): void; static create(document: Document): CurveBlueprintNode; } export type CurveBlueprintNodeMap = { [key: string]: CurveBlueprintNode; }; } declare module "sk/data/resource/curve/model/CurveDocument" { import { Dictionary } from 'cross/runtime/lang/collection/Dictionary'; import { DataDocument } from 'foundation/data/common/model/DataDocument'; export type CurvePolygonOptions = { step: number; transform?: boolean; origin?: string; useTopOrigin?: boolean; useRightOrigin?: boolean; width?: number; height?: number; parameters?: Dictionary; }; export class CurveDocument extends DataDocument { compute(context: any): void; loadJson(jconfig: any, options?: any): void; } } declare module "sk/data/resource/curve/model/CurveDataDocument" { import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory'; import { CurveBlueprintNode } from "sk/data/resource/curve/model/CurveBlueprintNode"; import { CurveDocument } from "sk/data/resource/curve/model/CurveDocument"; export class CurveDataDocument extends CurveDocument { protected static _factory: PersistentFactory; static get Factory(): PersistentFactory; get factory(): PersistentFactory; blueprint: CurveBlueprintNode; constructor(); setup(): void; } } declare module "sk/data/resource/curve/model/PointSetNode" { import { Types } from 'cross/runtime/lang/collection/Types'; import { Vector2 } from 'foundation/runtime/math/Vector2'; import { CurveNode } from "sk/data/resource/curve/model/CurveNode"; export class PointSetNode extends CurveNode { static CLASS_NAME: string; points: Types; constructor(); clear(): void; push(pt: Vector2): void; } } declare module "sk/data/resource/curve/model/PolygonNode" { import { Types } from 'cross/runtime/lang/collection/Types'; import { Vector2 } from 'foundation/runtime/math/Vector2'; import { DataNode } from 'foundation/data/common/model/base/DataNode'; import { CurveNode } from "sk/data/resource/curve/model/CurveNode"; import { LineCurveNode } from "sk/data/resource/curve/model/LineCurveNode"; export class PolygonNode extends DataNode { static CLASS_NAME: string; width: number; height: number; protected curves: Types; protected _crossPoints: Types; protected _boundaries: Types; constructor(); constructBoundary(): void; get crossPoints(): Types; removeChild(node: CurveNode, dispatch?: boolean): void; addChild(node: CurveNode, dispatch?: boolean): void; addChildByIndex(node: CurveNode, index: number, dispatch?: boolean): void; getPreLine(node: CurveNode): CurveNode; getNextLine(node: CurveNode): CurveNode; switch(pNode: CurveNode, nNode: CurveNode): void; getWidth(): number; getHeight(): number; fetch(): Types; compute(): void; solveWithCurve(curveList: Types): Types; } } declare module "sk/data/resource/curve/model/PolygonVariableOperator" { import { DataNode } from 'foundation/data/common/model/base/DataNode'; export class PolygonVariableOperator { protected node: DataNode; constructor(node: DataNode); } } declare module "sk/data/resource/curve/util/CurveAssetUtil" { import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil'; export class CurveAssetUtil { static makeConfigUrl(id: string, version?: AssetVersionType): string; } } declare module "sk/data/resource/curve/service/CurveDocumentService" { import { DataDocumentParameters } from 'cross/data/module/document/DataDocumentParameters'; import { MongoStorageDownloadParameters } from 'foundation/data/common/storage/mongo/MongoStorageDownloadParameters'; import { DataDocumentService } from 'foundation/data/common/service/DataDocumentService'; import { CurveDocument } from "sk/data/resource/curve/model/CurveDocument"; export class CurveDocumentService extends DataDocumentService { constructor(); protected makeUrl(parameters: DataDocumentParameters): string; protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters; protected makeDocument(parameters: DataDocumentParameters, content: any): CurveDocument; } } declare module "sk/data/resource/effect/model/MaterialTemplate" { export class MaterialTemplate { static Templates: { LER: { _class: string; type_cd: number; backFace_culling: boolean; alpha: number; display_mode: number; ambient_color: string; ambient_texture_enabled: boolean; ambient_texture_level: any; diffuse_color: string; diffuse_texture_enabled: boolean; diffuse_texture_level: number; diffuse_texture_uvindex: number; diffuseFresnel_left_color: string; diffuseFresnel_right_color: string; diffuseFresnel_bias: number; diffuseFresnel_power: number; specular_color: string; specular_texture_enabled: boolean; specular_texture_level: number; specular_power: number; emissive_color: string; emssive_texture_enabled: boolean; emissive_texture_level: number; emissive_fresnel_left_color: string; emissive_fresnel_right_color: string; opacity_texture_enabled: boolean; opacity_texture_level: number; bump_texture_enabled: boolean; bump_texture_level: number; reflection_fresnel_left_color: string; reflection_fresnel_right_color: string; refraction_texture_enabled: boolean; refraction_texture_level: number; environment_texture_enabled: boolean; environment_texture_level: number; normal_texture_enabled: boolean; normal_texture_level: number; occlusion_texture_enabled: boolean; occlusion_texture_level: number; specularglossiness_texture_enabled: boolean; specularglossiness_texture_level: number; base_color: string; base_texture_enabled: boolean; base_texture_level: number; metallicroughness_texture_level: number; }; BUP: { _class: string; type_cd: number; backFace_culling: boolean; alpha: number; display_mode: number; ambient_color: string; ambient_texture_enabled: boolean; ambient_texture_level: any; diffuse_color: string; diffuse_texture_enabled: boolean; diffuse_texture_level: number; diffuse_texture_uvindex: number; diffuseFresnel_left_color: string; diffuseFresnel_right_color: string; diffuseFresnel_bias: number; diffuseFresnel_power: number; specular_color: string; specular_texture_enabled: boolean; specular_texture_level: number; specular_power: number; emissive_color: string; emssive_texture_enabled: boolean; emissive_texture_level: number; emissive_fresnel_left_color: string; emissive_fresnel_right_color: string; opacity_texture_enabled: boolean; opacity_texture_level: number; bump_texture_enabled: boolean; bump_texture_level: number; reflection_fresnel_left_color: string; reflection_fresnel_right_color: string; refraction_texture_enabled: boolean; refraction_texture_level: number; environment_texture_enabled: boolean; environment_texture_level: number; normal_texture_enabled: boolean; normal_texture_level: number; occlusion_texture_enabled: boolean; occlusion_texture_level: number; specularglossiness_texture_enabled: boolean; specularglossiness_texture_level: number; base_color: string; base_texture_enabled: boolean; base_texture_level: number; metallicroughness_texture_level: number; }; GLY: { _class: string; type_cd: number; backFace_culling: boolean; alpha: number; display_mode: number; ambient_color: string; ambient_texture_enabled: boolean; ambient_texture_level: any; diffuse_color: string; diffuse_texture_enabled: boolean; diffuse_texture_level: number; diffuse_texture_uvindex: number; diffuseFresnel_left_color: string; diffuseFresnel_right_color: string; diffuseFresnel_bias: number; diffuseFresnel_power: number; specular_color: string; specular_texture_enabled: boolean; specular_texture_level: number; specular_power: number; emissive_color: string; emssive_texture_enabled: boolean; emissive_texture_level: number; emissive_fresnel_left_color: string; emissive_fresnel_right_color: string; opacity_texture_enabled: boolean; opacity_texture_level: number; bump_texture_enabled: boolean; bump_texture_level: number; reflection_fresnel_left_color: string; reflection_fresnel_right_color: string; refraction_texture_enabled: boolean; refraction_texture_level: number; environment_texture_enabled: boolean; environment_texture_level: number; normal_texture_enabled: boolean; normal_texture_level: number; occlusion_texture_enabled: boolean; occlusion_texture_level: number; specularglossiness_texture_enabled: boolean; specularglossiness_texture_level: number; base_color: string; base_texture_enabled: boolean; base_texture_level: number; metallicroughness_texture_level: number; }; }; } } declare module "sk/data/resource/effect/service/TemplateLogicService" { import { LogicService } from 'foundation/data/common/logic/LogicService'; export type TemplateMap = { [key: string]: any; }; export class TemplateLogicService extends LogicService { statusReady: boolean; templates: TemplateMap; constructor(); findTemplate(name: string): any; private onLoadomplete; } } declare module "sk/data/resource/enumeration/OperateTypeEnum" { import { EnumItem } from 'cross/runtime/lang/EnumItem'; import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject'; export class OperateTypeEnum extends EnumerationObject { static Unknown: string; static Insert: string; static Update: string; private static _items; static get Items(): Array; } } declare module "sk/data/resource/graph/model/GraphBlueprintNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { PointNode } from 'foundation/data/common/model/brep/geometric/PointNode'; import { DataBlueprintNode } from 'foundation/data/common/model/DataBlueprintNode'; import { GridNode } from 'sk/data/family/model/assistant/GridNode'; export class GraphBlueprintNode extends DataBlueprintNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_GRID: string; static FIELD_ANCHOR_POINT: string; static FIELD_BOUNDARY_MIN: string; static FIELD_BOUNDARY_MAX: string; grid: GridNode; anchorPoint: PointNode; boundaryMin: PointNode; boundaryMax: PointNode; constructor(); reset(): void; dispose(): void; static create(document: Document): GraphBlueprintNode; } export type GraphBlueprintNodeMap = { [key: string]: GraphBlueprintNode; }; } declare module "sk/data/resource/graph/util/GraphAssetUtil" { import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil'; export class GraphAssetUtil { static makeConfigUrl(id: string, version?: AssetVersionType): string; } } declare module "sk/data/resource/graph/model/GraphDocumentMeta" { import { DataDocumentMeta } from 'foundation/data/common/model/DataDocumentMeta'; export class GraphDocumentMeta extends DataDocumentMeta { } } declare module "sk/data/resource/graph/model/GraphDocument" { import { LogicResult } from 'foundation/data/common/logic/LogicResult'; import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil'; import { DrawingGraphBlueprintNode } from 'sk/data/family/drawing/model/DrawingGraphBlueprintNode'; import { StructureDocument } from 'sk/data/family/structure/StructureDocument'; import { GraphDocumentMeta } from "sk/data/resource/graph/model/GraphDocumentMeta"; export class GraphDocument extends StructureDocument { blueprint: DrawingGraphBlueprintNode; get meta(): GraphDocumentMeta; protected innerCreateClass(clazz: any): any; loadByUrlAsync(url: string): Promise; loadByIdAsync(id: string, version?: AssetVersionType): Promise; loadJson(jconfig: any, options?: any): void; reset(): void; } } declare module "sk/data/resource/graph/model/GraphDataDocument" { import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory'; import { GraphDocument } from "sk/data/resource/graph/model/GraphDocument"; export class GraphDataDocument extends GraphDocument { protected static _factory: PersistentFactory; static get Factory(): PersistentFactory; get factory(): PersistentFactory; static createEmptyDocument(): GraphDataDocument; static createDefaultDocument(): GraphDataDocument; } } declare module "sk/data/resource/graph/service/GraphResourceService" { import { DataDocumentParameters } from 'cross/data/module/document/DataDocumentParameters'; import { MongoStorageDownloadParameters } from 'foundation/data/common/storage/mongo/MongoStorageDownloadParameters'; import { DataDocumentService } from 'foundation/data/common/service/DataDocumentService'; import { GraphDocument } from "sk/data/resource/graph/model/GraphDocument"; export class GraphResourceService extends DataDocumentService { protected makeUrl(parameters: DataDocumentParameters): string; protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters; protected makeDocument(parameters: DataDocumentParameters, content: any): GraphDocument; } } declare module "sk/data/resource/IndexSpace" { export class IndexSpace { static namespaces(): string[]; } } declare module "sk/data/resource/loader/actor/BufferGeometryResource" { import { BufferGeometry } from 'foundation/runtime/graphics/data/BufferGeometry'; import { MaterialResource } from "sk/data/resource/model/resource/MaterialResource"; export class BufferGeometryResource extends BufferGeometry { materialResource: MaterialResource; } } declare module "sk/data/resource/loader/AssetEnum" { export class AssetEnum { static Resource: string; static Family: string; static Structure: string; } } declare module "sk/data/resource/loader/io/load/CurveResourceLoader" { import { IInputStream } from 'cross/runtime/lang/stream/IInputStream'; import { WorkerDeviceService } from 'cross/core/device/worker/WorkerDeviceService'; import { BufferAttribute } from 'foundation/runtime/graphics/data/BufferAttribute'; import { BufferGeometry } from 'foundation/runtime/graphics/data/BufferGeometry'; import { BinaryLoader } from 'foundation/core/resource/loader/BinaryLoader'; import { DataNativeService } from 'foundation/data/common/service/DataNativeService'; import { BufferResource } from "sk/data/resource/model/resource/BufferResource"; import { GeometryResource } from "sk/data/resource/model/resource/GeometryResource"; import { MaterialResource } from "sk/data/resource/model/resource/MaterialResource"; import { BufferGeometryResource } from "sk/data/resource/loader/actor/BufferGeometryResource"; export class CurveResourceLoader extends BinaryLoader { optionFlipZ: boolean; optionFlipFace: boolean; geometries: Array; materialResources: Array; protected _workerService: WorkerDeviceService; protected _nativeService: DataNativeService; constructor(); createBuffer(resource: BufferResource): BufferAttribute; createGeometry(resource: GeometryResource): BufferGeometryResource; onDecompressSuccess(stream: IInputStream): void; onDecompressProgress(rate: number): void; onLoad(data: ArrayBuffer): void; handleSuccess(content: any, data: any): void; handleFailure(content: any, data: any): void; onStart(): void; } } declare module "sk/data/resource/loader/io/load/ModelDecoder" { import { IInputStream } from 'cross/runtime/lang/stream/IInputStream'; import { BufferResource } from "sk/data/resource/model/resource/BufferResource"; import { GeometryResource } from "sk/data/resource/model/resource/GeometryResource"; import { MeshResource } from "sk/data/resource/model/resource/MeshResource"; import { ModelResource } from "sk/data/resource/model/resource/ModelResource"; export class ModelDecoder { stream: IInputStream; model: ModelResource; constructor(stream?: IInputStream, model?: ModelResource); protected static decodeResourceObject(stream: any, resObject: any): void; protected static decodeResourceComponent(stream: any, resComponent: any): void; decodeModelResource(): ModelResource; protected decodeMeshResource(): MeshResource; protected decodeGeometryResource(): GeometryResource; protected decodeBufferResource(): BufferResource; protected static decodeBufferAttribute(stream: any, buffer: any): void; } } declare module "sk/data/resource/loader/io/load/DracoDecoder" { import { IInputStream } from 'cross/runtime/lang/stream/IInputStream'; import { DataNativeService } from 'foundation/data/common/service/DataNativeService'; import { BufferResource } from "sk/data/resource/model/resource/BufferResource"; import { GeometryResource } from "sk/data/resource/model/resource/GeometryResource"; import { ModelResource } from "sk/data/resource/model/resource/ModelResource"; import { ModelDecoder } from "sk/data/resource/loader/io/load/ModelDecoder"; export class DracoDecoder extends ModelDecoder { protected _nativeService: DataNativeService; constructor(stream?: IInputStream, model?: ModelResource); protected decodeGeometryResource(): GeometryResource; protected decodeBufferResource(): BufferResource; protected static decodeDracoAttribute(srcBuffer: IInputStream, size: number, geometry: GeometryResource): void; protected static parseAttributeName(srcBuffer: IInputStream): string; protected static decodeMeshAttributeData(stream: IInputStream, attr: BufferResource): void; } } declare module "sk/data/resource/loader/io/load/ModelLoader" { import { MeshLambertMaterial } from 'foundation/runtime/graphics/material/MeshLambertMaterial'; import { BinaryLoader } from 'foundation/core/resource/loader/BinaryLoader'; export class ModelLoader extends BinaryLoader { protected static DefaultMaterial: MeshLambertMaterial; geometries: Array; constructor(); protected getDefaultMaterial(): MeshLambertMaterial; onLoad(data: any): void; } } declare module "sk/data/resource/loader/io/ResourceLoaderTypeEnum" { export class ResourceLoaderTypeEnum { static ContentTopview: string; static ContentModelConfig: string; static ContentModelData: string; static ContentTexture: string; static ContentPackTexture: string; static CeilingTexture: string; static FloorTexture: string; static WallTexture: string; static Interface: string; static Configuration: string; static Document: string; } } declare module "sk/data/resource/loader/io/load/ModelResourceLoader" { import { IInputStream } from 'cross/runtime/lang/stream/IInputStream'; import { ResultObject } from 'cross/runtime/lang/ResultObject'; import { WorkerDeviceService } from 'cross/core/device/worker/WorkerDeviceService'; import { BufferAttribute } from 'foundation/runtime/graphics/data/BufferAttribute'; import { BufferGeometry } from 'foundation/runtime/graphics/data/BufferGeometry'; import { BinaryLoader } from 'foundation/core/resource/loader/BinaryLoader'; import { ResourceResult } from 'foundation/core/resource/ResourceResult'; import { DataNativeService } from 'foundation/data/common/service/DataNativeService'; import { BufferResource } from "sk/data/resource/model/resource/BufferResource"; import { GeometryResource } from "sk/data/resource/model/resource/GeometryResource"; import { MaterialResource } from "sk/data/resource/model/resource/MaterialResource"; import { ModelResource } from "sk/data/resource/model/resource/ModelResource"; import { BufferGeometryResource } from "sk/data/resource/loader/actor/BufferGeometryResource"; export class ModelResourceLoader extends BinaryLoader { optionFlipZ: boolean; optionFlipFace: boolean; resource: ModelResource; geometries: Array; materialResources: Array; protected _workerService: WorkerDeviceService; protected _nativeService: DataNativeService; constructor(); createBuffer(resource: BufferResource): BufferAttribute; createGeometry(resource: GeometryResource): BufferGeometryResource; onDecompressSuccess(stream: IInputStream): void; onDecompressProgress(rate: number): void; onLoad(data: ArrayBuffer): void; handleSuccess(content: any, data: any): void; handleFailure(content: any, data: any): void; protected onStartAsync(): Promise; loadAsync(url: string): Promise; } } declare module "sk/data/resource/loader/io/load/TextureResource" { export class TextureResource { } } declare module "sk/data/resource/loader/io/load/PackTextureLoader" { import { Types } from 'cross/runtime/lang/collection/Types'; import { BinaryLoader } from 'foundation/core/resource/loader/BinaryLoader'; import { DataNativeService } from 'foundation/data/common/service/DataNativeService'; import { TextureResource } from "sk/data/resource/loader/io/load/TextureResource"; export class PackTextureLoader extends BinaryLoader { textures: Types; protected _nativeService: DataNativeService; constructor(); onLoad(data: ArrayBuffer): void; } } declare module "sk/data/resource/loader/io/load/TextureLoader" { import { Types } from 'cross/runtime/lang/collection/Types'; import { ImageLoader } from 'foundation/core/resource/loader/ImageLoader'; import { TextureResource } from "sk/data/resource/loader/io/load/TextureResource"; export class TextureLoader extends ImageLoader { textures: Types; constructor(); makePowerOfTwo(content: HTMLImageElement | HTMLCanvasElement): HTMLCanvasElement; onLoad(data: any): void; } } declare module "sk/data/resource/loader/io/ResourceLoaderService" { import { ResourceService } from 'foundation/core/resource/ResourceService'; export class ResourceLoaderService extends ResourceService { constructor(); initialize(): void; } } declare module "sk/data/resource/material/model/MaterialTemplate" { export class MaterialTemplate { static Templates: { LER: { _class: string; type_cd: number; backFace_culling: boolean; alpha: number; display_mode: number; ambient_color: string; ambient_texture_enabled: boolean; ambient_texture_level: any; diffuse_color: string; diffuse_texture_enabled: boolean; diffuse_texture_level: number; diffuse_texture_uvindex: number; diffuseFresnel_left_color: string; diffuseFresnel_right_color: string; diffuseFresnel_bias: number; diffuseFresnel_power: number; specular_color: string; specular_texture_enabled: boolean; specular_texture_level: number; specular_power: number; emissive_color: string; emssive_texture_enabled: boolean; emissive_texture_level: number; emissive_fresnel_left_color: string; emissive_fresnel_right_color: string; opacity_texture_enabled: boolean; opacity_texture_level: number; bump_texture_enabled: boolean; bump_texture_level: number; reflection_fresnel_left_color: string; reflection_fresnel_right_color: string; refraction_texture_enabled: boolean; refraction_texture_level: number; environment_texture_enabled: boolean; environment_texture_level: number; normal_texture_enabled: boolean; normal_texture_level: number; occlusion_texture_enabled: boolean; occlusion_texture_level: number; specularglossiness_texture_enabled: boolean; specularglossiness_texture_level: number; base_color: string; base_texture_enabled: boolean; base_texture_level: number; metallicroughness_texture_level: number; }; BUP: { _class: string; type_cd: number; backFace_culling: boolean; alpha: number; display_mode: number; ambient_color: string; ambient_texture_enabled: boolean; ambient_texture_level: any; diffuse_color: string; diffuse_texture_enabled: boolean; diffuse_texture_level: number; diffuse_texture_uvindex: number; diffuseFresnel_left_color: string; diffuseFresnel_right_color: string; diffuseFresnel_bias: number; diffuseFresnel_power: number; specular_color: string; specular_texture_enabled: boolean; specular_texture_level: number; specular_power: number; emissive_color: string; emssive_texture_enabled: boolean; emissive_texture_level: number; emissive_fresnel_left_color: string; emissive_fresnel_right_color: string; opacity_texture_enabled: boolean; opacity_texture_level: number; bump_texture_enabled: boolean; bump_texture_level: number; reflection_fresnel_left_color: string; reflection_fresnel_right_color: string; refraction_texture_enabled: boolean; refraction_texture_level: number; environment_texture_enabled: boolean; environment_texture_level: number; normal_texture_enabled: boolean; normal_texture_level: number; occlusion_texture_enabled: boolean; occlusion_texture_level: number; specularglossiness_texture_enabled: boolean; specularglossiness_texture_level: number; base_color: string; base_texture_enabled: boolean; base_texture_level: number; metallicroughness_texture_level: number; }; GLY: { _class: string; type_cd: number; backFace_culling: boolean; alpha: number; display_mode: number; ambient_color: string; ambient_texture_enabled: boolean; ambient_texture_level: any; diffuse_color: string; diffuse_texture_enabled: boolean; diffuse_texture_level: number; diffuse_texture_uvindex: number; diffuseFresnel_left_color: string; diffuseFresnel_right_color: string; diffuseFresnel_bias: number; diffuseFresnel_power: number; specular_color: string; specular_texture_enabled: boolean; specular_texture_level: number; specular_power: number; emissive_color: string; emssive_texture_enabled: boolean; emissive_texture_level: number; emissive_fresnel_left_color: string; emissive_fresnel_right_color: string; opacity_texture_enabled: boolean; opacity_texture_level: number; bump_texture_enabled: boolean; bump_texture_level: number; reflection_fresnel_left_color: string; reflection_fresnel_right_color: string; refraction_texture_enabled: boolean; refraction_texture_level: number; environment_texture_enabled: boolean; environment_texture_level: number; normal_texture_enabled: boolean; normal_texture_level: number; occlusion_texture_enabled: boolean; occlusion_texture_level: number; specularglossiness_texture_enabled: boolean; specularglossiness_texture_level: number; base_color: string; base_texture_enabled: boolean; base_texture_level: number; metallicroughness_texture_level: number; }; }; } } declare module "sk/data/resource/material/service/TemplateLogicService" { import { LogicService } from 'foundation/data/common/logic/LogicService'; export type TemplateMap = { [key: string]: any; }; export class TemplateLogicService extends LogicService { statusReady: boolean; templates: TemplateMap; constructor(); findTemplate(name: string): any; private onLoadomplete; } } declare module "sk/data/resource/model/model/MaterialTemplate" { export class MaterialTemplate { static Templates: { LER: { _class: string; type_cd: number; backFace_culling: boolean; alpha: number; display_mode: number; ambient_color: string; ambient_texture_enabled: boolean; ambient_texture_level: any; diffuse_color: string; diffuse_texture_enabled: boolean; diffuse_texture_level: number; diffuse_texture_uvindex: number; diffuseFresnel_left_color: string; diffuseFresnel_right_color: string; diffuseFresnel_bias: number; diffuseFresnel_power: number; specular_color: string; specular_texture_enabled: boolean; specular_texture_level: number; specular_power: number; emissive_color: string; emssive_texture_enabled: boolean; emissive_texture_level: number; emissive_fresnel_left_color: string; emissive_fresnel_right_color: string; opacity_texture_enabled: boolean; opacity_texture_level: number; bump_texture_enabled: boolean; bump_texture_level: number; reflection_fresnel_left_color: string; reflection_fresnel_right_color: string; refraction_texture_enabled: boolean; refraction_texture_level: number; environment_texture_enabled: boolean; environment_texture_level: number; normal_texture_enabled: boolean; normal_texture_level: number; occlusion_texture_enabled: boolean; occlusion_texture_level: number; specularglossiness_texture_enabled: boolean; specularglossiness_texture_level: number; base_color: string; base_texture_enabled: boolean; base_texture_level: number; metallicroughness_texture_level: number; }; BUP: { _class: string; type_cd: number; backFace_culling: boolean; alpha: number; display_mode: number; ambient_color: string; ambient_texture_enabled: boolean; ambient_texture_level: any; diffuse_color: string; diffuse_texture_enabled: boolean; diffuse_texture_level: number; diffuse_texture_uvindex: number; diffuseFresnel_left_color: string; diffuseFresnel_right_color: string; diffuseFresnel_bias: number; diffuseFresnel_power: number; specular_color: string; specular_texture_enabled: boolean; specular_texture_level: number; specular_power: number; emissive_color: string; emssive_texture_enabled: boolean; emissive_texture_level: number; emissive_fresnel_left_color: string; emissive_fresnel_right_color: string; opacity_texture_enabled: boolean; opacity_texture_level: number; bump_texture_enabled: boolean; bump_texture_level: number; reflection_fresnel_left_color: string; reflection_fresnel_right_color: string; refraction_texture_enabled: boolean; refraction_texture_level: number; environment_texture_enabled: boolean; environment_texture_level: number; normal_texture_enabled: boolean; normal_texture_level: number; occlusion_texture_enabled: boolean; occlusion_texture_level: number; specularglossiness_texture_enabled: boolean; specularglossiness_texture_level: number; base_color: string; base_texture_enabled: boolean; base_texture_level: number; metallicroughness_texture_level: number; }; GLY: { _class: string; type_cd: number; backFace_culling: boolean; alpha: number; display_mode: number; ambient_color: string; ambient_texture_enabled: boolean; ambient_texture_level: any; diffuse_color: string; diffuse_texture_enabled: boolean; diffuse_texture_level: number; diffuse_texture_uvindex: number; diffuseFresnel_left_color: string; diffuseFresnel_right_color: string; diffuseFresnel_bias: number; diffuseFresnel_power: number; specular_color: string; specular_texture_enabled: boolean; specular_texture_level: number; specular_power: number; emissive_color: string; emssive_texture_enabled: boolean; emissive_texture_level: number; emissive_fresnel_left_color: string; emissive_fresnel_right_color: string; opacity_texture_enabled: boolean; opacity_texture_level: number; bump_texture_enabled: boolean; bump_texture_level: number; reflection_fresnel_left_color: string; reflection_fresnel_right_color: string; refraction_texture_enabled: boolean; refraction_texture_level: number; environment_texture_enabled: boolean; environment_texture_level: number; normal_texture_enabled: boolean; normal_texture_level: number; occlusion_texture_enabled: boolean; occlusion_texture_level: number; specularglossiness_texture_enabled: boolean; specularglossiness_texture_level: number; base_color: string; base_texture_enabled: boolean; base_texture_level: number; metallicroughness_texture_level: number; }; }; } } declare module "sk/data/resource/service/ResourceWorkflowEnum" { export class ResourceWorkflowEnum { static Compute: string; } } declare module "sk/data/resource/model/model/ModelDocumentUtil" { import { Element } from 'sk/data/family/element/base/Element'; import { BrepElement } from 'sk/data/family/element/brep/BrepElement'; import { ContentElement } from 'sk/data/family/element/brep/ContentElement'; import { VertexElement } from 'sk/data/family/element/brep/VertexElement'; import { FamilyStructure } from 'sk/data/family/library/FamilyStructure'; import { ResourcePictureElement } from "sk/data/resource/base/element/ResourcePictureElement"; import { MaterialTextureStructure } from "sk/data/resource/base/MaterialTextureStructure"; import { ModelElement } from "sk/data/resource/model/element/ModelElement"; import { ModelGeometryElement } from "sk/data/resource/model/element/ModelGeometryElement"; import { ModelMaterialElement } from "sk/data/resource/model/element/ModelMaterialElement"; import { ModelMeshElement } from "sk/data/resource/model/element/ModelMeshElement"; import { ResourceStructureElement } from "sk/data/resource/model/element/ResourceStructureElement"; import { ModelDocument } from "sk/data/resource/model/model/ModelDocument"; export class ModelDocumentUtil { static getModelInfoByModelConfig(jconfig: any): any; static createDocumentByModelConfig(jconfig: any, tempId?: string): ModelDocument; static createDocumentByOption(jconfig: any): ModelDocument; static convertModelConfig(document: ModelDocument, jconfig: any, tempId?: string): void; protected static createModelGeometryElementByModelConfig(structure: FamilyStructure, jcontent: any): ModelGeometryElement; protected static createModelMaterialElementByModelConfig(rootStructure: ResourceStructureElement, jcontent?: any, qualityCd?: string, referenceElement?: ModelMaterialElement, referencePicMap?: Map): ModelMaterialElement; protected static setModelTexture(textureStructure: MaterialTextureStructure, jTextureInfo: any, fileName: string, rootStructure: ResourceStructureElement, referencePicMap: Map): void; protected static createModelMeshElementByModelConfig(structure: FamilyStructure, jcontent: any): ModelMeshElement; protected static setContentElementBasePropertyByModelConfig(element: ContentElement, jcontent: any): void; static convertJconfig(document: ModelDocument, jconfig: any): void; protected static convertModelElement(element: ModelElement, jcontent: any): ModelElement; protected static createModelMeshElement(structure: FamilyStructure, jcontent: any): ModelMeshElement; protected static createModelGeometryElement(structure: FamilyStructure, jcontent: any): ModelGeometryElement; protected static createModelMaterialElement(structure: FamilyStructure, jcontent: any): ModelMaterialElement; protected static setTextureValue(textureStructure: MaterialTextureStructure, name: string, value: string): void; protected static setContentProperty(element: ContentElement, jcontent: any): void; protected static setVertexProperty(element: VertexElement, jcontent: any): void; protected static setBrepProperty(element: BrepElement, jcontent: any): void; protected static setInstanceProperty(element: BrepElement, jcontent: any): void; protected static setBaseProperty(element: Element, jcontent: any): void; } } declare module "sk/data/resource/model/util/ModelAssetUtil" { import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil'; import { MaterialQualityEnum } from "sk/data/resource/enumeration/MaterialQualityEnum"; export class ModelAssetUtil { static makePathUri(id: string, version?: AssetVersionType, qualityCd?: MaterialQualityEnum): string; static makePathUrl(id: string, version?: AssetVersionType, qualityCd?: MaterialQualityEnum): string; static makeConfigUrl(id: string, version?: AssetVersionType): string; static makePreviewUrl(id: string, version?: AssetVersionType): string; static makeTopviewUrl(id: string, version?: AssetVersionType): string; static makeModelUrl(id: string, version?: AssetVersionType): string; static makeModelUri(id: string, version?: AssetVersionType): string; } } declare module "sk/data/resource/model/service/ModelDocumentService" { import { Dictionary } from 'cross/runtime/lang/collection/Dictionary'; import { ContextObject } from 'cross/runtime/lang/ContextObject'; import { ResultObject } from 'cross/runtime/lang/ResultObject'; import { LockService } from 'cross/runtime/module/lock/LockService'; import { ProcessPipeService } from 'cross/runtime/module/pipe/ProcessPipeService'; import { DataDocumentParameters } from 'cross/data/module/document/DataDocumentParameters'; import { MongoStorageDownloadParameters } from 'foundation/data/common/storage/mongo/MongoStorageDownloadParameters'; import { VersionUpgradeService } from 'foundation/data/common/version/upgrade/VersionUpgradeService'; import { WorkflowProcesResult } from 'foundation/data/common/workflow/process/WorkflowProcesResult'; import { DataDocumentService } from 'foundation/data/common/service/DataDocumentService'; import { Element } from 'sk/data/family/element/base/Element'; import { WorkflowProcessService } from 'sk/data/family/workflow/WorkflowProcessService'; import { ModelDocument } from "sk/data/resource/model/model/ModelDocument"; export type ModelWorkflowOptions = { document?: ModelDocument; element?: Element; content?: any; calculatorTypeCd?: string; calculatorCd?: string; processSyncLock?: boolean; processSyncPipe?: boolean; processForce?: boolean; processComposite?: boolean; processShape?: boolean; processRule?: boolean; processBoundary?: boolean; processStructure?: boolean; processTechnology?: boolean; processMolding?: boolean; processCollision?: boolean; parameters?: any; force?: boolean; clearCache?: boolean; createAll?: boolean; }; export interface ModelMeshProps { modelResourceId: string; meshName: string; meshLengthX: number; meshLengthY: number; meshLengthZ: number; meshRotationX: number; meshRotationY: number; meshRotationZ: number; } export class ModelDocumentService extends DataDocumentService { protected _workflowProcessService: WorkflowProcessService; protected _processPipeService: ProcessPipeService; protected _versionUpgradeService: VersionUpgradeService; protected _lockService: LockService; protected _designComputeMap: Dictionary; constructor(); protected makeUrl(parameters: DataDocumentParameters): string; protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters; protected makeDocument(parameters: DataDocumentParameters, content: any): ModelDocument; computeDocumentNode(context: ContextObject, document: ModelDocument): void; getModelMeshPropsAsync(id: string, version?: string): Promise>; protected makeOptions(options?: ModelWorkflowOptions): ModelWorkflowOptions; computeWorkflow(context: ContextObject, name: string, options: ModelWorkflowOptions): WorkflowProcesResult; } } declare module "sk/data/resource/model/model/ModelDataDocument" { import { ResultObject } from 'cross/runtime/lang/ResultObject'; import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory'; import { ModelDocument } from "sk/data/resource/model/model/ModelDocument"; import { ModelNode } from "sk/data/resource/model/model/ModelNode"; export class ModelDataDocument extends ModelDocument { protected static _factory: PersistentFactory; static get Factory(): PersistentFactory; get factory(): PersistentFactory; get model(): ModelNode; loadModelDataAsync(): Promise; loadModelDataOnBackendAsync(): Promise; static createEmptyDocument(json?: any): ModelDataDocument; static createDefaultDocument(): ModelDataDocument; } } declare module "sk/data/resource/model/render/RenderDocumentGeometry" { import { ModelGeometryNode } from "sk/data/resource/model/model/ModelGeometryNode"; export class RenderDocumentGeometry { guid: string; typeName: string; faceCount: number; vertexCount: number; size: string; constructor(); loadJson(jconfig: any): void; saveJson(): any; reset(): void; clone(): RenderDocumentGeometry; from(value: ModelGeometryNode): void; } } declare module "sk/data/resource/model/render/RenderDocumentMesh" { import { ModelMeshNode } from "sk/data/resource/model/model/ModelMeshNode"; import { MeshResource } from "sk/data/resource/model/resource/MeshResource"; import { RenderDocumentGeometry } from "sk/data/resource/model/render/RenderDocumentGeometry"; export class RenderDocumentMesh { guid: string; typeName: string; geometry: RenderDocumentGeometry; materialId: string; position: string; quaternion: string; rotation: string; scale: string; name: string; resouce: MeshResource; constructor(); reset(): void; loadJson(jconfig: any): void; saveJson(): any; clone(): RenderDocumentMesh; from(value: ModelMeshNode): void; } } declare module "sk/data/resource/model/render/RenderDocumentUtil" { import { ContextObject } from 'cross/runtime/lang/ContextObject'; import { IContext } from 'cross/runtime/lang/IContext'; import { ResultObject } from 'cross/runtime/lang/ResultObject'; import { QualityEnum } from 'cross/runtime/framework/quality/QualityEnum'; import { EffectDocument } from "sk/data/resource/effect/model/EffectDocument"; import { MaterialDocument } from "sk/data/resource/material/model/MaterialDocument"; import { IGraphicMaterialInfo } from "sk/data/resource/base/IGraphicMaterialInfo"; import { ModelDocument } from "sk/data/resource/model/model/ModelDocument"; import { ModelMeshNode } from "sk/data/resource/model/model/ModelMeshNode"; import { RenderDocument } from "sk/data/resource/model/render/RenderDocument"; import { RenderDocumentMaterial } from "sk/data/resource/model/render/RenderDocumentMaterial"; import { RenderDocumentMesh } from "sk/data/resource/model/render/RenderDocumentMesh"; export class RenderDocumentUtil { protected static _TYPE_NAME_MAP: any; static get typeNameMap(): any; static createRenderDocumentByModelDocumentAsync(context: ContextObject, modelDocument: ModelDocument, qualityCd?: QualityEnum): Promise>; static createRenderDocumentMaterialByMaterialInfo(materialInfo: IGraphicMaterialInfo): RenderDocumentMaterial; static createRenderDocumentMeshByModelMeshNode(node: ModelMeshNode): RenderDocumentMesh; private static setRenderDocumentTextureByTextureInfo; static createRenderDocumentByEffectDocumentAsync(context: IContext, effectDocument: EffectDocument, qualityCd: any, meshJson: any): Promise>; static createRenderDocumentByMaterialDocumentAsync(context: IContext, materialDocument: MaterialDocument, qualityCd: any, meshJson: any): Promise>; static convertObjectJson(source: any, oToJ?: boolean, target?: any): any; } } declare module "sk/data/resource/model/render/RenderDocumentTexture" { import { MaterialTextureStructure } from "sk/data/resource/base/MaterialTextureStructure"; export class RenderDocumentTexture { guid: string; typeName: string; fileName: string; url: string; uri: string; constructor(); loadJson(jconfig: any): void; saveJson(): any; reset(): void; from(value: MaterialTextureStructure): void; } } declare module "sk/data/resource/model/render/RenderDocumentMaterial" { import { QualityEnum } from 'cross/runtime/framework/quality/QualityEnum'; import { MaterialMaterialNode } from "sk/data/resource/material/model/MaterialMaterialNode"; import { MaterialTypeEnum } from "sk/data/resource/enumeration/MaterialTypeEnum"; import { ModelMaterialNode } from "sk/data/resource/model/model/ModelMaterialNode"; import { RenderDocumentTexture } from "sk/data/resource/model/render/RenderDocumentTexture"; export class RenderDocumentMaterial { guid: string; typeName: string; name: string; effectCode: string; shininess: string; bump: string; qualityCd: QualityEnum; typeCd: MaterialTypeEnum; displayMode: number; optionLighting: boolean; optionDoubleSide: boolean; simultaneousLights: number; alphaBase: number; alpha: number; metallic: number; glossiness: number; roughness: number; microSurface: number; baseColor: string; albedoColor: string; ambientColor: string; diffuseColor: string; specularColor: string; specularPower: number; reflectionColor: string; reflectivityColor: string; refractionRate: number; emissiveColor: string; occlusionStrength: number; environmentIntensity: number; baseUri: string; textureInvertY: boolean; reflectance?: number; clearCoat?: number; clearCoatRoughness?: number; sheenColor?: string; sheenRoughness?: number; ambientOcclusion?: number; emissive?: string; anisotropy?: number; postLightingColor?: string; baseTexture: RenderDocumentTexture; albedoTexture: RenderDocumentTexture; ambientTexture: RenderDocumentTexture; opacityTexture: RenderDocumentTexture; diffuseTexture: RenderDocumentTexture; normalTexture: RenderDocumentTexture; bumpTexture: RenderDocumentTexture; specularTexture: RenderDocumentTexture; reflectionTexture: RenderDocumentTexture; reflectivityTexture: RenderDocumentTexture; refractionTexture: RenderDocumentTexture; microSurfaceTexture: RenderDocumentTexture; emissiveTexture: RenderDocumentTexture; metallicTexture: RenderDocumentTexture; metallicRoughnessTexture: RenderDocumentTexture; roughnessTexture?: RenderDocumentTexture; specularGlossinessTexture: RenderDocumentTexture; occlusionTexture: RenderDocumentTexture; lightmapTexture: RenderDocumentTexture; environmentTexture: RenderDocumentTexture; displacementTexture: RenderDocumentTexture; backFaceCulling: boolean; constructor(); get textures(): RenderDocumentTexture[]; loadJson(jconfig: any): void; saveJson(): any; reset(): void; from(value: ModelMaterialNode | MaterialMaterialNode): void; } } declare module "sk/data/resource/model/render/RenderDocument" { import { RenderDocumentMaterial } from "sk/data/resource/model/render/RenderDocumentMaterial"; import { RenderDocumentMesh } from "sk/data/resource/model/render/RenderDocumentMesh"; export class RenderDocument { guid: string; name: string; typeName: string; boundingBox: string; lengthX: number; lengthY: number; lengthZ: number; materialCount: number; materials: RenderDocumentMaterial[]; meshCount: number; meshs: RenderDocumentMesh[]; constructor(); reset(): void; findMaterialByGuid(guid: string): RenderDocumentMaterial; loadJson(jconfig: any): void; saveJson(): any; static createDocumentByJson(jconfig: any): RenderDocument; } } declare module "sk/data/resource/model/render/RenderDocumentMaterial_old" { import { ModelMaterialNode } from "sk/data/resource/model/model/ModelMaterialNode"; import { RenderDocumentTexture } from "sk/data/resource/model/render/RenderDocumentTexture"; export class RenderDocumentMaterial { typeCd: string; guid: string; typeName: string; name: string; bump: string; effectCode: string; shininess: number; ambientFactor: number; bumpFactor: number; diffuseFactor: number; emissiveFactor: number; reflectionFactor: number; specularFactor: number; transparencyFactor: number; ambientColor: string; diffuseColor: string; emissiveColor: string; reflectionColor: string; specularColor: string; transparentColor: string; diffuseTexture: RenderDocumentTexture; albedoTexture: RenderDocumentTexture; aoTexture: RenderDocumentTexture; heightTexture: RenderDocumentTexture; highOpacityTexture: RenderDocumentTexture; lowOpacityTexture: RenderDocumentTexture; metalTexture: RenderDocumentTexture; metallicRoughnessTexture: RenderDocumentTexture; metalroughnessTexture: RenderDocumentTexture; normalTexture: RenderDocumentTexture; roughnessTexture: RenderDocumentTexture; specularTexture: RenderDocumentTexture; environmentTexture: RenderDocumentTexture; constructor(); get textures(): RenderDocumentTexture[]; loadJson(jconfig: any): void; saveJson(): any; reset(): void; from(value: ModelMaterialNode): void; } } declare module "sk/data/resource/model/service/TemplateLogicService" { import { LogicService } from 'foundation/data/common/logic/LogicService'; export type TemplateMap = { [key: string]: any; }; export class TemplateLogicService extends LogicService { statusReady: boolean; templates: TemplateMap; constructor(); findTemplate(name: string): any; private onLoadomplete; } } declare module "sk/data/resource/picture/model/PictureNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { ContentNode } from 'foundation/data/common/model/brep/ContentNode'; export class PictureNode extends ContentNode { static CLASS_ID: string; static CLASS_NAME: string; constructor(); isValidSize(): boolean; dispose(): void; static create(document: Document): PictureNode; } export type PictureNodeMap = { [key: string]: PictureNode; }; } declare module "sk/data/resource/picture/model/PictureBlueprintNode" { import { Document } from 'cross/runtime/framework/document/Document'; import { DataBlueprintNode } from 'foundation/data/common/model/DataBlueprintNode'; import { GridNode } from 'sk/data/family/model/assistant/GridNode'; import { PictureNode } from "sk/data/resource/picture/model/PictureNode"; export class PictureBlueprintNode extends DataBlueprintNode { static CLASS_ID: string; static CLASS_NAME: string; static FIELD_GRID: string; grid: GridNode; picture: PictureNode; constructor(); reset(): void; dispose(): void; static create(document: Document): PictureBlueprintNode; } export type PictureBlueprintNodeMap = { [key: string]: PictureBlueprintNode; }; } declare module "sk/data/resource/picture/model/PictureDocumentMeta" { import { DataDocumentMeta } from 'foundation/data/common/model/DataDocumentMeta'; export class PictureDocumentMeta extends DataDocumentMeta { lengthX: number; lengthY: number; lengthZ: number; } } declare module "sk/data/resource/picture/model/PictureDocument" { import { DataDocument } from 'foundation/data/common/model/DataDocument'; import { PictureBlueprintNode } from "sk/data/resource/picture/model/PictureBlueprintNode"; import { PictureDocumentMeta } from "sk/data/resource/picture/model/PictureDocumentMeta"; export class PictureDocument extends DataDocument { blueprint: PictureBlueprintNode; get meta(): PictureDocumentMeta; protected innerCreateClass(clazz: any): any; loadJson(jconfig: any, options?: any): void; reset(): void; } } declare module "sk/data/resource/picture/model/PictureDataDocument" { import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory'; import { PictureDocument } from "sk/data/resource/picture/model/PictureDocument"; export class PictureDataDocument extends PictureDocument { protected static _factory: PersistentFactory; static get Factory(): PersistentFactory; get factory(): PersistentFactory; static createEmptyDocument(): PictureDataDocument; static createDefaultDocument(): PictureDataDocument; } } declare module "sk/data/resource/picture/model/PictureNodeEnum" { export class PictureNodeEnum { static Picture: string; static Blueprint: string; } } declare module "sk/data/resource/picture/service/PictureDocumentService" { import { DataDocumentParameters } from 'cross/data/module/document/DataDocumentParameters'; import { MongoStorageDownloadParameters } from 'foundation/data/common/storage/mongo/MongoStorageDownloadParameters'; import { DataDocumentService } from 'foundation/data/common/service/DataDocumentService'; import { PictureDataDocument } from "sk/data/resource/picture/model/PictureDataDocument"; export class PictureDocumentService extends DataDocumentService { protected makeUrl(parameters: DataDocumentParameters): string; protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters; protected makeDocument(parameters: DataDocumentParameters, content: any): PictureDataDocument; } } declare module "sk/data/resource/service/ResourceConfigService" { import { ResultObject } from 'cross/runtime/lang/ResultObject'; import { EnvironmentService } from 'cross/runtime/module/environment/EnvironmentService'; import { Service } from 'cross/runtime/module/Service'; import { JsonService } from 'cross/core/module/json/JsonService'; import { IResourceConfigMaterialInfo } from "sk/data/resource/config/IResourceConfigMaterialInfo"; export class ResourceConfigService extends Service { protected _environmentService: EnvironmentService; protected _jsonService: JsonService; findResourceByIdAsync(id: string): Promise>; getEffectIdByResourceIdAsync(resourceId: string): Promise>; } export type ResourceInfo = { id: string; name: string; code: string; version: number; lengthX: number; lengthY: number; lengthZ: number; typeId: string; remark: string; }; }