{"id":463194,"date":"2025-06-13T10:26:51","date_gmt":"2025-06-13T10:26:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=463194"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=463194","title":{"rendered":"<span>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0433\u043e \u0442\u0443\u043b\u0442\u0438\u043f\u0430 Jetpack Compose<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u043b\u044c\u0431\u0435\u0440\u0442 \u0425\u0430\u043d\u043d\u0430\u043d\u043e\u0432, \u044f Android-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0440\u0430\u0441\u0441\u0440\u043e\u0447\u043a\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 Wildberries.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0443\u043b\u0442\u0438\u043f\u043e\u0432 \u043d\u0430 Jetpack Compose \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438.<\/p>\n<p>\u0412 \u043c\u0438\u0440\u0435 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0438 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0438\u0433\u0440\u0430\u044e\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u0440\u043e\u043b\u044c. \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0442\u0443\u043b\u0442\u0438\u043f\u044b. <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0433\u0438\u0431\u043a\u0443\u044e \u0438 \u0443\u0434\u043e\u0431\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0442\u0443\u043b\u0442\u0438\u043f\u043e\u0432 \u0432 Jetpack Compose, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440\u044b \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a. \u041c\u044b \u0448\u0430\u0433 \u0437\u0430 \u0448\u0430\u0433\u043e\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0438\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u043e\u043c.<\/p>\n<h3>\u0427\u0442\u043e \u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0435?<\/h3>\n<p>\u0422\u0443\u043b\u0442\u0438\u043f \u2014 \u044d\u0442\u043e \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u0435\u0440\u0445 \u0434\u0440\u0443\u0433\u043e\u0433\u043e UI \u043f\u043e\u0434\/\u043d\u0430\u0434 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c. \u041f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c UX.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c96\/b49\/1f4\/c96b491f428db679ce42e069936937db.png\" alt=\"\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0443\u043b\u0442\u0438\u043f\" title=\"\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0443\u043b\u0442\u0438\u043f\" width=\"1600\" height=\"900\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/c96\/b49\/1f4\/c96b491f428db679ce42e069936937db.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c96\/b49\/1f4\/c96b491f428db679ce42e069936937db.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0443\u043b\u0442\u0438\u043f<\/figcaption><\/div>\n<\/figure>\n<h3>\u0427\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f?<\/h3>\n<p>\u041d\u0430\u0448 \u0442\u0443\u043b\u0442\u0438\u043f \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043c\u0435\u0442\u044c:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u044f\u043a\u043e\u0440\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u0432 \u0432\u0438\u0434\u0435 \u043e\u0431\u043b\u0430\u0447\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u044b \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c UI<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u0412\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"bordered\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4bb\/ba9\/da0\/4bbba9da01b7caef4d6263ecd0ec1bba.gif\" alt=\"\u041a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c\" title=\"\u041a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c\" width=\"442\" height=\"962\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4bb\/ba9\/da0\/4bbba9da01b7caef4d6263ecd0ec1bba.gif 780w,&#10;       https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4bb\/ba9\/da0\/4bbba9da01b7caef4d6263ecd0ec1bba.gif 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c<\/figcaption><\/div>\n<\/figure>\n<\/div>\n<\/details>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0443\u0442?<\/h3>\n<p>Material 3 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u043c Composable \u0432\u0438\u0434\u0436\u0435\u0442 TooltipBox:<\/p>\n<pre><code class=\"kotlin\">fun TooltipBox(     positionProvider: PopupPositionProvider,     tooltip: @Composable TooltipScope.() -&gt; Unit,     state: TooltipState,     modifier: Modifier = Modifier,     focusable: Boolean = true,     enableUserInput: Boolean = true,     content: @Composable () -&gt; Unit, )<\/code><\/pre>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0443\u043b\u0438\u043f, \u043c\u044b \u0432\u043d\u0435\u0434\u0440\u044f\u0435\u043c \u044d\u0442\u043e\u0442 TooltipBox, \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 tooltip \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0434\u043b\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u0430, \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 content \u2014 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0443\u043b\u0442\u0438\u043f. \u0412\u0441\u0435 \u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e, \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432 \u043f\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0442\u0443\u043b\u0442\u0438\u043f\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d, \u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438:<\/p>\n<ol>\n<li>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0443\u043b\u0442\u0438\u043f, \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u044d\u043a\u0440\u0430\u043d\u043e\u043c. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u043a\u043e\u0441\u043d\u0435\u043c\u0441\u044f \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u0442\u043e \u0442\u0443\u043b\u0442\u0438\u043f \u0441\u043a\u0440\u043e\u0435\u0442\u0441\u044f, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0442\u043e\u0440\u044b\u043c \u043a\u0430\u0441\u0430\u043d\u0438\u0435\u043c \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u044d\u043a\u0440\u0430\u043d\u043e\u043c. \u042d\u0442\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u043c \u0441\u043a\u0440\u043e\u043b\u043b \u0438 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0447\u0435\u043c \u0431\u044b \u0442\u043e \u043d\u0438 \u0431\u044b\u043b\u043e, \u043a\u0440\u043e\u043c\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0442\u0443\u043b\u0442\u0438\u043f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Popup. \u0410 \u044d\u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0448\u0435 \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435. \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0442\u043e, \u0447\u0442\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0443\u043b\u0442\u0438\u043f \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 TopBar \u0438\u043b\u0438 \u043f\u043e\u0434 BottomBar.<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0430\u043a\u0438\u0445-\u0442\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u044f \u043d\u0430\u0448\u0435\u043b <a href=\"https:\/\/github.com\/skgmn\/ComposeTooltip\">\u0440\u0430\u0437<\/a>\u2026 \u0438\u2026 \u0432\u0441\u0451. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437 \u044d\u0442\u0430 \u043b\u0438\u0431\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0430\u0441\u044c 4(!) \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435, \u0437\u0430\u0447\u0435\u043c \u0438\u0441\u043a\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u043e\u043c\u0443 <s>\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434<\/s>?<\/p>\n<h3>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440<\/h3>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0438 \u0432 \u0446\u0435\u043b\u044f\u0445 \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u044f \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u0434\u0430, \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0443\u043b\u0442\u0438\u043f\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u043a\u0440\u0430\u043d\u0430. \u042d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u043b\u0435\u043d\u0438\u0432\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u0430\u0445, \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0447\u0435\u0440\u0435\u0437 <code>composed<\/code>, \u0430 \u043d\u0435 <code>Modifier.Node<\/code>.  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0437\u0430\u0439\u0434\u0435\u0442, \u0442\u043e \u0441\u0434\u0435\u043b\u0430\u044e \u0432\u0442\u043e\u0440\u0443\u044e \u0447\u0430\u0441\u0442\u044c, \u0433\u0434\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u043c \u0442\u043e, \u0447\u0442\u043e \u043d\u0435 \u0434\u043e\u0431\u0440\u0430\u043b\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u0422\u0430\u043a\u0436\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u0436\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043a\u043e\u0434\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c \u0441\u0432\u0435\u0440\u0445\u0443 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p><strong>\u0412\u0430\u0436\u043d\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, <strong>\u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <\/strong>\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 <s>\u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u0448\u0435\u043b \u043c\u043d\u0435 \u043d\u0430 \u0443\u043c<\/s> \u044f \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043b \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0437\u0430\u0434\u0430\u0447.<\/p>\n<h3>\u0425\u0430\u0440\u0434\u041a\u043e\u0434<\/h3>\n<p>\u0418\u0442\u0430\u043a, \u0435\u0449\u0435 \u0440\u0430\u0437 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043c\u0435\u0442\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0448 \u0442\u0443\u043b\u0442\u0438\u043f:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u044f\u043a\u043e\u0440\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c<\/p>\n<\/li>\n<li>\n<p>\u0411\u044b\u0442\u044c \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0432\u0438\u0434\u0438\u043c\u044b\u043c<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u0447\u0435\u0437\u0430\u0442\u044c \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043d\u0435\u0433\u043e \u0438 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043d\u043e\u043f\u043a\u0443 (\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u044d\u0442\u043e \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043d\u043e\u043f\u043a\u0443<\/p>\n<\/li>\n<li>\n<p>\u0411\u0435\u0437 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u044b<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c UI<\/p>\n<\/li>\n<\/ol>\n<p>\u0412\u0441\u044f \u0437\u0430\u0434\u0443\u043c\u043a\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0431\u043b\u043e\u043a-\u043e\u0431\u0435\u0440\u0442\u043a\u0430, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0443 \u043b\u044e\u0431\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043c\u043e\u0436\u0435\u043c \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0442\u0443\u043b\u0442\u0438\u043f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a \u043d\u0435\u043c\u0443 \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440\u0430.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a \u0434\u0430\u043b\u0435\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0431\u043b\u043e\u043a-\u043e\u0431\u0435\u0440\u0442\u043a\u0430, \u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0443\u043b\u0442\u0438\u043f \u2014 \u044f\u043a\u043e\u0440\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442.<\/p>\n<p>\u0412\u0441\u0435\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c 4 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<ol>\n<li>\n<p><code>Tooltip.kt<\/code> \u2014 \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c Composable \u0432\u0435\u0440\u0441\u0442\u043a\u0430 \u0442\u0443\u043b\u0442\u0438\u043f\u0430.<\/p>\n<\/li>\n<li>\n<p><code>TooltipWrapper.kt<\/code> \u2014 \u0431\u043b\u043e\u043a-\u043e\u0431\u0435\u0440\u0442\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><code>TooltipModifier.kt<\/code> \u2014 \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440 \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u0430.<\/p>\n<\/li>\n<li>\n<p><code>TooltipState.kt<\/code> \u2014 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u0443\u043b\u0442\u0438\u043f\u0435 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0433\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c\u0441\u044f \u0441 TooltipState, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2014 \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u043b\u044f \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/p>\n<pre><code class=\"kotlin\">@Composable fun rememberTooltipState(): TooltipState = remember { TooltipState() }  @Stable class TooltipState internal constructor() {     \/\/ \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u043b\u043e\u043a\u0430-\u043e\u0431\u0435\u0440\u0442\u043a\u0438     \/\/ \u0434\u043b\u0438\u043d\u0430 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0431\u043b\u043e\u043a\u0430. \u041d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0448\u0438\u0440\u0438\u043d\u0443 \u0442\u0443\u043b\u0442\u0438\u043f\u0430    internal var tooltipWrapperWidth: Int by mutableIntStateOf(0)    \/\/ \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u0434\u043b\u044f \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0431\u043b\u043e\u043a\u0430. \u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043c, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430    private var tooltipWrapperLayoutCoordinated: LayoutCoordinates? = null         \/\/ \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0442\u0443\u043b\u0442\u0438\u043f\u0430       \/\/ \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0442\u0443\u043b\u0442\u0438\u043f\u0435: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0441\u0430\u0431\u0442\u0430\u0439\u0442\u043b    internal var data: TooltipData? by mutableStateOf(null)     \/\/ \u0432\u0438\u0434\u0438\u043c \u043b\u0438 \u0442\u0443\u043b\u0442\u0438\u043f \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442    internal var isVisible: Boolean by mutableStateOf(false)     \/\/ \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430    internal var tooltipOffset: IntOffset by mutableStateOf(IntOffset.Zero)    \/\/ \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430. \u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043c, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430    private var tooltipLayoutCoordinates: LayoutCoordinates? = null     \/\/ \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043f\u0438\u043f\u043e\u0447\u043a\u0438 \u0442\u0443\u043b\u0442\u0438\u043f\u0430    private var triangleXOffset: Int = 0         \/\/ \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430     \/\/ \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043c, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435     internal var anchorLayoutCoordinates: LayoutCoordinates? by mutableStateOf(null) \u0442\u0443\u043b\u0442\u0438\u043f\u0430 }  @Stable data class TooltipData(    val title: String?,    val subtitle: String, )<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0431\u043b\u043e\u043a\u0430-\u043e\u0431\u0435\u0440\u0442\u043a\u0438:<\/p>\n<pre><code class=\"kotlin\">@Composable fun TooltipWrapper(    modifier: Modifier = Modifier,    content: @Composable BoxScope.(tooltipState: TooltipState) -&gt; Unit, ) {    val tooltipState = rememberTooltipState()     Box(        modifier = modifier            \/\/ \u0421\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0445\u043e\u0434\u044f\u0442 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b Box            .clipToBounds()            \/\/ \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u0432 \u0441\u0442\u0435\u0439\u0442            .onGloballyPositioned { tooltipState.changeTooltipWrapperLayoutCoordinates(it) },    ) {        content(tooltipState)         Tooltip(state = tooltipState)    } }  <\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440\u0430. \u0412 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u043c \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440\u0435 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043c\u0435\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u0430 (\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043f\u043e\u0434\u043f\u0438\u0441\u044c) \u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u044f\u043a\u043e\u0440\u043d\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435.<\/p>\n<pre><code class=\"kotlin\">@Stable private fun Modifier.tooltipInternal(    state: TooltipState,    subtitle: String,    @DrawableRes dismissIconResource: Int? = null,    title: String? = null,    initialVisibility: Boolean = false, ): Modifier = composed {    LaunchedEffect(Unit) {        state.initialize(            data = TooltipData(                title = title,                subtitle = subtitle,                dismissIconResource = dismissIconResource,            ),            initialVisibility = initialVisibility,        )    }     this.onGloballyPositioned {        state.changeAnchorLayoutCoordinates(layoutCoordinates = it)    } }<\/code><\/pre>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e LaunchedEffect \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c init \u0435\u0434\u0438\u043d\u043e\u0436\u0434\u044b \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0435\u0439\u0442. \u0422\u0430\u043a\u0436\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u043c \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 c \u043f\u043e\u043c\u043e\u0449\u044c\u044e onGloballyPositioned. \u0412\u0430\u0436\u043d\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0442\u0430\u043a \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043b\u0435\u043d\u0438\u0432\u044b\u043c\u0438 \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u043d\u0438\u043c\u0438 <code>LaunchedEffect<\/code> \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0438\u0434\u0436\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043a\u0440\u0435\u043f\u043b\u044f\u0442\u044c\u0441\u044f \u0438 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0442\u044c\u0441\u044f \u043a \u0432\u0435\u0440\u0441\u0442\u043a\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u043a\u0440\u043e\u043b\u043b\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0432\u0435\u0440\u0441\u0442\u043a\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u0443\u043b\u0442\u0438\u043f\u0430:<\/p>\n<pre><code class=\"kotlin\">@Composable internal fun Tooltip(state: TooltipState) {    val data = state.data     val animatedTriangleVisibility by animateFloatAsState(        targetValue = if (state.isVisible) 1f else 0f,        animationSpec = tween(300)    )     \/\/ \u0415\u0441\u043b\u0438 \u0442\u0443\u043b\u0442\u0438\u043f \u043d\u0435 \u0432\u0438\u0434\u0435\u043d \u0438\u043b\u0438 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0440\u0438\u0441\u0443\u0435\u043c    if (animatedTriangleVisibility == 0f || data == null || state.anchorLayoutCoordinates == null) return      \/\/ \u0432\u044b\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0448\u0438\u0440\u0438\u043d\u0443 \u0442\u0443\u043b\u0442\u0438\u043f\u0430. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u0442 70% \u043e\u0442 \u0448\u0438\u0440\u0438\u043d\u044b \u0431\u043b\u043e\u043a\u0430 \u0434\u043b\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u043e\u0432    val maxTooltipWidth = LocalDensity.current.run {       (state.tooltipWrapperWidth * .7f).toDp()    }     Column(        modifier = Modifier            .widthIn(max = maxTooltipWidth)            \/\/ \u0441\u043c\u0435\u0449\u0430\u0435\u043c \u0442\u0443\u043b\u0442\u0438\u043f \u043d\u0430 \u0440\u0430\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0435 \u0432 \u0441\u0442\u0435\u0439\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435            .offset { state.tooltipOffset }            \/\/ \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430            .onGloballyPositioned { state.changeTooltipLayoutCoordinates(it) }            \/\/ \u0440\u0438\u0441\u0443\u0435\u043c \u043f\u0438\u043f\u043e\u0447\u043a\u0443 \u0441\u0432\u0435\u0440\u0445\u0443 \u0442\u0443\u043b\u0442\u0438\u043f\u0430            .drawBehind {                val path = state.getTrianglePath()                drawPath(                    path = path,                    alpha = animatedTriangleVisibility,                    color = Color(0xFF18181B),                )            }            \/\/ \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0442\u0443\u043b\u0442\u0438\u043f\u0430 \u0434\u043b\u044f \u043f\u043b\u0430\u0432\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0430\u0434 \u043d\u0438\u043c            .graphicsLayer { alpha = animatedTriangleVisibility }            \/\/ \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0442\u0443\u043b\u0442\u0438\u043f \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043d\u0435\u0433\u043e            .clickable(onClick = state::hide)             .clip(RoundedCornerShape(16.dp))            .background(Color(0xFF18181B))            .padding(vertical = 12.dp, horizontal = 16.dp),    ) {        Row {            if (data.title != null) {                Text(                    text = data.title,                    fontSize = 20.sp,                    fontWeight = FontWeight.Bold,                    color = MaterialTheme.colorScheme.onPrimary                )            }             if (data.dismissIconResource != null) {                Icon(                    modifier = Modifier.clickable(onClick = state::hide),                    painter = painterResource(data.dismissIconResource),                    contentDescription = \"\",                    tint = Color.White,                )            }        }         Text(            text = data.subtitle,            color = MaterialTheme.colorScheme.onPrimary        )    } }<\/code><\/pre>\n<p>\u0421\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043f\u0435\u0440\u0435\u0434\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0432\u0441\u0435\u043c \u044d\u0442\u0438\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c. \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0441\u0442\u0435\u0439\u0442\u0430. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u0442\u0435\u0439\u0442\u0430.\u00a0<\/p>\n<pre><code class=\"kotlin\">@Stable class TooltipState internal constructor() {    \/\/...    fun hide() {        isVisible = false    }     fun show() {        isVisible = true    } }<\/code><\/pre>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u043d\u044f\u044e\u0442 \u043f\u043e\u043b\u0435 <code>isVisible<\/code>, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f UI \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0442\u0443\u043b\u0442\u0438\u043f\u0430.<\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e \u043c\u0435\u0442\u043e\u0434 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0443\u043b\u0442\u0438\u043f\u0430.<\/p>\n<pre><code class=\"kotlin\">@Stable class TooltipState internal constructor() {    \/\/...     internal fun initialize(        data: TooltipData,        initialVisibility: Boolean,    ) {        this.data = data         if (initialVisibility) {            show()        }     } }<\/code><\/pre>\n<p>\u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u0430, \u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u0435\u0433\u043e \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0432\u0441\u0435\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043b\u0435\u0439\u0430\u0443\u0442\u043e\u0432.<\/p>\n<pre><code class=\"kotlin\">@Stable class TooltipState internal constructor() {    \/\/...     internal fun changeTooltipWrapperLayoutCoordinates(layoutCoordinates: LayoutCoordinates) {       tooltipWrapperLayoutCoordinated = layoutCoordinates       tooltipWrapperWidth = layoutCoordinates.size.width        syncTooltipOffset()    }     internal fun changeAnchorLayoutCoordinates(layoutCoordinates: LayoutCoordinates) {       anchorLayoutCoordinates = layoutCoordinates        syncTooltipOffset()    }     internal fun changeTooltipLayoutCoordinates(layoutCoordinates: LayoutCoordinates) {       tooltipLayoutCoordinates = layoutCoordinates        syncTooltipOffset()    } }<\/code><\/pre>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043b\u0435\u0439\u0430\u0443\u0442\u043e\u0432:<\/p>\n<ol>\n<li>\n<p>\u0411\u043b\u043e\u043a\u0430-\u043e\u0431\u0435\u0440\u0442\u043a\u0438 TooltipWrapper (<code><strong>changeTooltipWrapperLayoutCoordinates<\/strong><\/code>)<\/p>\n<\/li>\n<li>\n<p>\u042f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (<code><strong>changeAnchorLayoutCoordinates<\/strong><\/code>)<\/p>\n<\/li>\n<li>\n<p>\u0421\u0430\u043c\u043e\u0433\u043e \u0442\u0443\u043b\u0442\u0438\u043f\u0430 (<code><strong>changeTooltipLayoutCoordinates<\/strong><\/code>)<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0442\u0443\u043b\u0442\u0438\u043f\u0430 \u2014 \u043c\u0435\u0442\u043e\u0434 <code>syncTooltipOffset()<\/code>. \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"kotlin\">@Stable class TooltipState internal constructor() {    \/\/...     private fun syncTooltipOffset() {       val tooltipWrapperLC = tooltipWrapperLayoutCoordinated ?: return        \/\/ \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430 \u043f\u043e\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e       val anchorWidgetDisplacement = anchorLayoutCoordinates?.let { anchorLC -&gt;            \/\/ \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 \u0431\u043b\u043e\u043a\u0430 TooltipWrapper. \u041e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043d\u0438\u0436\u0435           val parent = tooltipWrapperLC.localPositionOf(anchorLC, Offset.Zero)           val size = it.size            val x = parent.x + size.width \/ 2f           val y = parent.y + size.height           IntOffset(               x = x.toInt(),               y = y.toInt() + TRIANGLE_HEIGHT.toInt(),           )       } ?: IntOffset.Zero        \/\/ \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430 \u043d\u0430 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0448\u0438\u0440\u0438\u043d\u044b \u0442\u0443\u043b\u0442\u0438\u043f\u0430       val properDisplacement = tooltipLayoutCoordinates?.let {           IntOffset(it.size.center.x, 0)       } ?: IntOffset.Zero        val tooltipWidth = tooltipLayoutCoordinates?.size?.width ?: 0       \/\/ \u043b\u0435\u0432\u0430\u044f \u0432\u0435\u0440\u0445\u043d\u044f\u044f \u0442\u043e\u0447\u043a\u0430 \u0442\u0443\u043b\u0442\u0438\u043f\u0430       val newTopLeftOffset = anchorWidgetDisplacement - properDisplacement       \/\/ \u043f\u0440\u0430\u0432\u0430\u044f \u0432\u0435\u0440\u0445\u043d\u044f\u044f \u0442\u043e\u0447\u043a\u0430 \u0442\u0443\u043b\u0442\u0438\u043f\u0430       val newTopRightOffset = newTopLeftOffset + IntOffset(tooltipSize.width, 0)         \/\/ \u041d\u0443\u0436\u043d\u043e \u0443\u0447\u0435\u0441\u0442\u044c \u043a\u0435\u0439\u0441\u044b, \u0435\u0441\u043b\u0438 \u043d\u0430\u0448 \u0442\u0443\u043b\u0442\u0438\u043f \u0432\u044b\u0448\u0435\u043b \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0431\u043b\u043e\u043a\u0430 \u0438 \u0441\u043c\u0435\u0449\u0430\u0442\u044c \u0442\u0443\u043b\u0442\u0438\u043f \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043f\u043e\u043c\u0435\u0449\u0430\u043b\u0441\u044f        val resultDependWindowBoundaries = when {           \/\/ \u043a\u0435\u0439\u0441, \u043a\u043e\u0433\u0434\u0430 \u0442\u0443\u043b\u0442\u0438\u043f \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u043b\u0435\u0432\u0443\u044e \u0433\u0440\u0430\u043d\u0438\u0446\u0443           newTopLeftOffset.x &lt; 0 -&gt; {               triangleXOffset = newTopLeftOffset.x               IntOffset(0, newTopLeftOffset.y)           }             \/\/ \u041a\u0435\u0439\u0441, \u043a\u043e\u0433\u0434\u0430 \u0442\u0443\u043b\u0442\u0438\u043f \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u043f\u0440\u0430\u0432\u0443\u044e \u0433\u0440\u0430\u043d\u0438\u0446\u0443           newTopRightOffset.x &gt; tooltipWrapperWidth -&gt; {               triangleXOffset = newTopRightOffset.x - tooltipWrapperWidth               IntOffset(tooltipWrapperWidth - tooltipSize.width, newTopRightOffset.y)           }             \/\/ \u041a\u0435\u0439\u0441, \u043a\u043e\u0433\u0434\u0430 \u0442\u0443\u043b\u0442\u0438\u043f \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b           else -&gt; {               triangleXOffset = 0               newTopLeftOffset           }       }        tooltipOffset = resultDependWindowBoundaries    } }<\/code><\/pre>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u043d\u043e\u043c\u0435\u0440 11 <code>tooltipWrapperLC.localPositionOf(anchorLC, Offset.Zero)<\/code> <\/p>\n<p>\u0412\u0441\u0435\u0433\u043e \u0443 \u043d\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c 2 \u0441\u043b\u0443\u0447\u0430\u044f:<\/p>\n<ol>\n<li>\n<p>\u0411\u043b\u043e\u043a-\u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u2014 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435<\/p>\n<\/li>\n<li>\n<p>\u0411\u043b\u043e\u043a-\u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u2014 \u043d\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d, \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043b\u044e\u0431\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043e\u0442\u0441\u0447\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0430\u043c \u044d\u043a\u0440\u0430\u043d.<\/p>\n<p>\u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u043b\u043e\u043a\u0430-\u043e\u0431\u0435\u0440\u0442\u043a\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0441 \u043e\u0431\u0435\u0440\u0442\u043a\u043e\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u043e\u043f\u0431\u0430\u0440 \u0438\u043b\u0438 \u0436\u0435 \u0431\u043e\u0442\u0442\u043e\u043c\u0431\u0430\u0440. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043e\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043e\u0442\u0447\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0431\u043b\u043e\u043a\u0443 \u043e\u0431\u0435\u0440\u0442\u043a\u0438. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0442\u0430\u043a \u0438 \u0434\u0435\u043b\u0430\u0435\u043c. \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c <code>anchorLC<\/code>\u2014 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, <code>tooltipWrapperLC<\/code> \u2014 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u0431\u043b\u043e\u043a\u0430 \u043e\u0431\u0435\u0440\u0442\u043a\u0438. \u041c\u044b \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u044f\u043a\u043e\u0440\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u0431\u043b\u043e\u043a\u0430-\u043e\u0431\u0435\u0440\u0442\u043a\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u0442\u0441\u0447\u0435\u0442\u0430 \u043e\u0442 \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043e\u0442\u0441\u0447\u0435\u0442\u0430 \u0431\u043b\u043e\u043a\u0430-\u043e\u0431\u0435\u0440\u0442\u043a\u0438 \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u043b\u043e\u043a\u0430 \u043e\u0431\u0435\u0440\u0442\u043a\u0438. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 <code>localPositionOf<\/code> \u043c\u044b \u0442\u0430\u043a \u0438 \u0434\u0435\u043b\u0430\u0435\u043c.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u043f\u0438\u043f\u043e\u0447\u043a\u0438 \u0434\u043b\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u0430:<\/p>\n<pre><code class=\"kotlin\">@Stable class TooltipState internal constructor() {    \/\/...     internal fun getTrianglePath(): Path = Path().apply {       val triangleHeight = TRIANGLE_HEIGHT       val triangleWidth = TRIANGLE_WIDTH        val tooltipLayoutCoordinates = tooltipLayoutCoordinates ?: return@apply        val widgetSize = tooltipLayoutCoordinates.size        val offsetToCenterX = widgetSize.center.x.toFloat() + triangleXOffset       val offsetToCenterY = 0f        moveTo(offsetToCenterX, offsetToCenterY - triangleHeight)       lineTo(offsetToCenterX - triangleWidth \/ 2f, offsetToCenterY)       lineTo(offsetToCenterX + triangleWidth \/ 2f, offsetToCenterY)       close()    }     private companion object {       const val TRIANGLE_WIDTH = 40f       const val TRIANGLE_HEIGHT = 40f    } }<\/code><\/pre>\n<p>\u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e \u0432\u0441\u0435\u0445 \u0442\u0435\u0445, \u043a\u0442\u043e \u0434\u043e\u0442\u0435\u0440\u043f\u0435\u043b \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0438 \u0441\u043c\u043e\u0433 \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c \u0432\u0441\u0435, \u0447\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"kotlin\">@Composable fun TooltipExampleScreen() {     Column {         Box(             modifier = Modifier                 .fillMaxWidth()                 .height(97.dp)                 .shadow(10.dp)                 .background(Color.White),             contentAlignment = Alignment.Center,         ) {             Text(\"Top Bar\")         }          TooltipWrapper(             modifier = Modifier.fillMaxWidth(),         ) { tooltipState: TooltipState -&gt;             Column(                 modifier = Modifier                     .fillMaxWidth()                     .verticalScroll(rememberScrollState())             ) {                 Button(onClick = tooltipState::show) {                     Text(\"Show tooltips\")                 }                  (0..20).forEach {                     ScreenItem(                         itemNumber = it,                         tooltipState = tooltipState,                     )                 }             }         }     } }  @Composable private fun ScreenItem(     tooltipState: TooltipState,     itemNumber: Int, ) {     Column(         modifier = Modifier             .fillMaxWidth()             .height(120.dp),     ) {         Row(             modifier = Modifier.weight(1f),             verticalAlignment = Alignment.CenterVertically,         ) {             Spacer(Modifier.weight(1f))              if (itemNumber == 1) {                 Text(                     modifier = Modifier.tooltip(                         state = tooltipState,                         title = \"Some title\",                         subtitle = \"Some tooltip content\",                         initialVisibility = true,                     ),                     text = \"item with tooltip $itemNumber\"                 )             } else {                 Text(text = \"item $itemNumber\")             }              Spacer(Modifier.weight(1f))         }          Spacer(modifier = Modifier.fillMaxWidth().height(1.dp).background(Color.Black))     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<h3>\u0422\u0435\u043f\u0435\u0440\u044c \u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u043d\u0435 \u043a\u043e\u0441\u043d\u0443\u043b\u0438\u0441\u044c<\/h3>\n<p>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0442\u0443\u043b\u0442\u0438\u043f\u043e\u0432 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u0442\u0435\u0439\u0442 \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c. \u0412 <code>TooltipsState<\/code> \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u0435 \u0442\u0438\u043f\u0430 <code>SnapshotStateMap&lt;String, TooltipState&gt;<\/code>. \u0412\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0431\u0443\u0434\u0443\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0435\u0441\u0442\u044c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435. \u041a\u043b\u044e\u0447\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 UUID. \u041c\u0435\u0442\u043e\u0434\u044b <code>TooltipsState<\/code> \u0442\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u044d\u0442\u043e\u0439 \u043c\u0430\u043f\u043e\u0439.<\/p>\n<p>\u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0447\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e, \u2014 \u043b\u0435\u043d\u0438\u0432\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438. \u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0430\u0439\u0442\u0435\u043c\u044b \u043b\u0435\u043d\u0438\u0432\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u044b\u0432\u0430\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d. \u0412 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0438\u0441\u043a\u0430 \u0443\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043e\u043d \u043e\u0442\u043a\u0440\u0435\u043f\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0438 \u0434\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435. \u041d\u0430\u043c \u044d\u0442\u043e \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u2014 \u043d\u0435 \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0442\u0443\u043b\u0442\u0438\u043f \u0434\u043b\u044f \u0430\u0439\u0442\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043a\u0440\u0435\u043f\u0438\u043b\u0441\u044f \u043e\u0442 \u0432\u0435\u0440\u0441\u0442\u043a\u0438 \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c \u0442\u0443\u043b\u0442\u0438\u043f\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e \u043a\u043b\u044e\u0447\u0443. \u041d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0442\u0435\u043c\u0430 \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e! \u041c\u044b <s>\u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0441\u0432\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434<\/s> \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0433\u043e \u0442\u0443\u043b\u0442\u0438\u043f\u0430 \u0432 Jetpack Compose \u2014 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c.\u00a0<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440 \u043a \u043b\u044e\u0431\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u044d\u0442\u043e\u0442 \u0440\u0430\u0437\u0431\u043e\u0440 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430! \u0422\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 \u043e\u0442 \u0432\u0430\u0441.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/905994\/\"> https:\/\/habr.com\/ru\/articles\/905994\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u043b\u044c\u0431\u0435\u0440\u0442 \u0425\u0430\u043d\u043d\u0430\u043d\u043e\u0432, \u044f Android-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0440\u0430\u0441\u0441\u0440\u043e\u0447\u043a\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 Wildberries.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0443\u043b\u0442\u0438\u043f\u043e\u0432 \u043d\u0430 Jetpack Compose \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438.<\/p>\n<p>\u0412 \u043c\u0438\u0440\u0435 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0438 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0438\u0433\u0440\u0430\u044e\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u0440\u043e\u043b\u044c. \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0442\u0443\u043b\u0442\u0438\u043f\u044b. <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0433\u0438\u0431\u043a\u0443\u044e \u0438 \u0443\u0434\u043e\u0431\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0442\u0443\u043b\u0442\u0438\u043f\u043e\u0432 \u0432 Jetpack Compose, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440\u044b \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a. \u041c\u044b \u0448\u0430\u0433 \u0437\u0430 \u0448\u0430\u0433\u043e\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0438\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u043e\u043c.<\/p>\n<h3>\u0427\u0442\u043e \u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0435?<\/h3>\n<p>\u0422\u0443\u043b\u0442\u0438\u043f \u2014 \u044d\u0442\u043e \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u0435\u0440\u0445 \u0434\u0440\u0443\u0433\u043e\u0433\u043e UI \u043f\u043e\u0434\/\u043d\u0430\u0434 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c. \u041f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c UX.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0443\u043b\u0442\u0438\u043f<\/figcaption><\/div>\n<\/figure>\n<h3>\u0427\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f?<\/h3>\n<p>\u041d\u0430\u0448 \u0442\u0443\u043b\u0442\u0438\u043f \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043c\u0435\u0442\u044c:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u044f\u043a\u043e\u0440\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u0432 \u0432\u0438\u0434\u0435 \u043e\u0431\u043b\u0430\u0447\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u044b \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c UI<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u0412\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"bordered\">\n<div><figcaption>\u041a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c<\/figcaption><\/div>\n<\/figure>\n<\/div>\n<\/details>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0443\u0442?<\/h3>\n<p>Material 3 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u043c Composable \u0432\u0438\u0434\u0436\u0435\u0442 TooltipBox:<\/p>\n<pre><code class=\"kotlin\">fun TooltipBox(     positionProvider: PopupPositionProvider,     tooltip: @Composable TooltipScope.() -&gt; Unit,     state: TooltipState,     modifier: Modifier = Modifier,     focusable: Boolean = true,     enableUserInput: Boolean = true,     content: @Composable () -&gt; Unit, )<\/code><\/pre>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0443\u043b\u0438\u043f, \u043c\u044b \u0432\u043d\u0435\u0434\u0440\u044f\u0435\u043c \u044d\u0442\u043e\u0442 TooltipBox, \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 tooltip \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0434\u043b\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u0430, \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 content \u2014 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0443\u043b\u0442\u0438\u043f. \u0412\u0441\u0435 \u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e, \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432 \u043f\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0442\u0443\u043b\u0442\u0438\u043f\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d, \u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438:<\/p>\n<ol>\n<li>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0443\u043b\u0442\u0438\u043f, \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u044d\u043a\u0440\u0430\u043d\u043e\u043c. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u043a\u043e\u0441\u043d\u0435\u043c\u0441\u044f \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u0442\u043e \u0442\u0443\u043b\u0442\u0438\u043f \u0441\u043a\u0440\u043e\u0435\u0442\u0441\u044f, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0442\u043e\u0440\u044b\u043c \u043a\u0430\u0441\u0430\u043d\u0438\u0435\u043c \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u044d\u043a\u0440\u0430\u043d\u043e\u043c. \u042d\u0442\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u043c \u0441\u043a\u0440\u043e\u043b\u043b \u0438 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0447\u0435\u043c \u0431\u044b \u0442\u043e \u043d\u0438 \u0431\u044b\u043b\u043e, \u043a\u0440\u043e\u043c\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0442\u0443\u043b\u0442\u0438\u043f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Popup. \u0410 \u044d\u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0448\u0435 \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435. \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0442\u043e, \u0447\u0442\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0443\u043b\u0442\u0438\u043f \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 TopBar \u0438\u043b\u0438 \u043f\u043e\u0434 BottomBar.<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0430\u043a\u0438\u0445-\u0442\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u044f \u043d\u0430\u0448\u0435\u043b <a href=\"https:\/\/github.com\/skgmn\/ComposeTooltip\">\u0440\u0430\u0437<\/a>\u2026 \u0438\u2026 \u0432\u0441\u0451. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437 \u044d\u0442\u0430 \u043b\u0438\u0431\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0430\u0441\u044c 4(!) \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435, \u0437\u0430\u0447\u0435\u043c \u0438\u0441\u043a\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u043e\u043c\u0443 <s>\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434<\/s>?<\/p>\n<h3>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440<\/h3>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0438 \u0432 \u0446\u0435\u043b\u044f\u0445 \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u044f \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u0434\u0430, \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0443\u043b\u0442\u0438\u043f\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u043a\u0440\u0430\u043d\u0430. \u042d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u043b\u0435\u043d\u0438\u0432\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u0430\u0445, \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0447\u0435\u0440\u0435\u0437 <code>composed<\/code>, \u0430 \u043d\u0435 <code>Modifier.Node<\/code>.  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0437\u0430\u0439\u0434\u0435\u0442, \u0442\u043e \u0441\u0434\u0435\u043b\u0430\u044e \u0432\u0442\u043e\u0440\u0443\u044e \u0447\u0430\u0441\u0442\u044c, \u0433\u0434\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u043c \u0442\u043e, \u0447\u0442\u043e \u043d\u0435 \u0434\u043e\u0431\u0440\u0430\u043b\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u0422\u0430\u043a\u0436\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u0436\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043a\u043e\u0434\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c \u0441\u0432\u0435\u0440\u0445\u0443 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p><strong>\u0412\u0430\u0436\u043d\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, <strong>\u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <\/strong>\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 <s>\u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u0448\u0435\u043b \u043c\u043d\u0435 \u043d\u0430 \u0443\u043c<\/s> \u044f \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043b \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0437\u0430\u0434\u0430\u0447.<\/p>\n<h3>\u0425\u0430\u0440\u0434\u041a\u043e\u0434<\/h3>\n<p>\u0418\u0442\u0430\u043a, \u0435\u0449\u0435 \u0440\u0430\u0437 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043c\u0435\u0442\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0448 \u0442\u0443\u043b\u0442\u0438\u043f:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u044f\u043a\u043e\u0440\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c<\/p>\n<\/li>\n<li>\n<p>\u0411\u044b\u0442\u044c \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0432\u0438\u0434\u0438\u043c\u044b\u043c<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u0447\u0435\u0437\u0430\u0442\u044c \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043d\u0435\u0433\u043e \u0438 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043d\u043e\u043f\u043a\u0443 (\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u044d\u0442\u043e \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043d\u043e\u043f\u043a\u0443<\/p>\n<\/li>\n<li>\n<p>\u0411\u0435\u0437 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u044b<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c UI<\/p>\n<\/li>\n<\/ol>\n<p>\u0412\u0441\u044f \u0437\u0430\u0434\u0443\u043c\u043a\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0431\u043b\u043e\u043a-\u043e\u0431\u0435\u0440\u0442\u043a\u0430, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0443 \u043b\u044e\u0431\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043c\u043e\u0436\u0435\u043c \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0442\u0443\u043b\u0442\u0438\u043f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a \u043d\u0435\u043c\u0443 \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440\u0430.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a \u0434\u0430\u043b\u0435\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0431\u043b\u043e\u043a-\u043e\u0431\u0435\u0440\u0442\u043a\u0430, \u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0443\u043b\u0442\u0438\u043f \u2014 \u044f\u043a\u043e\u0440\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442.<\/p>\n<p>\u0412\u0441\u0435\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c 4 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<ol>\n<li>\n<p><code>Tooltip.kt<\/code> \u2014 \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c Composable \u0432\u0435\u0440\u0441\u0442\u043a\u0430 \u0442\u0443\u043b\u0442\u0438\u043f\u0430.<\/p>\n<\/li>\n<li>\n<p><code>TooltipWrapper.kt<\/code> \u2014 \u0431\u043b\u043e\u043a-\u043e\u0431\u0435\u0440\u0442\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><code>TooltipModifier.kt<\/code> \u2014 \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440 \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u0430.<\/p>\n<\/li>\n<li>\n<p><code>TooltipState.kt<\/code> \u2014 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u0443\u043b\u0442\u0438\u043f\u0435 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0433\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c\u0441\u044f \u0441 TooltipState, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2014 \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u043b\u044f \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/p>\n<pre><code class=\"kotlin\">@Composable fun rememberTooltipState(): TooltipState = remember { TooltipState() }  @Stable class TooltipState internal constructor() {     \/\/ \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u043b\u043e\u043a\u0430-\u043e\u0431\u0435\u0440\u0442\u043a\u0438     \/\/ \u0434\u043b\u0438\u043d\u0430 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0431\u043b\u043e\u043a\u0430. \u041d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0448\u0438\u0440\u0438\u043d\u0443 \u0442\u0443\u043b\u0442\u0438\u043f\u0430    internal var tooltipWrapperWidth: Int by mutableIntStateOf(0)    \/\/ \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u0434\u043b\u044f \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0431\u043b\u043e\u043a\u0430. \u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043c, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430    private var tooltipWrapperLayoutCoordinated: LayoutCoordinates? = null         \/\/ \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0442\u0443\u043b\u0442\u0438\u043f\u0430       \/\/ \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0442\u0443\u043b\u0442\u0438\u043f\u0435: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0441\u0430\u0431\u0442\u0430\u0439\u0442\u043b    internal var data: TooltipData? by mutableStateOf(null)     \/\/ \u0432\u0438\u0434\u0438\u043c \u043b\u0438 \u0442\u0443\u043b\u0442\u0438\u043f \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442    internal var isVisible: Boolean by mutableStateOf(false)     \/\/ \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430    internal var tooltipOffset: IntOffset by mutableStateOf(IntOffset.Zero)    \/\/ \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430. \u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043c, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430    private var tooltipLayoutCoordinates: LayoutCoordinates? = null     \/\/ \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043f\u0438\u043f\u043e\u0447\u043a\u0438 \u0442\u0443\u043b\u0442\u0438\u043f\u0430    private var triangleXOffset: Int = 0         \/\/ \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430     \/\/ \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043c, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435     internal var anchorLayoutCoordinates: LayoutCoordinates? by mutableStateOf(null) \u0442\u0443\u043b\u0442\u0438\u043f\u0430 }  @Stable data class TooltipData(    val title: String?,    val subtitle: String, )<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0431\u043b\u043e\u043a\u0430-\u043e\u0431\u0435\u0440\u0442\u043a\u0438:<\/p>\n<pre><code class=\"kotlin\">@Composable fun TooltipWrapper(    modifier: Modifier = Modifier,    content: @Composable BoxScope.(tooltipState: TooltipState) -&gt; Unit, ) {    val tooltipState = rememberTooltipState()     Box(        modifier = modifier            \/\/ \u0421\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0445\u043e\u0434\u044f\u0442 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b Box            .clipToBounds()            \/\/ \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u0432 \u0441\u0442\u0435\u0439\u0442            .onGloballyPositioned { tooltipState.changeTooltipWrapperLayoutCoordinates(it) },    ) {        content(tooltipState)         Tooltip(state = tooltipState)    } }  <\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440\u0430. \u0412 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u043c \u043c\u043e\u0434\u0438\u0444\u0430\u0439\u0440\u0435 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043c\u0435\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u0430 (\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043f\u043e\u0434\u043f\u0438\u0441\u044c) \u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u044f\u043a\u043e\u0440\u043d\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435.<\/p>\n<pre><code class=\"kotlin\">@Stable private fun Modifier.tooltipInternal(    state: TooltipState,    subtitle: String,    @DrawableRes dismissIconResource: Int? = null,    title: String? = null,    initialVisibility: Boolean = false, ): Modifier = composed {    LaunchedEffect(Unit) {        state.initialize(            data = TooltipData(                title = title,                subtitle = subtitle,                dismissIconResource = dismissIconResource,            ),            initialVisibility = initialVisibility,        )    }     this.onGloballyPositioned {        state.changeAnchorLayoutCoordinates(layoutCoordinates = it)    } }<\/code><\/pre>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e LaunchedEffect \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c init \u0435\u0434\u0438\u043d\u043e\u0436\u0434\u044b \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0435\u0439\u0442. \u0422\u0430\u043a\u0436\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u043c \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 c \u043f\u043e\u043c\u043e\u0449\u044c\u044e onGloballyPositioned. \u0412\u0430\u0436\u043d\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0442\u0430\u043a \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043b\u0435\u043d\u0438\u0432\u044b\u043c\u0438 \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u043d\u0438\u043c\u0438 <code>LaunchedEffect<\/code> \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0438\u0434\u0436\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043a\u0440\u0435\u043f\u043b\u044f\u0442\u044c\u0441\u044f \u0438 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0442\u044c\u0441\u044f \u043a \u0432\u0435\u0440\u0441\u0442\u043a\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u043a\u0440\u043e\u043b\u043b\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0432\u0435\u0440\u0441\u0442\u043a\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u0443\u043b\u0442\u0438\u043f\u0430:<\/p>\n<pre><code class=\"kotlin\">@Composable internal fun Tooltip(state: TooltipState) {    val data = state.data     val animatedTriangleVisibility by animateFloatAsState(        targetValue = if (state.isVisible) 1f else 0f,        animationSpec = tween(300)    )     \/\/ \u0415\u0441\u043b\u0438 \u0442\u0443\u043b\u0442\u0438\u043f \u043d\u0435 \u0432\u0438\u0434\u0435\u043d \u0438\u043b\u0438 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u044f\u043a\u043e\u0440\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0440\u0438\u0441\u0443\u0435\u043c    if (animatedTriangleVisibility == 0f || data == null || state.anchorLayoutCoordinates == null) return      \/\/ \u0432\u044b\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0448\u0438\u0440\u0438\u043d\u0443 \u0442\u0443\u043b\u0442\u0438\u043f\u0430. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u0442 70% \u043e\u0442 \u0448\u0438\u0440\u0438\u043d\u044b \u0431\u043b\u043e\u043a\u0430 \u0434\u043b\u044f \u0442\u0443\u043b\u0442\u0438\u043f\u043e\u0432    val maxTooltipWidth = LocalDensity.current.run {       (state.tooltipWrapperWidth * .7f).toDp()    }     Column(        modifier = Modifier            .widthIn(max = maxTooltipWidth)            \/\/ \u0441\u043c\u0435\u0449\u0430\u0435\u043c \u0442\u0443\u043b\u0442\u0438\u043f \u043d\u0430 \u0440\u0430\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0435 \u0432 \u0441\u0442\u0435\u0439\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435            .offset { state.tooltipOffset }            \/\/ \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043b\u0435\u0439\u0430\u0443\u0442\u0435 \u0442\u0443\u043b\u0442\u0438\u043f\u0430            .onGloballyPositioned { state.changeTooltipLayoutCoordinates(it) }            \/\/ \u0440\u0438\u0441\u0443\u0435\u043c \u043f\u0438\u043f\u043e\u0447\u043a\u0443 \u0441\u0432\u0435\u0440\u0445\u0443 \u0442\u0443\u043b\u0442\u0438\u043f\u0430            .drawBehind {                val path = state.getTrianglePath()                drawPath(                    path = path,                    alpha = animatedTriangleVisibility,                    color = Color(0xFF18181B),                )            }            \/\/ \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0442\u0443\u043b\u0442\u0438\u043f\u0430 \u0434\u043b\u044f \u043f\u043b\u0430\u0432\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0430\u0434 \u043d\u0438\u043c            .graphicsLayer { alpha = animatedTriangleVisibility }            \/\/ \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0442\u0443\u043b\u0442\u0438\u043f \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043d\u0435\u0433\u043e            .clickable(onClick = state::hide)             .clip(RoundedCornerShape(16.dp))            .background(Color(0xFF18181B))            .padding(vertical = 12.dp, horizontal = 16.dp),    ) {        Row {            if (data.title != null) {                Text(                    text = data.title,                    fontSize = 20.sp,                    fontWeight = FontWeight.Bold,                    color = MaterialTheme.colorScheme.onPrimary                )            }             if (data.dismissIconResource != null) {                Icon(                    modifier = Modifier.clickable(onClick = state::hide),                    painter = painterResource(data.dismissIconResource),                    contentDescription = \"\",                    tint = Color.White,                )            }        }         Text(            text = data.subtitle,            color = MaterialTheme.colorScheme.onPrimary        )    } }<\/code><\/pre>\n<p>\u0421\u0430<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-463194","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/463194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=463194"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/463194\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=463194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=463194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=463194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}