Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
p x
MapMultiEngine
Commits
99e022f0
Commit
99e022f0
authored
Jan 13, 2026
by
p x
Browse files
修改命名
parent
ea79dc91
Changes
16
Hide whitespace changes
Inline
Side-by-side
mapapi/build.gradle.kts
View file @
99e022f0
import
org.jetbrains.dokka.gradle.engine.parameters.VisibilityModifier
import
org.jetbrains.kotlin.gradle.utils.COMPILE
import
org.jetbrains.kotlin.gradle.utils.COMPILE_ONLY
plugins
{
alias
(
libs
.
plugins
.
android
.
library
)
...
...
@@ -75,7 +77,9 @@ dependencies {
androidTestImplementation
(
libs
.
androidx
.
espresso
.
core
)
// implementation("org.jetbrains.dokka:android-documentation-plugin:2.1.0")
dokkaJavadocPlugin
(
"org.jetbrains.dokka:kotlin-as-java-plugin:2.1.0"
)
// dokkaJavadocPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:2.1.0")
dokkaJavadocPlugin
(
"org.jetbrains.dokka:kotlin-as-java-plugin"
)
// dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin")
api
(
project
(
":maplibs"
))
// Webview交互
...
...
@@ -96,18 +100,32 @@ dependencies {
implementation
(
"androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2"
)
//fragment-ktx
implementation
(
"androidx.fragment:fragment-ktx:1.8.0"
)
// compileOnly("org.jsoup:jsoup:1.17.2") // 最新稳定版
}
dokka
{
/* pluginsConfiguration.html {
// customAssets.from("logo.png")
customStyleSheets.from("dokka/dokka-custom.css")
// footerMessage.set("(c) Your Company")
// separateInheritedMembers.set(false)
// templatesDir.set(file("dokka/templates"))
// mergeImplicitExpectActualDeclarations.set(false)
}*/
dokkaPublications
.
html
{
offlineMode
.
set
(
true
)
}
dokkaPublications
.
javadoc
{
moduleName
.
set
(
"C
usc
MapSDK"
)
moduleName
.
set
(
"CMapSDK"
)
// moduleVersion.set(project.version.toString())
description
=
"Android 地图SDK"
description
=
"Android 地图SDK"
// Standard output directory for HTML documentation
// outputDirectory.set(layout.buildDirectory.dir("dokka/html"))
failOnWarning
.
set
(
false
)
suppressInheritedMembers
.
set
(
false
)
// 禁用包列表的树形展示
suppressInheritedMembers
.
set
(
true
)
suppressObviousFunctions
.
set
(
true
)
offlineMode
.
set
(
true
)
...
...
@@ -146,6 +164,79 @@ dokka {
}
}
// 新增删除Tree和Package标签的Gradle任务
tasks
.
register
(
"removeUnwantedTags"
)
{
group
=
"documentation"
description
=
"删除HTML文档中所有的Tree和Package标签及相关链接"
// 定义HTML文件所在目录(根据实际dokka输出目录调整)
val
docOutputDir
=
layout
.
buildDirectory
.
dir
(
"dokka/javadoc"
)
inputs
.
dir
(
docOutputDir
)
outputs
.
dir
(
docOutputDir
)
doLast
{
val
docDir
=
docOutputDir
.
get
().
asFile
if
(!
docDir
.
exists
())
{
println
(
"文档目录不存在: ${docDir.absolutePath}"
)
return
@doLast
}
// 遍历所有HTML文件
docDir
.
walk
().
filter
{
it
.
isFile
&&
it
.
extension
==
"html"
}.
forEach
{
htmlFile
->
println
(
"处理文件: ${htmlFile.absolutePath}"
)
// 读取文件内容
var
content
=
htmlFile
.
readText
(
Charsets
.
UTF_8
)
// 1. 删除导航栏中的Tree标签(匹配标准格式+变体)
val
treeNavPattern
=
Regex
(
"""<li><a href="overview-tree\.html">Tree</a></li>"""
)
val
treeLinkPattern
=
Regex
(
"""<li><a href="package-tree\.html">Tree</a></li>"""
)
// val treeLinkPattern = Regex("""<li><a href="overview-tree\.html">Tree</a></li>""")
content
=
content
.
replace
(
treeNavPattern
,
""
)
content
=
content
.
replace
(
treeLinkPattern
,
""
)
// 2. 删除导航栏中的Package标签(核心新增逻辑)
// 匹配标准Package标签行(含前后空白)
val
packageNavPattern
=
Regex
(
"""\s*<li>Package</li>\s*"""
)
// 匹配带额外属性的Package标签变体(如class/style等)
content
=
content
.
replace
(
packageNavPattern
,
""
)
// 3.1 导航栏中的Deprecated入口标签(标准格式+带属性变体)
val
deprecatedNavPattern
=
Regex
(
"""<li><a href=".*?deprecated\.html">Deprecated</a></li>"""
)
content
=
content
.
replace
(
deprecatedNavPattern
,
""
)
// 删除Class标签
val
clsNavPattern
=
Regex
(
"""<li>Class</li>"""
)
content
=
content
.
replace
(
clsNavPattern
,
""
)
//删除Help标签
val
helpNavPattern
=
Regex
(
"""<li>Help</li>"""
)
content
=
content
.
replace
(
helpNavPattern
,
""
)
// ========== 4. 删除冗余文件 ==========
/* val redundantFiles = listOf(
docDir.resolve("overview-tree.html"), // Tree相关文件
docDir.resolve("deprecated.html") // Deprecated相关文件
)
redundantFiles.forEach { file ->
if (file.exists()) {
file.delete()
println("🗑️ 删除冗余文件: ${file.absolutePath}")
}
}*/
// 覆盖原文件
htmlFile
.
writeText
(
content
,
Charsets
.
UTF_8
)
println
(
"已移除标签: ${htmlFile.absolutePath}"
)
}
}
}
// 可选:让dokka任务执行完成后自动执行删除Tree标签任务
tasks
.
named
(
"dokkaGenerateJavadoc"
)
{
finalizedBy
(
"removeUnwantedTags"
)
}
// 在 build.gradle.kts 中添加
tasks
.
register
(
"generateOverviewTree"
)
{
...
...
@@ -207,15 +298,17 @@ tasks.register("generateOverviewTree") {
<li>
<strong>com.cusc.map</strong>
<ul>
${packages.joinToString("") { (pkg, desc) ->
val pkgPath = pkg.replace(".", "/")
"""
${
packages.joinToString("") { (pkg, desc) ->
val pkgPath = pkg.replace(".", "/")
"""
<
li
>
<
a
href
=
"$pkgPath/package-summary.html"
class
=
"package-link"
>
$
pkg
</
a
>
<
span
style
=
"color: #666; font-size: 12px;"
>
$
desc
</
span
>
</
li
>
"""
}}
}
}
</ul>
</li>
</ul>
...
...
mapapi/dokka/dokka-custom.css
0 → 100644
View file @
99e022f0
/* 隐藏Tree标签(通过链接href属性) */
.navList
li
a
[
href
=
"overview-tree.html"
]
{
display
:
none
;
}
/* 若需要连li容器一起隐藏,追加此样式 */
.navList
li
:has
(
a
[
href
=
"overview-tree.html"
])
{
display
:
none
;
}
mapapi/dokka/images/anchor-copy-button.svg
deleted
100644 → 0
View file @
ea79dc91
<svg
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M21.2496 5.3C20.3496 4.5 19.2496 4 18.0496 4C16.8496 4 15.6496 4.5 14.8496 5.3L10.3496 9.8L11.7496 11.2L16.2496 6.7C17.2496 5.7 18.8496 5.7 19.8496 6.7C20.8496 7.7 20.8496 9.3 19.8496 10.3L15.3496 14.8L16.7496 16.2L21.2496 11.7C22.1496 10.8 22.5496 9.7 22.5496 8.5C22.5496 7.3 22.1496 6.2 21.2496 5.3Z"
fill=
"#637282"
/>
<path
d=
"M8.35 16.7998C7.35 17.7998 5.75 17.7998 4.75 16.7998C3.75 15.7998 3.75 14.1998 4.75 13.1998L9.25 8.6998L7.85 7.2998L3.35 11.7998C1.55 13.5998 1.55 16.3998 3.35 18.1998C4.25 19.0998 5.35 19.4998 6.55 19.4998C7.75 19.4998 8.85 19.0998 9.75 18.1998L14.25 13.6998L12.85 12.2998L8.35 16.7998Z"
fill=
"#637282"
/>
</svg>
mapapi/dokka/images/copy-icon.svg
deleted
100644 → 0
View file @
ea79dc91
<svg
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M5 4H15V16H5V4ZM17 7H19V18V20H17H8V18H17V7Z"
fill=
"black"
/>
</svg>
mapapi/dokka/images/copy-successful-icon.svg
deleted
100644 → 0
View file @
ea79dc91
<svg
width=
"18"
height=
"18"
viewBox=
"0 0 18 18"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M18 9C18 14 14 18 9 18C4 18 0 14 0 9C0 4 4 0 9 0C14 0 18 4 18 9ZM14.2 6.2L12.8 4.8L7.5 10.1L5.3 7.8L3.8 9.2L7.5 13L14.2 6.2Z"
fill=
"#4DBB5F"
/>
</svg>
mapapi/dokka/images/footer-go-to-link.svg
deleted
100644 → 0
View file @
ea79dc91
<svg
width=
"8"
height=
"8"
viewBox=
"0 0 8 8"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M8 0H2.3949L4.84076 2.44586L0 7.28662L0.713376 8L5.55414 3.15924L8 5.6051V0Z"
fill=
"#637282"
/>
</svg>
mapapi/dokka/images/go-to-top-icon.svg
deleted
100644 → 0
View file @
ea79dc91
<svg
width=
"12"
height=
"10"
viewBox=
"0 0 12 10"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M11.3337 9.66683H0.666992L6.00033 3.66683L11.3337 9.66683Z"
fill=
"#637282"
/>
<path
d=
"M0.666992 0.333496H11.3337V1.66683H0.666992V0.333496Z"
fill=
"#637282"
/>
</svg>
mapapi/dokka/images/logo-icon.svg
deleted
100644 → 0
View file @
ea79dc91
<!--
- Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
-->
<svg
width=
"64"
height=
"64"
viewBox=
"0 0 64 64"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M64 64H0V0H64L31.3373 31.5369L64 64Z"
fill=
"url(#paint0_radial)"
/>
<defs>
<radialGradient
id=
"paint0_radial"
cx=
"0"
cy=
"0"
r=
"1"
gradientUnits=
"userSpaceOnUse"
gradientTransform=
"translate(61.8732 2.63097) scale(73.3111)"
>
<stop
offset=
"0.00343514"
stop-color=
"#EF4857"
/>
<stop
offset=
"0.4689"
stop-color=
"#D211EC"
/>
<stop
offset=
"1"
stop-color=
"#7F52FF"
/>
</radialGradient>
</defs>
</svg>
mapapi/dokka/styles/font-jb-sans-auto.css
deleted
100644 → 0
View file @
ea79dc91
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
/* Light weight */
@font-face
{
font-family
:
'JetBrains Sans'
;
src
:
url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-Light.woff2')
format
(
'woff2'
),
url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-Light.woff')
format
(
'woff'
);
font-weight
:
300
;
font-style
:
normal
;
font-display
:
swap
;
}
/* Regular weight */
@font-face
{
font-family
:
'JetBrains Sans'
;
src
:
url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-Regular.woff2')
format
(
'woff2'
),
url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-Regular.woff')
format
(
'woff'
);
font-weight
:
400
;
font-style
:
normal
;
font-display
:
swap
;
}
/* SemiBold weight */
@font-face
{
font-family
:
'JetBrains Sans'
;
src
:
url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-SemiBold.woff2')
format
(
'woff2'
),
url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-SemiBold.woff')
format
(
'woff'
);
font-weight
:
600
;
font-style
:
normal
;
font-display
:
swap
;
}
@supports
(
font-variation-settings
:
normal
)
{
@font-face
{
font-family
:
'JetBrains Sans'
;
src
:
url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans.woff2')
format
(
'woff2 supports variations'
),
url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans.woff2')
format
(
'woff2-variations'
),
url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans.woff')
format
(
'woff-variations'
);
font-weight
:
100
900
;
font-style
:
normal
;
font-display
:
swap
;
}
}
mapapi/dokka/styles/logo-styles.css
deleted
100644 → 0
View file @
ea79dc91
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
:root
{
--dokka-logo-image-url
:
url('../images/logo-icon.svg')
;
--dokka-logo-height
:
28px
;
--dokka-logo-width
:
28px
;
}
mapapi/dokka/styles/prism.css
deleted
100644 → 0
View file @
ea79dc91
/*
* Custom Dokka styles
*/
code
.token
{
white-space
:
pre
;
}
/**
* Styles based on webhelp's prism.js styles
* Changes:
* - Since webhelp's styles are in .pcss, they use nesting which is not achievable in native CSS
* so nested css blocks have been unrolled (like dark theme).
* - Webhelp uses "Custom Class" prism.js plugin, so all of their prism classes are prefixed with "--prism".
* Dokka doesn't seem to need this plugin at the moment, so all "--prism" prefixes have been removed.
* - Removed all styles related to `pre` and `code` tags. Kotlinlang's resulting styles are so spread out and complicated
* that it's difficult to gather in one place. Instead use code styles defined in the main Dokka styles,
* which at the moment looks fairly similar.
*
* Based on prism.js default theme
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
.token.comment
,
.token.prolog
,
.token.doctype
,
.token.cdata
{
color
:
#8c8c8c
;
}
.token.punctuation
{
color
:
#999
;
}
.token.namespace
{
opacity
:
0.7
;
}
.token.property
,
.token.tag
,
.token.boolean
,
.token.number
,
.token.constant
,
.token.symbol
,
.token.deleted
{
color
:
#871094
;
}
.token.selector
,
.token.attr-name
,
.token.string
,
.token.char
,
.token.builtin
,
.token.inserted
{
color
:
#067d17
;
}
.token.operator
,
.token.entity
,
.token.url
,
.language-css
.token.string
,
.style
.token.string
{
color
:
#9a6e3a
;
/* This background color was intended by the author of this theme. */
background
:
hsla
(
0
,
0%
,
100%
,
0.5
);
}
.token.atrule
,
.token.attr-value
,
.token.keyword
{
font-size
:
inherit
;
/* to override .keyword */
color
:
#0033b3
;
}
.token.function
{
color
:
#00627a
;
}
.token.class-name
{
color
:
#000000
;
}
.token.regex
,
.token.important
,
.token.variable
{
color
:
#871094
;
}
.token.important
,
.token.bold
{
font-weight
:
bold
;
}
.token.italic
{
font-style
:
italic
;
}
.token.entity
{
cursor
:
help
;
}
.token.operator
{
background
:
none
;
}
/*
* DARK THEME
*/
:root
.theme-dark
.token.comment
,
:root
.theme-dark
.token.prolog
,
:root
.theme-dark
.token.cdata
{
color
:
#808080
;
}
:root
.theme-dark
.token.delimiter
,
:root
.theme-dark
.token.boolean
,
:root
.theme-dark
.token.keyword
,
:root
.theme-dark
.token.selector
,
:root
.theme-dark
.token.important
,
:root
.theme-dark
.token.atrule
{
color
:
#cc7832
;
}
:root
.theme-dark
.token.operator
,
:root
.theme-dark
.token.punctuation
,
:root
.theme-dark
.token.attr-name
{
color
:
#a9b7c6
;
}
:root
.theme-dark
.token.tag
,
:root
.theme-dark
.token.tag
.punctuation
,
:root
.theme-dark
.token.doctype
,
:root
.theme-dark
.token.builtin
{
color
:
#e8bf6a
;
}
:root
.theme-dark
.token.entity
,
:root
.theme-dark
.token.number
,
:root
.theme-dark
.token.symbol
{
color
:
#6897bb
;
}
:root
.theme-dark
.token.property
,
:root
.theme-dark
.token.constant
,
:root
.theme-dark
.token.variable
{
color
:
#9876aa
;
}
:root
.theme-dark
.token.string
,
:root
.theme-dark
.token.char
{
color
:
#6a8759
;
}
:root
.theme-dark
.token.attr-value
,
:root
.theme-dark
.token.attr-value
.punctuation
{
color
:
#a5c261
;
}
:root
.theme-dark
.token.attr-value
.punctuation
:first-child
{
color
:
#a9b7c6
;
}
:root
.theme-dark
.token.url
{
text-decoration
:
underline
;
color
:
#287bde
;
background
:
transparent
;
}
:root
.theme-dark
.token.function
{
color
:
#ffc66d
;
}
:root
.theme-dark
.token.regex
{
background
:
#364135
;
}
:root
.theme-dark
.token.deleted
{
background
:
#484a4a
;
}
:root
.theme-dark
.token.inserted
{
background
:
#294436
;
}
:root
.theme-dark
.token.class-name
{
color
:
#a9b7c6
;
}
:root
.theme-dark
.token.function
{
color
:
#ffc66d
;
}
:root
.theme-darkcode
.language-css
.token.property
,
:root
.theme-darkcode
.language-css
,
:root
.theme-dark
.token.property
+
.token.punctuation
{
color
:
#a9b7c6
;
}
code
.language-css
.token.id
{
color
:
#ffc66d
;
}
:root
.theme-dark
code
.language-css
.token.selector
>
.token.class
,
:root
.theme-dark
code
.language-css
.token.selector
>
.token.attribute
,
:root
.theme-dark
code
.language-css
.token.selector
>
.token.pseudo-class
,
:root
.theme-dark
code
.language-css
.token.selector
>
.token.pseudo-element
{
color
:
#ffc66d
;
}
:root
.theme-dark
.language-plaintext
.token
{
/* plaintext code should be colored as article text */
color
:
inherit
!important
;
}
mapapi/dokka/styles/style.css
deleted
100644 → 0
View file @
ea79dc91
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
@import
url('./font-jb-sans-auto.css')
;
@import
url('https://fonts.googleapis.com/css?family=JetBrains+Mono')
;
/* --- root styles --- */
:root
{
--default-gray
:
#f4f4f4
;
--default-font-color
:
rgb
(
0
,
0
,
0
);
--header-font-color
:
var
(
--default-font-color
);
--breadcrumb-font-color
:
#637282
;
--breadcrumb-margin
:
24px
;
--hover-link-color
:
#5B5DEF
;
--footer-height
:
64px
;
--footer-padding-top
:
48px
;
--footer-background
:
var
(
--default-gray
);
--footer-font-color
:
var
(
--average-color
);
--footer-go-to-top-color
:
white
;
--horizontal-spacing-for-content
:
16px
;
--bottom-spacing
:
16px
;
--color-scrollbar
:
rgba
(
39
,
40
,
44
,
0.40
);
--color-scrollbar-track
:
var
(
--default-gray
);
--default-white
:
#fff
;
--background-color
:
var
(
--default-white
);
--dark-mode-and-search-icon-color
:
var
(
--default-white
);
--color-dark
:
#27282c
;
--default-font-family
:
JetBrains
Sans
,
Inter
,
system-ui
,
-apple-system
,
BlinkMacSystemFont
,
Segoe
UI
,
Roboto
,
Oxygen
,
Ubuntu
,
Cantarell
,
Droid
Sans
,
Helvetica
Neue
,
Arial
,
sans-serif
;
--default-monospace-font-family
:
JetBrains
Mono
,
SFMono-Regular
,
Consolas
,
Liberation
Mono
,
Menlo
,
Courier
,
monospace
;
--default-font-size
:
15px
;
--average-color
:
var
(
--color-dark
);
--brief-color
:
var
(
--average-color
);
--copy-icon-color
:
rgba
(
39
,
40
,
44
,
.7
);
--copy-icon-hover-color
:
var
(
--color-dark
);
--code-background
:
rgba
(
39
,
40
,
44
,
.05
);
--border-color
:
rgba
(
39
,
40
,
44
,
.2
);
--navigation-highlight-color
:
rgba
(
39
,
40
,
44
,
0.05
);
--top-navigation-height
:
73px
;
--max-width
:
1160px
;
--white-10
:
hsla
(
0
,
0%
,
100%
,
.1
);
--active-tab-border-color
:
#7F52FF
;
--inactive-tab-border-color
:
rgba
(
164
,
164
,
170
,
0.7
);
--active-section-color
:
#7F52FF
;
--inactive-section-color
:
rgba
(
25
,
25
,
28
,
.7
);
--sidebar-width
:
280px
;
--sidemenu-section-active-color
:
#7F52FF
;
}
html
{
height
:
100%
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
);
scrollbar-color
:
rgba
(
39
,
40
,
44
,
0.40
)
#F4F4F4
;
scrollbar-color
:
var
(
--color-scrollbar
)
var
(
--color-scrollbar-track
);
text-rendering
:
optimizeLegibility
;
-webkit-font-smoothing
:
antialiased
;
color
:
var
(
--default-font-color
);
}
html
::-webkit-scrollbar
{
width
:
8px
;
height
:
8px
;
}
html
::-webkit-scrollbar-track
{
background-color
:
var
(
--color-scrollbar-track
);
}
html
::-webkit-scrollbar-thumb
{
width
:
8px
;
border-radius
:
6px
;
background
:
rgba
(
39
,
40
,
44
,
0.40
);
background
:
var
(
--color-scrollbar
);
}
html
,
body
{
margin
:
0
;
padding
:
0
;
height
:
100%
;
width
:
100%
;
}
/* /--- root styles --- */
/* --- global tags styles --- */
body
,
table
{
background
:
var
(
--background-color
);
font-family
:
var
(
--default-font-family
);
font-style
:
normal
;
font-weight
:
normal
;
font-size
:
var
(
--default-font-size
);
line-height
:
1.6
;
margin
:
0
;
}
h1
{
font-size
:
40px
;
line-height
:
48px
;
letter-spacing
:
-1px
;
}
h2
{
font-size
:
31px
;
line-height
:
40px
;
letter-spacing
:
-0.5px
;
}
h3
{
font-size
:
20px
;
line-height
:
28px
;
letter-spacing
:
-0.2px
;
}
p
,
ul
,
ol
,
table
,
pre
,
dl
{
margin
:
0
;
}
a
{
text-decoration
:
none
;
}
u
{
text-decoration
:
none
;
padding-bottom
:
2px
;
border-bottom
:
1px
solid
var
(
--border-color
);
}
blockquote
{
border-left
:
1ch
solid
var
(
--default-gray
);
margin
:
0
;
padding-left
:
1ch
;
font-style
:
italic
;
color
:
var
(
--average-color
);
}
.theme-dark
blockquote
{
color
:
var
(
--default-font-color
);
border-left-color
:
var
(
--code-background
);
}
pre
{
display
:
block
;
}
dt
{
color
:
#444
;
font-weight
:
530
;
}
img
{
max-width
:
100%
;
}
small
{
font-size
:
11px
;
}
table
{
width
:
100%
;
border-collapse
:
collapse
;
padding
:
5px
;
}
th
,
td
{
padding
:
12px
10px
11px
;
text-align
:
left
;
vertical-align
:
top
;
}
tbody
>
tr
{
min-height
:
56px
;
}
td
:first-child
{
width
:
20vw
;
}
/* /--- global tags styles --- */
/* --- utils classes --- */
.w-100
{
width
:
100%
;
}
.no-gutters
{
margin
:
0
;
padding
:
0
;
}
.d-flex
{
display
:
flex
;
}
.floating-right
{
float
:
right
;
}
.pull-right
{
float
:
right
;
margin-left
:
auto
}
.clearfix
::after
{
display
:
block
;
content
:
''
;
clear
:
both
;
height
:
0
;
}
/* /--- utils classes --- */
/* ---dark theme --- */
.theme-dark
{
--background-color
:
#262628
;
--color-dark
:
#3d3d41
;
--default-font-color
:
rgba
(
255
,
255
,
255
,
0.96
);
--border-color
:
hsla
(
0
,
0%
,
100%
,
0.2
);
--code-background
:
hsla
(
0
,
0%
,
100%
,
0.05
);
--breadcrumb-font-color
:
#8c8c8e
;
--brief-color
:
hsla
(
0
,
0%
,
100%
,
0.4
);
--copy-icon-color
:
hsla
(
0
,
0%
,
100%
,
0.6
);
--copy-icon-hover-color
:
#fff
;
--active-tab-border-color
:
var
(
--default-font-color
);
--inactive-tab-border-color
:
hsla
(
0
,
0%
,
100%
,
0.4
);
--active-section-color
:
var
(
--default-font-color
);
--inactive-section-color
:
hsla
(
0
,
0%
,
100%
,
0.4
);
--navigation-highlight-color
:
rgba
(
255
,
255
,
255
,
0.05
);
--footer-background
:
hsla
(
0
,
0%
,
100%
,
0.05
);
--footer-font-color
:
hsla
(
0
,
0%
,
100%
,
0.6
);
--footer-go-to-top-color
:
var
(
--footer-font-color
);
--sidemenu-section-active-color
:
var
(
--color-dark
);
}
/* /---dark theme --- */
.root
{
display
:
flex
;
flex-direction
:
column
;
height
:
100%
;
}
/* --- Layout styles --- */
#container
{
display
:
flex
;
flex
:
1
1
auto
;
min-height
:
0
;
/* full height exclude header */
}
#container
>
#main
{
overflow
:
auto
;
}
#main
{
display
:
flex
;
flex-direction
:
column
;
flex
:
1
1
0
;
/* full width, but no affects for sidebar */
}
/* /--- Layout styles --- */
/* --- Main Content styles --- */
.main-content
{
padding-bottom
:
var
(
--bottom-spacing
);
margin-left
:
auto
;
margin-right
:
auto
;
max-width
:
var
(
--max-width
);
width
:
100%
;
z-index
:
0
;
}
.main-content
>
*
{
margin-left
:
var
(
--horizontal-spacing-for-content
);
margin-right
:
var
(
--horizontal-spacing-for-content
);
}
.main-content
.content
>
hr
{
margin
:
30px
0
;
border-top
:
3px
double
#8c8b8b
;
}
.main-content
:is
(
h1
,
h2
)
{
font-weight
:
530
;
}
/* /--- Main Content styles --- */
/* /--- Breadcrumbs styles --- */
.breadcrumbs
,
.breadcrumbs
a
,
.breadcrumbs
a
:hover
{
margin-top
:
var
(
--breadcrumb-margin
);
color
:
var
(
--breadcrumb-font-color
);
overflow-wrap
:
break-word
;
}
.breadcrumbs
.delimiter
{
margin
:
auto
2px
;
}
.breadcrumbs
.current
{
color
:
var
(
--default-font-color
);
}
/* /--- Breadcrumbs styles --- */
.cover
>
.platform-hinted
{
padding-bottom
:
12px
;
}
.cover
{
display
:
flex
;
flex-direction
:
column
;
}
.cover
.platform-hinted.with-platform-tabs
.sourceset-dependent-content
>
.block
~
.symbol
{
padding-top
:
16px
;
padding-left
:
0
;
}
.cover
.sourceset-dependent-content
>
.block
{
padding
:
16px
0
;
font-size
:
18px
;
line-height
:
28px
;
}
.cover
.platform-hinted.with-platform-tabs
.sourceset-dependent-content
>
.block
{
padding
:
0
;
font-size
:
var
(
--default-font-size
);
}
.cover
~
.divergent-group
{
margin-top
:
24px
;
padding
:
24px
8px
8px
8px
;
}
.cover
~
.divergent-group
.main-subrow
.symbol
{
width
:
100%
;
}
.main-content
p
.paragraph
,
.sample-container
,
blockquote
,
.content
>
.symbol
{
margin-top
:
8px
;
}
blockquote
,
.content
>
.symbol
:first-of-type
,
p
.paragraph
:first-child
,
.brief
p
.paragraph
{
margin-top
:
0
;
}
.content
.kdoc-tag
>
p
.paragraph
{
margin-top
:
0
;
}
.content
h4
{
margin-bottom
:
0
;
}
.divergent-group
{
background-color
:
var
(
--background-color
);
padding
:
16px
0
8px
0
;
margin-bottom
:
2px
;
}
.divergent-group
.table-row
,
tbody
>
tr
{
border-bottom
:
1px
solid
var
(
--border-color
);
}
.divergent-group
.table-row
:last-of-type
,
tbody
>
tr
:last-of-type
{
border-bottom
:
none
;
}
.title
>
.divergent-group
:first-of-type
{
padding-top
:
0
;
}
.sample-container
,
div
.CodeMirror
{
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
}
code
.paragraph
{
display
:
block
;
}
.strikethrough
{
text-decoration
:
line-through
;
}
/* Workaround for Firefox https://github.com/Kotlin/dokka/issues/3156 */
@-moz-document
url-prefix
()
{
.strikethrough
{
position
:
relative
;
text-decoration
:
none
;
}
/* complex selectors here are required to handle multiline cases */
.strikethrough
::after
,
.strikethrough
span
:after
{
content
:
''
;
position
:
absolute
;
top
:
7px
;
left
:
0
;
right
:
0
;
height
:
1px
;
background-color
:
currentColor
;
z-index
:
1
;
}
}
.symbol
:empty
{
padding
:
0
;
}
.symbol
:not
(
.token
),
code
{
background-color
:
var
(
--code-background
);
align-items
:
center
;
box-sizing
:
border-box
;
white-space
:
pre-wrap
;
font-family
:
var
(
--default-monospace-font-family
);
font-size
:
var
(
--default-font-size
);
}
.symbol
:not
(
.token
),
code
.block
{
display
:
block
;
padding
:
12px
32px
12px
12px
;
border-radius
:
8px
;
line-height
:
24px
;
position
:
relative
;
}
code
{
overflow-x
:
auto
;
max-width
:
100%
;
}
code
:not
(
.block
)
{
display
:
inline-block
;
vertical-align
:
bottom
;
}
.symbol
>
a
{
color
:
var
(
--hover-link-color
);
}
.copy-icon
{
cursor
:
pointer
;
}
.sample-container
span
.copy-icon
{
display
:
none
;
}
.js
.sample-container
:hover
span
.copy-icon
{
display
:
inline-block
;
}
.sample-container
span
.copy-icon
::before
{
width
:
24px
;
height
:
24px
;
display
:
inline-block
;
content
:
''
;
/* masks are required if you want to change color of the icon dynamically instead of using those provided with the SVG */
-webkit-mask
:
url("../images/copy-icon.svg")
no-repeat
50%
50%
;
mask
:
url("../images/copy-icon.svg")
no-repeat
50%
50%
;
-webkit-mask-size
:
cover
;
mask-size
:
cover
;
background-color
:
var
(
--copy-icon-color
);
}
.sample-container
span
.copy-icon
:hover::before
{
background-color
:
var
(
--copy-icon-hover-color
);
}
.copy-popup-wrapper
{
display
:
none
;
align-items
:
center
;
position
:
absolute
;
z-index
:
1000
;
background
:
var
(
--background-color
);
font-weight
:
normal
;
font-family
:
var
(
--default-font-family
);
width
:
max-content
;
font-size
:
var
(
--default-font-size
);
cursor
:
default
;
border
:
1px
solid
#D8DCE1
;
box-sizing
:
border-box
;
box-shadow
:
0
5px
10px
var
(
--ring-popup-shadow-color
);
border-radius
:
3px
;
color
:
var
(
--default-font-color
);
}
.copy-popup-wrapper
>
.copy-popup-icon
::before
{
content
:
url("../images/copy-successful-icon.svg")
;
padding
:
8px
;
}
.copy-popup-wrapper
>
.copy-popup-icon
{
position
:
relative
;
top
:
3px
;
}
.copy-popup-wrapper.popup-to-left
{
/* since it is in position absolute we can just move it to the left to make it always appear on the left side of the icon */
left
:
-15em
;
}
.table-row
:hover
.copy-popup-wrapper.active-popup
,
.sample-container
:hover
.copy-popup-wrapper.active-popup
{
display
:
flex
!important
;
}
.copy-popup-wrapper
:hover
{
font-weight
:
normal
;
}
.copy-popup-wrapper
>
span
:last-child
{
padding-right
:
14px
;
}
.symbol
.top-right-position
,
.sample-container
.top-right-position
{
/* it is important for a parent to have a position: relative */
position
:
absolute
;
top
:
8px
;
right
:
8px
;
overflow-wrap
:
break-word
;
word-break
:
break-word
;
}
.brief
{
white-space
:
pre-wrap
;
overflow
:
hidden
;
}
h1
.cover
{
font-size
:
52px
;
line-height
:
56px
;
letter-spacing
:
-1.5px
;
margin-bottom
:
0
;
padding-bottom
:
32px
;
display
:
block
;
}
@media
(
max-width
:
1119px
)
{
h1
.cover
{
font-size
:
48px
;
line-height
:
48px
;
padding-bottom
:
8px
;
}
}
@media
(
max-width
:
759px
)
{
h1
.cover
{
font-size
:
32px
;
line-height
:
32px
;
}
}
.UnderCoverText
{
font-size
:
16px
;
line-height
:
28px
;
}
.UnderCoverText
code
{
font-size
:
inherit
;
}
.UnderCoverText
table
{
margin
:
8px
0
8px
0
;
word-break
:
break-word
;
}
@media
(
max-width
:
960px
)
{
.UnderCoverText
table
{
display
:
block
;
word-break
:
normal
;
overflow
:
auto
;
}
}
.main-content
a
:not
([
data-name
])
{
padding-bottom
:
2px
;
border-bottom
:
1px
solid
var
(
--border-color
);
cursor
:
pointer
;
text-decoration
:
none
;
color
:
inherit
;
font-size
:
inherit
;
line-height
:
inherit
;
transition
:
color
.1s
,
border-color
.1s
;
overflow-wrap
:
break-word
;
word-break
:
break-word
;
}
.main-content
a
:hover
{
border-bottom-color
:
unset
;
color
:
inherit
}
a
small
{
font-size
:
11px
;
margin-top
:
-0.6em
;
display
:
block
;
}
p
.paragraph
img
{
display
:
block
;
}
.deprecation-content
{
margin
:
20px
10px
;
border
:
1px
solid
var
(
--border-color
);
padding
:
13px
15px
16px
15px
;
}
.deprecation-content
>
h3
{
margin-top
:
0
;
margin-bottom
:
0
;
}
.deprecation-content
>
h4
{
font-size
:
16px
;
margin-top
:
15px
;
margin-bottom
:
0
;
}
.deprecation-content
code
.block
{
padding
:
5px
10px
;
display
:
inline-block
;
}
.deprecation-content
.footnote
{
margin-left
:
25px
;
font-size
:
13px
;
font-weight
:
bold
;
display
:
block
;
}
.deprecation-content
.footnote
>
p
{
margin
:
0
;
}
[
data-filterable-current
=
''
]
{
display
:
none
!important
;
}
td
.content
{
padding-left
:
24px
;
padding-top
:
16px
;
display
:
flex
;
flex-direction
:
column
;
}
.main-subrow
{
display
:
flex
;
flex-direction
:
row
;
padding
:
0
;
flex-wrap
:
wrap
;
}
.main-subrow
>
div
{
margin-bottom
:
8px
;
}
.main-subrow
>
div
>
span
{
display
:
flex
;
position
:
relative
;
}
.js
.main-subrow
:hover
.anchor-icon
{
opacity
:
1
;
transition
:
0.2s
;
}
.main-subrow
.anchor-icon
{
opacity
:
0
;
transition
:
0.2s
0.5s
;
}
.main-subrow
.anchor-icon
::before
{
content
:
url("../images/anchor-copy-button.svg")
;
}
.main-subrow
.anchor-icon
:hover
{
cursor
:
pointer
;
}
.main-subrow
.anchor-icon
:hover
>
svg
path
{
fill
:
var
(
--hover-link-color
);
}
@media
(
hover
:
none
)
{
.main-subrow
.anchor-icon
{
display
:
none
;
}
}
.main-subrow
.anchor-wrapper
{
position
:
relative
;
width
:
24px
;
height
:
16px
;
margin-left
:
3px
;
}
.inline-flex
{
display
:
inline-flex
;
}
/* Work around an issue: https://github.com/JetBrains/kotlin-playground/issues/91
Applies for main description blocks with platform tabs.
Just in case of possible performance degradation it excluding tabs with briefs on classlike page */
#content
>
div
:not
(
.tabbedcontent
)
.sourceset-dependent-content
:not
([
data-active
])
{
display
:
block
!important
;
visibility
:
hidden
;
height
:
0
;
position
:
fixed
;
top
:
0
;
}
.with-platform-tags
{
display
:
flex
;
}
.with-platform-tags
~
.main-subrow
{
padding-top
:
8px
;
}
.cover
.with-platform-tabs
{
font-size
:
var
(
--default-font-size
);
}
.cover
>
.with-platform-tabs
>
.content
{
padding
:
8px
16px
;
border
:
1px
solid
var
(
--border-color
);
}
.cover
>
.block
{
padding-top
:
48px
;
padding-bottom
:
24px
;
font-size
:
18px
;
line-height
:
28px
;
}
.cover
>
.block
:empty
{
padding-bottom
:
0
;
}
.parameters.wrapped
>
.parameter
{
display
:
block
;
}
.table-row
.inline-comment
{
padding-top
:
8px
;
padding-bottom
:
8px
;
}
.table-row
.platform-hinted
.sourceset-dependent-content
.brief
,
.table-row
.platform-hinted
.sourceset-dependent-content
.inline-comment
{
padding
:
8px
;
}
.table
{
display
:
flex
;
flex-direction
:
column
;
}
.table-row
{
display
:
flex
;
flex-direction
:
column
;
border-bottom
:
1px
solid
var
(
--border-color
);
padding
:
11px
0
12px
0
;
background-color
:
var
(
--background-color
);
}
.table-row
:last-of-type
{
border-bottom
:
none
;
}
.table-row
.brief-comment
{
color
:
var
(
--brief-color
);
}
.platform-dependent-row
{
display
:
grid
;
padding-top
:
8px
;
}
.title-row
{
display
:
grid
;
grid-template-columns
:
auto
auto
7em
;
width
:
100%
;
}
@media
print
,
(
min-width
:
960px
)
{
.title-row
{
grid-template-columns
:
20%
auto
7em
;
}
}
.keyValue
{
display
:
grid
;
grid-gap
:
8px
;
}
@media
print
,
(
min-width
:
960px
)
{
.keyValue
{
grid-template-columns
:
20%
80%
;
}
.keyValue
>
div
:first-child
{
word-break
:
break-word
;
}
}
@media
print
,
(
max-width
:
960px
)
{
div
.wrapper
{
width
:
auto
;
margin
:
0
;
}
header
,
section
,
footer
{
float
:
none
;
position
:
static
;
width
:
auto
;
}
header
{
padding-right
:
320px
;
}
section
{
border
:
1px
solid
#e5e5e5
;
border-width
:
1px
0
;
padding
:
20px
0
;
margin
:
0
0
20px
;
}
header
a
small
{
display
:
inline
;
}
header
ul
{
position
:
absolute
;
right
:
50px
;
top
:
52px
;
}
}
.anchor-highlight
{
border
:
1px
solid
var
(
--hover-link-color
)
!important
;
box-shadow
:
0
0
0
0.2em
#c8e1ff
;
margin-top
:
0.2em
;
margin-bottom
:
0.2em
;
}
.filtered-message
{
margin
:
25px
;
font-size
:
20px
;
font-weight
:
bolder
;
}
div
.runnablesample
{
height
:
fit-content
;
}
/* --- footer --- */
.footer
{
clear
:
both
;
display
:
flex
;
align-items
:
center
;
position
:
relative
;
min-height
:
var
(
--footer-height
);
font-size
:
12px
;
line-height
:
16px
;
letter-spacing
:
0.2px
;
color
:
var
(
--footer-font-color
);
margin-top
:
auto
;
background-color
:
var
(
--footer-background
);
}
.footer--button
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
40px
;
height
:
40px
;
border-radius
:
50%
;
background-color
:
var
(
--footer-go-to-top-color
);
background-repeat
:
no-repeat
;
background-position
:
50%
50%
;
padding
:
0
;
border
:
none
;
cursor
:
pointer
;
font-size
:
0
;
line-height
:
0
;
transition
:
background-color
200ms
ease-in-out
;
will-change
:
background-color
;
}
.footer--button
:hover
{
opacity
:
0.9
;
}
.footer--button_go-to-top
{
background-image
:
url("../images/go-to-top-icon.svg")
;
margin-left
:
var
(
--horizontal-spacing-for-content
);
margin-right
:
8px
;
}
.footer--link
{
display
:
inline-flex
;
align-items
:
center
;
color
:
var
(
--breadcrumb-font-color
);
}
.footer--link_external
:after
{
content
:
''
;
width
:
12px
;
height
:
12px
;
margin-left
:
4px
;
margin-right
:
var
(
--horizontal-spacing-for-content
);
background-image
:
url("../images/footer-go-to-link.svg")
;
background-repeat
:
no-repeat
;
background-position
:
50%
50%
;
}
/* /--- footer --- */
mapapi/my-styles.css
deleted
100644 → 0
View file @
ea79dc91
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
@import
url('./font-jb-sans-auto.css')
;
@import
url('https://fonts.googleapis.com/css?family=JetBrains+Mono')
;
/* --- root styles --- */
:root
{
--default-gray
:
#f4f4f4
;
--default-font-color
:
rgb
(
0
,
0
,
0
);
--header-font-color
:
var
(
--default-font-color
);
--breadcrumb-font-color
:
#637282
;
--breadcrumb-margin
:
24px
;
--hover-link-color
:
#5B5DEF
;
--footer-height
:
64px
;
--footer-padding-top
:
48px
;
--footer-background
:
var
(
--default-gray
);
--footer-font-color
:
var
(
--average-color
);
--footer-go-to-top-color
:
white
;
--horizontal-spacing-for-content
:
16px
;
--bottom-spacing
:
16px
;
--color-scrollbar
:
rgba
(
39
,
40
,
44
,
0.40
);
--color-scrollbar-track
:
var
(
--default-gray
);
--default-white
:
#fff
;
--background-color
:
var
(
--default-white
);
--dark-mode-and-search-icon-color
:
var
(
--default-white
);
--color-dark
:
#27282c
;
--default-font-family
:
JetBrains
Sans
,
Inter
,
system-ui
,
-apple-system
,
BlinkMacSystemFont
,
Segoe
UI
,
Roboto
,
Oxygen
,
Ubuntu
,
Cantarell
,
Droid
Sans
,
Helvetica
Neue
,
Arial
,
sans-serif
;
--default-monospace-font-family
:
JetBrains
Mono
,
SFMono-Regular
,
Consolas
,
Liberation
Mono
,
Menlo
,
Courier
,
monospace
;
--default-font-size
:
15px
;
--average-color
:
var
(
--color-dark
);
--brief-color
:
var
(
--average-color
);
--copy-icon-color
:
rgba
(
39
,
40
,
44
,
.7
);
--copy-icon-hover-color
:
var
(
--color-dark
);
--code-background
:
rgba
(
39
,
40
,
44
,
.05
);
--border-color
:
rgba
(
39
,
40
,
44
,
.2
);
--navigation-highlight-color
:
rgba
(
39
,
40
,
44
,
0.05
);
--top-navigation-height
:
73px
;
--max-width
:
1160px
;
--white-10
:
hsla
(
0
,
0%
,
100%
,
.1
);
--active-tab-border-color
:
#7F52FF
;
--inactive-tab-border-color
:
rgba
(
164
,
164
,
170
,
0.7
);
--active-section-color
:
#7F52FF
;
--inactive-section-color
:
rgba
(
25
,
25
,
28
,
.7
);
--sidebar-width
:
280px
;
--sidemenu-section-active-color
:
#7F52FF
;
}
html
{
height
:
100%
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
);
scrollbar-color
:
rgba
(
39
,
40
,
44
,
0.40
)
#F4F4F4
;
scrollbar-color
:
var
(
--color-scrollbar
)
var
(
--color-scrollbar-track
);
text-rendering
:
optimizeLegibility
;
-webkit-font-smoothing
:
antialiased
;
color
:
var
(
--default-font-color
);
}
html
::-webkit-scrollbar
{
width
:
8px
;
height
:
8px
;
}
html
::-webkit-scrollbar-track
{
background-color
:
var
(
--color-scrollbar-track
);
}
html
::-webkit-scrollbar-thumb
{
width
:
8px
;
border-radius
:
6px
;
background
:
rgba
(
39
,
40
,
44
,
0.40
);
background
:
var
(
--color-scrollbar
);
}
html
,
body
{
margin
:
0
;
padding
:
0
;
height
:
100%
;
width
:
100%
;
}
/* /--- root styles --- */
/* --- global tags styles --- */
body
,
table
{
background
:
var
(
--background-color
);
font-family
:
var
(
--default-font-family
);
font-style
:
normal
;
font-weight
:
normal
;
font-size
:
var
(
--default-font-size
);
line-height
:
1.6
;
margin
:
0
;
}
h1
{
font-size
:
40px
;
line-height
:
48px
;
letter-spacing
:
-1px
;
}
h2
{
font-size
:
31px
;
line-height
:
40px
;
letter-spacing
:
-0.5px
;
}
h3
{
font-size
:
20px
;
line-height
:
28px
;
letter-spacing
:
-0.2px
;
}
p
,
ul
,
ol
,
table
,
pre
,
dl
{
margin
:
0
;
}
a
{
text-decoration
:
none
;
}
u
{
text-decoration
:
none
;
padding-bottom
:
2px
;
border-bottom
:
1px
solid
var
(
--border-color
);
}
blockquote
{
border-left
:
1ch
solid
var
(
--default-gray
);
margin
:
0
;
padding-left
:
1ch
;
font-style
:
italic
;
color
:
var
(
--average-color
);
}
.theme-dark
blockquote
{
color
:
var
(
--default-font-color
);
border-left-color
:
var
(
--code-background
);
}
pre
{
display
:
block
;
}
dt
{
color
:
#444
;
font-weight
:
530
;
}
img
{
max-width
:
100%
;
}
small
{
font-size
:
11px
;
}
table
{
width
:
100%
;
border-collapse
:
collapse
;
padding
:
5px
;
}
th
,
td
{
padding
:
12px
10px
11px
;
text-align
:
left
;
vertical-align
:
top
;
}
tbody
>
tr
{
min-height
:
56px
;
}
td
:first-child
{
width
:
20vw
;
}
/* /--- global tags styles --- */
/* --- utils classes --- */
.w-100
{
width
:
100%
;
}
.no-gutters
{
margin
:
0
;
padding
:
0
;
}
.d-flex
{
display
:
flex
;
}
.floating-right
{
float
:
right
;
}
.pull-right
{
float
:
right
;
margin-left
:
auto
}
.clearfix
::after
{
display
:
block
;
content
:
''
;
clear
:
both
;
height
:
0
;
}
/* /--- utils classes --- */
/* ---dark theme --- */
.theme-dark
{
--background-color
:
#262628
;
--color-dark
:
#3d3d41
;
--default-font-color
:
rgba
(
255
,
255
,
255
,
0.96
);
--border-color
:
hsla
(
0
,
0%
,
100%
,
0.2
);
--code-background
:
hsla
(
0
,
0%
,
100%
,
0.05
);
--breadcrumb-font-color
:
#8c8c8e
;
--brief-color
:
hsla
(
0
,
0%
,
100%
,
0.4
);
--copy-icon-color
:
hsla
(
0
,
0%
,
100%
,
0.6
);
--copy-icon-hover-color
:
#fff
;
--active-tab-border-color
:
var
(
--default-font-color
);
--inactive-tab-border-color
:
hsla
(
0
,
0%
,
100%
,
0.4
);
--active-section-color
:
var
(
--default-font-color
);
--inactive-section-color
:
hsla
(
0
,
0%
,
100%
,
0.4
);
--navigation-highlight-color
:
rgba
(
255
,
255
,
255
,
0.05
);
--footer-background
:
hsla
(
0
,
0%
,
100%
,
0.05
);
--footer-font-color
:
hsla
(
0
,
0%
,
100%
,
0.6
);
--footer-go-to-top-color
:
var
(
--footer-font-color
);
--sidemenu-section-active-color
:
var
(
--color-dark
);
}
/* /---dark theme --- */
.root
{
display
:
flex
;
flex-direction
:
column
;
height
:
100%
;
}
/* --- Layout styles --- */
#container
{
display
:
flex
;
flex
:
1
1
auto
;
min-height
:
0
;
/* full height exclude header */
}
#container
>
#main
{
overflow
:
auto
;
}
#main
{
display
:
flex
;
flex-direction
:
column
;
flex
:
1
1
0
;
/* full width, but no affects for sidebar */
}
/* /--- Layout styles --- */
/* --- Main Content styles --- */
.main-content
{
padding-bottom
:
var
(
--bottom-spacing
);
margin-left
:
auto
;
margin-right
:
auto
;
max-width
:
var
(
--max-width
);
width
:
100%
;
z-index
:
0
;
}
.main-content
>
*
{
margin-left
:
var
(
--horizontal-spacing-for-content
);
margin-right
:
var
(
--horizontal-spacing-for-content
);
}
.main-content
.content
>
hr
{
margin
:
30px
0
;
border-top
:
3px
double
#8c8b8b
;
}
.main-content
:is
(
h1
,
h2
)
{
font-weight
:
530
;
}
/* /--- Main Content styles --- */
/* /--- Breadcrumbs styles --- */
.breadcrumbs
,
.breadcrumbs
a
,
.breadcrumbs
a
:hover
{
margin-top
:
var
(
--breadcrumb-margin
);
color
:
var
(
--breadcrumb-font-color
);
overflow-wrap
:
break-word
;
}
.breadcrumbs
.delimiter
{
margin
:
auto
2px
;
}
.breadcrumbs
.current
{
color
:
var
(
--default-font-color
);
}
/* /--- Breadcrumbs styles --- */
.cover
>
.platform-hinted
{
padding-bottom
:
12px
;
}
.cover
{
display
:
flex
;
flex-direction
:
column
;
}
.cover
.platform-hinted.with-platform-tabs
.sourceset-dependent-content
>
.block
~
.symbol
{
padding-top
:
16px
;
padding-left
:
0
;
}
.cover
.sourceset-dependent-content
>
.block
{
padding
:
16px
0
;
font-size
:
18px
;
line-height
:
28px
;
}
.cover
.platform-hinted.with-platform-tabs
.sourceset-dependent-content
>
.block
{
padding
:
0
;
font-size
:
var
(
--default-font-size
);
}
.cover
~
.divergent-group
{
margin-top
:
24px
;
padding
:
24px
8px
8px
8px
;
}
.cover
~
.divergent-group
.main-subrow
.symbol
{
width
:
100%
;
}
.main-content
p
.paragraph
,
.sample-container
,
blockquote
,
.content
>
.symbol
{
margin-top
:
8px
;
}
blockquote
,
.content
>
.symbol
:first-of-type
,
p
.paragraph
:first-child
,
.brief
p
.paragraph
{
margin-top
:
0
;
}
.content
.kdoc-tag
>
p
.paragraph
{
margin-top
:
0
;
}
.content
h4
{
margin-bottom
:
0
;
}
.divergent-group
{
background-color
:
var
(
--background-color
);
padding
:
16px
0
8px
0
;
margin-bottom
:
2px
;
}
.divergent-group
.table-row
,
tbody
>
tr
{
border-bottom
:
1px
solid
var
(
--border-color
);
}
.divergent-group
.table-row
:last-of-type
,
tbody
>
tr
:last-of-type
{
border-bottom
:
none
;
}
.title
>
.divergent-group
:first-of-type
{
padding-top
:
0
;
}
.sample-container
,
div
.CodeMirror
{
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
}
code
.paragraph
{
display
:
block
;
}
.strikethrough
{
text-decoration
:
line-through
;
}
/* Workaround for Firefox https://github.com/Kotlin/dokka/issues/3156 */
@-moz-document
url-prefix
()
{
.strikethrough
{
position
:
relative
;
text-decoration
:
none
;
}
/* complex selectors here are required to handle multiline cases */
.strikethrough
::after
,
.strikethrough
span
:after
{
content
:
''
;
position
:
absolute
;
top
:
7px
;
left
:
0
;
right
:
0
;
height
:
1px
;
background-color
:
currentColor
;
z-index
:
1
;
}
}
.symbol
:empty
{
padding
:
0
;
}
.symbol
:not
(
.token
),
code
{
background-color
:
var
(
--code-background
);
align-items
:
center
;
box-sizing
:
border-box
;
white-space
:
pre-wrap
;
font-family
:
var
(
--default-monospace-font-family
);
font-size
:
var
(
--default-font-size
);
}
.symbol
:not
(
.token
),
code
.block
{
display
:
block
;
padding
:
12px
32px
12px
12px
;
border-radius
:
8px
;
line-height
:
24px
;
position
:
relative
;
}
code
{
overflow-x
:
auto
;
max-width
:
100%
;
}
code
:not
(
.block
)
{
display
:
inline-block
;
vertical-align
:
bottom
;
}
.symbol
>
a
{
color
:
var
(
--hover-link-color
);
}
.copy-icon
{
cursor
:
pointer
;
}
.sample-container
span
.copy-icon
{
display
:
none
;
}
.js
.sample-container
:hover
span
.copy-icon
{
display
:
inline-block
;
}
.sample-container
span
.copy-icon
::before
{
width
:
24px
;
height
:
24px
;
display
:
inline-block
;
content
:
''
;
/* masks are required if you want to change color of the icon dynamically instead of using those provided with the SVG */
-webkit-mask
:
url("../images/copy-icon.svg")
no-repeat
50%
50%
;
mask
:
url("../images/copy-icon.svg")
no-repeat
50%
50%
;
-webkit-mask-size
:
cover
;
mask-size
:
cover
;
background-color
:
var
(
--copy-icon-color
);
}
.sample-container
span
.copy-icon
:hover::before
{
background-color
:
var
(
--copy-icon-hover-color
);
}
.copy-popup-wrapper
{
display
:
none
;
align-items
:
center
;
position
:
absolute
;
z-index
:
1000
;
background
:
var
(
--background-color
);
font-weight
:
normal
;
font-family
:
var
(
--default-font-family
);
width
:
max-content
;
font-size
:
var
(
--default-font-size
);
cursor
:
default
;
border
:
1px
solid
#D8DCE1
;
box-sizing
:
border-box
;
box-shadow
:
0
5px
10px
var
(
--ring-popup-shadow-color
);
border-radius
:
3px
;
color
:
var
(
--default-font-color
);
}
.copy-popup-wrapper
>
.copy-popup-icon
::before
{
content
:
url("../images/copy-successful-icon.svg")
;
padding
:
8px
;
}
.copy-popup-wrapper
>
.copy-popup-icon
{
position
:
relative
;
top
:
3px
;
}
.copy-popup-wrapper.popup-to-left
{
/* since it is in position absolute we can just move it to the left to make it always appear on the left side of the icon */
left
:
-15em
;
}
.table-row
:hover
.copy-popup-wrapper.active-popup
,
.sample-container
:hover
.copy-popup-wrapper.active-popup
{
display
:
flex
!important
;
}
.copy-popup-wrapper
:hover
{
font-weight
:
normal
;
}
.copy-popup-wrapper
>
span
:last-child
{
padding-right
:
14px
;
}
.symbol
.top-right-position
,
.sample-container
.top-right-position
{
/* it is important for a parent to have a position: relative */
position
:
absolute
;
top
:
8px
;
right
:
8px
;
overflow-wrap
:
break-word
;
word-break
:
break-word
;
}
.brief
{
white-space
:
pre-wrap
;
overflow
:
hidden
;
}
h1
.cover
{
font-size
:
52px
;
line-height
:
56px
;
letter-spacing
:
-1.5px
;
margin-bottom
:
0
;
padding-bottom
:
32px
;
display
:
block
;
}
@media
(
max-width
:
1119px
)
{
h1
.cover
{
font-size
:
48px
;
line-height
:
48px
;
padding-bottom
:
8px
;
}
}
@media
(
max-width
:
759px
)
{
h1
.cover
{
font-size
:
32px
;
line-height
:
32px
;
}
}
.UnderCoverText
{
font-size
:
16px
;
line-height
:
28px
;
}
.UnderCoverText
code
{
font-size
:
inherit
;
}
.UnderCoverText
table
{
margin
:
8px
0
8px
0
;
word-break
:
break-word
;
}
@media
(
max-width
:
960px
)
{
.UnderCoverText
table
{
display
:
block
;
word-break
:
normal
;
overflow
:
auto
;
}
}
.main-content
a
:not
([
data-name
])
{
padding-bottom
:
2px
;
border-bottom
:
1px
solid
var
(
--border-color
);
cursor
:
pointer
;
text-decoration
:
none
;
color
:
inherit
;
font-size
:
inherit
;
line-height
:
inherit
;
transition
:
color
.1s
,
border-color
.1s
;
overflow-wrap
:
break-word
;
word-break
:
break-word
;
}
.main-content
a
:hover
{
border-bottom-color
:
unset
;
color
:
inherit
}
a
small
{
font-size
:
11px
;
margin-top
:
-0.6em
;
display
:
block
;
}
p
.paragraph
img
{
display
:
block
;
}
.deprecation-content
{
margin
:
20px
10px
;
border
:
1px
solid
var
(
--border-color
);
padding
:
13px
15px
16px
15px
;
}
.deprecation-content
>
h3
{
margin-top
:
0
;
margin-bottom
:
0
;
}
.deprecation-content
>
h4
{
font-size
:
16px
;
margin-top
:
15px
;
margin-bottom
:
0
;
}
.deprecation-content
code
.block
{
padding
:
5px
10px
;
display
:
inline-block
;
}
.deprecation-content
.footnote
{
margin-left
:
25px
;
font-size
:
13px
;
font-weight
:
bold
;
display
:
block
;
}
.deprecation-content
.footnote
>
p
{
margin
:
0
;
}
[
data-filterable-current
=
''
]
{
display
:
none
!important
;
}
td
.content
{
padding-left
:
24px
;
padding-top
:
16px
;
display
:
flex
;
flex-direction
:
column
;
}
.main-subrow
{
display
:
flex
;
flex-direction
:
row
;
padding
:
0
;
flex-wrap
:
wrap
;
}
.main-subrow
>
div
{
margin-bottom
:
8px
;
}
.main-subrow
>
div
>
span
{
display
:
flex
;
position
:
relative
;
}
.js
.main-subrow
:hover
.anchor-icon
{
opacity
:
1
;
transition
:
0.2s
;
}
.main-subrow
.anchor-icon
{
opacity
:
0
;
transition
:
0.2s
0.5s
;
}
.main-subrow
.anchor-icon
::before
{
content
:
url("../images/anchor-copy-button.svg")
;
}
.main-subrow
.anchor-icon
:hover
{
cursor
:
pointer
;
}
.main-subrow
.anchor-icon
:hover
>
svg
path
{
fill
:
var
(
--hover-link-color
);
}
@media
(
hover
:
none
)
{
.main-subrow
.anchor-icon
{
display
:
none
;
}
}
.main-subrow
.anchor-wrapper
{
position
:
relative
;
width
:
24px
;
height
:
16px
;
margin-left
:
3px
;
}
.inline-flex
{
display
:
inline-flex
;
}
/* Work around an issue: https://github.com/JetBrains/kotlin-playground/issues/91
Applies for main description blocks with platform tabs.
Just in case of possible performance degradation it excluding tabs with briefs on classlike page */
#content
>
div
:not
(
.tabbedcontent
)
.sourceset-dependent-content
:not
([
data-active
])
{
display
:
block
!important
;
visibility
:
hidden
;
height
:
0
;
position
:
fixed
;
top
:
0
;
}
.with-platform-tags
{
display
:
flex
;
}
.with-platform-tags
~
.main-subrow
{
padding-top
:
8px
;
}
.cover
.with-platform-tabs
{
font-size
:
var
(
--default-font-size
);
}
.cover
>
.with-platform-tabs
>
.content
{
padding
:
8px
16px
;
border
:
1px
solid
var
(
--border-color
);
}
.cover
>
.block
{
padding-top
:
48px
;
padding-bottom
:
24px
;
font-size
:
18px
;
line-height
:
28px
;
}
.cover
>
.block
:empty
{
padding-bottom
:
0
;
}
.parameters.wrapped
>
.parameter
{
display
:
block
;
}
.table-row
.inline-comment
{
padding-top
:
8px
;
padding-bottom
:
8px
;
}
.table-row
.platform-hinted
.sourceset-dependent-content
.brief
,
.table-row
.platform-hinted
.sourceset-dependent-content
.inline-comment
{
padding
:
8px
;
}
.table
{
display
:
flex
;
flex-direction
:
column
;
}
.table-row
{
display
:
flex
;
flex-direction
:
column
;
border-bottom
:
1px
solid
var
(
--border-color
);
padding
:
11px
0
12px
0
;
background-color
:
var
(
--background-color
);
}
.table-row
:last-of-type
{
border-bottom
:
none
;
}
.table-row
.brief-comment
{
color
:
var
(
--brief-color
);
}
.platform-dependent-row
{
display
:
grid
;
padding-top
:
8px
;
}
.title-row
{
display
:
grid
;
grid-template-columns
:
auto
auto
7em
;
width
:
100%
;
}
@media
print
,
(
min-width
:
960px
)
{
.title-row
{
grid-template-columns
:
20%
auto
7em
;
}
}
.keyValue
{
display
:
grid
;
grid-gap
:
8px
;
}
@media
print
,
(
min-width
:
960px
)
{
.keyValue
{
grid-template-columns
:
20%
80%
;
}
.keyValue
>
div
:first-child
{
word-break
:
break-word
;
}
}
@media
print
,
(
max-width
:
960px
)
{
div
.wrapper
{
width
:
auto
;
margin
:
0
;
}
header
,
section
,
footer
{
float
:
none
;
position
:
static
;
width
:
auto
;
}
header
{
padding-right
:
320px
;
}
section
{
border
:
1px
solid
#e5e5e5
;
border-width
:
1px
0
;
padding
:
20px
0
;
margin
:
0
0
20px
;
}
header
a
small
{
display
:
inline
;
}
header
ul
{
position
:
absolute
;
right
:
50px
;
top
:
52px
;
}
}
.anchor-highlight
{
border
:
1px
solid
var
(
--hover-link-color
)
!important
;
box-shadow
:
0
0
0
0.2em
#c8e1ff
;
margin-top
:
0.2em
;
margin-bottom
:
0.2em
;
}
.filtered-message
{
margin
:
25px
;
font-size
:
20px
;
font-weight
:
bolder
;
}
div
.runnablesample
{
height
:
fit-content
;
}
/* --- footer --- */
.footer
{
clear
:
both
;
display
:
flex
;
align-items
:
center
;
position
:
relative
;
min-height
:
var
(
--footer-height
);
font-size
:
12px
;
line-height
:
16px
;
letter-spacing
:
0.2px
;
color
:
var
(
--footer-font-color
);
margin-top
:
auto
;
background-color
:
var
(
--footer-background
);
}
.footer--button
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
40px
;
height
:
40px
;
border-radius
:
50%
;
background-color
:
var
(
--footer-go-to-top-color
);
background-repeat
:
no-repeat
;
background-position
:
50%
50%
;
padding
:
0
;
border
:
none
;
cursor
:
pointer
;
font-size
:
0
;
line-height
:
0
;
transition
:
background-color
200ms
ease-in-out
;
will-change
:
background-color
;
}
.footer--button
:hover
{
opacity
:
0.9
;
}
.footer--button_go-to-top
{
background-image
:
url("../images/go-to-top-icon.svg")
;
margin-left
:
var
(
--horizontal-spacing-for-content
);
margin-right
:
8px
;
}
.footer--link
{
display
:
inline-flex
;
align-items
:
center
;
color
:
var
(
--breadcrumb-font-color
);
}
.footer--link_external
:after
{
content
:
''
;
width
:
12px
;
height
:
12px
;
margin-left
:
4px
;
margin-right
:
var
(
--horizontal-spacing-for-content
);
background-image
:
url("../images/footer-go-to-link.svg")
;
background-repeat
:
no-repeat
;
background-position
:
50%
50%
;
}
/* /--- footer --- */
\ No newline at end of file
mapapi/src/main/java/com/cusc/map/map2d/DrawInMap.kt
View file @
99e022f0
...
...
@@ -63,7 +63,7 @@ object DrawInMap : MsOperationParent() {
* 绘制 marker 点
* @param lat 纬度坐标
* @param lng 经度坐标
* @return
MS
Marker 标记点对象
* @return Marker 标记点对象
*/
fun
drawMarket
(
lat
:
Double
,
...
...
@@ -83,25 +83,25 @@ object DrawInMap : MsOperationParent() {
/**
* 绘制线
* @param m
s
LatLng 坐标点集合
* @param mLatLng 坐标点集合
* @param msPolylineOptions 绘制线选项
* @return M
S
Overlay 覆盖物对象
* @return M
ap
Overlay 覆盖物对象
*/
fun
drawPolyline
(
m
s
LatLng
:
List
<
LatLng
>,
msPolylineOptions
:
PolylineOptions
mLatLng
:
List
<
LatLng
>,
msPolylineOptions
:
PolylineOptions
):
MapOverlay
{
val
mapReadView
=
getMapReadView
()
when
(
MapSdkInit
.
getMapType
())
{
MAP_TYPE
.
MINE
->
{
return
MineDrawInMap
.
drawPolyline
(
mapReadView
,
m
s
LatLng
,
mLatLng
,
msPolylineOptions
)
}
MAP_TYPE
.
AMAP
->
{
return
AmapDrawInMap
.
drawPolyline
(
mapReadView
,
m
s
LatLng
,
msPolylineOptions
)
return
AmapDrawInMap
.
drawPolyline
(
mapReadView
,
mLatLng
,
msPolylineOptions
)
}
}
}
...
...
@@ -110,7 +110,7 @@ object DrawInMap : MsOperationParent() {
* 绘制圆形
* @param center 中心点坐标
* @param msCircleOptions 绘制圆形选项
* @return M
S
Overlay 返回覆盖物对象
* @return M
ap
Overlay 返回覆盖物对象
*/
fun
drawCircle
(
center
:
LatLng
,
...
...
@@ -137,11 +137,11 @@ object DrawInMap : MsOperationParent() {
/**
* 绘制多边形
* @param m
s
LatLng 添加多边形顶点坐标集合
* @param mLatLng 添加多边形顶点坐标集合
* @param msPolygonOptions 多边形绘制选型
*/
fun
drawPolygon
(
m
s
LatLng
:
List
<
LatLng
>,
mLatLng
:
List
<
LatLng
>,
msPolygonOptions
:
PolygonOptions
):
MapOverlay
{
val
mapReadView
=
getMapReadView
()
...
...
@@ -149,14 +149,14 @@ object DrawInMap : MsOperationParent() {
MAP_TYPE
.
MINE
->
{
return
MineDrawInMap
.
drawPolygon
(
mapReadView
,
m
s
LatLng
,
mLatLng
,
msPolygonOptions
)
}
MAP_TYPE
.
AMAP
->
{
return
AmapDrawInMap
.
drawPolygon
(
mapReadView
,
m
s
LatLng
,
mapReadView
,
mLatLng
,
msPolygonOptions
)
}
...
...
mapapi/src/main/java/com/cusc/map/map2d/PoiSearch.kt
View file @
99e022f0
...
...
@@ -5,7 +5,7 @@ import com.cusc.map.map2d.inters.OnPoiSearchLis
import
com.cusc.map.map2d.mine.MinePoiSearch
/**
*
p
oi 搜索
*
P
oi 搜索
*/
object
PoiSearch
{
...
...
mapapi/src/main/java/com/cusc/map/scenario/PerceptionManager.kt
View file @
99e022f0
...
...
@@ -8,7 +8,7 @@ import com.cusc.map.parkroad.ParkRoad
import
com.cusc.map.parkroad.PtcBean
import
com.cusc.map.scenario.bean.Percept
/**
*
感知物管理**/
/**感知物管理**/
object
PerceptionManager
{
/**更新感知物位置
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment