Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace importer

Index

Functions

fromGeoJsonData

  • fromGeoJsonData(geoJson: { features: any[]; type: "FeatureCollection" }, data?: IProperties): IModel
  • 从 GeoJson 数据创建模型.

    Parameters

    • geoJson: { features: any[]; type: "FeatureCollection" }

      GeoJson data.

      • features: any[]
      • type: "FeatureCollection"
    • Optional data: IProperties

    Returns IModel

    An IModel object.

fromSVGPathData

  • Create a model from SVG path data.

    Parameters

    • pathData: string

      SVG path data.

    • Default value options: ISVGImportOptions = {}

      ISVGImportOptions object.

    Returns IModel

    An IModel object.

htmlColorToEntColor

  • htmlColorToEntColor(color: string): number
  • html颜色转实体颜色

    Parameters

    • color: string

      html

    Returns number

parseNumericList

  • parseNumericList(s: string): number[]
  • 从数字字符串创建数字数组。数字可以用任何非数字分隔.

    Example:

    var n = vjgeo.importer.parseNumericList('5, 10, 15.20 25-30-35 4e1 .5');
    

    Parameters

    • s: string

      The string of numbers.

    Returns number[]

    Array of numbers.

Generated using TypeDoc