1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3475],{97947:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>l,frontMatter:()=>o,metadata:()=>a,toc:()=>d});var r=t(85893),i=t(11151);const o={sidebar_position:16,description:"Shift a waypoint reference to a later waypoint in subslide order.",toc_max_heading_level:2},s="next-wp",a={id:"reference/core/next-wp",title:"next-wp",description:"Shift a waypoint reference to a later waypoint in subslide order.",source:"@site/docs/reference/core/next-wp.mdx",sourceDirName:"reference/core",slug:"/reference/core/next-wp",permalink:"/docs/reference/core/next-wp",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:16,frontMatter:{sidebar_position:16,description:"Shift a waypoint reference to a later waypoint in subslide order.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"prev-wp",permalink:"/docs/reference/core/prev-wp"},next:{title:"not-wp",permalink:"/docs/reference/core/not-wp"}},c={},d=[{value:"wp : <TypeLink></TypeLink> | <TypeLink></TypeLink>",id:"wp",level:3},{value:"amount : <TypeLink></TypeLink> <Default><code>1</code></Default>",id:"amount",level:3}];function p(e){const n={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",strong:"strong",...(0,i.a)(),...e.components},{Default:t,Param:o,Parameters:s,Signature:a,SignatureName:c,SignatureParam:d,SourceLink:p,TypeLink:l}=n;return t||u("Default",!0),o||u("Param",!0),s||u("Parameters",!0),a||u("Signature",!0),c||u("SignatureName",!0),d||u("SignatureParam",!0),p||u("SourceLink",!0),l||u("TypeLink",!0),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"next-wp",children:"next-wp"}),"\n",(0,r.jsx)(a,{children:(0,r.jsxs)("code",{children:[(0,r.jsx)(c,{children:"next-wp"}),"(",(0,r.jsxs)(d,{children:[(0,r.jsx)(n.a,{href:"#wp",children:"wp"}),", "]}),(0,r.jsx)(d,{children:(0,r.jsx)(n.a,{href:"#amount",children:"amount: 1"})}),")",(0,r.jsx)(p,{href:"https://github.com/touying-typ/touying/blob/main/src/core.typ#L1597"})]})}),"\n",(0,r.jsx)(n.p,{children:"Shift a waypoint reference to a later waypoint in subslide order."}),"\n",(0,r.jsxs)(n.p,{children:["Given a waypoint label, returns a reference to the waypoint ",(0,r.jsx)(n.code,{children:"amount"})," steps\nafter it. ",(0,r.jsx)(n.code,{children:"next-wp(<a>, amount: 2)"})," is equivalent to\n",(0,r.jsx)(n.code,{children:"next-wp(next-wp(<a>))"}),"."]}),"\n",(0,r.jsxs)(n.p,{children:["When applied to a ",(0,r.jsx)(n.code,{children:"from"})," or ",(0,r.jsx)(n.code,{children:"until"})," marker, the shift is pushed inward:\n",(0,r.jsx)(n.code,{children:"next-wp(until-wp(<a>))"})," becomes ",(0,r.jsx)(n.code,{children:"until-wp(next-wp(<a>))"}),"."]}),"\n",(0,r.jsxs)(s,{children:[(0,r.jsxs)(n.h3,{id:"wp",children:["wp : ",(0,r.jsx)(l,{type:"label"})," | ",(0,r.jsx)(l,{type:"dictionary"})]}),(0,r.jsx)(o,{children:(0,r.jsx)(n.p,{children:"A waypoint label or marker to shift."})}),(0,r.jsxs)(n.h3,{id:"amount",children:["amount : ",(0,r.jsx)(l,{type:"int"})," ",(0,r.jsx)(t,{children:(0,r.jsx)(n.code,{children:"1"})})]}),(0,r.jsx)(o,{children:(0,r.jsxs)(n.p,{children:["How many waypoints to step forward. Default is ",(0,r.jsx)(n.code,{children:"1"}),"."]})})]}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Returns:"})," ",(0,r.jsx)(l,{type:"dictionary"})]})]})}function l(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}function u(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>s});var r=t(67294);const i={},o=r.createContext(i);function s(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.