-
大小: 17.31MB文件类型: .zip金币: 2下载: 1 次发布日期: 2023-07-07
- 语言: 其他
- 标签: Openlayers 3.2 Map
资源简介
Openlayers 3.2分享给各位
代码片段和文件信息
#!/usr/bin/env python
#
# Copyright 2006 The Closure Library Authors. All Rights Reserved.
#
# Licensed under the Apache License Version 2.0 (the “License“);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing software
# distributed under the License is distributed on an “AS-IS“ BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
“““Calculates javascript dependencies without requiring Google‘s build system.
This tool is deprecated and is provided for legacy users.
See build/closurebuilder.py and build/depswriter.py for the current tools.
It iterates over a number of search paths and builds a dependency tree. With
the inputs provided it walks the dependency tree and outputs all the files
required for compilation.
“““
try:
import distutils.version
except ImportError:
# distutils is not available in all environments
distutils = None
import logging
import optparse
import os
import re
import subprocess
import sys
_base_REGEX_STRING = ‘^\s*goog\.%s\(\s*[\‘“](.+)[\‘“]\s*\)‘
req_regex = re.compile(_base_REGEX_STRING % ‘require‘)
prov_regex = re.compile(_base_REGEX_STRING % ‘provide‘)
ns_regex = re.compile(‘^ns:((\w+\.)*(\w+))$‘)
version_regex = re.compile(‘[\.0-9]+‘)
def IsValidFile(ref):
“““Returns true if the provided reference is a file and exists.“““
return os.path.isfile(ref)
def IsJsFile(ref):
“““Returns true if the provided reference is a javascript file.“““
return ref.endswith(‘.js‘)
def IsNamespace(ref):
“““Returns true if the provided reference is a namespace.“““
return re.match(ns_regex ref) is not None
def IsDirectory(ref):
“““Returns true if the provided reference is a directory.“““
return os.path.isdir(ref)
def ExpandDirectories(refs):
“““Expands any directory references into inputs.
Description:
Looks for any directories in the provided references. Found directories
are recursively searched for .js files which are then added to the result
list.
Args:
refs: a list of references such as files directories and namespaces
Returns:
A list of references with directories removed and replaced by any
.js files that are found in them. Also the paths will be normalized.
“““
result = []
for ref in refs:
if IsDirectory(ref):
# Disable ‘Unused variable‘ for subdirs
# pylint: disable=unused-variable
for (directory subdirs filenames) in os.walk(ref):
for filename in filenames:
if IsJsFile(filename):
result.append(os.path.join(directory filename))
else:
result.append(ref)
return map(os.path.normpath result)
class DependencyInfo(object):
“““Represents a dependency that is used to build and walk a
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-12-21 10:35 v3.20.1\apidoc\
目录 0 2016-12-21 10:35 v3.20.1\apidoc\fonts\
目录 0 2016-12-21 10:35 v3.20.1\apidoc\sc
目录 0 2016-12-21 10:35 v3.20.1\apidoc\sc
目录 0 2016-12-21 10:35 v3.20.1\apidoc\st
目录 0 2016-12-21 10:35 v3.20.1\build\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\bin\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\bin\build\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\bin\labs\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\bin\labs\code\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\bin\logos\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\css\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\css\inlay\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\a11y\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\a11y\aria\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\array\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\asserts\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\async\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\bootstrap\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\color\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\crypt\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\css\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\css\editor\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\cssom\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\cssom\if
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\datasource\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\date\
目录 0 2016-12-21 10:35 v3.20.1\closure-library\closure\goog\db\
............此处省略3869个文件信息
- 上一篇:Opus音频测试
- 下一篇:陈强-《高级计量经济学及 Stata 应用》第二版数据
相关资源
-
li
nksys AE1000/Cisco AM10无线网卡驱动 - 清华同方手写板万能驱动程序
- windows3.2简体中文版,虚拟机文件
- 康源建站系统最新版本V3.2
- BLE-CC254x-1.3.2 蓝牙官方源代码
- Freemarker 2.3.23 最新中文版参考手册
- 创新SoundBlaster系列声卡ALchemy炼金术辅
- Delphi KOLMCK V3.23最新版
- 戴尔d630无线网卡驱动 v1.3.2 官方最新
- Pix4Dmapper4.4.10中文破解版带注册机网盘
- Pix4Dmapper4.4.10中文破解
- Pix4Dmapper教程
- MapMatrix中文用户手册
- 使用ATLAS探测器在3.2 fbâ1的质子
- Apabi Reader 3.2打印成PDF软件
-
Openla
yers教程Openla yers实战地理信息 -
openla
yers3入门教程 - maple教程 科学出版社
- DELL戴尔灵越Inspiron 5520触摸板驱动程序
- 硬盘安装工具 CGI 3.2多核心,纯净且功
- 基于SuperMap的城镇地籍数据库建设与常
- 基于SuperMap的城镇地籍数据库建设与常
- cesium实现底图和地形动态切换及supe
- cesium实现supermap iServer数据服务查询及
- 解读:为何你的电动汽车跑不远
- 基金投资管理系统O3.2用户手册(V1.
- 交通信号灯_PLC_V1.3.20200724.1.xdp
- 光汇科技V3.27单片机开发板电路图
- Iris-0.9.3.2破解版
- 中国河流GIS数据
评论
共有 条评论