資源簡介
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版黑白棋
- 下一篇:信號估值與檢測課后題答案
評論
共有 條評論