(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{390:function(t,s,e){"use strict";e.r(s);var a=e(24),r=Object(a.a)({},(function(){var t=this,s=t._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"two-arcsegment"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#two-arcsegment"}},[t._v("#")]),t._v(" Two.ArcSegment")]),t._v(" "),s("div",{staticClass:"extends"},[s("p",[t._v("Extends: "),s("RouterLink",{attrs:{to:"/docs/path/"}},[t._v("Two.Path")])],1)]),t._v(" "),s("div",{staticClass:"meta"},[s("custom-button",{attrs:{text:"Source",type:"source",href:"https://github.com/jonobr1/two.js/blob/main/src/shapes/arc-segment.js"}})],1),t._v(" "),s("carbon-ads"),t._v(" "),s("h3",{attrs:{id:"constructor"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" Constructor")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Argument")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[t._v("x")]),t._v(" "),s("td",[t._v("The x position of the arc segment.")])]),t._v(" "),s("tr",[s("td",[t._v("y")]),t._v(" "),s("td",[t._v("The y position of the arc segment.")])]),t._v(" "),s("tr",[s("td",[t._v("innerRadius")]),t._v(" "),s("td",[t._v("The inner radius value of the arc segment.")])]),t._v(" "),s("tr",[s("td",[t._v("outerRadius")]),t._v(" "),s("td",[t._v("The outer radius value of the arc segment.")])]),t._v(" "),s("tr",[s("td",[t._v("startAngle")]),t._v(" "),s("td",[t._v("The start angle of the arc segment in Number.")])]),t._v(" "),s("tr",[s("td",[t._v("endAngle")]),t._v(" "),s("td",[t._v("The end angle of the arc segment in Number.")])]),t._v(" "),s("tr",[s("td",[t._v("resolution")]),t._v(" "),s("td",[t._v("The number of vertices used to construct the arc segment.")])])])]),t._v(" "),s("div",{staticClass:"static member"},[s("h2",{attrs:{id:"properties"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),s("h2",{staticClass:"longname",attrs:{"aria-hidden":"true"}},[s("a",{attrs:{href:"#Properties"}},[s("span",{staticClass:"prefix"},[t._v("Two.ArcSegment.")]),s("span",{staticClass:"shortname"},[t._v("Properties")])])]),t._v(" "),s("div",{staticClass:"properties"},[s("p",[t._v("A list of properties that are on every "),s("RouterLink",{attrs:{to:"/docs/shapes/arc-segment/"}},[t._v("Two.ArcSegment")]),t._v(".")],1)]),t._v(" "),s("div",{staticClass:"meta"},[s("a",{staticClass:"lineno",attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/jonobr1/two.js/blob/main/src/shapes/arc-segment.js#L128"}},[t._v("\n    arc-segment.js:128\n  ")])])]),t._v(" "),s("div",{staticClass:"static function"},[s("h2",{attrs:{id:"fromobject"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#fromobject"}},[t._v("#")]),t._v(" fromObject")]),t._v(" "),s("h2",{staticClass:"longname",attrs:{"aria-hidden":"true"}},[s("a",{attrs:{href:"#fromObject"}},[s("span",{staticClass:"prefix"},[t._v("Two.ArcSegment.")]),s("span",{staticClass:"shortname"},[t._v("fromObject")])])]),t._v(" "),s("div",{staticClass:"returns"},[s("p",[s("strong",[t._v("Returns")]),t._v(": Two.ArcSegment")])]),t._v(" "),s("div",{staticClass:"params"},[s("table",[s("thead",[s("tr",[s("th",[t._v("Argument")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[t._v("obj")]),t._v(" "),s("td",[t._v("Object notation of a "),s("RouterLink",{attrs:{to:"/docs/shapes/arc-segment/"}},[t._v("Two.ArcSegment")]),t._v(" to create a new instance")],1)])])])]),t._v(" "),s("div",{staticClass:"description"},[s("p",[t._v("Create a new "),s("RouterLink",{attrs:{to:"/docs/shapes/arc-segment/"}},[t._v("Two.ArcSegment")]),t._v(" from an object notation of a "),s("RouterLink",{attrs:{to:"/docs/shapes/arc-segment/"}},[t._v("Two.ArcSegment")]),t._v(".")],1)]),t._v(" "),s("div",{staticClass:"meta"},[s("a",{staticClass:"lineno",attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/jonobr1/two.js/blob/main/src/shapes/arc-segment.js#L134"}},[t._v("\n    arc-segment.js:134\n  ")])]),t._v(" "),s("div",{staticClass:"tags"},[s("div",{staticClass:"custom-block tip"},[s("p",{staticClass:"custom-block-title"},[t._v("nota-bene")]),t._v(" "),s("p",[t._v("Works in conjunction with "),s("RouterLink",{attrs:{to:"/docs/shapes/arc-segment/#toobject"}},[t._v("Two.ArcSegment.toObject")])],1)])])]),t._v(" "),s("div",{staticClass:"instance member"},[s("h2",{attrs:{id:"innerradius"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[t._v("#")]),t._v(" innerRadius")]),t._v(" "),s("h2",{staticClass:"longname",attrs:{"aria-hidden":"true"}},[s("a",{attrs:{href:"#innerRadius"}},[s("span",{staticClass:"prefix"},[t._v("Two.ArcSegment.")]),s("span",{staticClass:"shortname"},[t._v("innerRadius")])])]),t._v(" "),s("div",{staticClass:"properties"},[s("p",[t._v("The size of the inner radius of the arc segment.")])]),t._v(" "),s("div",{staticClass:"meta"},[s("a",{staticClass:"lineno",attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/jonobr1/two.js/blob/main/src/shapes/arc-segment.js#L86"}},[t._v("\n    arc-segment.js:86\n  ")])])]),t._v(" "),s("div",{staticClass:"instance member"},[s("h2",{attrs:{id:"outerradius"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[t._v("#")]),t._v(" outerRadius")]),t._v(" "),s("h2",{staticClass:"longname",attrs:{"aria-hidden":"true"}},[s("a",{attrs:{href:"#outerRadius"}},[s("span",{staticClass:"prefix"},[t._v("Two.ArcSegment.")]),s("span",{staticClass:"shortname"},[t._v("outerRadius")])])]),t._v(" "),s("div",{staticClass:"properties"},[s("p",[t._v("The size of the outer radius of the arc segment.")])]),t._v(" "),s("div",{staticClass:"meta"},[s("a",{staticClass:"lineno",attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/jonobr1/two.js/blob/main/src/shapes/arc-segment.js#L94"}},[t._v("\n    arc-segment.js:94\n  ")])])]),t._v(" "),s("div",{staticClass:"instance member"},[s("h2",{attrs:{id:"startangle"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#startangle"}},[t._v("#")]),t._v(" startAngle")]),t._v(" "),s("h2",{staticClass:"longname",attrs:{"aria-hidden":"true"}},[s("a",{attrs:{href:"#startAngle"}},[s("span",{staticClass:"prefix"},[t._v("Two.ArcSegment.")]),s("span",{staticClass:"shortname"},[t._v("startAngle")])])]),t._v(" "),s("div",{staticClass:"properties"},[s("p",[t._v("The angle of one side for the arc segment.")])]),t._v(" "),s("div",{staticClass:"meta"},[s("a",{staticClass:"lineno",attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/jonobr1/two.js/blob/main/src/shapes/arc-segment.js#L102"}},[t._v("\n    arc-segment.js:102\n  ")])])]),t._v(" "),s("div",{staticClass:"instance member"},[s("h2",{attrs:{id:"endangle"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#endangle"}},[t._v("#")]),t._v(" endAngle")]),t._v(" "),s("h2",{staticClass:"longname",attrs:{"aria-hidden":"true"}},[s("a",{attrs:{href:"#endAngle"}},[s("span",{staticClass:"prefix"},[t._v("Two.ArcSegment.")]),s("span",{staticClass:"shortname"},[t._v("endAngle")])])]),t._v(" "),s("div",{staticClass:"properties"},[s("p",[t._v("The angle of the other side for the arc segment.")])]),t._v(" "),s("div",{staticClass:"meta"},[s("a",{staticClass:"lineno",attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/jonobr1/two.js/blob/main/src/shapes/arc-segment.js#L110"}},[t._v("\n    arc-segment.js:110\n  ")])])]),t._v(" "),s("div",{staticClass:"instance function"},[s("h2",{attrs:{id:"copy"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#copy"}},[t._v("#")]),t._v(" copy")]),t._v(" "),s("h2",{staticClass:"longname",attrs:{"aria-hidden":"true"}},[s("a",{attrs:{href:"#copy"}},[s("span",{staticClass:"prefix"},[t._v("Two.ArcSegment.")]),s("span",{staticClass:"shortname"},[t._v("copy")])])]),t._v(" "),s("div",{staticClass:"params"},[s("table",[s("thead",[s("tr",[s("th",[t._v("Argument")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[t._v("arcSegment")]),t._v(" "),s("td",[t._v("The reference "),s("RouterLink",{attrs:{to:"/docs/shapes/arc-segment/"}},[t._v("Two.ArcSegment")])],1)])])])]),t._v(" "),s("div",{staticClass:"description"},[s("p",[t._v("Copy the properties of one "),s("RouterLink",{attrs:{to:"/docs/shapes/arc-segment/"}},[t._v("Two.ArcSegment")]),t._v(" onto another.")],1)]),t._v(" "),s("div",{staticClass:"meta"},[s("a",{staticClass:"lineno",attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/jonobr1/two.js/blob/main/src/shapes/arc-segment.js#L152"}},[t._v("\n    arc-segment.js:152\n  ")])])]),t._v(" "),s("div",{staticClass:"instance function"},[s("h2",{attrs:{id:"clone"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#clone"}},[t._v("#")]),t._v(" clone")]),t._v(" "),s("h2",{staticClass:"longname",attrs:{"aria-hidden":"true"}},[s("a",{attrs:{href:"#clone"}},[s("span",{staticClass:"prefix"},[t._v("Two.ArcSegment.")]),s("span",{staticClass:"shortname"},[t._v("clone")])])]),t._v(" "),s("div",{staticClass:"returns"},[s("p",[s("strong",[t._v("Returns")]),t._v(": Two.ArcSegment")])]),t._v(" "),s("div",{staticClass:"params"},[s("table",[s("thead",[s("tr",[s("th",[t._v("Argument")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[t._v("parent")]),t._v(" "),s("td",[t._v("The parent group or scene to add the clone to.")])])])])]),t._v(" "),s("div",{staticClass:"description"},[s("p",[t._v("Create a new instance of "),s("RouterLink",{attrs:{to:"/docs/shapes/arc-segment/"}},[t._v("Two.ArcSegment")]),t._v(" with the same properties of the current path.")],1)]),t._v(" "),s("div",{staticClass:"meta"},[s("a",{staticClass:"lineno",attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/jonobr1/two.js/blob/main/src/shapes/arc-segment.js#L337"}},[t._v("\n    arc-segment.js:337\n  ")])])]),t._v(" "),s("div",{staticClass:"instance function"},[s("h2",{attrs:{id:"toobject"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#toobject"}},[t._v("#")]),t._v(" toObject")]),t._v(" "),s("h2",{staticClass:"longname",attrs:{"aria-hidden":"true"}},[s("a",{attrs:{href:"#toObject"}},[s("span",{staticClass:"prefix"},[t._v("Two.ArcSegment.")]),s("span",{staticClass:"shortname"},[t._v("toObject")])])]),t._v(" "),s("div",{staticClass:"returns"},[s("p",[s("strong",[t._v("Returns")]),t._v(": Object")])]),t._v(" "),s("div",{staticClass:"description"},[s("p",[t._v("Return a JSON compatible plain object that represents the path.")])]),t._v(" "),s("div",{staticClass:"meta"},[s("a",{staticClass:"lineno",attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/jonobr1/two.js/blob/main/src/shapes/arc-segment.js#L375"}},[t._v("\n    arc-segment.js:375\n  ")])])])],1)}),[],!1,null,null,null);s.default=r.exports}}]);