effect-motion
API Referenceeffect-motionNamespacesEntityVariables

Line

const Line: TaggedStruct<"Line", {

Variable: Line

const Line: TaggedStruct<"Line", {
  end: withConstructorDefault<TaggedStruct<"Vec3", {
     x: withConstructorDefault<Number>;
     y: withConstructorDefault<Number>;
     z: withConstructorDefault<Number>;
  }>>;
  opacity: withConstructorDefault<Number>;
  position: withConstructorDefault<TaggedStruct<"Vec3", {
     x: withConstructorDefault<Number>;
     y: withConstructorDefault<Number>;
     z: withConstructorDefault<Number>;
  }>>;
  rotation: withConstructorDefault<TaggedStruct<"Vec3", {
     x: withConstructorDefault<Number>;
     y: withConstructorDefault<Number>;
     z: withConstructorDefault<Number>;
  }>>;
  scale: withConstructorDefault<TaggedStruct<"Vec3", {
     x: withConstructorDefault<Number>;
     y: withConstructorDefault<Number>;
     z: withConstructorDefault<Number>;
  }>>;
  start: withConstructorDefault<TaggedStruct<"Vec3", {
     x: withConstructorDefault<Number>;
     y: withConstructorDefault<Number>;
     z: withConstructorDefault<Number>;
  }>>;
  strokeColor: withConstructorDefault<typeof Color>;
  strokeWidth: withConstructorDefault<Number>;
  visible: withConstructorDefault<Boolean>;
}>;

Defined in: packages/motion/src/Entity.ts:150

A segment. start/end are offsets from position, so moving the line translates it rigidly — no endpoint compensation anywhere in the system. Skeletal: parametrized by its endpoints, never by an anchor plus size.

On this page