{"id":314,"date":"2022-05-05T15:04:09","date_gmt":"2022-05-05T07:04:09","guid":{"rendered":"http:\/\/www.mapleriver.cn\/?p=314"},"modified":"2022-06-14T20:35:03","modified_gmt":"2022-06-14T12:35:03","slug":"loopscrollrect%e6%bb%9a%e5%8a%a8%e6%9d%a1%e6%89%a9%e5%b1%95","status":"publish","type":"post","link":"https:\/\/www.mapleriver.cn\/?p=314","title":{"rendered":"LoopScrollRect\u6eda\u52a8\u6761\u6269\u5c55"},"content":{"rendered":"<p>&emsp;\u00a0&emsp;\u00a0\u6700\u8fd1\u5728\u7814\u7a76\u6eda\u52a8\u6761\u7684\u5236\u4f5c\uff0c\u4e3b\u8981\u7814\u7a76\u7684\u662f\u4e24\u4e2agithub\u4e0a\u7684\u5f00\u6e90\u9879\u76ee:<a href=\"https:\/\/github.com\/qiankanglai\/LoopScrollRect\">LoopScrollRect<\/a>\u548c<a href=\"https:\/\/github.com\/setchi\/FancyScrollView\">\u57fa\u4e8e\u52a8\u753b\u7684\u6eda\u52a8\u6761FancyScrollView<\/a><br \/>\n&emsp;\u00a0&emsp;\u00a0\u4f46\u662f\u56e0\u4e3a\u57fa\u4e8e\u52a8\u753b\u7684\u6eda\u52a8\u6761\u590d\u7528\u6027\u4e0d\u9ad8\uff0c\u6bcf\u6b21\u5236\u4f5c\u4e00\u4e2a\u65b0\u7684\u6eda\u52a8\u6761\u90fd\u9700\u8981\u91cd\u65b0\u6784\u5efa\u52a8\u753b\uff0c\u800c\u4e14\u770bdemo\u4e2d\u6574\u4f53\u7684\u6eda\u52a8\u5e03\u5c40\u4e0d\u662f\u5f88\u6e05\u6670\uff0c\u6700\u7ec8\u9009\u62e9<code>LoopScrollRect<\/code>\u4f5c\u4e3a\u5f00\u53d1\u7684\u57fa\u51c6\uff0c\u4f46\u662fLoopScrollRect\u4e2d\u7684\u529f\u80fd\u652f\u6301\u7684\u4e0d\u5b8c\u5168\uff0c\u8fd8\u9700\u8981\u81ea\u5df1\u518d\u8fdb\u884c\u4e00\u4e9b\u5f00\u53d1\u5de5\u4f5c\u3002<\/p>\n<h3>1.\u6eda\u52a8\u5230\u672b\u5c3e\u65f6\u7684Content\u4f4d\u7f6e\u9519\u8bef\u95ee\u9898<\/h3>\n<p>&emsp;\u00a0&emsp;\u00a0Demo\u4e2d\u63d0\u4f9b\u4e86\u4e24\u4e2a\u6eda\u52a8\u5230\u6307\u5b9a\u4e0b\u6807\u7684\u63a5\u53e3\uff1a<code>SrollToCell<\/code>\u548c<code>SrollToCellWithinTime<\/code>\uff0c\u5206\u522b\u8868\u793a\u4ee5\u6307\u5b9a\u7684\u901f\u5ea6\u6216\u6307\u5b9a\u7684\u65f6\u95f4\u6eda\u52a8\u5230\u5bf9\u5e94\u683c\u5b50\u3002\u5728\u5bf9\u5e94\u7684\u6eda\u52a8\u6761\u7ec4\u4ef6\u4e0a\u4e5f\u6709\u5bf9\u5e94\u63a5\u53e3\u8c03\u7528\u7684\u6309\u94ae\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/05\/\u7ec4\u4ef6\u6309\u94ae-206x300.png\" alt=\"\" \/><br \/>\n&emsp;\u00a0&emsp;\u00a0\u4f46\u5f53\u6eda\u52a8\u5230\u6700\u540e\u4e00\u4e2a\u683c\u5b50\u4e14\u901f\u5ea6\u6216\u65f6\u95f4\u5c0f\u4e8e0\u65f6\uff0c\u7ec4\u4ef6\u5185\u90e8\u5176\u5b9e\u8c03\u7528\u7684\u5c31\u4e0d\u518d\u662f\u6eda\u52a8\u63a5\u53e3\uff0c\u800c\u662f<code>ReFillCells<\/code>\u63a5\u53e3\uff0c\u4f46\u662f\u8fd9\u4e2a\u63a5\u53e3\u4e0d\u662f\u4ece\u540e\u5411\u524d\u91cd\u65b0ReFill\uff0c\u800c\u662f\u4ece\u524d\u5411\u540e\uff0c\u6240\u4ee5\u6709\u7684\u65f6\u5019\u8c03\u7528\u8be5\u63a5\u53e3\u5c31\u4f1a\u53d1\u73b0\u60f3\u8df3\u8f6c\u5230\u6700\u540e\u4e00\u4e2a\u683c\u5b50\uff0c\u4f46\u662fReFill\u4e4b\u540e\u6839\u672c\u770b\u4e0d\u5230\u6700\u540e\u4e00\u4e2a\u683c\u5b50\u3002<\/p>\n<pre><code class=\"language-C#\">public void SrollToCell(int index, float speed)\n{\n    if (totalCount &gt;= 0 &amp;&amp; (index &lt; 0 || index &gt;= totalCount))\n    {\n        Debug.LogErrorFormat(&quot;invalid index {0}&quot;, index);\n        return;\n    }\n    StopAllCoroutines();\n    if (speed &lt;= 0)\n    {\n        \/\/\u91cd\u65b0\u586b\u5145\u683c\u5b50\n        RefillCells(index);\n        return;\n    }\n    StartCoroutine(ScrollToCellCoroutine(index, speed));\n}<\/code><\/pre>\n<p>&emsp;\u00a0&emsp;\u00a0\u5982\u679c\u60f3\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4e5f\u8bb8\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u6761\u4ef6\u5224\u65ad\u914d\u5408<code>RefillCellsFromEnd<\/code>\uff08\u4ece\u540e\u5411\u524d\u91cd\u65b0\u586b\u5145\u683c\u5b50\uff09\u63a5\u53e3\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<h3>2.\u6eda\u52a8\u5230\u6307\u5b9a\u683c\u5b50\u65f6\u8be5\u683c\u5b50\u59cb\u7ec8\u5728\u5217\u8868\u6700\u4e0a\u65b9\u6216\u6700\u5de6\u65b9<\/h3>\n<p>&emsp;\u00a0&emsp;\u00a0\u4e3e\u4e2a\u6817\u5b50\uff0c\u6bd4\u5982\u6211\u4eec\u73b0\u5728\u8981<code>SrollToCell(14, 1f)<\/code>\uff0c\u6eda\u52a8\u4e4b\u540e\u7684\u7ed3\u679c\u5c31\u4f1a\u53d8\u6210\u8fd9\u6837\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/05\/\u6eda\u52a8\u676114-84x300.png\" alt=\"\" \/><br \/>\n&emsp;\u00a0&emsp;\u00a0\u76ee\u6807\u683c\u5b50\u4f1a\u88ab\u6eda\u52a8\u5230\u6700\u4e0a\u65b9\uff0c\u4f46\u662f\u5982\u679c\u6211\u4eec\u60f3\u8981\u76ee\u6807\u6eda\u5230\u4e2d\u95f4\u6216\u8005\u662f\u6eda\u5230\u6700\u4e0b\u65b9\u5e94\u8be5\u600e\u4e48\u529e\u5462\uff1f\u5728\u683c\u5b50\u6eda\u52a8\u7684\u5b9e\u9645\u903b\u8f91\u4e2d\uff0c\u5728\u8ba1\u7b97\u504f\u79fb\u91cf\u65f6\u4f7f\u7528\u7684\u662fViewBounds\u548c\u683c\u5b50\u7684Bounds\u7684\u4e0a\u8fb9\u754c\u5dee\u8fdb\u884c\u8ba1\u7b97\uff0c\u6240\u4ee5\u6700\u7ec8\u683c\u5b50\u4f1a\u88ab\u79fb\u52a8\u5230\u6700\u4e0a\u65b9\uff1a<\/p>\n<pre><code class=\"language-C#\">\/\/ IEnumerator ScrollToCellCoroutine(int index, float speed) \u51fd\u6570\u5185\u7684\u4ee3\u7801\uff1a\n    \/\/\u8ba1\u7b97\u5b9e\u9645\u8981\u8fdb\u884c\u6eda\u52a8\u7684\u504f\u79fb\u91cf\n    \/\/\u8fd9\u91cc\u8ba1\u7b97\u7684\u91cf\u4e3aView\u7684\u4e0a\u8fb9\u754c\u4e0e\u683c\u5b50\u4e0a\u8fb9\u754c\u7684\u5dee\uff0c\u6240\u4ee5\u683c\u5b50\u4f1a\u88ab\u79fb\u52a8\u5230\u6700\u4e0a\u65b9\u3002\n    \/\/\u5982\u679c\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528m_ViewBounds.center.y - m_ItemBounds.center.y\u5219\u4f1a\u628a\u683c\u5b50\u79fb\u52a8\u5230\u6574\u4e2a\u6eda\u52a8\u6761\u7684\u4e2d\u95f4\u3002\n    if (direction == LoopScrollRectDirection.Vertical)\n        offset = reverseDirection ? (m_ViewBounds.min.y -  m_ItemBounds.min.y) : (m_ViewBounds.max.y - m_ItemBounds.max.y);\n    else\n        offset = reverseDirection ? (m_ItemBounds.max.x -  m_ViewBounds.max.x) : (m_ItemBounds.min.x - m_ViewBounds.min.x);\n\n\/\/\u83b7\u53d6\u504f\u79fb\u91cf\uff0c\u53ef\u4ee5\u7528\u8fd9\u4e2a\u51fd\u6570\u4e0e\u81ea\u5b9a\u4e49\u7684\u53d8\u91cfOffsetAligment\u63a7\u5236\u683c\u5b50\u79fb\u52a8\u7684\u76ee\u6807\u4f4d\u7f6e\nfloat GetOffset(Bounds itemBounds)\n{\n    if (direction == LoopScrollRectDirection.Vertical)\n    {\n        if (OffsetAligment == 0)\n            return reverseDirection ? (m_ViewBounds.min.y - itemBounds.min.y) : (m_ViewBounds.max.y - itemBounds.max.y);\n        else if (OffsetAligment == 1)\n            return (m_ViewBounds.center.y - itemBounds.center.y);\n        else\n            return (m_ViewBounds.max.y - itemBounds.max.y);\n    }\n    else\n    {\n        if (OffsetAligment == 0)\n            return reverseDirection ? (itemBounds.max.x - m_ViewBounds.max.x) : (itemBounds.min.x - m_ViewBounds.min.x);\n        else if (OffsetAligment == 1)\n            return itemBounds.center.x - m_ViewBounds.center.x;\n        else\n            return (itemBounds.min.x - m_ViewBounds.min.x);\n    }\n}<\/code><\/pre>\n<h3>3.\u6eda\u52a8\u7ed3\u675f\u65f6\u6eda\u56de\u5230\u5f53\u524d\u9009\u62e9\u7684\u9875\u7b7e<\/h3>\n<div class=\"wp-gp-pp-container\" style=\"width: 640px; height: 362px\" data-width=\"640\" data-height=\"362\" data-media-id=\"315\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/05\/59548462-b8c9c300-8f8a-11e9-8985-5f1c2e610309_gif_thumbnail.jpeg\" id=\"wp-gp-pp--id-315--thumbnail\" class=\"wp-gp-pp-gif-thumbnail\" width=\"640\" height=\"362\" alt=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"\" id=\"wp-gp-pp--id-3151632551388\" class=\"wp-gp-pp-gif\" width=\"640\" height=\"362\" alt=\"\"><div class=\"wp-gp-pp-overlay\"> <div class=\"wp-gp-pp-play-button\">GIF<\/div> <\/div> <\/div>\n<p>&emsp;\u00a0&emsp;\u00a0\u60f3\u505a\u4e00\u4e2a\u548cFancyScroll\u7c7b\u4f3c\u7684\u5361\u5728\u67d0\u4e2a\u683c\u5b50\u7684\u529f\u80fd\uff0c\u4f46\u662fLoopScrollRect\u5e76\u6ca1\u6709\u63d0\u4f9b\u5bf9\u5e94\u7684\u529f\u80fd\u3002\u770b\u4e86\u4e00\u4e0bFancyScroll\u5176\u5b9e\u662f\u5728update\u6eda\u52a8\u8ba1\u7b97\u4f4d\u7f6e\u65f6\uff0c\u5f53\u901f\u5ea6\u5c0f\u4e8e\u67d0\u4e2a\u9608\u503c\u65f6\u5c31\u76f4\u63a5\u6eda\u52a8\u5230\u6307\u5b9a\u4e0b\u6807\u6216\u8005\u6307\u5b9a\u4f4d\u7f6e\u3002<\/p>\n<pre><code class=\"language-C#\">\/\/function update\n    velocity *= Mathf.Pow(decelerationRate, deltaTime);\n    if (Mathf.Abs(velocity) &lt; 0.001f)\n    {\n        velocity = 0f;\n    }\n    position += velocity * deltaTime;\n    if (snap.Enable &amp;&amp; Mathf.Abs(velocity) &lt; snap.VelocityThreshold)\n    {\n        \/\/\u6eda\u5230\u6307\u5b9a\u4f4d\u7f6e\n        ScrollTo(Mathf.RoundToInt(currentPosition), snap.Duration, snap.Easing);\n    }\n<\/code><\/pre>\n<p>&emsp;\u00a0&emsp;\u00a0\u4e8e\u662f\u6211\u4eec\u4e5f\u53ef\u4ee5\u7167\u864e\u753b\u732b\u6574\u4e00\u4e2a\u7c7b\u4f3c\u7684\u4e1c\u897f\uff0c\u4f46\u662f\u5728\u770bLoopScrollRectBase\u4ee3\u7801\u65f6\u53d1\u73b0\uff0c\u8fd9\u91cc\u7684\u4ee3\u7801update\u548c\u90a3\u8fb9\u57fa\u672c\u4e00\u6837\uff1a<\/p>\n<pre><code class=\"language-C#\">\/\/protected virtual void LateUpdate()  \u51fd\u6570\u5185\u7684\u4ee3\u7801\uff1a\n\n    m_Velocity[axis] *= Mathf.Pow(m_DecelerationRate, deltaTime);\n    \/\/\u8fd9\u91cc\u4f7f\u7528\u4e86\u4e00\u4e2a\u53d8\u91cfStartLockVelocity\u63a7\u5236\u901f\u5ea6\u5c0f\u4e8e\u591a\u5c11\u65f6\u8ba4\u5b9a\u4e3a\u6eda\u52a8\u7ed3\u675f\uff0c\u5e76\u5f00\u59cb\u9501\u5b9a\u6eda\u52a8\u6761\n    if (Mathf.Abs(m_Velocity[axis]) &lt; StartLockVelocity)\n        m_Velocity[axis] = 0;\n    position[axis] += m_Velocity[axis] * deltaTime;\n    \/\/\u6dfb\u52a0\u4e00\u4e2a\u9501\u5b9a\u6eda\u52a8\u6761\u529f\u80fd\uff0c\u53ef\u4ee5\u6eda\u56de\u5230\u6307\u5b9a\u6211\u4eec\u9009\u62e9\u7684\u9875\u7b7e\n    LockScroll(axis);\n\n\/\/\u6dfb\u52a0\u4e00\u4e2a\u9501\u5b9a\u6eda\u52a8\u6761\u903b\u8f91\uff0c\n\/\/\u56e0\u4e3a\u5206\u4e3a\u4e24\u4e2a\u8f74\uff0c\u6240\u4ee5\u8981\u5224\u65ad\u4e00\u4e0b\uff0c\u5982\u679c\u4e0d\u662f\u5f53\u524d\u6eda\u52a8\u7684\u8f74\u5c31\u4e0d\u7ba1\u4ed6\u3002\n\/\/force\u662f\u5426\u5f3a\u5236\u9501\u5b9a\nvoid LockScroll(int axis, bool force = false)\n{\n    \/\/\u901f\u5ea6\u5c0f\u4e8e\u9608\u503c\u65f6\u5f00\u59cb\u9501\u5b9a\u5230\u6307\u5b9a\u683c\u5b50Item\u4e0a\n    if (AutoLockMidCell &amp;&amp; Mathf.Abs(m_Velocity[axis]) &lt; StartLockVelocity &amp;&amp;\n    ((direction == LoopScrollRectDirection.Vertical &amp;&amp; axis == 1) || (direction == LoopScrollRectDirection.Horizontal &amp;&amp; axis == 0)|| force))\n        SrollToCellWithinTime(GetMiddleIndex(), LockSpeed);\n}\n\/\/\u83b7\u53d6view\u4e2d\u95f4\u7684index\u4e0b\u6807\uff0c\u6bd4\u8f83bounds\u7684\u4e2d\u5fc3\u8303\u56f4\u4e0eview\u7684\u4e2d\u5fc3\u8303\u56f4\uff0c\u627e\u5230\u6700\u5c0f\u503c\nint GetMiddleIndex()\n{\n    Bounds itemBounds;\n    int minIndex = 0;\n    var targetValue = direction == LoopScrollRectDirection.Vertical ? m_ViewBounds.center.y : m_ViewBounds.center.x;\n    var result = float.MaxValue;\n    for (int index = itemTypeStart; index &lt; itemTypeEnd; index++)\n    {\n        itemBounds = GetBounds4Item(index);\n        float itemValue = direction == LoopScrollRectDirection.Vertical ? itemBounds.center.y : itemBounds.center.x;\n        float tempValue = Mathf.Abs(itemBounds.center.y - targetValue);\n        if (result &gt; tempValue)\n        {\n            result = tempValue;\n            minIndex = index;\n        }\n    }\n    return minIndex;\n}<\/code><\/pre>\n<h3>4.\u6eda\u52a8\u505c\u6b62\u529f\u80fd\u5bfc\u81f4\u9501\u5b9a\u5931\u6548<\/h3>\n<p>&emsp;\u00a0&emsp;\u00a0\u7531\u4e8e<code>LoopScrollRectBase<\/code>\u7ee7\u627f\u4e86<code>IInitializePotentialDragHandler<\/code>\u63a5\u53e3\uff0c\u5b9e\u73b0\u4e86\u5bf9\u5e94\u7684<code>OnInitializePotentialDrag<\/code>\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u63a5\u6536\u5f00\u59cb\u62d6\u52a8\u7684\u70b9\u51fb\u4e8b\u4ef6\uff0c\u5e76\u5728\u8be5\u56de\u8c03\u51fd\u6570\u4e2d\u5c06\u6eda\u52a8\u901f\u5ea6\u7f6e\u4e3a0\uff0c\u6240\u4ee5\u5bfc\u81f4\u4e0a\u8ff0\u7684\u9501\u5b9a\u903b\u8f91\u65e0\u6cd5\u6267\u884c\u3002\u7136\u540e\u5c31\u4f1a\u51fa\u73b0\u6eda\u52a8\u6761\u6ca1\u6709\u88ab\u9501\u4f4f\u800c\u662f\u5361\u5728\u4e86\u4e2d\u95f4\u7684\u8be1\u5f02\u60c5\u51b5\u3002<br \/>\n&emsp;\u00a0&emsp;\u00a0\u5728FancyScroll\u4e2d\u6ca1\u6709\u5b9e\u73b0<code>IInitializePotentialDragHandler<\/code>\u63a5\u53e3\u800c\u662f\u5b9e\u73b0<code>IPointerDownHandler<\/code>\u548c<code>IPointerUpHandler<\/code>\u63a5\u53e3\u5b9e\u73b0\u76f8\u540c\u529f\u80fd\uff0c\u53ef\u662f\u6211\u5728LoopScrollRectBase\u4e2d\u4f7f\u7528\u8fd9\u4e24\u4e2a\u63a5\u53e3\u65f6\u65e0\u6cd5\u751f\u6548\u3002\u6682\u65f6\u4e0d\u77e5\u9053\u662f\u4ec0\u4e48\u539f\u56e0\u3002<br \/>\n&emsp;\u00a0&emsp;\u00a0\u6682\u65f6\u6ca1\u60f3\u5230\u4ec0\u4e48\u597d\u7684\u5904\u7406\u65b9\u6848\uff0c\u4e8e\u662f\u53ea\u662f\u7b80\u5355\u7684\u5728<code>OnInitializePotentialDrag<\/code>\u63a5\u53e3\u5185\u8c03\u7528\u4e86\u4e00\u6b21\u9501\u5b9a\u6eda\u52a8\u6761\u7684\u64cd\u4f5c\u3002<\/p>\n<pre><code class=\"language-C#\">public virtual void OnInitializePotentialDrag(PointerEventData eventData)\n{\n    if (eventData.button != PointerEventData.InputButton.Left)\n        return;\n    \/\/\u9501\u5b9a\u6eda\u52a8\u6761\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8868\u793a\u5f3a\u5236\u9501\u5b9a\n    LockScroll(0, true);\n    m_Velocity = Vector2.zero;\n}<\/code><\/pre>\n<div class=\"wp-gp-pp-container\" style=\"width: 686px; height: 583px\" data-width=\"686\" data-height=\"583\" data-media-id=\"341\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mapleriver.cn\/wp-content\/uploads\/2022\/05\/GIF_gif_thumbnail.jpeg\" id=\"wp-gp-pp--id-341--thumbnail\" class=\"wp-gp-pp-gif-thumbnail\" width=\"686\" height=\"583\" alt=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"\" id=\"wp-gp-pp--id-3412184219102\" class=\"wp-gp-pp-gif\" width=\"686\" height=\"583\" alt=\"\"><div class=\"wp-gp-pp-overlay\"> <div class=\"wp-gp-pp-play-button\">GIF<\/div> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>&emsp;\u00a0&emsp;\u00a0\u6700\u8fd1\u5728\u7814\u7a76\u6eda\u52a8\u6761\u7684\u5236\u4f5c\uff0c\u4e3b\u8981\u7814\u7a76\u7684\u662f\u4e24\u4e2agithub\u4e0a\u7684\u5f00\u6e90\u9879\u76ee:LoopScro [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-314","post","type-post","status-publish","format-standard","hentry","category-unity-ui"],"_links":{"self":[{"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/posts\/314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=314"}],"version-history":[{"count":12,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/posts\/314\/revisions"}],"predecessor-version":[{"id":343,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=\/wp\/v2\/posts\/314\/revisions\/343"}],"wp:attachment":[{"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mapleriver.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}