///
///
///
///
///
///
///
declare module "copyright" {
export class DataFamilyCopyright {
static toString(): string;
}
}
declare module "sk/data/family/enumeration/DeclareTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class DeclareTypeEnum extends EnumerationObject {
static Unknown: string;
static Normal: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/enumeration/DeclareGroupTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class DeclareGroupTypeEnum extends EnumerationObject {
static Unknown: string;
static Normal: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/element/config/DeclareGroupElement" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { DeclareGroupTypeEnum } from "sk/data/family/enumeration/DeclareGroupTypeEnum";
import { Element } from "sk/data/family/element/base/Element";
import { DeclareElement } from "sk/data/family/element/config/DeclareElement";
export class DeclareGroupElement extends Element {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_CODE: string;
static FIELD_NAME: string;
static FIELD_TYPE_CD: string;
static FIELD_MEMBERS: string;
code: string;
name: string;
typeCd: DeclareGroupTypeEnum;
protected _members: Types;
constructor();
get members(): Types;
reset(): void;
dispose(): void;
}
export type DeclareGroupElementMap = {
[key: string]: DeclareGroupElement;
};
}
declare module "sk/data/family/element/config/DeclareElement" {
import { DataLevelEnum } from 'foundation/data/common/enumeration/DataLevelEnum';
import { DeclareTypeEnum } from "sk/data/family/enumeration/DeclareTypeEnum";
import { Element } from "sk/data/family/element/base/Element";
import { DeclareGroupElement } from "sk/data/family/element/config/DeclareGroupElement";
export class DeclareElement extends Element {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_LIBRARY_ID: string;
static FIELD_LIBRARY_VERSION: string;
static FIELD_CODE: string;
static FIELD_NAME: string;
static FIELD_OPTION_PUBLIC: string;
static FIELD_TYPE_CD: string;
static FIELD_LEVEL_CD: string;
static FIELD_GROUP: string;
libraryId: string;
libraryVersion: string;
code: string;
name: string;
optionPublic: boolean;
typeCd: DeclareTypeEnum;
levelCd: DataLevelEnum;
group: DeclareGroupElement;
constructor();
loadJsonValue(jconfig: any): void;
reset(): void;
dispose(): void;
}
export type DeclareElementMap = {
[key: string]: DeclareElement;
};
}
declare module "sk/data/family/element/config/ConfigController" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { DeclareElement } from "sk/data/family/element/config/DeclareElement";
export class ConfigController extends InstanceObject {
protected _itemClass: Function;
protected _items: Dictionary;
constructor();
get items(): Dictionary;
setup(): void;
isEmpty(): boolean;
containsById(id: string): boolean;
containsByCode(code: string): boolean;
findById(id: string): T;
findByCode(code: string): T;
itemIterator(): IterableIterator;
add(item: T): void;
addCheck(item: T): void;
appendArray(items: Array): void;
merge(controller: ConfigController): void;
remove(item: T): void;
clear(): void;
reset(): void;
dispose(): void;
}
}
declare module "sk/data/family/core/IConfigure" {
import { DataLevelEnum } from 'foundation/data/common/enumeration/DataLevelEnum';
export interface IConfigure {
id: string;
version: number;
levelCd: DataLevelEnum;
code: string;
name: string;
}
export type ConfigureMap = {
[key: string]: IConfigure;
};
}
declare module "sk/data/family/core/IConfigureOption" {
export interface IConfigureOption {
id: string;
name: string;
}
}
declare module "sk/data/family/enumeration/DecorateItemStateTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class DecorateItemStateTypeEnum extends EnumerationObject {
static Unknown: number;
static Default: number;
static Normal: number;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/element/config/PropertyLinkStructure" {
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
export class PropertyLinkStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
id: string;
linkId: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/PropertyStructure" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
import { PropertyLinkStructure } from "sk/data/family/element/config/PropertyLinkStructure";
export class PropertyStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
id: string;
code: string;
name: string;
optionPublic: boolean;
optionInherit: boolean;
groupId: string;
configId: string;
private _links;
remark: string;
constructor();
get links(): Types;
static equalsConfigId(left: PropertyStructure, right: PropertyStructure, params?: any): boolean;
isValidData(): boolean;
reset(): void;
}
}
declare module "sk/data/family/element/config/configure/ConfigureOptionConditionStructure" {
import { PropertyStructure } from "sk/data/family/element/config/PropertyStructure";
export class ConfigureOptionConditionStructure extends PropertyStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
value: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/configure/ConfigureOptionVariableStructure" {
import { PropertyStructure } from "sk/data/family/element/config/PropertyStructure";
export class ConfigureOptionVariableStructure extends PropertyStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
value: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/configure/ConfigureOptionElement" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { IConfigureOption } from "sk/data/family/core/IConfigureOption";
import { Element } from "sk/data/family/element/base/Element";
import { ConfigureOptionConditionStructure } from "sk/data/family/element/config/configure/ConfigureOptionConditionStructure";
import { ConfigureOptionVariableStructure } from "sk/data/family/element/config/configure/ConfigureOptionVariableStructure";
export class ConfigureOptionElement extends Element implements IConfigureOption {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_CODE: string;
static FIELD_NAME: string;
static FIELD_OPTION_DEFAULT: string;
static FIELD_ICON: string;
static FIELD_VARIABLES: string;
static FIELD_CONDITIONS: string;
code: string;
name: string;
optionDefault: boolean;
icon: string;
protected _variables: Types;
protected _conditions: Types;
constructor();
get variables(): Types;
get conditions(): Types;
loadJsonValue(jconfig: any): void;
reset(): void;
dispose(): void;
}
export type ConfigureOptionElementMap = {
[key: string]: ConfigureOptionElement;
};
}
declare module "sk/data/family/element/config/configure/ConfigureElement" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { IConfigure } from "sk/data/family/core/IConfigure";
import { DeclareElement } from "sk/data/family/element/config/DeclareElement";
import { ConfigureOptionElement } from "sk/data/family/element/config/configure/ConfigureOptionElement";
export class ConfigureElement extends DeclareElement implements IConfigure {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_OPTIONS: string;
protected _options: Types;
constructor();
get options(): Types;
get defaultItem(): ConfigureOptionElement;
findOptionById(optionId: string): ConfigureOptionElement;
findOptionByCode(code: string): ConfigureOptionElement;
loadJsonValue(jconfig: any): void;
reset(): void;
dispose(): void;
}
export type ConfigureElementMap = {
[key: string]: ConfigureElement;
};
}
declare module "sk/data/family/element/config/configure/ConfigureController" {
import { ConfigController } from "sk/data/family/element/config/ConfigController";
import { ConfigureElement } from "sk/data/family/element/config/configure/ConfigureElement";
export class ConfigureController extends ConfigController {
constructor();
}
}
declare module "sk/data/family/core/IDecorate" {
export interface IDecorate {
id: string;
}
export type DecorateMap = {
[key: string]: IDecorate;
};
}
declare module "sk/data/family/core/IDecorateItem" {
export interface IDecorateItem {
id: string;
optionDefault: boolean;
}
}
declare module "sk/data/family/element/config/decorate/DecorateItemConditionStructure" {
import { PropertyStructure } from "sk/data/family/element/config/PropertyStructure";
export class DecorateItemConditionStructure extends PropertyStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
value: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/decorate/DecorateItemVariableStructure" {
import { PropertyStructure } from "sk/data/family/element/config/PropertyStructure";
export class DecorateItemVariableStructure extends PropertyStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
value: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/decorate/DecorateItemElement" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { IDecorateItem } from "sk/data/family/core/IDecorateItem";
import { Element } from "sk/data/family/element/base/Element";
import { DecorateItemConditionStructure } from "sk/data/family/element/config/decorate/DecorateItemConditionStructure";
import { DecorateItemVariableStructure } from "sk/data/family/element/config/decorate/DecorateItemVariableStructure";
export class DecorateItemElement extends Element implements IDecorateItem {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_OPTION_DEFAULT: string;
static FIELD_CODE: string;
static FIELD_NAME: string;
static FIELD_BINDING_ID: string;
static FIELD_BINDING_VERSION: string;
static FIELD_BINDING_CD: string;
static FIELD_VARIABLES: string;
static FIELD_CONDITIONS: string;
optionDefault: boolean;
code: string;
name: string;
bindingId: string;
bindingVersion: string;
bindingCd: number;
protected _variables: Types;
protected _conditions: Types;
constructor();
get variables(): Types;
get conditions(): Types;
loadJsonValue(jconfig: any): void;
reset(): void;
dispose(): void;
}
export type DecorateItemElementMap = {
[key: string]: DecorateItemElement;
};
}
declare module "sk/data/family/element/config/decorate/DecorateElement" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { IDecorate } from "sk/data/family/core/IDecorate";
import { DeclareElement } from "sk/data/family/element/config/DeclareElement";
import { DecorateItemElement } from "sk/data/family/element/config/decorate/DecorateItemElement";
export class DecorateElement extends DeclareElement implements IDecorate {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_BINDING_CD: string;
static FIELD_ITEMS: string;
bindingCd: number;
protected _items: Types;
constructor();
get items(): Types;
get defaultItem(): DecorateItemElement;
loadJsonValue(jconfig: any): void;
reset(): void;
dispose(): void;
}
export type DecorateElementMap = {
[key: string]: DecorateElement;
};
}
declare module "sk/data/family/element/config/decorate/DecorateController" {
import { ConfigController } from "sk/data/family/element/config/ConfigController";
import { DecorateElement } from "sk/data/family/element/config/decorate/DecorateElement";
export class DecorateController extends ConfigController {
constructor();
dump(): void;
}
}
declare module "sk/data/family/enumeration/ExternalTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class ExternalTypeEnum extends EnumerationObject {
static Unknown: string;
static ResourceEffect: string;
static ResourceMaterial: string;
static ResourceModel: string;
static Family: string;
static FamilyInfo: string;
static Pattern: string;
static PatternInfo: string;
static Library: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/element/config/external/ExternalElement" {
import { ExternalTypeEnum } from "sk/data/family/enumeration/ExternalTypeEnum";
import { DeclareElement } from "sk/data/family/element/config/DeclareElement";
export class ExternalElement extends DeclareElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_EXTERNAL_CD: string;
static FIELD_EXTERNAL_ID: string;
static FIELD_EXTERNAL_VERSION: string;
externalCd: ExternalTypeEnum;
externalId: string;
externalVersion: string;
constructor();
reset(): void;
dispose(): void;
}
export type ExternalElementMap = {
[key: string]: ExternalElement;
};
}
declare module "sk/data/family/element/config/external/ExternalController" {
import { PersistentContext } from 'cross/runtime/module/persistent/PersistentContext';
import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory';
import { ConfigController } from "sk/data/family/element/config/ConfigController";
import { ExternalElement } from "sk/data/family/element/config/external/ExternalElement";
export class ExternalController extends ConfigController {
constructor();
createExternalByJson(factory: PersistentFactory, jexternal: any): ExternalElement;
createExternalByBinary(factory: PersistentFactory, context: PersistentContext): ExternalElement;
}
}
declare module "sk/data/family/element/config/AttributeStructure" {
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
export class AttributeStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
code: string;
constructor();
clone(): AttributeStructure;
reset(): void;
}
}
declare module "sk/data/family/element/config/FeatureStructure" {
import { AttributeStructure } from "sk/data/family/element/config/AttributeStructure";
export class FeatureStructure extends AttributeStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
value: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/feature/FeatureController" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { ConfigController } from "sk/data/family/element/config/ConfigController";
import { FeatureStructure } from "sk/data/family/element/config/FeatureStructure";
export class FeatureController extends ConfigController {
protected _items: Dictionary;
constructor();
containsByCode(code: string): boolean;
findByCode(code: string): FeatureStructure;
add(feature: FeatureStructure): void;
remove(feature: FeatureStructure): void;
}
}
declare module "sk/data/family/element/config/symbol/ColorSymbolGroupStructure" {
import { AttributeStructure } from "sk/data/family/element/config/AttributeStructure";
export class ColorSymbolGroupStructure extends AttributeStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
referenceGroupId: string;
structureId: boolean;
name: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/symbol/ColorSymbolItemElement" {
import { Element } from "sk/data/family/element/base/Element";
export class ColorSymbolItemElement extends Element {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_REFERENCE_GROUP_ITEM_ID: string;
static FIELD_GROUP_ID: string;
static FIELD_RED: string;
static FIELD_GREEN: string;
static FIELD_BLUE: string;
static FIELD_NAME: string;
static FIELD_VALUE: string;
referenceGroupItemId: string;
groupId: string;
red: number;
green: number;
blue: number;
name: string;
value: string;
constructor();
reset(): void;
dispose(): void;
}
export type ColorSymbolItemElementMap = {
[key: string]: ColorSymbolItemElement;
};
}
declare module "sk/data/family/element/config/symbol/SymbolElement" {
import { DeclareElement } from "sk/data/family/element/config/DeclareElement";
export class SymbolElement extends DeclareElement {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
reset(): void;
dispose(): void;
}
export type SymbolElementMap = {
[key: string]: SymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/ColorSymbolElement" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { ColorSymbolGroupStructure } from "sk/data/family/element/config/symbol/ColorSymbolGroupStructure";
import { ColorSymbolItemElement } from "sk/data/family/element/config/symbol/ColorSymbolItemElement";
import { SymbolElement } from "sk/data/family/element/config/symbol/SymbolElement";
export class ColorSymbolElement extends SymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_REFERENCE_CONFIG_ID: string;
static FIELD_ITEMS: string;
static FIELD_GROUPS: string;
referenceConfigId: string;
items: Types;
protected _groups: Types;
constructor();
get groups(): Types;
reset(): void;
dispose(): void;
}
export type ColorSymbolElementMap = {
[key: string]: ColorSymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/ConfigureSymbolElement" {
import { SymbolElement } from "sk/data/family/element/config/symbol/SymbolElement";
export class ConfigureSymbolElement extends SymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_CONFIG_ID: string;
configId: string;
constructor();
reset(): void;
dispose(): void;
}
export type ConfigureSymbolElementMap = {
[key: string]: ConfigureSymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/CustomSymbolElement" {
import { SymbolElement } from "sk/data/family/element/config/symbol/SymbolElement";
export class CustomSymbolElement extends SymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_VALUE: string;
value: any;
constructor();
static create(value: any): CustomSymbolElement;
reset(): void;
dispose(): void;
}
export type CustomSymbolElementMap = {
[key: string]: CustomSymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/DecorateSymbolElement" {
import { SymbolElement } from "sk/data/family/element/config/symbol/SymbolElement";
export class DecorateSymbolElement extends SymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_CONFIG_ID: string;
configId: string;
constructor();
reset(): void;
dispose(): void;
}
export type DecorateSymbolElementMap = {
[key: string]: DecorateSymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/FeatureSymbolElement" {
import { SymbolElement } from "sk/data/family/element/config/symbol/SymbolElement";
export class FeatureSymbolElement extends SymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_FEATURE_ID: string;
featureId: string;
constructor();
reset(): void;
dispose(): void;
}
export type FeatureSymbolElementMap = {
[key: string]: FeatureSymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/LogicSymbolElement" {
import { SymbolElement } from "sk/data/family/element/config/symbol/SymbolElement";
export class LogicSymbolElement extends SymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_VALUE: string;
value: any;
constructor();
reset(): void;
dispose(): void;
}
export type LogicSymbolElementMap = {
[key: string]: LogicSymbolElement;
};
}
declare module "sk/data/family/enumeration/ValueLockCdEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class ValueLockCdEnum extends EnumerationObject {
static Unknown: string;
static ValueListLock: string;
static ValueLock: string;
static NotLock: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/element/config/symbol/LengthSymbolItemElement" {
import { Element } from "sk/data/family/element/base/Element";
export class LengthSymbolItemElement extends Element {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_OPTION_DEFAULT: string;
static FIELD_LENGTH: string;
optionDefault: boolean;
length: number;
constructor();
reset(): void;
dispose(): void;
}
export type LengthSymbolItemElementMap = {
[key: string]: LengthSymbolItemElement;
};
}
declare module "sk/data/family/element/config/symbol/SizeLengthSymbolElement" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { ValueLockCdEnum } from "sk/data/family/enumeration/ValueLockCdEnum";
import { LengthSymbolItemElement } from "sk/data/family/element/config/symbol/LengthSymbolItemElement";
import { SymbolElement } from "sk/data/family/element/config/symbol/SymbolElement";
export class SizeLengthSymbolElement extends SymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_LENGTH_MIN: string;
static FIELD_LENGTH_MAX: string;
static FIELD_LOCK_CD: string;
static FIELD_ITEMS: string;
lengthMin: number;
lengthMax: number;
lockCd: ValueLockCdEnum;
items: Types;
constructor();
reset(): void;
dispose(): void;
}
export type SizeLengthSymbolElementMap = {
[key: string]: SizeLengthSymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/SizeLengthXSymbolElement" {
import { SizeLengthSymbolElement } from "sk/data/family/element/config/symbol/SizeLengthSymbolElement";
export class SizeLengthXSymbolElement extends SizeLengthSymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
reset(): void;
dispose(): void;
}
export type SizeLengthXSymbolElementMap = {
[key: string]: SizeLengthXSymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/SizeLengthYSymbolElement" {
import { SizeLengthSymbolElement } from "sk/data/family/element/config/symbol/SizeLengthSymbolElement";
export class SizeLengthYSymbolElement extends SizeLengthSymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
reset(): void;
dispose(): void;
}
export type SizeLengthYSymbolElementMap = {
[key: string]: SizeLengthYSymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/SizeLengthZSymbolElement" {
import { SizeLengthSymbolElement } from "sk/data/family/element/config/symbol/SizeLengthSymbolElement";
export class SizeLengthZSymbolElement extends SizeLengthSymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
reset(): void;
dispose(): void;
}
export type SizeLengthZSymbolElementMap = {
[key: string]: SizeLengthZSymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/SizeSymbolItemElement" {
import { Element } from "sk/data/family/element/base/Element";
export class SizeSymbolItemElement extends Element {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_LENGTH_X: string;
static FIELD_LENGTH_Y: string;
static FIELD_LENGTH_Z: string;
static FIELD_LENGTH_MIN_X: string;
static FIELD_LENGTH_MAX_X: string;
static FIELD_LENGTH_MIN_Y: string;
static FIELD_LENGTH_MAX_Y: string;
static FIELD_LENGTH_MIN_Z: string;
static FIELD_LENGTH_MAX_Z: string;
static FIELD_STATUS_LOCK: string;
static FIELD_OPTION_DEFAULT: string;
lengthX: number;
lengthY: number;
lengthZ: number;
lengthMinX: number;
lengthMaxX: number;
lengthMinY: number;
lengthMaxY: number;
lengthMinZ: number;
lengthMaxZ: number;
statusLock: boolean;
optionDefault: boolean;
constructor();
loadJsonValue(jconfig: any): void;
reset(): void;
dispose(): void;
}
export type SizeSymbolItemElementMap = {
[key: string]: SizeSymbolItemElement;
};
}
declare module "sk/data/family/element/config/symbol/SizeSymbolElement" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { SizeSymbolItemElement } from "sk/data/family/element/config/symbol/SizeSymbolItemElement";
import { SymbolElement } from "sk/data/family/element/config/symbol/SymbolElement";
export class SizeSymbolElement extends SymbolElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_ITEMS: string;
items: Types;
constructor();
loadJsonValue(jconfig: any): void;
reset(): void;
dispose(): void;
}
export type SizeSymbolElementMap = {
[key: string]: SizeSymbolElement;
};
}
declare module "sk/data/family/element/config/symbol/SymbolController" {
import { ConfigController } from "sk/data/family/element/config/ConfigController";
import { SymbolElement } from "sk/data/family/element/config/symbol/SymbolElement";
export class SymbolController extends ConfigController {
constructor();
}
}
declare module "sk/data/family/enumeration/brep/BrepFunctionTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class BrepFunctionTypeEnum extends EnumerationObject {
static Unknown: string;
static Logic: string;
static Assistant: string;
static Collision: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/enumeration/ContentRelationTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class ContentRelationTypeEnum extends EnumerationObject {
static Unknown: string;
static Dock: string;
static Host: string;
static Link: string;
static AdjustXYZWDH: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/enumeration/VariableTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class VariableTypeEnum extends EnumerationObject {
static Unknown: string;
static Value: string;
static Condition: string;
static System: string;
static Reference: string;
static Addition: string;
static Global: string;
static Hidden: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/element/config/ValueStructure" {
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
export class ValueStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
id: string;
code: string;
configId: string;
constructor();
get(): any;
set(code: string, value: any): void;
static equalsConfigId(left: ValueStructure, right: ValueStructure, params?: any): boolean;
unlink(): void;
reset(): void;
}
}
declare module "sk/data/family/element/config/condition/ConditionValueStructure" {
import { ValueStructure } from "sk/data/family/element/config/ValueStructure";
export class ConditionValueStructure extends ValueStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
value: string;
constructor();
get(): any;
reset(): void;
}
}
declare module "sk/data/family/core/IConditon" {
import { IFormulaContext } from 'foundation/data/common/core/IFormulaContext';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
export interface IConditon {
resolve(context: IFormulaContext, valueProvider: IValueProvider, variableProvider: IVariableProvider, parameters?: any): boolean;
}
}
declare module "sk/data/family/element/config/variable/VariableObject" {
import { IContext } from 'cross/runtime/lang/IContext';
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariable } from 'foundation/data/common/core/IVariable';
import { IVariableContext } from 'foundation/data/common/core/IVariableContext';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
export class VariableObject extends InstanceObject implements IVariable {
id: string;
code: string;
name: string;
constructor(code?: string, id?: string, name?: string);
isEmpty(): boolean;
assign(property: VariableObject): void;
compile(context: IVariableContext, variableProvider?: IVariableProvider, options?: any): boolean;
resolve(valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any, context?: IContext): any;
compute(context: IContext, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): any;
getValue(context: IContext, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): any;
getResolve(context: IContext, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): any;
setValue(context: IContext, value: any, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): any;
setValueAsync(context: IContext, value: any, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): Promise;
setResolve(context: IContext, value: any, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): any;
setResolveAsync(context: IContext, value: any, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): Promise;
loadJson(jconfig: any): void;
saveJson(jconfig?: any): any;
update(): void;
clone(): any;
dispose(): void;
}
}
declare module "sk/data/family/element/config/variable/DeclareVariable" {
import { VariableObject } from "sk/data/family/element/config/variable/VariableObject";
export class DeclareVariable extends VariableObject {
value: string;
constructor(code: string, value: string, name?: string);
resolve(): any;
}
}
declare module "sk/data/family/model/instance/ContentInstanceNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { ContentNode } from 'foundation/data/common/model/brep/ContentNode';
import { ISpecificationFamilyInfo } from 'sk/data/specification/base/ISpecificationFamilyInfo';
export class ContentInstanceNode extends ContentNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_REFERENCE_INFO_ID: string;
static FIELD_REFERENCE_INFO_VERSION: string;
static FIELD_IDENTIFY_COLUMN: string;
static FIELD_IDENTIFY_ROW: string;
static FIELD_SNAP_DISTANCE: string;
static FIELD_INNER_OFFSET_X: string;
static FIELD_INNER_OFFSET_Y: string;
static FIELD_INNER_OFFSET_Z: string;
static FIELD_INNER_ROTATION_X: string;
static FIELD_INNER_ROTATION_Y: string;
static FIELD_INNER_ROTATION_Z: string;
static FIELD_OPTION_TECHNOLOGY_VALID: string;
static FIELD_TECHNOLOGY_RANGE_CODES: string;
static FIELD_TECHNOLOGY_X: string;
static FIELD_TECHNOLOGY_Y: string;
static FIELD_TECHNOLOGY_Z: string;
static FIELD_TECHNOLOGY_LENGTH_X: string;
static FIELD_TECHNOLOGY_LENGTH_Y: string;
static FIELD_TECHNOLOGY_LENGTH_Z: string;
static FIELD_MATERIAL_CODE: string;
static FIELD_DRAWING_CODES: string;
static FIELD_DRAWING_GROUP: string;
referenceInfoId: string;
referenceInfoVersion: number;
identifyColumn: number;
identifyRow: number;
snapDistance: number;
innerOffsetX: number;
innerOffsetY: number;
innerOffsetZ: number;
innerRotationX: number;
innerRotationY: number;
innerRotationZ: number;
optionTechnologyValid: boolean;
technologyRangeCodes: string;
technologyX: number;
technologyY: number;
technologyZ: number;
technologyLengthX: number;
technologyLengthY: number;
technologyLengthZ: number;
materialCode: string;
drawingCodes: string;
drawingGroup: number;
referenceInfo: ISpecificationFamilyInfo;
objcetMap: Map;
constructor();
protected buildObjectMap(): void;
getObjectByCode(code: string): ContentInstanceNode;
dispose(): void;
static create(document: Document): ContentInstanceNode;
}
export type ContentInstanceNodeMap = {
[key: string]: ContentInstanceNode;
};
}
declare module "sk/data/family/model/instance/FamilyInstanceNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { Rect } from 'foundation/runtime/math/Rect';
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { Solid } from 'foundation/runtime/geometry/Solid';
import { ProductTypeEnum } from 'foundation/data/common/define/ProductTypeEnum';
import { ISpecificationFamilyInfo } from 'sk/data/specification/base/ISpecificationFamilyInfo';
import { FamilyDocument } from "sk/data/family/library/FamilyDocument";
import { ContentInstanceNode } from "sk/data/family/model/instance/ContentInstanceNode";
export class InstanceSnapInfo {
content: FamilyInstanceNode;
xAxis: any;
yAxis: any;
interSectRect: Rect;
}
export class FamilyInstanceNode extends ContentInstanceNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_INSTANCE_COUNT: string;
static FIELD_SOURCE_RULE_COLLISION: string;
instanceCount: number;
sourceRuleCollision: boolean;
typeCd: ProductTypeEnum;
groundForce: string;
groundClearance: number;
previewUrl: string;
handleId: string;
bomCompute: boolean;
constructor();
get document(): FamilyDocument;
set document(value: FamilyDocument);
getHost(): any;
getReferenceCode(): string;
getReferenceCodes(): Array;
getReferenceInfo(): ISpecificationFamilyInfo;
setLocation(x?: number, y?: number, z?: number): void;
setRotationZ(rotation: number): void;
moveOffset(x?: number, y?: number, z?: number): void;
moveAttachedContents(name: string, value: number): void;
rotateAttachedContents(angle: number, center?: Vector2): void;
updateBoundary(): void;
uncompositeAble(): boolean;
toMath(): Solid;
dispose(): void;
static create(document: Document): FamilyInstanceNode;
}
export type FamilyInstanceNodeMap = {
[key: string]: FamilyInstanceNode;
};
}
declare module "sk/data/family/element/config/formula/FormulaContext" {
import { ContextObject } from 'cross/runtime/lang/ContextObject';
import { IFormulaContext } from 'foundation/data/common/core/IFormulaContext';
export class FormulaContext extends ContextObject implements IFormulaContext {
}
}
declare module "sk/data/family/element/config/variable/DynamicFieldVariable" {
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { FormulaContext } from "sk/data/family/element/config/formula/FormulaContext";
import { VariableObject } from "sk/data/family/element/config/variable/VariableObject";
export class DynamicFieldVariable extends VariableObject {
fieldName: string;
constructor(code: string, fieldName: string, name?: string);
resolve(valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any, context?: FormulaContext): number;
}
}
declare module "sk/data/family/element/config/variable/FieldVariable" {
import { IContext } from 'cross/runtime/lang/IContext';
import { IBindingFieldVariable } from 'foundation/data/common/core/IBindingFieldVariable';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableContext } from 'foundation/data/common/core/IVariableContext';
import { IVariableOperator } from 'foundation/data/common/core/IVariableOperator';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { FormulaContext } from "sk/data/family/element/config/formula/FormulaContext";
import { VariableObject } from "sk/data/family/element/config/variable/VariableObject";
export class FieldVariable extends VariableObject implements IBindingFieldVariable {
fieldName: string;
constructor(code: string, fieldName: string, name?: string);
getBindingField(context: IContext, variableProvider?: IVariableOperator, parameters?: any): any;
resolve(valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any, context?: FormulaContext): number;
compute(context: IVariableContext, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): any;
}
}
declare module "sk/data/family/element/config/variable/SpatialParentFieldVariable" {
import { IContext } from 'cross/runtime/lang/IContext';
import { IBindingFieldVariable } from 'foundation/data/common/core/IBindingFieldVariable';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableOperator } from 'foundation/data/common/core/IVariableOperator';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { FormulaContext } from "sk/data/family/element/config/formula/FormulaContext";
import { VariableObject } from "sk/data/family/element/config/variable/VariableObject";
export class SpatialParentFieldVariable extends VariableObject implements IBindingFieldVariable {
fieldName: string;
constructor(code: string, fieldName: string, name?: string);
getBindingField(context: IContext, variableProvider?: IVariableOperator, parameters?: any): any;
resolve(valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any, context?: FormulaContext): number;
}
}
declare module "sk/data/family/element/config/variable/VariableService" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { Service } from 'cross/runtime/module/Service';
import { IVariable } from 'foundation/data/common/core/IVariable';
import { IVariableContext } from 'foundation/data/common/core/IVariableContext';
import { DeclareVariable } from "sk/data/family/element/config/variable/DeclareVariable";
export class VariableService extends Service {
optionCompile: boolean;
protected _declares: Dictionary;
protected _variables: Dictionary;
protected _founctionVariables: Dictionary;
protected _systemVariables: Dictionary;
protected _referenceVariables: Dictionary;
initializeConfig(jconfig: any): void;
get variables(): Dictionary;
get founctionVariables(): Dictionary;
get systemVariables(): Dictionary;
get referenceVariables(): Dictionary;
registeDeclare(declare: DeclareVariable): void;
getDeclare(code: string): DeclareVariable;
getDeclareVariable(code: string): any;
getFounctionVariable(code: string): any;
getSystemVariable(code: string): any;
getReferenceVariable(code: string): any;
registeVariable(variable: IVariable): void;
registeSystemVariable(variable: IVariable): void;
registeReferenceVariable(variable: IVariable): void;
getVariable(context: IVariableContext, code: string): IVariable;
onInitialize(): void;
}
}
declare module "sk/data/family/element/config/formula/FormulaMessages" {
export type FormulaMessage = {
typeCd: FormulaMessageType;
display: string;
detail: string;
};
export enum FormulaMessageType {
TOKEN = 1,
PARSE = 2,
COMIPLE = 3,
RESOLVE = 4
}
export class FormulaMessages {
messages: Array;
constructor();
push(msg: FormulaMessage): void;
getDisplayMessage(): string;
getDetailMessage(): string;
isEmpty(): boolean;
clear(typeCd?: FormulaMessageType): void;
reset(): void;
}
}
declare module "sk/data/family/element/config/formula/FormulaReference" {
import { BrepElement } from "sk/data/family/element/brep/BrepElement";
export class FormulaReference {
element: BrepElement;
field: string;
formulaString: string;
parent: FormulaReference;
children: Array;
constructor();
checkLoopReferenceByFormulaReference(target?: FormulaReference): boolean;
checkLoopReference(): boolean;
checkLoopReferenceByChildren(): boolean;
checkLoopReferenceByParent(): boolean;
}
}
declare module "sk/data/family/element/config/formula/FormulaScope" {
import { IFormulaContext } from 'foundation/data/common/core/IFormulaContext';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
export class FormulaScope {
context: IFormulaContext;
valueProvider: IValueProvider;
variableProvider: IVariableProvider;
min(...args: Array): number;
max(...args: Array): number;
floor(value: number): number;
ceil(value: number): number;
average(...args: Array): number;
deRound(value: number, bit?: number): number;
free(): void;
}
}
declare module "sk/data/family/element/config/formula/ast/FormulaAstNode" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { BaseObject } from 'cross/runtime/lang/BaseObject';
export class FormulaAstNode extends BaseObject {
prior: number;
protected _children: Types;
constructor();
get children(): Types;
push(child: FormulaAstNode, isForward?: boolean): void;
protected expandChild(idx: number): void;
checkValid(): string;
transformEnter(parent: FormulaAstNode): void;
transformExit(parent: FormulaAstNode): void;
genCode(): string;
}
}
declare module "sk/data/family/element/config/formula/ast/FormulaAstOperateEnum" {
export class FormulaAstOperateEnum {
static Add: string;
static Subtract: string;
static Multiplication: string;
static Division: string;
static Mod: string;
static Min: string;
static Max: string;
static Or: string;
static And: string;
static Not: string;
static Bracket: string;
static Temary1: string;
static Temary2: string;
static Comma: string;
static Greater: string;
static Less: string;
static GreaterEqual: string;
static LessEqual: string;
static Equal: string;
static NotEqual: string;
}
}
declare module "sk/data/family/element/config/formula/ast/FormulaAstOperate" {
import { FormulaAstNode } from "sk/data/family/element/config/formula/ast/FormulaAstNode";
import { FormulaAstOperateEnum } from "sk/data/family/element/config/formula/ast/FormulaAstOperateEnum";
export class FormulaAstOperate extends FormulaAstNode {
typeCd: FormulaAstOperateEnum;
}
}
declare module "sk/data/family/element/config/formula/ast/FormulaAstOperate2" {
import { FormulaAstNode } from "sk/data/family/element/config/formula/ast/FormulaAstNode";
import { FormulaAstOperate } from "sk/data/family/element/config/formula/ast/FormulaAstOperate";
export class FormulaAstOperate2 extends FormulaAstOperate {
left: FormulaAstNode;
right: FormulaAstNode;
push(child: FormulaAstNode, isForward?: boolean): void;
checkValid(): string;
genCode(): string;
}
}
declare module "sk/data/family/element/config/formula/ast/FormulaAstBlock" {
import { FormulaAstNode } from "sk/data/family/element/config/formula/ast/FormulaAstNode";
export class FormulaAstBlock extends FormulaAstNode {
constructor();
transformEnter(parent: FormulaAstNode): void;
genCode(): string;
}
}
declare module "sk/data/family/element/config/formula/method/FormulaMethod" {
import { BaseObject } from 'cross/runtime/lang/BaseObject';
import { FormulaAstNode } from "sk/data/family/element/config/formula/ast/FormulaAstNode";
import { FormulaScope } from "sk/data/family/element/config/formula/FormulaScope";
export class FormulaMethod extends BaseObject {
transformer(ast: FormulaAstNode): void;
process(scope: FormulaScope, ...args: Array): any;
}
}
declare module "sk/data/family/element/config/formula/ast/FormulaAstMethod" {
import { FormulaMethod } from "sk/data/family/element/config/formula/method/FormulaMethod";
import { FormulaAstNode } from "sk/data/family/element/config/formula/ast/FormulaAstNode";
export class FormulaAstMethod extends FormulaAstNode {
name: string;
innerMethod: FormulaMethod;
constructor();
transformExit(parent: FormulaAstNode): void;
genCode(): string;
}
}
declare module "sk/data/family/element/config/formula/ast/FormulaAstOperate1" {
import { FormulaAstNode } from "sk/data/family/element/config/formula/ast/FormulaAstNode";
import { FormulaAstOperate } from "sk/data/family/element/config/formula/ast/FormulaAstOperate";
export class FormulaAstOperate1 extends FormulaAstOperate {
get value(): FormulaAstNode;
genCode(): string;
}
}
declare module "sk/data/family/element/config/formula/ast/FormulaAstOperate3" {
import { FormulaAstOperate } from "sk/data/family/element/config/formula/ast/FormulaAstOperate";
export class FormulaAstOperate3 extends FormulaAstOperate {
value: string;
constructor();
genCode(): string;
}
}
declare module "sk/data/family/element/config/formula/ast/FormulaAstValueEnum" {
export class FormulaAstValueEnum {
static String: string;
static Boolean: string;
static Number: string;
static Variable: string;
static StateVariable: string;
}
}
declare module "sk/data/family/element/config/formula/ast/FormulaAstValue" {
import { FormulaAstNode } from "sk/data/family/element/config/formula/ast/FormulaAstNode";
import { FormulaAstValueEnum } from "sk/data/family/element/config/formula/ast/FormulaAstValueEnum";
export class FormulaAstValue extends FormulaAstNode {
value: any;
typeCd: FormulaAstValueEnum;
constructor();
checkValid(): string;
genCode(): string;
}
}
declare module "sk/data/family/element/config/formula/FormulaMethodService" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { Service } from 'cross/runtime/module/Service';
import { FormulaMethod } from "sk/data/family/element/config/formula/method/FormulaMethod";
export type FormulaMethodDeclareInfo = {
name: string;
clazz: any;
instance: FormulaMethod;
};
export class FormulaMethodService extends Service {
protected _declares: Dictionary;
get declares(): Dictionary;
registerMethod(code: string, name: string, clazz: any): void;
hasMethod(code: string): boolean;
getMethod(code: string): FormulaMethod;
}
}
declare module "sk/data/family/element/config/formula/FormulaParser" {
import { BaseObject } from 'cross/runtime/lang/BaseObject';
import { FormulaMessages } from "sk/data/family/element/config/formula/FormulaMessages";
import { FormulaMethodService } from "sk/data/family/element/config/formula/FormulaMethodService";
export type FormulaParseResult = {
items: Array;
stateItems: Array;
objects: Array;
invoker: any;
};
export class FormulaParser extends BaseObject {
private tokens;
source: string;
messages: FormulaMessages;
private _innerMethods;
protected _formulaMethodService: FormulaMethodService;
constructor();
parse(source: string, debug?: boolean): FormulaParseResult;
private makeInvoker;
private tokenizer;
private tokenAnalyse;
private findNextSkipParen;
private pushStack;
private getStackTopToken;
private transform;
private getItems;
private codeGenerator;
}
}
declare module "sk/data/family/element/config/formula/FormulaService" {
import { DynamicService } from 'cross/runtime/module/dynamic/DynamicService';
import { Service } from 'cross/runtime/module/Service';
import { FormulaParseResult } from "sk/data/family/element/config/formula/FormulaParser";
export class FormulaService extends Service {
protected _dynamicService: DynamicService;
constructor();
parseTest(source: string): void;
parseFormula(source: string): FormulaParseResult;
}
}
declare module "sk/data/family/element/util/ContentInstanceElementUtil" {
export class ContentInstanceElementUtil {
static getElementObjectByCode(element: any, code: string): any;
}
}
declare module "sk/data/family/element/config/formula/FormulaResolveResult" {
export type FormulaResolveResult = {
value: any;
message: string;
};
}
declare module "sk/data/family/element/config/formula/FormulaResolveTypeEnum" {
export class FormulaResolveTypeEnum {
static Number: string;
static String: string;
}
}
declare module "sk/data/family/element/config/formula/FormulaUtil" {
import { IContext } from 'cross/runtime/lang/IContext';
import { BrepElement } from "sk/data/family/element/brep/BrepElement";
import { FormulaReference } from "sk/data/family/element/config/formula/FormulaReference";
import { FormulaResolveResult } from "sk/data/family/element/config/formula/FormulaResolveResult";
import { FormulaResolveTypeEnum } from "sk/data/family/element/config/formula/FormulaResolveTypeEnum";
export class FormulaUtil {
static isKeyChar(value: any): boolean;
static isSystem(value: any): boolean;
static isProperty(value: any): boolean;
static isFeature(value: any): boolean;
static isValidValue(value: any): boolean;
static parseNumber(value: any): number;
static parseNumber2(value: any): number;
static formulaResolve(context: IContext, element: any, node: any, source: string, dataCd?: FormulaResolveTypeEnum): FormulaResolveResult;
static halfAdjust(value: string, digit: number): number;
static getFormulaReferencesByFormula(context: IContext, element: BrepElement, source: string, parent?: FormulaReference): Array;
}
}
declare module "sk/data/family/element/config/formula/FormulaObject" {
import { IFreeable } from 'cross/runtime/lang/IFreeable';
import { StringMap } from 'cross/runtime/lang/StringUtil';
import { ValueObject } from 'cross/runtime/lang/ValueObject';
import { IFormula } from 'foundation/data/common/core/IFormula';
import { IFormulaContext } from 'foundation/data/common/core/IFormulaContext';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { FormulaContext } from "sk/data/family/element/config/formula/FormulaContext";
import { FormulaMessages } from "sk/data/family/element/config/formula/FormulaMessages";
import { FormulaReference } from "sk/data/family/element/config/formula/FormulaReference";
import { FormulaService } from "sk/data/family/element/config/formula/FormulaService";
export type FormulaValueType = number | string;
export const FormulaSplitter: string;
enum VariableInfoType {
PROPERTY_VALUE = 0,
VARIABLE_VALUE = 1,
STATUS_VARIABLE = 2,
UNBIND_VALUE = 3
}
type VariableInfo = {
typeCd: VariableInfoType;
variableProvider: IVariableProvider;
valueProvider: IValueProvider;
variable: any;
};
export class FormulaObject extends ValueObject implements IFormula, IFreeable {
enable: boolean;
value: any;
display: any;
statusCompile: boolean;
messages: FormulaMessages;
optionString: boolean;
protected _cacheMap: Map;
protected _directValue: number;
protected _additionValue: number;
protected _items: Array;
protected _stateItems: Array;
protected _objects: Array;
protected _formulaReferences: Array;
protected _variableMap: StringMap;
protected _scope: any;
protected _invoker: Function;
protected _source: string;
protected _dirty: boolean;
protected _formulaService: FormulaService;
static IsReplaceAttributeVariable: boolean;
constructor(value?: any, proxy?: any);
isError(): boolean;
getMessageDisplay(): string;
get items(): Array;
get functionSource(): string;
get objects(): Array;
protected innerInitialize(proxy: any): void;
protected checkExpressionWord(priorWord: string, word: string, nextWord: string): any;
isEmpty(): boolean;
setExpression(value: any, parameters?: any): void;
get(): string;
set(value: FormulaValueType, data?: any): any;
setValidValue(value: any): void;
getAdditionValue(): number;
setAdditionValue(value: number): FormulaObject;
assign(property: FormulaObject): void;
protected parse(expression: string, variableProvider: IVariableProvider, context?: FormulaContext, splits?: Array): void;
private addFormulaMessage;
parseWords(): Array;
getProperty(item: IValueProvider, variableProvider: IVariableProvider, source: string): number;
getFeature(item: any, variableProvider: IVariableProvider, source: string): number;
get formulaReferences(): Array;
compile(context: IFormulaContext, variableProvider?: IVariableProvider, options?: any): boolean;
checkObjectReferenceVaild(context: IFormulaContext, variableProvider?: IVariableProvider): boolean;
protected getVariableValue(context: IFormulaContext, variable: any, valueProvider: IValueProvider, variableProvider?: IVariableProvider): any;
protected findValueProvider(context: IFormulaContext, variableProvider: IVariableProvider, valueProvider: IValueProvider): IValueProvider;
resolve(context: IFormulaContext, valueProvider: IValueProvider, variableProvider?: IVariableProvider, parameters?: any, options?: any): any;
update(): FormulaObject;
loadJson(jconfig: any): void;
saveJson(): any;
clone(): any;
dirty(): void;
reset(): void;
unlink(): void;
free(): void;
dispose(): void;
}
}
declare module "sk/data/family/element/config/conditon/ConditionProperty" {
import { IFormulaContext } from 'foundation/data/common/core/IFormulaContext';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { IConditon } from "sk/data/family/core/IConditon";
import { FormulaObject, FormulaValueType } from "sk/data/family/element/config/formula/FormulaObject";
export class ConditionProperty extends FormulaObject implements IConditon {
variableProvider: IVariableProvider;
fieldName: string;
constructor(variableProvider: any, fieldName?: string, value?: any, proxy?: any);
protected checkExpressionWord(priorWord: string, word: string, nextWord: string): string;
set(value: FormulaValueType, data?: any, dispatch?: boolean): void;
resolve(context: IFormulaContext, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): boolean;
get number(): number;
reset(): void;
dispose(): void;
}
}
declare module "sk/data/family/element/config/configure/ConfigureValueStructure" {
import { ValueStructure } from "sk/data/family/element/config/ValueStructure";
export class ConfigureValueStructure extends ValueStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
optionId: string;
declareId: string;
defaultOptionId: string;
declareDefault: boolean;
constructor();
get(): any;
set(code: string, value: any): void;
reset(): void;
}
}
declare module "sk/data/family/element/config/decorate/DecorateItemPropertyStructure" {
import { PropertyStructure } from "sk/data/family/element/config/PropertyStructure";
export class DecorateItemPropertyStructure extends PropertyStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
itemId: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/decorate/DecorateItemValueStructure" {
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
export class DecorateItemValueStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
configId: string;
linkId: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/enumeration/DecorateDataTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class DecorateDataTypeEnum extends EnumerationObject {
static Unknown: string;
static Variable: string;
static Decorate: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/enumeration/VariableConditionTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class VariableConditionTypeEnum extends EnumerationObject {
static Unknown: string;
static Visible: string;
static Hide: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/enumeration/VariableDataTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class VariableDataTypeEnum extends EnumerationObject {
static Unknown: string;
static Boolean: string;
static Integer: string;
static Float: string;
static String: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/enumeration/VariableDeclareTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class VariableDeclareTypeEnum extends EnumerationObject {
static Unknown: string;
static Number: string;
static Formula: string;
static Enum: string;
static Set: string;
static Configure: string;
static Decorate: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/element/config/variable/VariableActionStructure" {
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
export class VariableActionStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
actionCd: string;
processCd: string;
value: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/variable/VariableConditionStructure" {
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
import { VariableConditionTypeEnum } from "sk/data/family/enumeration/VariableConditionTypeEnum";
export class VariableConditionStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
conditionCd: VariableConditionTypeEnum;
name: string;
value: string;
condition: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/variable/VariableScopeStructure" {
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
export class VariableScopeStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
name: string;
value: string;
condition: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/variable/VariablePropertyStructure" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { VariableConditionTypeEnum } from "sk/data/family/enumeration/VariableConditionTypeEnum";
import { VariableDataTypeEnum } from "sk/data/family/enumeration/VariableDataTypeEnum";
import { VariableDeclareTypeEnum } from "sk/data/family/enumeration/VariableDeclareTypeEnum";
import { VariableTypeEnum } from "sk/data/family/enumeration/VariableTypeEnum";
import { PropertyStructure } from "sk/data/family/element/config/PropertyStructure";
import { VariableActionStructure } from "sk/data/family/element/config/variable/VariableActionStructure";
import { VariableConditionStructure } from "sk/data/family/element/config/variable/VariableConditionStructure";
import { VariableScopeStructure } from "sk/data/family/element/config/variable/VariableScopeStructure";
export class VariablePropertyStructure extends PropertyStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
variableCd: VariableTypeEnum;
declareCd: VariableDeclareTypeEnum;
dataCd: VariableDataTypeEnum;
logicCode: string;
value: any;
minValue: string;
maxValue: string;
protected _conditions: Types;
protected _scopes: Types;
protected _actions: Types;
optionEditor: boolean;
constructor();
get conditions(): Types;
get scopes(): Types;
get actions(): Types;
findCondition(conditionCd: VariableConditionTypeEnum): VariableConditionStructure;
syncCondition(conditionCd: VariableConditionTypeEnum): VariableConditionStructure;
get hideCondition(): string;
set hideCondition(value: string);
reset(): void;
}
}
declare module "sk/data/family/element/config/decorate/DecoratePropertyVariableStructure" {
import { VariablePropertyStructure } from "sk/data/family/element/config/variable/VariablePropertyStructure";
export class DecoratePropertyVariableStructure extends VariablePropertyStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
bindingCd: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/decorate/DecoratePropertyStructure" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { DecorateDataTypeEnum } from "sk/data/family/enumeration/DecorateDataTypeEnum";
import { PropertyStructure } from "sk/data/family/element/config/PropertyStructure";
import { DecorateItemPropertyStructure } from "sk/data/family/element/config/decorate/DecorateItemPropertyStructure";
import { DecorateItemValueStructure } from "sk/data/family/element/config/decorate/DecorateItemValueStructure";
import { DecoratePropertyVariableStructure } from "sk/data/family/element/config/decorate/DecoratePropertyVariableStructure";
export class DecoratePropertyStructure extends PropertyStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
itemId: string;
private _items;
private _variables;
dataCd: DecorateDataTypeEnum;
defaultLinkId: string;
linkId: string;
value: string;
private _values;
constructor();
get items(): Types;
get variables(): Types;
get values(): Types;
findVariableByConfigId(configId: string): DecoratePropertyVariableStructure;
findVariableByCode(code: string): DecoratePropertyVariableStructure;
reset(): void;
}
}
declare module "sk/data/family/element/config/variable/VariableValueStructure" {
import { IContext } from 'cross/runtime/lang/IContext';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableContext } from 'foundation/data/common/core/IVariableContext';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { VariableDataTypeEnum } from "sk/data/family/enumeration/VariableDataTypeEnum";
import { VariableDeclareTypeEnum } from "sk/data/family/enumeration/VariableDeclareTypeEnum";
import { FormulaObject } from "sk/data/family/element/config/formula/FormulaObject";
import { ValueStructure } from "sk/data/family/element/config/ValueStructure";
import { VariablePropertyStructure } from "sk/data/family/element/config/variable/VariablePropertyStructure";
export class VariableValueStructure extends ValueStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
value: any;
defaultValue: any;
protected _statusCompile: boolean;
protected _hideConditionValue: FormulaObject;
protected _formulaValue: FormulaObject;
protected _scopes: Array<{
name: string;
formula: FormulaObject;
value: string;
}>;
valueList: Array<{
name: string;
value: string;
}>;
statusVisible: boolean;
propertyDeclare: VariablePropertyStructure;
constructor();
isEmpty(): boolean;
get(): any;
set(code: string, value: any): void;
get declareCd(): VariableDeclareTypeEnum;
get dataCd(): VariableDataTypeEnum;
get formulaValue(): FormulaObject;
isConditionVariable(): boolean;
getCurrentValue(): any;
isValue(): boolean;
getDirectValue(): any;
getPropertyDeclare(variableProvider: IVariableProvider): VariablePropertyStructure;
compile(context: IVariableContext, variableProvider?: IVariableProvider, parameters?: any, options?: {
dontFindDeclare?: boolean;
}): boolean;
resolve(valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any, context?: IContext, options?: {
dontFindDeclare?: boolean;
}): any;
compute(context: IVariableContext, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): any;
unlink(): void;
dispose(): void;
reset(): void;
}
}
declare module "sk/data/family/element/config/decorate/DecorateValueValueStructure" {
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
export class DecorateValueValueStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
linkId: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/decorate/DecorateValueStructure" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { VariableValueStructure } from "sk/data/family/element/config/variable/VariableValueStructure";
import { ValueStructure } from "sk/data/family/element/config/ValueStructure";
import { DecorateValueValueStructure } from "sk/data/family/element/config/decorate/DecorateValueValueStructure";
export class DecorateValueStructure extends ValueStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
linkCd: string;
linkId: string;
value: string;
private _values;
defaultLinkId: string;
private _variables;
constructor();
get values(): Types;
get variables(): Types;
static LINK_MODE_INFO: string;
get(): any;
getLinkId(): string;
set(code: string, linkId: string): void;
hasVariable(): boolean;
findVariableByCode(code: string): VariableValueStructure;
unlink(): void;
reset(): void;
}
}
declare module "sk/data/family/element/config/formula/FormulaProperty" {
import { IFormulaContext } from 'foundation/data/common/core/IFormulaContext';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { FormulaObject, FormulaValueType } from "sk/data/family/element/config/formula/FormulaObject";
export class FormulaProperty extends FormulaObject {
variableProvider: IVariableProvider;
fieldName: string;
constructor(variableProvider: any, fieldName?: string, value?: any, proxy?: any);
set(value: FormulaValueType, data?: any, dispatch?: boolean): void;
resolve(context: IFormulaContext, valueProvider: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): any;
get number(): number;
clone(): any;
toString(): string;
dispose(): void;
}
}
declare module "sk/data/family/element/config/formula/FormulaPropertyConverter" {
import { PersistentScript } from 'cross/runtime/module/persistent/builder/PersistentScript';
import { PersistentScriptEnum } from 'cross/runtime/module/persistent/builder/PersistentScriptEnum';
import { FieldConverter } from 'cross/runtime/module/persistent/converter/FieldConverter';
import { PersistentAccessEnum } from 'cross/runtime/module/persistent/PersistentAccessEnum';
import { PersistentAnnotation } from 'cross/runtime/module/persistent/PersistentAnnotation';
import { PersistentContext } from 'cross/runtime/module/persistent/PersistentContext';
import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory';
export class FormulaPropertyConverter extends FieldConverter {
constructor(accessCd?: PersistentAccessEnum, notEmpty?: boolean);
load(factory: any, context: any, item: any, config: any, annotation: PersistentAnnotation): void;
save(factory: any, context: any, item: any, config: any, annotation: PersistentAnnotation): void;
copy(factory: PersistentFactory, context: PersistentContext, source: any, target: any, annotation?: PersistentAnnotation): void;
buildScript(script: PersistentScript, scriptCd: PersistentScriptEnum, annotation?: PersistentAnnotation): void;
}
}
declare module "sk/data/family/element/config/parameter/ParameterPropertyStructure" {
import { PropertyStructure } from "sk/data/family/element/config/PropertyStructure";
export class ParameterPropertyStructure extends PropertyStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
value: string;
constructor();
getBooleanValue(defaultValue?: boolean): boolean;
getNumberValue(defaultValue?: number): number;
getStringValue(defaultValue?: string): string;
reset(): void;
}
}
declare module "sk/data/family/element/config/parameter/ParameterValueStructure" {
import { ValueStructure } from "sk/data/family/element/config/ValueStructure";
export class ParameterValueStructure extends ValueStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
value: string;
constructor();
get(): any;
getAsInteger(defaultValue?: number): number;
getAsFloat(defaultValue?: number): number;
set(code: string, value: string): void;
reset(): void;
}
}
declare module "sk/data/family/element/config/reference/ReferenceElement" {
import { ContentRelationTypeEnum } from "sk/data/family/enumeration/ContentRelationTypeEnum";
import { DeclareElement } from "sk/data/family/element/config/DeclareElement";
export class ReferenceElement extends DeclareElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_RELATION_CD: string;
relationCd: ContentRelationTypeEnum;
constructor();
reset(): void;
dispose(): void;
}
export type ReferenceElementMap = {
[key: string]: ReferenceElement;
};
}
declare module "sk/data/family/element/config/message/TechnologyMessageStructure" {
import { MessageStructure } from 'foundation/data/common/structure/message/MessageStructure';
export class TechnologyMessageStructure extends MessageStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
text: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/variable/VariableOperator" {
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariable } from 'foundation/data/common/core/IVariable';
import { IVariableContext } from 'foundation/data/common/core/IVariableContext';
import { IVariableOperator } from 'foundation/data/common/core/IVariableOperator';
export class VariableScope {
static Document: string;
static Global: string;
static System: string;
}
export class VariableOperator extends InstanceObject implements IVariableOperator {
static Document: string;
static Global: string;
getProperty(item: IValueProvider, source: string): number;
getFeature(item: any, source: string): number;
getVariable(context: IVariableContext, code: string): IVariable;
getVariableById(context: IVariableContext, id: string): IVariable;
getVariableIdByCode(context: IVariableContext, code: string, create?: boolean): string;
}
}
declare module "sk/data/family/element/base/InstanceElement" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { MessageStructure } from 'foundation/data/common/structure/message/MessageStructure';
import { IVariableOperator } from 'foundation/data/common/core/IVariableOperator';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { VariableOperator } from "sk/data/family/element/config/variable/VariableOperator";
import { AttributeStructure } from "sk/data/family/element/config/AttributeStructure";
import { NestElement } from "sk/data/family/element/base/NestElement";
export class InstanceElement extends NestElement implements IVariableProvider {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_NAME: string;
static FIELD_LABEL: string;
static FIELD_ATTRIBUTES: string;
static FIELD_MESSAGES: string;
name: string;
label: string;
protected _attributes: Types;
protected _messages: Types;
variableOperator: VariableOperator;
constructor();
get attributes(): Types;
get messages(): Types;
pushAttribute(attribute: AttributeStructure): void;
findAttribute(code: string): any;
searchChildByName(name: string, recursive?: boolean): InstanceElement;
findAttributeByType(attributeClass: any): any;
removeAttribute(code: string): void;
clearAttributes(): void;
pushMessage(message: MessageStructure): void;
addValidateMessage(text: string, ...parameters: Array): void;
addTechnologyMessage(text: string, ...parameters: Array): void;
addErrorMessage(text: string, ...parameters: Array): void;
clearMessages(): void;
getVariableOperator(): IVariableOperator;
toDisplay(): string;
reset(): void;
dispose(): void;
}
export type InstanceElementMap = {
[key: string]: InstanceElement;
};
}
declare module "sk/data/family/element/config/relation/RelationElement" {
import { ElementStructure } from 'foundation/data/common/element/ElementStructure';
import { ContentRelationTypeEnum } from "sk/data/family/enumeration/ContentRelationTypeEnum";
import { DeclareElement } from "sk/data/family/element/config/DeclareElement";
export class RelationElement extends DeclareElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_RELATION_CD: string;
relationCd: ContentRelationTypeEnum;
constructor();
static create(familyStructure: ElementStructure): RelationElement;
reset(): void;
dispose(): void;
}
export type RelationElementMap = {
[key: string]: RelationElement;
};
}
declare module "sk/data/family/element/config/relation/DockRelationElement" {
import { ElementStructure } from 'foundation/data/common/element/ElementStructure';
import { InstanceElement } from "sk/data/family/element/base/InstanceElement";
import { RelationElement } from "sk/data/family/element/config/relation/RelationElement";
export class DockRelationElement extends RelationElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_MASTER_CONTENT: string;
static FIELD_MASTER_CONTACT_CODE: string;
static FIELD_SLAVE_CONTENT: string;
static FIELD_SLAVE_CONTACT_CODE: string;
static FIELD_OFFSET_X: string;
static FIELD_OFFSET_Y: string;
static FIELD_OFFSET_Z: string;
static FIELD_ROTATION_X: string;
static FIELD_ROTATION_Y: string;
static FIELD_ROTATION_Z: string;
masterContent: InstanceElement;
masterContactCode: string;
slaveContent: InstanceElement;
slaveContactCode: string;
offsetX: number;
offsetY: number;
offsetZ: number;
rotationX: number;
rotationY: number;
rotationZ: number;
constructor();
static create(familyStructure: ElementStructure): DockRelationElement;
getDockedElement(element: any, code?: string): any;
reset(): void;
dispose(): void;
}
export type DockRelationElementMap = {
[key: string]: DockRelationElement;
};
}
declare module "sk/data/family/element/config/relation/HostRelationElement" {
import { ElementStructure } from 'foundation/data/common/element/ElementStructure';
import { InstanceElement } from "sk/data/family/element/base/InstanceElement";
import { RelationElement } from "sk/data/family/element/config/relation/RelationElement";
export class HostRelationElement extends RelationElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_MASTER_CONTENT: string;
static FIELD_MASTER_CONTACT_CODE: string;
static FIELD_SLAVE_CONTENT: string;
static FIELD_SLAVE_CONTACT_CODE: string;
static FIELD_OFFSET_X: string;
static FIELD_OFFSET_Y: string;
static FIELD_OFFSET_Z: string;
static FIELD_ROTATION_X: string;
static FIELD_ROTATION_Y: string;
static FIELD_ROTATION_Z: string;
masterContent: InstanceElement;
masterContactCode: string;
slaveContent: InstanceElement;
slaveContactCode: string;
offsetX: number;
offsetY: number;
offsetZ: number;
rotationX: number;
rotationY: number;
rotationZ: number;
constructor();
static create(familyStructure: ElementStructure): HostRelationElement;
reset(): void;
dispose(): void;
}
export type HostRelationElementMap = {
[key: string]: HostRelationElement;
};
}
declare module "sk/data/family/enumeration/BuildStructureTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class BuildStructureTypeEnum extends EnumerationObject {
static Unknown: string;
static Simple: string;
static Observer: string;
static Structure: string;
static Technology: string;
static Build: string;
static Divide: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/library/FamilyStructureEnum" {
import { EnumObject } from 'cross/runtime/lang/EnumObject';
export class FamilyStructureEnum extends EnumObject {
static Information: string;
static StructureProfile: string;
static StructureSection: string;
static StructureLayout: string;
static Apparatus: string;
static ApparatusMillingcutter: string;
static Spatial: string;
static Rule: string;
static Workflow: string;
static Pattern: string;
static Floorplan: string;
static Scheme: string;
static Report: string;
static Drawing: string;
static DrawingGraph: string;
static Bom: string;
static Verification: string;
}
}
declare module "sk/data/family/service/VariableLogicUnit" {
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariable } from 'foundation/data/common/core/IVariable';
import { IVariableContext } from 'foundation/data/common/core/IVariableContext';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { LogicUnit } from 'foundation/data/common/logic/LogicUnit';
export class VariableLogicUnit extends LogicUnit implements IVariable {
name: string;
code: string;
value: string;
private _formula;
constructor();
isEmpty(): boolean;
setExpression(expression: string): void;
resolve(valueProvider?: IValueProvider, variableProvider?: IVariableProvider): number;
compute(context: IVariableContext, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): any;
}
}
declare module "sk/data/family/service/VariableLogicService" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { LogicService } from 'foundation/data/common/logic/LogicService';
import { VariableLogicUnit } from "sk/data/family/service/VariableLogicUnit";
export class VariableLogicService extends LogicService {
protected _idVariables: Dictionary;
protected _nameVariables: Dictionary;
constructor();
get idVariables(): Dictionary;
getVariableById(id: string): VariableLogicUnit;
get nameVariables(): Dictionary;
getVariableByName(name: string): VariableLogicUnit;
addVariable(unit: VariableLogicUnit): void;
registrVariable(name: string, value: any): void;
clear(): void;
}
}
declare module "sk/data/family/element/config/variable/StructureVariableOperator" {
import { IVariable } from 'foundation/data/common/core/IVariable';
import { IVariableContext } from 'foundation/data/common/core/IVariableContext';
import { StructureElement } from "sk/data/family/element/base/StructureElement";
import { VariableOperator } from "sk/data/family/element/config/variable/VariableOperator";
export class StructureVariableOperator extends VariableOperator {
element: StructureElement;
constructor(element: StructureElement);
getVariable(context: IVariableContext, code: string): IVariable;
}
}
declare module "sk/data/family/element/base/StructureElement" {
import { NodeTypeEnum } from 'cross/runtime/framework/node/NodeTypeEnum';
import { IVariable, IVariableMap } from 'foundation/data/common/core/IVariable';
import { IVariableContext } from 'foundation/data/common/core/IVariableContext';
import { IVariableOperator } from 'foundation/data/common/core/IVariableOperator';
import { VariableOperator } from "sk/data/family/element/config/variable/VariableOperator";
import { Element } from "sk/data/family/element/base/Element";
import { NestElement } from "sk/data/family/element/base/NestElement";
export class StructureElement extends NestElement {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
innerTop: boolean;
variables: IVariableMap;
variableOperator: VariableOperator;
get nodeTypeCd(): NodeTypeEnum;
getVariable(context: IVariableContext, name: string): IVariable;
getVariableOperator(): IVariableOperator;
addVariable(variable: IVariable): void;
removeVariable(variable: IVariable): void;
get rootElement(): Element;
reset(): void;
dispose(): void;
}
export type StructureElementMap = {
[key: string]: StructureElement;
};
}
declare module "sk/data/family/rule/element/RuleStructureElement" {
import { StructureElement } from "sk/data/family/element/base/StructureElement";
export class RuleStructureElement extends StructureElement {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
reset(): void;
dispose(): void;
}
export type RuleStructureElementMap = {
[key: string]: RuleStructureElement;
};
}
declare module "sk/data/family/model/FamilyBaseBlueprintNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { DataBlueprintNode } from 'foundation/data/common/model/DataBlueprintNode';
export class FamilyBaseBlueprintNode extends DataBlueprintNode {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
dispose(): void;
static create(document: Document): FamilyBaseBlueprintNode;
}
export type FamilyBaseBlueprintNodeMap = {
[key: string]: FamilyBaseBlueprintNode;
};
}
declare module "sk/data/family/rule/model/RuleBlueprintNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { FamilyBaseBlueprintNode } from "sk/data/family/model/FamilyBaseBlueprintNode";
export class RuleBlueprintNode extends FamilyBaseBlueprintNode {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
dispose(): void;
static create(document: Document): RuleBlueprintNode;
}
export type RuleBlueprintNodeMap = {
[key: string]: RuleBlueprintNode;
};
}
declare module "sk/data/family/element/config/variable/VariableElement" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariable } from 'foundation/data/common/core/IVariable';
import { IVariableContext } from 'foundation/data/common/core/IVariableContext';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { VariableDataTypeEnum } from "sk/data/family/enumeration/VariableDataTypeEnum";
import { VariableDeclareTypeEnum } from "sk/data/family/enumeration/VariableDeclareTypeEnum";
import { VariableTypeEnum } from "sk/data/family/enumeration/VariableTypeEnum";
import { FormulaContext } from "sk/data/family/element/config/formula/FormulaContext";
import { FormulaObject } from "sk/data/family/element/config/formula/FormulaObject";
import { DeclareElement } from "sk/data/family/element/config/DeclareElement";
import { VariableScopeStructure } from "sk/data/family/element/config/variable/VariableScopeStructure";
export class VariableElement extends DeclareElement implements IVariable {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_VARIABLE_CD: string;
static FIELD_DATA_CD: string;
static FIELD_DECLARE_CD: string;
static FIELD_SCOPES: string;
static FIELD_CONDITION: string;
static FIELD_CONFIG_ID: string;
static FIELD_VALUE: string;
static FIELD_DEFAULT_VALUE: string;
static FIELD_MIN_VALUE: string;
static FIELD_MAX_VALUE: string;
static FIELD_OPTION_EDITOR: string;
variableCd: VariableTypeEnum;
dataCd: VariableDataTypeEnum;
declareCd: VariableDeclareTypeEnum;
protected _scopes: Types;
condition: string;
configId: string;
value: string;
defaultValue: string;
minValue: string;
maxValue: string;
optionEditor: boolean;
protected _formulaValue: FormulaObject;
constructor();
get scopes(): Types;
formula: FormulaObject;
isEmpty(): boolean;
compile(context: IVariableContext, variableProvider?: IVariableProvider, options?: any): boolean;
resolve(valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any, context?: FormulaContext): number;
compute(context: IVariableContext, valueProvider?: IValueProvider, variableProvider?: IVariableProvider, parameters?: any): any;
loadJsonValue(jconfig: any): void;
reset(): void;
dispose(): void;
}
export type VariableElementMap = {
[key: string]: VariableElement;
};
}
declare module "sk/data/family/element/config/variable/VariableController" {
import { ConfigController } from "sk/data/family/element/config/ConfigController";
import { VariableElement } from "sk/data/family/element/config/variable/VariableElement";
export class VariableController extends ConfigController {
constructor();
dump(): void;
}
}
declare module "sk/data/family/performer/DataCache" {
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
export class DataCache extends InstanceObject {
static CODE: string;
}
}
declare module "sk/data/family/performer/element/ElementCache" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { UniqueTypes } from 'cross/runtime/lang/collection/UniqueTypes';
import { WeakTypes } from 'cross/runtime/lang/collection/WeakTypes';
import { DataNode, DataNodeMap } from 'foundation/data/common/model/base/DataNode';
import { Element } from "sk/data/family/element/base/Element";
import { DataCache } from "sk/data/family/performer/DataCache";
export class ElementCache extends DataCache {
static CODE: string;
uniqueId: number;
statusValid: boolean;
statusPrepare: boolean;
element: Element;
instanceElementMap: any;
instanceElements: UniqueTypes;
protected _parentNode: WeakRef;
protected _children: WeakTypes;
protected _removeMap: DataNodeMap;
constructor();
get parentNode(): DataNode;
set parentNode(node: DataNode);
setParent(cache: ElementCache): void;
getInstanceElements(): UniqueTypes;
findInstanceElement(id: string): Element;
addInstanceElement(id: string, element: Element): void;
cleareInstanceElements(): void;
findByElement(element: Element): DataNode;
getOneNode(): DataNode;
getFirstNode(): DataNode;
setNode(node: DataNode): void;
removeNode(node: DataNode): void;
hasChild(): boolean;
addChild(node: DataNode): void;
fetchChildren(): Types;
clearChildren(): void;
getRemoveMap(): DataNodeMap;
fetchRemoveMap(node: DataNode, classes?: Function[], eliminate?: boolean): DataNodeMap;
clearRemoveMap(node: DataNode, removeMap?: DataNodeMap): void;
dispose(flag?: boolean): void;
}
}
declare module "sk/data/family/element/util/ElementUtil" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { SingletonObject } from 'cross/runtime/lang/SingletonObject';
import { Element } from "sk/data/family/element/base/Element";
export type ElementFilterHandle = (element: Element) => boolean;
export class ElementUtil extends SingletonObject {
static CLASS_CODE: string;
static getTypeName(element: Element): string;
static fetchElementMap(element: Element, targets?: Dictionary, filter?: ElementFilterHandle): Dictionary;
static getElementFieldMap(element: Element, field: string, targets?: Dictionary): Dictionary;
static setElementFieldMap(element: Element, field: string, values: Dictionary): void;
static unlinkElement(element: Element, recursive?: boolean): void;
protected static innerUnlinkElement(element: Element): void;
static linkElement(element: Element, recursive?: boolean): void;
protected static innerLinkElement(element: Element): void;
}
}
declare module "sk/data/family/library/FamilyPsistentOptions" {
import { ElementFilterHandle } from "sk/data/family/element/util/ElementUtil";
export type FamilyPsistentOptions = {
saveExternal?: boolean;
skipMeta?: boolean;
elementFilter?: ElementFilterHandle;
};
}
declare module "sk/data/family/library/FamilyStructure" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { ByteStream } from 'cross/runtime/lang/stream/ByteStream';
import { ListenerContext } from 'cross/runtime/lang/ListenerContext';
import { PersistentContext } from 'cross/runtime/module/persistent/PersistentContext';
import { ElementDisposeEvent } from 'cross/runtime/framework/element/ElementDisposeEvent';
import { ElementStructure } from 'foundation/data/common/element/ElementStructure';
import { ConfigureController } from "sk/data/family/element/config/configure/ConfigureController";
import { DecorateController } from "sk/data/family/element/config/decorate/DecorateController";
import { VariableController } from "sk/data/family/element/config/variable/VariableController";
import { Element } from "sk/data/family/element/base/Element";
import { NestElement } from "sk/data/family/element/base/NestElement";
import { StructureElement } from "sk/data/family/element/base/StructureElement";
import { FamilyDocument } from "sk/data/family/library/FamilyDocument";
import { FamilyPsistentOptions } from "sk/data/family/library/FamilyPsistentOptions";
import { FamilyStructureEnum } from "sk/data/family/library/FamilyStructureEnum";
export class FamilyStructure extends ElementStructure {
typeCd: FamilyStructureEnum;
label: string;
document: FamilyDocument;
structure: StructureElement;
protected _variableController: VariableController;
protected _decorateController: DecorateController;
protected _configureController: ConfigureController;
protected _elements: Dictionary;
constructor();
get variableController(): VariableController;
get decorateController(): DecorateController;
get configureController(): ConfigureController;
get elements(): Dictionary;
setup(): void;
contains(instance: any): boolean;
findElementById(id: string): Element;
findElementByClass(type: any): Element;
onDisposeElement(sender: ListenerContext, event: ElementDisposeEvent): void;
protected setElement(id: string, element: Element): void;
create(clazz: any, free?: boolean): Element;
alloc(parent: NestElement, clazz: any, referenceInfoId: string, parameters?: any): Element;
add(element: Element): void;
remove(element: Element): void;
addCopy(source: Element): Element;
updateNewElement(newElement: Element): void;
copyJson(source: any, map?: any): any;
mergeJson(jconfig: any, context?: any, options?: any): void;
loadJson(jconfig: any, context?: any, options?: any): void;
loadBinary(context: PersistentContext, options?: any): void;
saveJson(jconfig?: any, context?: any, options?: FamilyPsistentOptions): any;
saveBinary(context: PersistentContext, options?: FamilyPsistentOptions): ByteStream;
clear(): void;
reset(): void;
protected checkElement(element: Element): void;
resetCache(): void;
protected resetElement(element: Element): void;
resetElements(): void;
clean(): void;
dump(): void;
}
}
declare module "sk/data/family/library/FamilyStructureService" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { Service } from 'cross/runtime/module/Service';
import { FamilyStructure } from "sk/data/family/library/FamilyStructure";
type FamilyStructureInfo = {
typeName: string;
type: any;
};
export class FamilyStructureService extends Service {
protected _infos: Dictionary;
protected findInfo(typeName: string, type?: any): FamilyStructureInfo;
registeClass(typeName: string, type: any): void;
createInstance(typeName: string): FamilyStructure;
}
}
declare module "sk/data/family/library/FamilyStructureDeclare" {
export function FamilyStructureDeclare(typeName: string): (type: any) => void;
}
declare module "sk/data/family/rule/RuleFamilyStructure" {
import { FamilyStructure } from "sk/data/family/library/FamilyStructure";
import { RuleStructureElement } from "sk/data/family/rule/element/RuleStructureElement";
export class RuleFamilyStructure extends FamilyStructure {
static CLASS_NAME: string;
structure: RuleStructureElement;
constructor();
setup(): void;
}
}
declare module "sk/data/family/rule/RuleDocument" {
import { FamilyDocument } from "sk/data/family/library/FamilyDocument";
import { RuleStructureElement } from "sk/data/family/rule/element/RuleStructureElement";
import { RuleBlueprintNode } from "sk/data/family/rule/model/RuleBlueprintNode";
import { RuleFamilyStructure } from "sk/data/family/rule/RuleFamilyStructure";
export class RuleDocument extends FamilyDocument {
blueprint: RuleBlueprintNode;
get rootFamilyStructure(): RuleFamilyStructure;
get rootStructure(): RuleStructureElement;
setup(): void;
}
}
declare module "sk/data/family/enumeration/FamilyDocumentTypeEnum" {
import { EnumItem } from 'cross/runtime/lang/EnumItem';
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class FamilyDocumentTypeEnum extends EnumerationObject {
static Unknown: string;
static Structure: string;
static Apparatus: string;
static FamilyType: string;
static Family: string;
static RuleProcess: string;
static RuleType: string;
static Rule: string;
static Pattern: string;
static Workflow: string;
private static _items;
static get Items(): Array;
}
}
declare module "sk/data/family/rule/RuleDataDocument" {
import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory';
import { RuleDocument } from "sk/data/family/rule/RuleDocument";
export class RuleDataDocument extends RuleDocument {
protected static _factory: PersistentFactory;
static get Factory(): PersistentFactory;
get factory(): PersistentFactory;
static createEmptyDocument(json?: any): RuleDataDocument;
static createDefaultDocument(): RuleDataDocument;
}
}
declare module "sk/data/family/rule/RuleDocumentService" {
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 { DataDocumentService } from 'foundation/data/common/service/DataDocumentService';
import { RuleDocument } from "sk/data/family/rule/RuleDocument";
export class RuleDocumentService extends DataDocumentService {
constructor();
protected makeUrl(parameters: DataDocumentParameters): string;
protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters;
protected makeDocument(parameters: DataDocumentParameters, content: any): RuleDocument;
saveCacheDataAsync(parameters: DataDocumentParameters, content: any): Promise;
}
}
declare module "sk/data/family/rule/element/declare/RuleDeclareElement" {
import { InstanceElement } from "sk/data/family/element/base/InstanceElement";
export class RuleDeclareElement extends InstanceElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_CODE: string;
static FIELD_NAME: string;
static FIELD_DATA_DECLARE: string;
static FIELD_DATA_SOURCE: string;
code: string;
name: string;
dataDeclare: string;
dataSource: string;
constructor();
reset(): void;
dispose(): void;
}
export type RuleDeclareElementMap = {
[key: string]: RuleDeclareElement;
};
}
declare module "sk/data/family/rule/RuleProcessDocument" {
import { FamilyDocument } from "sk/data/family/library/FamilyDocument";
import { RuleDeclareElement } from "sk/data/family/rule/element/declare/RuleDeclareElement";
import { RuleStructureElement } from "sk/data/family/rule/element/RuleStructureElement";
import { RuleBlueprintNode } from "sk/data/family/rule/model/RuleBlueprintNode";
import { RuleFamilyStructure } from "sk/data/family/rule/RuleFamilyStructure";
export class RuleProcessDocument extends FamilyDocument {
blueprint: RuleBlueprintNode;
constructor();
get rootFamilyStructure(): RuleFamilyStructure;
get rootStructure(): RuleStructureElement;
get ruleDeclare(): RuleDeclareElement;
setup(): void;
}
}
declare module "sk/data/family/rule/RuleProcessDataDocument" {
import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory';
import { RuleProcessDocument } from "sk/data/family/rule/RuleProcessDocument";
export class RuleProcessDataDocument extends RuleProcessDocument {
protected static _factory: PersistentFactory;
static get Factory(): PersistentFactory;
get factory(): PersistentFactory;
}
}
declare module "sk/data/family/rule/RuleProcessDocumentService" {
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 { RuleProcessDocument } from "sk/data/family/rule/RuleProcessDocument";
export class RuleProcessDocumentService extends DataDocumentService {
constructor();
protected makeUrl(parameters: DataDocumentParameters): string;
protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters;
protected makeDocument(parameters: DataDocumentParameters, content: any): RuleProcessDocument;
}
}
declare module "sk/data/family/rule/RuleProcessLibraryDocumentService" {
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 { RuleProcessDocument } from "sk/data/family/rule/RuleProcessDocument";
export class RuleProcessLibraryDocumentService extends DataDocumentService {
constructor();
protected makeUrl(parameters: DataDocumentParameters): string;
protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters;
protected makeDocument(parameters: DataDocumentParameters, content: any): RuleProcessDocument;
}
}
declare module "sk/data/family/element/config/parameter/ParameterElement" {
import { ParameterTypeEnum } from 'foundation/data/common/enumeration/module/ParameterTypeEnum';
import { DeclareElement } from "sk/data/family/element/config/DeclareElement";
export class ParameterElement extends DeclareElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_DATA_CD: string;
static FIELD_VALUE: string;
dataCd: ParameterTypeEnum;
value: any;
constructor();
loadJsonValue(jconfig: any): void;
loadObjectValue(jconfig: any): void;
loadConfigValue(jconfig: any): void;
reset(): void;
dispose(): void;
}
export type ParameterElementMap = {
[key: string]: ParameterElement;
};
}
declare module "sk/data/family/service/FamilyConfigDataInvoker" {
import { DataCacheInvoker } from 'foundation/data/common/service/DataCacheInvoker';
export class FamilyConfigDataInvoker extends DataCacheInvoker {
}
}
declare module "sk/data/family/element/brep/SpatialStructureElement" {
import { Size3 } from 'foundation/runtime/math/Size3';
import { StructureElement } from "sk/data/family/element/base/StructureElement";
export class SpatialStructureElement extends StructureElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_LENGTH_X: string;
static FIELD_LENGTH_MIN_X: string;
static FIELD_LENGTH_MAX_X: string;
static FIELD_LENGTH_Y: string;
static FIELD_LENGTH_MIN_Y: string;
static FIELD_LENGTH_MAX_Y: string;
static FIELD_LENGTH_Z: string;
static FIELD_LENGTH_MIN_Z: string;
static FIELD_LENGTH_MAX_Z: string;
lengthX: number;
lengthMinX: number;
lengthMaxX: number;
lengthY: number;
lengthMinY: number;
lengthMaxY: number;
lengthZ: number;
lengthMinZ: number;
lengthMaxZ: number;
constructor();
get size(): Size3;
reset(): void;
dispose(): void;
}
export type SpatialStructureElementMap = {
[key: string]: SpatialStructureElement;
};
}
declare module "sk/data/family/element/SpatialFamilyStructure" {
import { FamilyStructure } from "sk/data/family/library/FamilyStructure";
import { SpatialStructureElement } from "sk/data/family/element/brep/SpatialStructureElement";
export class SpatialFamilyStructure extends FamilyStructure {
static CLASS_NAME: string;
structure: SpatialStructureElement;
constructor();
setup(): void;
}
}
declare module "sk/data/family/model/assistant/BackgroundNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { BrepNode } from 'foundation/data/common/model/brep/BrepNode';
export class BackgroundNode extends BrepNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_COLOR: string;
color: number;
constructor();
reset(): void;
dispose(): void;
static create(document: Document): BackgroundNode;
}
export type BackgroundNodeMap = {
[key: string]: BackgroundNode;
};
}
declare module "sk/data/family/model/assistant/GridNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { BrepNode } from 'foundation/data/common/model/brep/BrepNode';
export class GridNode extends BrepNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_WIDTH: string;
static FIELD_HEIGHT: string;
width: number;
height: number;
constructor();
canSelect(): boolean;
dispose(): void;
static create(document: Document): GridNode;
}
export type GridNodeMap = {
[key: string]: GridNode;
};
}
declare module "sk/data/family/model/assistant/UnderlayNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { VertexNode } from 'foundation/data/common/model/brep/VertexNode';
export class UnderlayNode extends VertexNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_WIDTH: string;
static FIELD_HEIGHT: string;
static FIELD_FACTOR: string;
static FIELD_URL: string;
width: number;
height: number;
factor: number;
url: string;
has2D: boolean;
has3D: boolean;
data2D: any;
static FIELD_Data2D: string;
data3D: any;
data2dVisible: any;
data3dVisible: any;
constructor();
reset(): void;
dispose(): void;
static create(document: Document): UnderlayNode;
}
export type UnderlayNodeMap = {
[key: string]: UnderlayNode;
};
}
declare module "sk/data/family/model/FamilyBlueprintNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { BackgroundNode } from "sk/data/family/model/assistant/BackgroundNode";
import { GridNode } from "sk/data/family/model/assistant/GridNode";
import { UnderlayNode } from "sk/data/family/model/assistant/UnderlayNode";
import { FamilyBaseBlueprintNode } from "sk/data/family/model/FamilyBaseBlueprintNode";
export class FamilyBlueprintNode extends FamilyBaseBlueprintNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_GRID: string;
static FIELD_UNDERLAY: string;
static FIELD_BACKGROUND: string;
grid: GridNode;
underlay: UnderlayNode;
background: BackgroundNode;
constructor();
reset(): void;
clear(): void;
dispose(): void;
static create(document: Document): FamilyBlueprintNode;
}
export type FamilyBlueprintNodeMap = {
[key: string]: FamilyBlueprintNode;
};
}
declare module "sk/data/family/model/FamilyDataDocument" {
import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory';
import { FamilyDocument } from "sk/data/family/library/FamilyDocument";
export class FamilyDataDocument extends FamilyDocument {
static CLASS_NAME: string;
protected static _factory: PersistentFactory;
static get Factory(): PersistentFactory;
get factory(): PersistentFactory;
reset(): void;
static createEmptyDocument(json?: any): FamilyDataDocument;
static createDefaultDocument(): FamilyDataDocument;
}
}
declare module "sk/data/family/workflow/model/WorkflowBaseNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { DataNode } from 'foundation/data/common/model/base/DataNode';
export class WorkflowBaseNode extends DataNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_X: string;
static FIELD_Y: string;
x: number;
y: number;
constructor();
dispose(): void;
static create(document: Document): WorkflowBaseNode;
}
export type WorkflowBaseNodeMap = {
[key: string]: WorkflowBaseNode;
};
}
declare module "sk/data/family/workflow/model/WorkflowLinkNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { WorkflowBaseNode } from "sk/data/family/workflow/model/WorkflowBaseNode";
export class WorkflowLinkNode extends WorkflowBaseNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_BEGIN_NODE: string;
static FIELD_END_NODE: string;
beginNode: WorkflowBaseNode;
endNode: WorkflowBaseNode;
constructor();
dispose(): void;
static create(document: Document): WorkflowLinkNode;
}
export type WorkflowLinkNodeMap = {
[key: string]: WorkflowLinkNode;
};
}
declare module "sk/data/family/workflow/model/WorkflowNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { DataNode } from 'foundation/data/common/model/base/DataNode';
export class WorkflowNode extends DataNode {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
dispose(): void;
static create(document: Document): WorkflowNode;
}
export type WorkflowNodeMap = {
[key: string]: WorkflowNode;
};
}
declare module "sk/data/family/workflow/model/WorkflowPlainNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { WorkflowBaseNode } from "sk/data/family/workflow/model/WorkflowBaseNode";
export class WorkflowPlainNode extends WorkflowBaseNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_INVOKE_NAME: string;
invokeName: string;
constructor();
dispose(): void;
static create(document: Document): WorkflowPlainNode;
}
export type WorkflowPlainNodeMap = {
[key: string]: WorkflowPlainNode;
};
}
declare module "sk/data/family/workflow/model/WorkflowPointNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { WorkflowBaseNode } from "sk/data/family/workflow/model/WorkflowBaseNode";
export class WorkflowPointNode extends WorkflowBaseNode {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
dispose(): void;
static create(document: Document): WorkflowPointNode;
}
export type WorkflowPointNodeMap = {
[key: string]: WorkflowPointNode;
};
}
declare module "sk/data/family/workflow/model/WorkflowStartNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { WorkflowPointNode } from "sk/data/family/workflow/model/WorkflowPointNode";
export class WorkflowStartNode extends WorkflowPointNode {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
dispose(): void;
static create(document: Document): WorkflowStartNode;
}
export type WorkflowStartNodeMap = {
[key: string]: WorkflowStartNode;
};
}
declare module "sk/data/family/workflow/model/WorkflowStopNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { WorkflowPointNode } from "sk/data/family/workflow/model/WorkflowPointNode";
export class WorkflowStopNode extends WorkflowPointNode {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
dispose(): void;
static create(document: Document): WorkflowStopNode;
}
export type WorkflowStopNodeMap = {
[key: string]: WorkflowStopNode;
};
}
declare module "sk/data/family/element/config/conditon/ElementConditionProperty" {
import { ConditionProperty } from "sk/data/family/element/config/conditon/ConditionProperty";
export class ElementConditionProperty extends ConditionProperty {
visible: boolean;
}
}
declare module "sk/data/family/element/util/ElementFactoryUtil" {
import { IFormulaContext } from 'foundation/data/common/core/IFormulaContext';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { ElementConditionProperty } from "sk/data/family/element/config/conditon/ElementConditionProperty";
import { FormulaProperty } from "sk/data/family/element/config/formula/FormulaProperty";
export class ElementFactoryUtil {
private static _formulaProperty;
static createFormulaProperty(owner: any, field: string): FormulaProperty;
static createConditionProperty(owner: any, field: string): ElementConditionProperty;
static resolveFormula(context: IFormulaContext, value: string, variableProvider: IVariableProvider, valueProvider: IValueProvider, parameters?: any): number;
}
}
declare module "sk/data/family/workflow/element/WorkflowBaseElement" {
import { Vector2 } from 'cross/runtime/math/Vector2';
import { FormulaProperty } from "sk/data/family/element/config/formula/FormulaProperty";
import { InstanceElement } from "sk/data/family/element/base/InstanceElement";
export class WorkflowBaseElement extends InstanceElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_OPTION_LOCK: string;
static FIELD_OPTION_VISIBLE: string;
static FIELD_X: string;
static FIELD_Y: string;
static FIELD_PARAMETERS: string;
optionLock: boolean;
optionVisible: boolean;
x: FormulaProperty;
y: FormulaProperty;
parameters: any;
constructor();
get xValue(): number;
set xValue(value: number);
get yValue(): number;
set yValue(value: number);
get vector2(): Vector2;
toValue2(target?: Vector2): Vector2;
reset(): void;
dispose(): void;
}
export type WorkflowBaseElementMap = {
[key: string]: WorkflowBaseElement;
};
}
declare module "sk/data/family/workflow/element/WorkflowDecisionElement" {
import { WorkflowBaseElement } from "sk/data/family/workflow/element/WorkflowBaseElement";
export class WorkflowDecisionElement extends WorkflowBaseElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_INVOKE_NAME: string;
invokeName: string;
constructor();
reset(): void;
dispose(): void;
}
export type WorkflowDecisionElementMap = {
[key: string]: WorkflowDecisionElement;
};
}
declare module "sk/data/family/workflow/element/WorkflowLinkElement" {
import { WorkflowBaseElement } from "sk/data/family/workflow/element/WorkflowBaseElement";
export class WorkflowLinkElement extends WorkflowBaseElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_BEGIN_ELEMENT: string;
static FIELD_END_ELEMENT: string;
beginElement: WorkflowBaseElement;
endElement: WorkflowBaseElement;
constructor();
reset(): void;
dispose(): void;
}
export type WorkflowLinkElementMap = {
[key: string]: WorkflowLinkElement;
};
}
declare module "sk/data/family/workflow/element/WorkflowPlainElement" {
import { WorkflowBaseElement } from "sk/data/family/workflow/element/WorkflowBaseElement";
export class WorkflowPlainElement extends WorkflowBaseElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_INVOKE_NAME: string;
invokeName: string;
constructor();
reset(): void;
dispose(): void;
}
export type WorkflowPlainElementMap = {
[key: string]: WorkflowPlainElement;
};
}
declare module "sk/data/family/workflow/element/WorkflowPointElement" {
import { WorkflowBaseElement } from "sk/data/family/workflow/element/WorkflowBaseElement";
export class WorkflowPointElement extends WorkflowBaseElement {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
reset(): void;
dispose(): void;
}
export type WorkflowPointElementMap = {
[key: string]: WorkflowPointElement;
};
}
declare module "sk/data/family/workflow/element/WorkflowStartElement" {
import { WorkflowPointElement } from "sk/data/family/workflow/element/WorkflowPointElement";
export class WorkflowStartElement extends WorkflowPointElement {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
reset(): void;
dispose(): void;
}
export type WorkflowStartElementMap = {
[key: string]: WorkflowStartElement;
};
}
declare module "sk/data/family/workflow/element/WorkflowStopElement" {
import { WorkflowPointElement } from "sk/data/family/workflow/element/WorkflowPointElement";
export class WorkflowStopElement extends WorkflowPointElement {
static CLASS_ID: string;
static CLASS_NAME: string;
constructor();
reset(): void;
dispose(): void;
}
export type WorkflowStopElementMap = {
[key: string]: WorkflowStopElement;
};
}
declare module "sk/data/family/workflow/element/WorkflowStructureElement" {
import { StructureElement } from "sk/data/family/element/base/StructureElement";
export class WorkflowStructureElement extends StructureElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_LENGTH_X: string;
static FIELD_LENGTH_Y: string;
lengthX: number;
lengthY: number;
constructor();
reset(): void;
dispose(): void;
}
export type WorkflowStructureElementMap = {
[key: string]: WorkflowStructureElement;
};
}
declare module "sk/data/family/workflow/element/WorkflowTaskElement" {
import { WorkflowBaseElement } from "sk/data/family/workflow/element/WorkflowBaseElement";
export class WorkflowTaskElement extends WorkflowBaseElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_INVOKE_WORKFLOW_NAME: string;
invokeWorkflowName: string;
constructor();
reset(): void;
dispose(): void;
}
export type WorkflowTaskElementMap = {
[key: string]: WorkflowTaskElement;
};
}
declare module "sk/data/family/workflow/model/WorkflowBlueprintNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { BackgroundNode } from "sk/data/family/model/assistant/BackgroundNode";
import { GridNode } from "sk/data/family/model/assistant/GridNode";
import { FamilyBaseBlueprintNode } from "sk/data/family/model/FamilyBaseBlueprintNode";
export class WorkflowBlueprintNode extends FamilyBaseBlueprintNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_GRID: string;
static FIELD_BACKGROUND: string;
grid: GridNode;
background: BackgroundNode;
constructor();
reset(): void;
dispose(): void;
static create(document: Document): WorkflowBlueprintNode;
}
export type WorkflowBlueprintNodeMap = {
[key: string]: WorkflowBlueprintNode;
};
}
declare module "sk/data/family/workflow/model/WorkflowDecisionNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { WorkflowBaseNode } from "sk/data/family/workflow/model/WorkflowBaseNode";
export class WorkflowDecisionNode extends WorkflowBaseNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_INVOKE_NAME: string;
invokeName: string;
constructor();
dispose(): void;
static create(document: Document): WorkflowDecisionNode;
}
export type WorkflowDecisionNodeMap = {
[key: string]: WorkflowDecisionNode;
};
}
declare module "sk/data/family/workflow/model/WorkflowTaskNode" {
import { Document } from 'cross/runtime/framework/document/Document';
import { WorkflowBaseNode } from "sk/data/family/workflow/model/WorkflowBaseNode";
export class WorkflowTaskNode extends WorkflowBaseNode {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_INVOKE_WORKFLOW_NAME: string;
invokeWorkflowName: string;
constructor();
dispose(): void;
static create(document: Document): WorkflowTaskNode;
}
export type WorkflowTaskNodeMap = {
[key: string]: WorkflowTaskNode;
};
}
declare module "sk/data/family/workflow/WorkflowFamilyStructure" {
import { FamilyStructure } from "sk/data/family/library/FamilyStructure";
import { WorkflowStructureElement } from "sk/data/family/workflow/element/WorkflowStructureElement";
export class WorkflowFamilyStructure extends FamilyStructure {
static CLASS_NAME: string;
structure: WorkflowStructureElement;
constructor();
setup(): void;
}
}
declare module "sk/data/family/workflow/WorkflowDocument" {
import { FamilyDocument } from "sk/data/family/library/FamilyDocument";
import { WorkflowBaseElement } from "sk/data/family/workflow/element/WorkflowBaseElement";
import { WorkflowStructureElement } from "sk/data/family/workflow/element/WorkflowStructureElement";
import { WorkflowBaseNode } from "sk/data/family/workflow/model/WorkflowBaseNode";
import { WorkflowBlueprintNode } from "sk/data/family/workflow/model/WorkflowBlueprintNode";
import { WorkflowFamilyStructure } from "sk/data/family/workflow/WorkflowFamilyStructure";
export class WorkflowDocument extends FamilyDocument {
blueprint: WorkflowBlueprintNode;
get rootFamilyStructure(): WorkflowFamilyStructure;
get rootStructure(): WorkflowStructureElement;
computeElement(element: WorkflowBaseElement, node: WorkflowBaseNode, elementNodeMap: any): void;
compute(): void;
reset(): void;
}
}
declare module "sk/data/family/workflow/WorkflowDataDocument" {
import { PersistentFactory } from 'cross/runtime/module/persistent/PersistentFactory';
import { Workflow } from 'foundation/data/common/workflow/Workflow';
import { WorkflowDocument } from "sk/data/family/workflow/WorkflowDocument";
export class WorkflowDataDocument extends WorkflowDocument {
static CLASS_NAME: string;
protected static _factory: PersistentFactory;
static get Factory(): PersistentFactory;
constructor();
get factory(): PersistentFactory;
makeWorkflow(): Workflow;
static createEmptyDocument(json?: any): WorkflowDataDocument;
static createDefaultDocument(): WorkflowDataDocument;
}
}
declare module "sk/data/family/workflow/WorkflowDocumentService" {
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 { WorkflowDocument } from "sk/data/family/workflow/WorkflowDocument";
export class WorkflowDocumentService extends DataDocumentService {
constructor();
protected makeUrl(parameters: DataDocumentParameters): string;
protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters;
protected makeDocument(parameters: DataDocumentParameters, content: any): WorkflowDocument;
}
}
declare module "sk/data/family/workflow/WorkflowProcessService" {
import { IContext } from 'cross/runtime/lang/IContext';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { DataDocumentParameters } from 'cross/data/module/document/DataDocumentParameters';
import { WorkflowProcesResult } from 'foundation/data/common/workflow/process/WorkflowProcesResult';
import { WorkflowProcessInput } from 'foundation/data/common/workflow/process/WorkflowProcessInput';
import { WorkflowProcessOutput } from 'foundation/data/common/workflow/process/WorkflowProcessOutput';
import { Workflow } from 'foundation/data/common/workflow/Workflow';
import { WorkflowService } from 'foundation/data/common/workflow/WorkflowService';
import { WorkflowDocument } from "sk/data/family/workflow/WorkflowDocument";
import { WorkflowDocumentService } from "sk/data/family/workflow/WorkflowDocumentService";
export class WorkflowProcessService extends WorkflowDocumentService {
protected _workflowService: WorkflowService;
makeCodeUrl(code: string): string;
protected makeDocument(parameters: DataDocumentParameters, content: any): WorkflowDocument;
loadByCodeAsync(context: IContext, code: string): Promise>;
loadByCodesAsync(context: IContext, ...codes: Array): Promise;
process(context: IContext, name: string, input?: WorkflowProcessInput, output?: WorkflowProcessOutput): WorkflowProcesResult;
processAsync(context: IContext, name: string, input?: WorkflowProcessInput, output?: WorkflowProcessOutput): Promise;
}
}
declare module "sk/data/family/service/FamilyComputeEnum" {
export class FamilyComputeEnum {
static Mode: string;
}
}
declare module "sk/data/family/service/FamilyDocumentService" {
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 { 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 { FamilyDocument } from "sk/data/family/library/FamilyDocument";
import { WorkflowProcessService } from "sk/data/family/workflow/WorkflowProcessService";
import { FamilyComputeEnum } from "sk/data/family/service/FamilyComputeEnum";
export type FamilyWorkflowOptions = {
document: FamilyDocument;
element?: Element;
force?: boolean;
parameters?: any;
modeCd?: FamilyComputeEnum;
};
export class FamilyDocumentService extends DataDocumentService {
protected _workflowProcessService: WorkflowProcessService;
protected _versionUpgradeService: VersionUpgradeService;
constructor();
protected makeUrl(parameters: DataDocumentParameters): string;
protected makeStorageDownloadParameters(parameters: DataDocumentParameters): MongoStorageDownloadParameters;
protected makeDocument(parameters: DataDocumentParameters, content: any): FamilyDocument;
makeDocumentAsync(context: ContextObject, parameters: DataDocumentParameters, content: any): Promise>;
computeWorkflow(name: string, options: FamilyWorkflowOptions): any;
computeWorkflowAsync(name: string, options: FamilyWorkflowOptions): Promise;
}
}
declare module "sk/data/family/service/FamilyConfigService" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { IContext } from 'cross/runtime/lang/IContext';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { EnvironmentService } from 'cross/runtime/module/environment/EnvironmentService';
import { JsonService } from 'cross/core/module/json/JsonService';
import { MessageService } from 'cross/data/module/message/MessageService';
import { LogicInterfaceService } from 'foundation/data/common/net/LogicInterfaceService';
import { AssetVersionType } from 'foundation/data/common/resource/AssetUtil';
import { DataService } from 'foundation/data/common/service/DataService';
import { ConfigReferenceStructure } from 'foundation/data/common/structure/ConfigReferenceStructure';
import { SpecificationStorageLoadOptions } from 'sk/data/specification/common/storage/SpecificationStorageService';
import { ISpecificationFamily } from 'sk/data/specification/base/ISpecificationFamily';
import { ISpecificationFamilyCategory } from 'sk/data/specification/base/ISpecificationFamilyCategory';
import { ISpecificationFamilyInfo } from 'sk/data/specification/base/ISpecificationFamilyInfo';
import { ISpecificationFamilyType } from 'sk/data/specification/base/ISpecificationFamilyType';
import { SpecificationFamilyService } from 'sk/data/specification/family/SpecificationFamilyService';
import { SpecificationFamilyInfoService } from 'sk/data/specification/familyinfo/SpecificationFamilyInfoService';
import { SpecificationWarehouse } from 'sk/data/specification/warehouse/SpecificationWarehouse';
import { SpecificationWarehouseService } from 'sk/data/specification/warehouse/SpecificationWarehouseService';
import { ConfigureElement } from "sk/data/family/element/config/configure/ConfigureElement";
import { DecorateElement } from "sk/data/family/element/config/decorate/DecorateElement";
import { ParameterElement } from "sk/data/family/element/config/parameter/ParameterElement";
import { VariableElement } from "sk/data/family/element/config/variable/VariableElement";
import { FamilyDocument } from "sk/data/family/library/FamilyDocument";
import { FamilyConfigDataInvoker } from "sk/data/family/service/FamilyConfigDataInvoker";
import { FamilyDocumentService } from "sk/data/family/service/FamilyDocumentService";
export type FamilyConfigParameter = {
id: string;
code: string;
name: string;
dataValue: string;
};
export type RuleInfo = {
id: string;
version: number;
process_id: string;
function_type: string;
statusCd: string;
data_order: number;
library_id: string;
name: string;
tenant_id: string;
type_category_id: string;
};
export type FamilySymbolInfo = {
id: string;
familyInfoId?: string;
lengthX: number;
lengthY: number;
lengthZ: number;
features: string;
};
export type FamilyFeatureInfo = {
id: string;
name: string;
code: string;
value: string;
};
export type FamilyConfigureInfo = {
id: string;
name: string;
version: string;
symbolList: FamilySymbolInfo[];
familyType: ISpecificationFamilyType[];
familyCategory: ISpecificationFamilyCategory[];
familyFeature: FamilyFeatureInfo[];
};
export type StructureInfo = {
id: string;
name: string;
code: string;
};
export class FamilyConfigService extends DataService {
workCd: string;
protected _ruleTypesStorageMap: Types;
protected _environmentService: EnvironmentService;
protected _jsonService: JsonService;
protected _interfaceService: LogicInterfaceService;
protected _messageService: MessageService;
protected _specificationFamilyInfoService: SpecificationFamilyInfoService;
protected _specificationFamilyService: SpecificationFamilyService;
protected _familyDocumentService: FamilyDocumentService;
protected _warehouseService: SpecificationWarehouseService;
initializeConfig(jconfig: any): void;
createInvoker(name: string, handleLoadAsync?: any, handleGet?: any): FamilyConfigDataInvoker;
getWarehouse(context: IContext): SpecificationWarehouse;
loadWarehouseLibraryAsync(context: IContext, libraryId: string, libraryVersion: any): Promise;
loadWarehouseFamilyAsync(context: IContext, document: FamilyDocument): Promise;
findParameterById(context: IContext, id: string): ParameterElement;
findParameterByCode(context: IContext, code: string): ParameterElement;
findParameterValueByCode(context: IContext, code: string): any;
findVariableById(context: IContext, id: string): VariableElement;
findVariableByCode(context: IContext, code: string, familyId?: string, familyVersion?: any, libraryId?: string, libraryVersion?: any): VariableElement;
findDecorateById(context: IContext, id: string, familyId?: string, familyVersion?: AssetVersionType, libarayId?: string, libarayVersion?: AssetVersionType): DecorateElement;
findConfigureById(context: IContext, id: string, familyId?: string, familyVersion?: AssetVersionType, libarayId?: string, libarayVersion?: AssetVersionType): ConfigureElement;
getSpecificationFamilyAsync(context: IContext, familyId: string, options?: SpecificationStorageLoadOptions): Promise>;
getSpecificationFamilyTypesAsync(context: IContext, familyId: string, options?: SpecificationStorageLoadOptions): Promise;
getSpecificationFamilyCategoriesAsync(context: IContext, familyId: string, options?: SpecificationStorageLoadOptions): Promise;
getSpecificationFamilyInfoAsync(context: IContext, familyInfoId: string, options?: SpecificationStorageLoadOptions): Promise>;
getSpecificationFamilyInfoByFamilyIdAsync(context: IContext, familyId: string, force?: boolean): Promise>;
getFamilySymbolsByIdLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise;
getFamilySymbolsByIdGet(context: IContext, parameters: any, content: any): any;
getFamilySymbolsByIdAsync(context: IContext, familyId: string): Promise>>;
getFamilyFeaturesByFamilyIdAsync(context: IContext, familyId: string): Promise;
isSubFamilyTypeByIdAsync(context: IContext, familyId: string, subTypeId: string): Promise;
getDecorateInfoByIdLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise;
getDecorateInfoByIdGet(context: IContext, parameters: any, content: any): any;
getDecorateInfoByIdAsync(context: IContext, id: string, force?: boolean): Promise;
getDefaultDecorateItemAndLinkerLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise;
getDefaultDecorateItemAndLinkerGet(context: IContext, parameters: any, content: any): any;
getDefaultDecorateItemAndLinkerAsync(context: IContext, configId: string): Promise;
getDecorateItemsByConfigIdLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise;
getDecorateItemsByConfigIdGet(context: IContext, parameters: any, content: any): any[];
getDecorateItemsByConfigIdAsync(context: IContext, configId: string, force?: boolean): Promise>>;
getDefaultDecorateAsync(configId: any): Promise;
getRuleListLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise;
getRuleListGet(context: IContext, parameters: any, content: any): Types;
getRuleListAsync(context: IContext): Promise>>;
getRuleTypesListLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise;
getRuleTypesListGet(context: IContext, parameters: any, content: any): Types;
getRuleTypesListAsync(context: IContext): Promise>>;
getFamilyCategorysByFamilyId(context: IContext, familyId: string): ISpecificationFamilyCategory[];
getRuleProcessIdByRuleIdAsync(context: IContext, ruleId: string): Promise;
getRuleProcessIdByRuleTypeIdAsync(context: IContext, ruleTypeId: string): Promise;
isSubFamilyTypeByCodeAsync(context: IContext, familyId: string, subCode: string): Promise;
getModuleStructureByIdLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise;
getModuleStructureByIdGet(context: IContext, parameters: any, content: any): any;
getModuleStructureByIdAsync(context: IContext, structureId: string): Promise>;
getFamilyValuationConfigListByFamilyIdLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise>>;
getFamilyValuationConfigListByFamilyIdGet(context: IContext, parameters: any, content: Array): Array;
getFamilyValuationConfigListByFamilyIdAsync(context: IContext, familyId: string): Promise>>;
getFamilyValuationSystemListByFamilyIdLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise>>;
getFamilyValuationSystemListByFamilyIdGet(context: IContext, parameters: any, content: any): Array;
getFamilyValuationSystemListByFamilyIdAsync(context: IContext, familyId: string): Promise>>;
getValuationRuleByIdLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise;
getValuationRuleByIdGet(context: IContext, parameters: any, content: any): any;
getValuationRuleByIdAsync(context: IContext, id: string): Promise>;
getValuationConfigLoadAsync(context: IContext, service: FamilyConfigService, parameters: any): Promise>;
getValuationConfigGet(context: IContext, parameters: any, content: any): any;
getValuationConfigAsync(context: IContext, valuationSystemId: string, materialId: string): Promise>;
}
}
declare module "sk/data/family/performer/DataPerformer" {
import { CalculatorPerformer } from 'foundation/core/module/calculator/CalculatorPerformer';
import { DataCache } from "sk/data/family/performer/DataCache";
import { DataPerformerContext } from "sk/data/family/performer/DataPerformerContext";
export abstract class DataPerformer extends CalculatorPerformer {
optionInstanceAsync: boolean;
constructor();
createCache(context: DataPerformerContext): DataCache;
}
}
declare module "sk/data/family/performer/DataPerformerContext" {
import { IContext } from 'cross/runtime/lang/IContext';
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { CalculatorContext } from 'foundation/core/module/calculator/CalculatorContext';
import { CalculatorService } from 'foundation/core/module/calculator/CalculatorService';
import { DataDocument } from 'foundation/data/common/model/DataDocument';
import { DataCache } from "sk/data/family/performer/DataCache";
import { DataPerformer } from "sk/data/family/performer/DataPerformer";
export class DataPerformerContext extends CalculatorContext {
optionSyncChildren: boolean;
calculatorService: CalculatorService;
calculatorTypeCd: string;
document: DataDocument;
computeCd: string;
parameters: any;
constructor(parent?: IContext);
getCache(value: any): DataCache;
findPerformerByInstance(instance: InstanceObject): DataPerformer;
free(): void;
dispose(): void;
}
}
declare module "sk/data/family/performer/element/ElementBasePerformerContext" {
import { DataPerformerContext } from "sk/data/family/performer/DataPerformerContext";
export class ElementBasePerformerContext extends DataPerformerContext {
}
}
declare module "sk/data/family/performer/DataCalculatorResult" {
import { CalculatorResult } from 'foundation/core/module/calculator/CalculatorResult';
import { DataPerformerContext } from "sk/data/family/performer/DataPerformerContext";
export class DataCalculatorResult extends CalculatorResult {
context: DataPerformerContext;
constructor(context?: DataPerformerContext);
}
}
declare module "sk/data/family/performer/element/ElementPerformerResult" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { DataNode } from 'foundation/data/common/model/base/DataNode';
import { DataCalculatorResult } from "sk/data/family/performer/DataCalculatorResult";
import { ElementPerformerContext } from "sk/data/family/performer/element/ElementPerformerContext";
export class ElementPerformerResult extends DataCalculatorResult {
nodes: Types;
constructor(context?: ElementPerformerContext);
addNode(node: DataNode): void;
}
}
declare module "sk/data/family/performer/element/IElementTraversal" {
import { ResultEnum } from 'cross/runtime/lang/ResultEnum';
import { Element } from "sk/data/family/element/base/Element";
export interface IElementTraversal {
processElement(context: any, element: Element, isBefore: boolean): ResultEnum;
}
export interface IElementAsyncTraversal {
processElementAsync(context: any, element: Element, isBefore: boolean): Promise;
}
}
declare module "sk/data/family/performer/element/ElementPerformerUtil" {
import { ResultEnum } from 'cross/runtime/lang/ResultEnum';
import { Element } from "sk/data/family/element/base/Element";
import { ElementCloneOptions } from "sk/data/family/performer/element/ElementPerformer";
import { ElementPerformerContext } from "sk/data/family/performer/element/ElementPerformerContext";
import { IElementAsyncTraversal, IElementTraversal } from "sk/data/family/performer/element/IElementTraversal";
export class ElementPerformerUtil {
static asyncCreateElementCount: number;
static asyncCallCount: number;
static traversalElement(context: ElementPerformerContext, element: Element, traversal: IElementTraversal): ResultEnum;
static traversalElementAsync(context: ElementPerformerContext, element: Element, traversal: IElementAsyncTraversal): Promise;
static clone(element: Element, options?: ElementCloneOptions): Element;
static deepClone(element: Element, options?: ElementCloneOptions, typeCd?: string): Element;
}
}
declare module "sk/data/family/performer/element/ElementPerformer" {
import { ResultEnum } from 'cross/runtime/lang/ResultEnum';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { PersistentContext } from 'cross/runtime/module/persistent/PersistentContext';
import { DataNode } from 'foundation/data/common/model/base/DataNode';
import { Element } from "sk/data/family/element/base/Element";
import { NestElement } from "sk/data/family/element/base/NestElement";
import { DataPerformer } from "sk/data/family/performer/DataPerformer";
import { ElementCache } from "sk/data/family/performer/element/ElementCache";
import { ElementPerformerContext } from "sk/data/family/performer/element/ElementPerformerContext";
import { ElementPerformerResult } from "sk/data/family/performer/element/ElementPerformerResult";
export type ElementCloneOptions = {
context?: ElementPerformerContext;
persistentContext?: PersistentContext;
withDifferentDocument?: boolean;
filterFields?: Array;
};
export abstract class ElementPerformer extends DataPerformer {
optionCreateAsync: boolean;
optionElementAsync: boolean;
optionPropertyAsync: boolean;
optionPropertyAsyncChecked: boolean;
optionDecorateAsync: boolean;
constructor();
createCache(context: ElementPerformerContext): ElementCache;
createElement(context: ElementPerformerContext, containerElement: NestElement, element: Element, parameters?: any): Element;
createElementAsync(context: ElementPerformerContext, containerElement: NestElement, element: Element, parameters?: any): Promise>;
computeElementProperty(context: ElementPerformerContext, source: Element, target: Element): void;
computeStructure(context: ElementPerformerContext, element: NestElement, node: DataNode, parameters?: any): ResultEnum;
createNode(context: ElementPerformerContext, containerElement: NestElement, element: Element): DataNode;
buildElementAsync(context: ElementPerformerContext, containerElement: NestElement, element: Element, parameters?: any): Promise;
testCreateElementAsync(context: ElementPerformerContext, element: Element): Promise;
buildElementByReferenceAsync(context: ElementPerformerContext, element: Element, publishFamilyInfoId: string): Promise;
buildElementDocumentAsync(context: ElementPerformerContext, element: Element, document: any): Promise;
onPrepareAsync(context: ElementPerformerContext, containerElement: NestElement, element: Element): Promise;
prepareAsync(context: ElementPerformerContext, containerElement: NestElement, element: Element): Promise;
computeElement(context: ElementPerformerContext, element: Element): ResultEnum;
computeElementAsync(context: ElementPerformerContext, element: Element): Promise;
computeInstance(context: ElementPerformerContext, containerElement: NestElement, element: Element, parentNode: DataNode): ResultEnum;
computeConfigure(context: ElementPerformerContext, element: Element, index: number, node: DataNode): ResultEnum;
computeProperty(context: ElementPerformerContext, element: Element, index: number, node: DataNode): ResultEnum;
computePropertyAsync(context: ElementPerformerContext, element: Element, index: number, node: DataNode): Promise;
computePropertyAfter(context: ElementPerformerContext, element: Element, index: number, node: DataNode): ResultEnum;
computePropertyAfterAsync(context: ElementPerformerContext, element: Element, index: number, node: DataNode): Promise;
computeDecorate(context: ElementPerformerContext, element: Element, parameters?: any): ResultEnum;
computeDecorateAsync(context: ElementPerformerContext, element: Element, parameters?: any): Promise;
computeCondition(context: ElementPerformerContext, element: Element, node: DataNode, parameters?: any): ResultEnum;
computeBindingValues(context: ElementPerformerContext, element: Element, node: DataNode): ResultEnum;
computeBindingValuesAsync(context: ElementPerformerContext, element: Element, node: DataNode): Promise;
computeBindingValuesAfter(context: ElementPerformerContext, element: Element, node: DataNode): ResultEnum;
computeBindingValuesAfterAsync(context: ElementPerformerContext, element: Element, node: DataNode): Promise;
computePropertyLinks(context: ElementPerformerContext, element: Element, node: DataNode): ResultEnum;
computeContentBefore(context: ElementPerformerContext, element: Element, index: number, node: DataNode): ResultEnum;
computeContentBeforeAsync(context: ElementPerformerContext, element: Element, index: number, node: DataNode): Promise;
computeContentAfter(context: ElementPerformerContext, element: Element, index: number, node: DataNode): ResultEnum;
computeContentAfterAsync(context: ElementPerformerContext, element: Element, index: number, node: DataNode): Promise;
computeShapeMatrix(context: ElementPerformerContext, element: Element, index: number, node: DataNode): ResultEnum;
computeShapeReleation(context: ElementPerformerContext, element: Element, parameters?: any): ResultEnum;
computeShape(context: ElementPerformerContext, element: Element, index: number, node: DataNode): ResultEnum;
copy(source: Element, target: Element, options?: ElementCloneOptions): void;
copyDeep(context: ElementPerformerContext, source: Element, target: Element, options?: ElementCloneOptions): void;
clone(element: Element, options?: ElementCloneOptions): Element;
deepClone(element: Element, options?: ElementCloneOptions): Element;
}
}
declare module "sk/data/family/performer/element/ElementPerformerContext" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { TypeMap } from 'cross/runtime/lang/collection/TypeMap';
import { IContext } from 'cross/runtime/lang/IContext';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { WorkflowPlainProcess } from 'foundation/data/common/workflow/base/WorkflowPlainProcess';
import { ElementNode } from 'foundation/data/common/element/ElementNode';
import { Element } from "sk/data/family/element/base/Element";
import { BuildStructureTypeEnum } from "sk/data/family/enumeration/BuildStructureTypeEnum";
import { FamilyDocument } from "sk/data/family/library/FamilyDocument";
import { RuleDocument } from "sk/data/family/rule/RuleDocument";
import { RuleDocumentService } from "sk/data/family/rule/RuleDocumentService";
import { RuleProcessDocument } from "sk/data/family/rule/RuleProcessDocument";
import { RuleProcessDocumentService } from "sk/data/family/rule/RuleProcessDocumentService";
import { RuleProcessLibraryDocumentService } from "sk/data/family/rule/RuleProcessLibraryDocumentService";
import { FamilyConfigService } from "sk/data/family/service/FamilyConfigService";
import { ElementBasePerformerContext } from "sk/data/family/performer/element/ElementBasePerformerContext";
import { ElementCache } from "sk/data/family/performer/element/ElementCache";
import { ElementPerformer } from "sk/data/family/performer/element/ElementPerformer";
export class ElementPerformerContext extends ElementBasePerformerContext {
static CODE: string;
calculatorCd: string;
document: FamilyDocument;
element: Element;
elementCaches: Map;
processForce: boolean;
processComposite: boolean;
processPlaceCd: boolean;
processShape: boolean;
processStructure: boolean;
processTechnology: boolean;
processMolding: boolean;
processBoundary: boolean;
processRule: boolean;
processSkipFamily: boolean;
disableFieldChanged: boolean;
createAll: boolean;
computeAddition: boolean;
buildStructureType: BuildStructureTypeEnum;
roomMode: boolean;
room: Element;
buildElementMap: any;
instanceElementMap: any;
copyCache: TypeMap;
precalculationFields: Map>;
processInfo: any;
protected _ruleDocuments: Dictionary;
protected _ruleProcessDocuments: Dictionary;
protected _familyConfigService: FamilyConfigService;
protected _ruleProcessDocumentService: RuleProcessDocumentService;
protected _ruleProcessLibraryDocumentService: RuleProcessLibraryDocumentService;
protected _ruleDocumentService: RuleDocumentService;
workPorcess: WorkflowPlainProcess;
constructor(parent?: IContext);
setParameters(parameters: any): void;
getCache(element: Element): ElementCache;
removeCache(element: Element, deep?: boolean): void;
findPerformerByClass(clazz: any, typeCd?: string): ElementPerformer;
findPerformerByCode(code: string): ElementPerformer;
findPerformerByInstance(element: ElementNode): ElementPerformer;
getBuildElement(id: string): Element;
setBuildElement(id: string, element: Element): void;
getInstanceElement(id: string): Element;
setInstanceElement(id: string, element: Element): void;
getRuleProcessDocumentByIdAsync(ruleProcessId: string): Promise>;
getRuleDocumentByIdAsync(ruleId: string): Promise>;
reset(): void;
free(): void;
dispose(): void;
}
}
declare module "sk/data/family/element/config/relation/SizeRelationElement" {
import { ElementPerformerContext } from "sk/data/family/performer/element/ElementPerformerContext";
import { InstanceElement } from "sk/data/family/element/base/InstanceElement";
import { RelationElement } from "sk/data/family/element/config/relation/RelationElement";
export class RelationResultEnum {
static OK: number;
static NEED_RE_CALCULATE: number;
static NEED_UN_BIND: number;
}
export class SizeRelationElement extends RelationElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_CONTENT: string;
content: InstanceElement;
constructor();
checkRelation(context: ElementPerformerContext): RelationResultEnum;
computeRelation(context: ElementPerformerContext): void;
reset(): void;
dispose(): void;
}
export type SizeRelationElementMap = {
[key: string]: SizeRelationElement;
};
}
declare module "sk/data/family/element/config/timeline/TimeTickStructure" {
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
export class TimeTickStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
elementId: string;
optionValid: boolean;
optionVisible: boolean;
x: string;
y: string;
z: string;
rotationX: string;
rotationY: string;
rotationZ: string;
lengthX: string;
lengthY: string;
lengthZ: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/decorate/DecoratePropertyVariableTypeEnum" {
export class DecoratePropertyVariableTypeEnum {
static Substrate: string;
static Material: string;
static Depth: string;
static Rotation: string;
static Collection: string;
}
}
declare module "sk/data/family/element/config/variable/VariableValueContentStructure" {
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
export class VariableValueContentStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
type: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/variable/VariableValueContentCollectionStructure" {
import { VariableValueContentStructure } from "sk/data/family/element/config/variable/VariableValueContentStructure";
export class VariableValueContentCollectionStructure extends VariableValueContentStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
decorateId: string;
familyId: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/variable/VariableValueContentMaterialStructure" {
import { VariableValueContentStructure } from "sk/data/family/element/config/variable/VariableValueContentStructure";
export class VariableValueContentMaterialStructure extends VariableValueContentStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
decorateId: string;
materialId: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/element/config/variable/VariableValueContentSubstrateStructure" {
import { VariableValueContentStructure } from "sk/data/family/element/config/variable/VariableValueContentStructure";
export class VariableValueContentSubstrateStructure extends VariableValueContentStructure {
static CLASS_ID: string;
static CLASS_NAME: string;
substrateDecorateId: string;
substrateId: string;
materialDecorateId: string;
materialId: string;
constructor();
reset(): void;
}
}
declare module "sk/data/family/service/DecorateService" {
import { IContext } from 'cross/runtime/lang/IContext';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { DecorateElement } from "sk/data/family/element/config/decorate/DecorateElement";
import { FamilyConfigService } from "sk/data/family/service/FamilyConfigService";
import { FamilyDocumentService } from "sk/data/family/service/FamilyDocumentService";
export class DecorateService {
protected static _familyConfigService: FamilyConfigService;
protected static _documentService: FamilyDocumentService;
static getTextureDecorateByMaterialDecorateAsync(context: IContext, materialDecorateId: string, force?: boolean): Promise;
static getDefaultIdByDecorateAsync(context: IContext, decorateId: string, force?: boolean): Promise>;
static getDefaultInfoByDecorateAsync(context: IContext, decorateId: string, force?: boolean): Promise>;
static getFamilyDecoratesByFamilyIdAsync(context: IContext, familyId: string, ElementType: any, force?: boolean): Promise;
static getDecorateByIdAsync(context: IContext, id: string, force?: boolean): Promise;
static getMaterialsByDecorateIdAsync(context: IContext, decorateId: string, force?: boolean): Promise>>;
static getTextureDecorateByMaterialIdAsync(context: IContext, id: string, force?: boolean): Promise>>;
static getDefaultTextureDecorateByMaterialIdAsync(context: IContext, id: string, force?: boolean): Promise>;
static getDefaultTextureDecorateItemByMaterialIdAsync(context: IContext, id: string, force?: boolean): Promise>;
static getTexturesByTextureDecorateIdAsync(context: IContext, decorateId: string, force?: boolean): Promise>>;
static getTextrueFamilyIdsByMaterialDecorateIdAsync(context: IContext, decorateId: string, force?: boolean): Promise>>;
static getDefaultIdListAsync(context: IContext, defaultId: string, force?: boolean): Promise>;
}
}
declare module "sk/data/family/service/DecorateCacheService" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { IContext } from 'cross/runtime/lang/IContext';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { Service } from 'cross/runtime/module/Service';
import { ISpecificationFamilyInfo } from 'sk/data/specification/base/ISpecificationFamilyInfo';
import { DecoratePropertyVariableTypeEnum } from "sk/data/family/element/config/decorate/DecoratePropertyVariableTypeEnum";
import { VariableValueContentStructure } from "sk/data/family/element/config/variable/VariableValueContentStructure";
import { Element } from "sk/data/family/element/base/Element";
import { FamilyDocument } from "sk/data/family/library/FamilyDocument";
import { FamilyConfigService } from "sk/data/family/service/FamilyConfigService";
export class DecorateCacheService extends Service {
private _decorateFamilyIdMap;
private _decorateFamilyInfoIdMap;
private _familyInfoMap;
protected _decorateContentMap: Dictionary;
protected _familyConfigService: FamilyConfigService;
loadDecoratesBySchemeDocumentAsync(context: IContext, document: FamilyDocument): Promise;
loadDecoratesByElementAsync(context: IContext, element: Element): Promise;
loadDecorateByConfigIdAsync(context: IContext, configId: string): Promise;
loadFamilyInfoByFamilyIdAsync(context: IContext, familyId: string): Promise;
loadDecorateContentByConfigIdAsync(context: IContext, configId: string, decorateType?: DecoratePropertyVariableTypeEnum): Promise>;
private loadSubstrateContentByConfigIdAsync;
private loadMaterialContentByConfigIdAsync;
private loadCollectionContentByConfigIdAsync;
getDecorateContentInfoByConfigIdAsync(context: IContext, configId: string, decorateType?: DecoratePropertyVariableTypeEnum): Promise>;
cacheDecorateFamilyInfo(familyId: string, info: ISpecificationFamilyInfo): void;
getFamilyInfo(linkId: string): ISpecificationFamilyInfo;
getFamilyInfosByDecorateConfigId(configId: string): ISpecificationFamilyInfo[];
containFamilyIdByConfigId(familyId: string, configId: string): boolean;
clearCache(id: string): void;
}
}
declare module "sk/data/family/element/config/variable/VariableUtil" {
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariableProvider } from 'foundation/data/common/core/IVariableProvider';
import { ISpecificationFamilyInfo } from 'sk/data/specification/base/ISpecificationFamilyInfo';
import { VariableValueContentCollectionStructure } from "sk/data/family/element/config/variable/VariableValueContentCollectionStructure";
import { VariableValueContentMaterialStructure } from "sk/data/family/element/config/variable/VariableValueContentMaterialStructure";
import { VariableValueContentSubstrateStructure } from "sk/data/family/element/config/variable/VariableValueContentSubstrateStructure";
export class VariableUtil {
static readonly SystemX = "@X";
static readonly SystemY = "@Y";
static readonly SystemZ = "@Z";
static readonly SystemW = "@W";
static readonly SystemD = "@D";
static readonly SystemH = "@H";
static readonly NodeStard = "${@";
static readonly NodeSplitter = ".";
static readonly NodeEnd = "}";
static readonly VariableStard = "${";
static readonly VariableEnd = "}";
private static readonly Global;
static isSystem(code: string): boolean;
static parseLocal(value: string): string;
static isVariableSymbol(symbol: string): boolean;
static isGlobalVariable(symbol: string): boolean;
static isDocumentVariable(symbol: string): boolean;
static getGlobalVariableString(libraryId: string, libraryVersion: string, id: string, name: string): string;
static getGlobalVariableId(formulaStr: string): string[];
static getDocVariableString(libraryId: string, libraryVersion: string, docId: string, id: string, name: string): string;
static getDocVariableId(formulaStr: string): string[];
static getVariableValueContentSubstrate(value: any): VariableValueContentSubstrateStructure;
static getVariableValueContentCollection(value: any): VariableValueContentCollectionStructure;
static getVariableValueContentMaterial(value: any): VariableValueContentMaterialStructure;
static getSubstrateInfo(valueProvider: IValueProvider, variableProvider: IVariableProvider): ISpecificationFamilyInfo;
static getMaterialInfo(valueProvider: IValueProvider, variableProvider: IVariableProvider): ISpecificationFamilyInfo;
}
}
declare module "sk/data/family/element/config/PropertyGroupStructure" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { StructureObject } from 'cross/runtime/framework/base/StructureObject';
import { PropertyStructure } from "sk/data/family/element/config/PropertyStructure";
export class PropertyGroupStructure extends StructureObject {
static CLASS_ID: string;
static CLASS_NAME: string;
id: string;
code: string;
name: string;
typeCd: string;
private _members;
constructor();
get members(): Types;
reset(): void;
}
}
declare module "sk/data/family/element/brep/BrepElementDirtyEnum" {
export class BrepElementDirtyEnum {
static PivotMatrix: number;
static LocalMatrix: number;
static WorldMatrix: number;
static BuildBeforeNode: number;
static BuildElement: number;
static BuildAfterNode: number;
static ComputProperty: number;
static ComputMatrix: number;
static ComputShape: number;
static ObjectCode: number;
static ReferenceUpdate: number;
static IncludeChildren: number;
static All: number;
}
}
declare module "sk/data/family/element/brep/BrepElementFlagEnum" {
export class BrepElementFlagEnum {
static Hover: number;
static Selected: number;
static All: number;
}
}
declare module "sk/data/family/element/brep/BrepElementVariableOperator" {
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariable } from 'foundation/data/common/core/IVariable';
import { IVariableContext } from 'foundation/data/common/core/IVariableContext';
import { IVariableOperatorInfo } from 'foundation/data/common/core/IVariableOperatorInfo';
import { ElementNode } from 'foundation/data/common/element/ElementNode';
import { VariableOperator } from "sk/data/family/element/config/variable/VariableOperator";
export class BrepElementVariableOperator extends VariableOperator {
element: ElementNode;
constructor(element: ElementNode);
getProperty(item: IValueProvider, source: string): any;
getVariable(context: IVariableContext, source: string, info?: IVariableOperatorInfo): IVariable;
dispose(flag?: boolean): void;
}
}
declare module "sk/data/family/element/brep/BrepElement" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { TypeMap } from 'cross/runtime/lang/collection/TypeMap';
import { Types } from 'cross/runtime/lang/collection/Types';
import { IContext } from 'cross/runtime/lang/IContext';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { IValueProvider } from 'foundation/data/common/core/IValueProvider';
import { IVariable } from 'foundation/data/common/core/IVariable';
import { IVariableOperatorInfo } from 'foundation/data/common/core/IVariableOperatorInfo';
import { BrepFunctionTypeEnum } from "sk/data/family/enumeration/brep/BrepFunctionTypeEnum";
import { ContentRelationTypeEnum } from "sk/data/family/enumeration/ContentRelationTypeEnum";
import { VariableTypeEnum } from "sk/data/family/enumeration/VariableTypeEnum";
import { ConditionProperty } from "sk/data/family/element/config/conditon/ConditionProperty";
import { ConfigureValueStructure } from "sk/data/family/element/config/configure/ConfigureValueStructure";
import { DecorateValueStructure } from "sk/data/family/element/config/decorate/DecorateValueStructure";
import { FormulaProperty } from "sk/data/family/element/config/formula/FormulaProperty";
import { FormulaReference } from "sk/data/family/element/config/formula/FormulaReference";
import { ReferenceElement } from "sk/data/family/element/config/reference/ReferenceElement";
import { RelationElement } from "sk/data/family/element/config/relation/RelationElement";
import { TimelineElement } from "sk/data/family/element/config/timeline/TimelineElement";
import { TimeTickStructure } from "sk/data/family/element/config/timeline/TimeTickStructure";
import { VariableElement } from "sk/data/family/element/config/variable/VariableElement";
import { VariablePropertyStructure } from "sk/data/family/element/config/variable/VariablePropertyStructure";
import { VariableService } from "sk/data/family/element/config/variable/VariableService";
import { VariableValueStructure } from "sk/data/family/element/config/variable/VariableValueStructure";
import { Element } from "sk/data/family/element/base/Element";
import { InstanceElement } from "sk/data/family/element/base/InstanceElement";
import { PropertyGroupStructure } from "sk/data/family/element/config/PropertyGroupStructure";
import { PropertyStructure } from "sk/data/family/element/config/PropertyStructure";
import { ValueStructure } from "sk/data/family/element/config/ValueStructure";
export class BrepElement extends InstanceElement {
static CLASS_ID: string;
static CLASS_NAME: string;
static FIELD_OPTION_FLAGS: string;
static FIELD_OPTION_LOCK: string;
static FIELD_OPTION_COMPOSITE: string;
static FIELD_OPTION_VISION: string;
static FIELD_OPTION_VISIBLE: string;
static FIELD_OPTION_SELECT: string;
static FIELD_SERIAL_NUMBER: string;
static FIELD_OPTION_DELETE: string;
static FIELD_OPTION_WHOLE: string;
static FIELD_CODE: string;
static FIELD_IDENTIFIER: string;
static FIELD_FUNCTION_CD: string;
static FIELD_OUTPUT_CODE: string;
static FIELD_OUTPUT_NAME: string;
static FIELD_DYNAMIC_REFERENCE_ID: string;
static FIELD_VALID_CONDITION: string;
static FIELD_VISIBLE_CONDITION: string;
static FIELD_LOCK_CONDITION: string;
static FIELD_DELETE_CONDITION: string;
static FIELD_BINDING_PROPERTY_GROUPS: string;
static FIELD_BINDING_PROPERTIES: string;
static FIELD_BINDING_VALUES: string;
static FIELD_GROUP: string;
static FIELD_SCOPE: string;
static FIELD_REFERENCES: string;
static FIELD_RELATIONS: string;
static FIELD_TIMELINES: string;
static FIELD_STATUS_FLAGS: string;
static FIELD_STATUS_DIRTY_FLAGS: string;
optionFlags: number;
optionLock: boolean;
optionComposite: boolean;
optionVision: boolean;
optionVisible: boolean;
optionSelect: boolean;
serialNumber: number;
optionDelete: boolean;
optionWhole: boolean;
code: string;
identifier: number;
functionCd: BrepFunctionTypeEnum;
outputCode: string;
outputName: string;
dynamicReferenceId: string;
protected _validCondition: ConditionProperty;
protected _visibleCondition: ConditionProperty;
protected _lockCondition: ConditionProperty;
protected _deleteCondition: ConditionProperty;
protected _bindingPropertyGroups: Types;
protected _bindingProperties: Types;
protected _bindingValues: Types;
group: BrepElement;
scope: BrepElement;
protected _references: Types;
protected _relations: Types;
protected _timelines: Types;
statusFlags: number;
statusDirtyFlags: number;
dimensionMap: TypeMap;
optionMolding: boolean;
optionFrame: boolean;
parent: BrepElement;
tempFormulaObject: FormulaProperty;
activeTimeline: TimelineElement;
protected _paramters: Dictionary;
formulaReferences: Array;
protected _variableService: VariableService;
constructor();
get validCondition(): ConditionProperty;
get visibleCondition(): ConditionProperty;
get lockCondition(): ConditionProperty;
get deleteCondition(): ConditionProperty;
get bindingPropertyGroups(): Types;
get bindingProperties(): Types;
get bindingValues(): Types;
get references(): Types;
get relations(): Types;
get timelines(): Types;
get statusHover(): boolean;
set statusHover(value: boolean);
get statusSelected(): boolean;
set statusSelected(value: boolean);
get paramters(): Dictionary;
pushTimelines(timeline: TimelineElement): void;
setParamters(key: string, paramter: any): void;
findChildByCode(code: string, clazz?: any): T;
searchChildByCode(code: string, clazz?: any): T;
findParentScope(): T;
findBindingPropertyGroupById(id: string): PropertyGroupStructure;
addBindingPropertyGroup(group: PropertyGroupStructure): void;
removeBindingPropertyGroup(group: PropertyGroupStructure): void;
hasBindingProperty(): boolean;
findBindingPropertyByCode(code: string, type?: Function): T;
findBindingPropertyByConfigId(configId: string): T;
searchParentBindingProperty(configId: string): T;
searchParentBindingPropertyByCode(code: string): T;
fetchBindingProperties(propertyClass: any, recursive?: boolean, includeSelf?: boolean, targets?: Types): Types;
addBindingProperty(property: PropertyStructure): void;
appendBindingProperties(element: BrepElement): void;
setBindingParameterProperty(code: string, value?: any): void;
setBindingVariableProperty(code: string, value?: any, variableCd?: VariableTypeEnum, configId?: string): VariablePropertyStructure;
setBindingDecorateProperty(code: string, configId?: any): void;
setBindingDecorateListProperty(code: string, idList?: Array, defaultId?: string, defaultIdList?: Array): void;
copyBindingProperties(element: BrepElement): void;
removeBindingProperty(property: PropertyStructure): void;
clearBindingProperties(): void;
hasBindingValue(): boolean;
findBindingValueByClass(valueClass: any, recursive?: boolean, includeSelf?: boolean): ValueStructure;
fetchBindingValues(valueClass: any, recursive?: boolean, includeSelf?: boolean, targets?: Types): Types;
findBindingValue(configId: string, type?: Function): T;
findBindingValueByCode(code: string, type?: Function): T;
findBindingValueDataByCode(code: string, defaultValue?: any): any;
findBindingValueDataIntegerByCode(code: string, defaultValue?: number): number;
findBindingValueDataFloatByCode(code: string, defaultValue?: number): number;
searchParentBindingValue(configId: string): T;
searchParentBindingValueByCode(code: string, type?: Function): T;
searchParentBindingDecorateValueByCode(code: string): DecorateValueStructure;
searchParentBindingConfigureValue(configId: string): ConfigureValueStructure;
copyBindingValues(element: BrepElement): void;
clearBindingValues(): void;
getVariableSymbol(property: string): string;
getVariableById(id: string): IVariable;
getVariableByCode(code: string): IVariable;
getVariableByIdCode(id: string, code: string): IVariable;
searchParentBindingVariableValueByIdCode(id: string, code: string, info?: IVariableOperatorInfo): VariableValueStructure;
addBindingValue(value: ValueStructure, checkConfigId?: boolean): void;
removeBindingValue(value: ValueStructure): void;
setBindingValue(configClass: any, configId: string, code: string, value: any): void;
setBindingValueByCode(configClass: any, configId: string, code: string, value: any): void;
getBindingParameterValue(code: string): string;
setBindingParameterValue(code: string, value: any): void;
setBindingConditionValue(code: string, value: any): void;
setBindingVariableValueByCode(context: IContext, code: string, value: any, valueProvider?: IValueProvider, parameters?: any): void;
setBindingVariableValueByCodeAsync(context: IContext, code: string, value: any, valueProvider?: IValueProvider, parameters?: any): Promise;
setBindingVariableValue(code: string, value: any): void;
setBindingVariableValueByVariable(variable: VariableElement, value: any): void;
setBindingDecorateValue(configId: string, code: string, id: any, linkCd?: any, defaultId?: any, values?: any): void;
setBindingDecorateValueByCode(configId: string, code: string, id: any, linkCd?: any, defaultId?: any, values?: any): void;
setBindingConfigureValue(configId: string, code: string, id: string): void;
testStatusFlags(flags: number): boolean;
dirtyStatusFlags(flags: number, recursive?: boolean): void;
dirtyStatusField(field: string): void;
dirtyStatusBuild(recursive?: boolean): void;
updateStatusFlags(flags?: number, recursive?: boolean): void;
removeChild(element: Element, pooled?: boolean): void;
addReference(reference: ReferenceElement): void;
removeReference(reference: ReferenceElement): void;
hasRelationType(relationCd: ContentRelationTypeEnum): boolean;
getRelationByType(relationCd: ContentRelationTypeEnum): RelationElement;
getRelationsByType(relationCd: ContentRelationTypeEnum): Types