资源简介
openlayers最新版本v4.6.5 API,官网有时候会崩溃,上传方便大家下载使用。
代码片段和文件信息
#!/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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 20290 2018-03-20 22:39 v4.6.5\apidoc\fonts\glyphicons-halflings-regular.eot
....... 62850 2018-03-20 22:39 v4.6.5\apidoc\fonts\glyphicons-halflings-regular.svg
....... 41236 2018-03-20 22:39 v4.6.5\apidoc\fonts\glyphicons-halflings-regular.ttf
....... 23292 2018-03-20 22:39 v4.6.5\apidoc\fonts\glyphicons-halflings-regular.woff
....... 709526 2018-03-20 22:39 v4.6.5\apidoc\index.html
....... 5732 2018-03-20 22:39 v4.6.5\apidoc\logo-70x70.png
....... 707539 2018-03-20 22:39 v4.6.5\apidoc\ol.Assertion
....... 709258 2018-03-20 22:39 v4.6.5\apidoc\ol.Attribution.html
....... 810700 2018-03-20 22:39 v4.6.5\apidoc\ol.CanvasMap.html
....... 712257 2018-03-20 22:39 v4.6.5\apidoc\ol.Collection.Event.html
....... 750700 2018-03-20 22:39 v4.6.5\apidoc\ol.Collection.html
....... 709755 2018-03-20 22:39 v4.6.5\apidoc\ol.color.html
....... 708009 2018-03-20 22:39 v4.6.5\apidoc\ol.colorlike.html
....... 747100 2018-03-20 22:39 v4.6.5\apidoc\ol.control.Attribution.html
....... 738625 2018-03-20 22:39 v4.6.5\apidoc\ol.control.Control.html
....... 740039 2018-03-20 22:39 v4.6.5\apidoc\ol.control.FullScreen.html
....... 713522 2018-03-20 22:39 v4.6.5\apidoc\ol.control.html
....... 747390 2018-03-20 22:39 v4.6.5\apidoc\ol.control.MousePosition.html
....... 748459 2018-03-20 22:39 v4.6.5\apidoc\ol.control.OverviewMap.html
....... 741604 2018-03-20 22:39 v4.6.5\apidoc\ol.control.Rotate.html
....... 743627 2018-03-20 22:39 v4.6.5\apidoc\ol.control.ScaleLine.html
....... 740118 2018-03-20 22:39 v4.6.5\apidoc\ol.control.Zoom.html
....... 739549 2018-03-20 22:39 v4.6.5\apidoc\ol.control.ZoomSlider.html
....... 738335 2018-03-20 22:39 v4.6.5\apidoc\ol.control.ZoomToExtent.html
....... 722212 2018-03-20 22:39 v4.6.5\apidoc\ol.coordinate.html
....... 744054 2018-03-20 22:39 v4.6.5\apidoc\ol.DeviceOrientation.html
....... 706552 2018-03-20 22:39 v4.6.5\apidoc\ol.Disposable.html
....... 714103 2018-03-20 22:39 v4.6.5\apidoc\ol.easing.html
....... 730874 2018-03-20 22:39 v4.6.5\apidoc\ol.events.condition.html
....... 712072 2018-03-20 22:39 v4.6.5\apidoc\ol.events.Event.html
............此处省略4283个文件信息
- 上一篇:QT版黑白棋
- 下一篇:信号估值与检测课后题答案
相关资源
- InVEST最新版参考书.pdf
- IEEE 802.11-2012最新完整版
- WordPress主题:ENFOLD V4.5.7 2019最新破解
- Web API的设计与开发高清.pdf版
- 最新完整版LumiSoft.Net源代码
- DELL C1100(CS24-TY)最新BIOS(S99C3B25)和
- 2019最新某小说网站源码小说站必备杰
- DELL机架式服务器最新Viso模具
- Linux设备驱动开发详解:基于最新的
- 数据挖掘论文 英文版 最新的数据挖掘
- Core Data objc中国最新版已对应Swift4花钱
- 大数据面试宝典最新版本
- 计算机网络:自顶向下方法 最新第
- dtcms5.0源码 最新版 带手机版
- ISO15765 全套协议,包含最新的ISO 157
- Linux设备驱动开发详解:基于最新的
- 2020 全新HCIPHCNP数通(RS)路由交换最
- 最新版的今客CRM客户管理系统全功能
- 最新版四叶草Clover
- polycom 安卓手机APP v3.10 2019-9-9最新版
- 最新红米2root工具
- Wireshark-win32-1.10.0
- Linux设备驱动开发详解-基于最新的L
- 富士施乐 FUJI XEROX DocuPrint CM225fw/CM22
- 最新版大漠插件7.1807以及全套工具
- Linux设备驱动开发详解:基于最新的
- 上海最新形成区划矢量图
- 海康威视 摄像头 ActiveX控件 最新版
- 阮一峰-ES6标准入门(第3版)-最新p
- Rapid PDF Count v4.01 完美破解版
评论
共有 条评论