Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
方 梦梦
world51tocmap
Commits
f34e539c
Commit
f34e539c
authored
Mar 13, 2025
by
heng.zhang3@inzymeits.com
Browse files
51world示例集合
parent
d4557fba
Changes
226
Hide whitespace changes
Inline
Side-by-side
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/common/base-entity.d.ts
0 → 100644
View file @
f34e539c
declare
const
ObjectCore
:
any
;
import
{
ResultType
,
TransformAtomType
,
BasicInfoAtomType
,
VisibleAtomType
,
CacheAtomType
}
from
'
./data-type
'
;
declare
class
BaseEntity
extends
ObjectCore
{
protected
obj
:
any
;
protected
atomObj
:
any
;
addNewScheme
:
Record
<
string
,
any
>
;
protected
BasicInfoAtom
:
BasicInfoAtomType
;
protected
TransformAtom
:
TransformAtomType
;
protected
VisibleAtom
:
VisibleAtomType
;
protected
CacheAtom
:
CacheAtomType
;
constructor
();
protected
setEid
(
opt
:
any
):
void
;
protected
getEid
():
{
eid
:
any
;
};
protected
getBasicData
():
{
entityName
:
string
;
customId
:
string
;
customData
:
any
;
parentEid
:
string
;
};
protected
setObjChannel
(
obj
:
any
):
void
;
protected
setObjAtom
(
obj
:
any
):
void
;
protected
StartApi
(
apiClassName
:
string
,
apiFuncName
:
string
,
params
:
any
):
Promise
<
ResultType
>
;
protected
handleBasicAtom
(
oriData
:
Record
<
string
,
any
>
,
paramsData
:
Record
<
string
,
any
>
):
void
;
protected
handleTransformAtom
:
(
oriData
:
Record
<
string
,
any
>
,
paramsData
:
Record
<
string
,
any
>
)
=>
void
;
protected
handleVisibleAtom
:
(
oriData
:
Record
<
string
,
any
>
,
paramsData
:
Record
<
string
,
any
>
)
=>
void
;
protected
handleAtom
:
(
oriData
:
Record
<
string
,
any
>
,
paramsData
:
Record
<
string
,
any
>
)
=>
void
;
protected
setTransformData
(
opt
:
any
):
void
;
protected
getTransformData
():
{
location
:
any
;
rotator
:
any
;
scale3d
:
any
;
};
protected
setBasicData
(
opt
:
any
):
void
;
}
export
default
BaseEntity
;
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/common/core.d.ts
0 → 100644
View file @
f34e539c
declare
class
Core
{
private
instance
;
ControllerCore
:
any
;
ObjectCore
:
any
;
static
getInstance
():
Core
|
null
;
}
export
default
Core
;
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/common/data-type.d.ts
0 → 100644
View file @
f34e539c
export
interface
ResultType
{
success
:
boolean
;
message
?:
string
;
errCode
?:
number
;
guid
?:
string
;
type
?:
number
;
event_name
?:
string
;
result
?:
any
;
}
export
interface
UndoRedoResultType
{
[
key
:
string
]:
Array
<
string
>
;
addedEids
:
Array
<
string
>
;
removedEids
:
Array
<
string
>
;
updatedEids
:
Array
<
string
>
;
}
export
type
MinMaxType
=
Array
<
number
>
;
export
type
Coord2DType
=
Array
<
number
>
;
export
type
CoordType
=
Array
<
number
>
;
export
interface
CoordObjType
{
x
?:
number
;
y
?:
number
;
z
?:
number
;
}
export
interface
RotatorType
{
pitch
?:
number
;
yaw
?:
number
;
roll
?:
number
;
}
export
interface
Rotator2DType
{
pitch
?:
number
;
yaw
?:
number
;
}
export
type
ScaleType
=
Array
<
number
>
;
export
interface
EntityEidType
{
eid
?:
string
|
null
;
}
export
interface
EntityGeometryType
{
geometry
?:
any
;
}
export
interface
PointType
extends
EntityEidType
,
Partial
<
BasicInfoAtomType
>
{
point
?:
CoordType
;
}
export
interface
PolylineType
extends
EntityEidType
,
Partial
<
BasicInfoAtomType
>
{
polyline
?:
{
points
:
Array
<
CoordType
>
;
};
}
export
interface
LoopType
{
points
:
Array
<
CoordType
>
;
}
export
interface
PolygonLoopType
{
outerLoop
?:
LoopType
;
innerLoops
?:
Array
<
LoopType
>
;
}
export
interface
PolygonType
extends
EntityEidType
,
Partial
<
BasicInfoAtomType
>
{
polygon
?:
PolygonLoopType
;
}
export
interface
Loop2DType
{
points
?:
Array
<
Coord2DType
>
;
curves
?:
Array
<
{
type
?:
string
;
o
?:
Coord2DType
;
r
?:
number
;
s
?:
number
;
e
?:
number
;
}
>
;
}
export
interface
Polygon2DLoopType
{
outerLoop
?:
Loop2DType
;
innerLoops
?:
Array
<
Loop2DType
>
;
}
export
interface
Polygon2DType
extends
EntityEidType
,
Partial
<
BasicInfoAtomType
>
{
polygon
?:
Polygon2DLoopType
;
}
export
interface
HeatMapDataType
extends
EntityGeometryType
{
pointEntityEid
?:
string
|
null
;
value
?:
number
;
}
export
interface
BasicInfoAtomType
{
entityName
:
string
;
customId
:
string
;
customData
:
any
;
parentEid
:
string
;
}
export
interface
TransformAtomType
{
location
:
CoordType
;
rotator
:
RotatorType
;
scale3d
:
ScaleType
;
}
export
interface
VisibleAtomType
{
bVisible
:
boolean
;
}
export
interface
CacheAtomType
{
bRemoved
:
boolean
;
}
export
interface
PointEntityAtomType
{
point
:
CoordType
;
}
export
interface
Polygon2DEntityAtomType
{
polygon
:
Polygon2DLoopType
;
}
export
interface
PolygonEntityAtomType
{
polygon
:
PolygonLoopType
;
}
export
interface
PolylineEntityAtomType
{
polyline
:
{
points
:
Array
<
CoordType
>
;
};
}
export
interface
AssetsAtomType
{
seedIds
:
Array
<
string
>
;
}
export
interface
AssetAtomType
{
seedId
:
string
|
null
;
}
export
interface
IVisible2D
{
camera
?:
{
hideDistance
?:
number
;
hideType
?:
string
;
scaleMode
?:
string
;
};
interaction
?:
{
clickTop
?:
boolean
;
hoverTop
?:
boolean
;
};
}
export
interface
Visible2DAtomType
{
hideDistance
:
number
;
hideType
:
string
;
scaleMode
:
string
;
clickTop
:
boolean
;
hoverTop
:
boolean
;
}
export
interface
IBaseData
{
BasicInfoAtom
?:
BasicInfoAtomType
;
TransformAtom
?:
TransformAtomType
;
VisibleAtom
?:
VisibleAtomType
;
Visible2DAtom
?:
Visible2DAtomType
;
}
export
type
CoordZRefType
=
'
Surface
'
|
'
Ground
'
|
'
Altitude
'
;
export
interface
ICalculateCoordZ
{
coordZRef
:
CoordZRefType
;
coordZOffset
:
number
;
}
export
interface
IOperations
{
calculateCoordZ
:
ICalculateCoordZ
;
}
export
type
ICoordinates
=
Array
<
Array
<
number
>>
;
export
type
ICoordinates2D
=
Array
<
Array
<
Array
<
number
>>>
;
export
interface
IPoint
{
point
:
Array
<
number
>
;
value
:
number
;
}
export
interface
IPolylineATom
{
coordinates
:
ICoordinates
;
}
export
interface
IPolygon2DAtom
{
coordinates
:
ICoordinates2D
;
coordZ
:
number
;
}
export
interface
IPointValueAtom
{
features
:
Array
<
IPoint
>
;
}
export
interface
IOBjectCache
{
object
:
Record
<
string
,
any
>
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/common/tim-data-type.d.ts
0 → 100644
View file @
f34e539c
export
interface
ResultType
{
success
:
boolean
;
message
?:
string
;
errCode
?:
number
;
guid
?:
string
;
type
?:
number
;
event_name
?:
string
;
result
?:
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-geoLayer.d.ts
0 → 100644
View file @
f34e539c
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
import
{
ObjectController
}
from
"
@/modules/common/object-controller
"
;
export
default
class
GeoLayerController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-timAsset.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
default
class
TimAssetController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-timGlobal.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
interface
ITimGlobalOptions
{
eid
?:
string
|
null
;
"
bSelectActionEnabled
"
?:
boolean
;
"
bClickedEventEnabled
"
?:
boolean
;
"
bHoverEventEnabled
"
?:
boolean
;
"
mode
"
?:
string
;
}
export
default
class
TimGlobalController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-trafficAnalysis.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
default
class
TrafficAnalysisController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-trafficCam.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
interface
ITrafficCamOptions
{
eid
?:
string
|
null
;
vehicleId
:
string
;
followMode
:
string
;
}
export
interface
ITrafficCamTourOptions
{
url
?:
string
;
list_id
:
string
|
number
;
start_station_name
?:
string
;
target_station_name
?:
string
;
speed
?:
number
;
time
?:
number
;
height
?:
number
;
target_offset
?:
number
[];
rotation
?:
{
pitch
:
number
;
yaw
:
number
;
};
Mode
?:
"
Pause
"
;
}
export
default
class
TrafficCamController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-trafficOdRoad.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
default
class
TrafficOdRoadController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-trafficRoadHeatMap.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
default
class
TrafficRoadHeatMapController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-trafficRoadNetworkHeatMap.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
default
class
TrafficRoadNetworkHeatMapController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-trafficSectionFlow.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
default
class
TrafficSectionFlowController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-trafficflow.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
type
IBoundaries
=
{
"
boundaryId
"
:
string
;
"
positions
"
:
[
number
,
number
,
number
][];
}[];
export
default
class
TrafficFlowController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-trafficflowBoundary.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
default
class
TrafficFlowHistoryController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-trafficflowHistory.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
default
class
TrafficFlowHistoryController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/controller/controller-trafficflowOd.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
AtomController
}
from
"
../../../modules/common/atom-controller
"
;
export
default
class
TrafficODFlowController
{
static
extendsCore
(
extendsClass
:
new
(
obj
:
any
,
ObjectClass
?:
any
)
=>
AtomController
,
extendsObjects
:
new
()
=>
ObjectController
):
any
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/entity/geoLayer-entity.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
ResultType
}
from
'
../../../../src/modules/common/data-type
'
;
export
interface
IGeoLayer
extends
ObjectController
{
clickFun
:
void
|
undefined
;
configs
:
{
geoLayerUrl
:
string
;
geoLayerType
:
string
;
geoLayerParams
?:
any
;
geoFeatureStyle
?:
any
;
geoLayerSymbol
?:
any
;
};
offset
?:
any
;
GetGeoLayerInfo
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
RunGeoLayerAction
:
()
=>
Promise
<
ResultType
>
;
SetLocalGeoreference
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
SetGeoLayerHeight
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
SetGeoLayerLocation
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
GetGeoLayerLocation
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
}
export
default
class
GeoLayerObject
{
static
extendsCore
(
extendsClass
:
new
()
=>
ObjectController
):
new
(
opt
:
IGeoLayer
)
=>
ObjectController
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/entity/timAsset-entity.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
ResultType
}
from
'
../../../../src/modules/common/data-type
'
;
export
interface
ITimAsset
extends
ObjectController
{
"
model
"
:
{
"
sourceType
"
:
string
;
"
assetId
"
?:
number
|
string
;
"
url
"
?:
string
;
};
"
visibility
"
:
true
;
"
location
"
:
number
[];
"
rotation
"
:
number
[];
"
scale
"
:
number
[];
RunTimAssetAction
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
LoadTimModelScene
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
SaveTimModelScene
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
LoadTimModelSceneOnline
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
SaveTimModelSceneOnline
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
SetCustomProperties
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
GetTimModelInfoByEid
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
ModelControl
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
}
export
default
class
TimAssetClass
<
T
extends
ObjectController
>
{
static
extendsCore
(
extendsClass
:
new
()
=>
ObjectController
):
new
(
opt
:
ITimAsset
)
=>
ObjectController
;
}
gis_sdk/world51/51timapi/Plugins/tim/plugins/tim/entity/timGlobal-entity.d.ts
0 → 100644
View file @
f34e539c
import
{
ObjectController
}
from
"
../../../modules/common/object-controller
"
;
import
{
ResultType
}
from
"
@/modules/common/data-type
"
;
export
interface
ITimGlobal
extends
ObjectController
{
"
eid
"
:
string
;
toggleGizmo
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
toggleEditMode
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
setInteractiveMode
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
setDefaultActionSetting
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
loadScene
:
(
options
:
any
)
=>
Promise
<
ResultType
>
;
}
Prev
1
…
6
7
8
9
10
11
12
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment