-
大小: 17.31MB文件類型: .zip金幣: 2下載: 1 次發(fā)布日期: 2023-07-07
- 語(yǔ)言: 其他
- 標(biāo)簽: Openlayers??3.2??Map??
資源簡(jiǎn)介
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
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????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個(gè)文件信息
評(píng)論
共有 條評(píng)論