添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
心软的热带鱼  ·  Courses·  4 周前    · 
风流的奔马  ·  NuGet Gallery ...·  1 月前    · 
欢乐的佛珠  ·  pandas.append改为concat_ ...·  7 月前    · 

(static) ATTRIBUTE_NAMES

List of attribute names to account for when parsing SVG element (used by `fabric.Path.fromElement`) 解析SVG元素时要考虑的属性名称列表(由' fabric.Path.fromElement '使用)
Source:
fabric.js , line 19974
  • http://www.w3.org/TR/SVG/paths.html#PathElement
  • keeps the value of the last hovered corner during mouse move. 0 is no corner, or 'mt', 'ml', 'mtr' etc.. It should be private, but there is no harm in using it as a read-only property. 保持鼠标移动时最后一个悬停角的值。 0表示没有角,或者'mt', 'ml', 'mtr'等。 它应该是私人的,但是把它用作 一个只读属性。
    Type:
    number string
    Inherited From:
    fabric.Object#__corner
    Default Value:
    Source:
    fabric.js , line 14868 Meaningful ONLY when the object is used as clipPath. if true, the clipPath will have its top and left relative to canvas, and will not be influenced by the object transform. This will make the clipPath relative to the canvas, but clipping just a particular object. WARNING this is beta, this feature may change or be renamed. since 2.4.0 只有当对象用作clipPath时才有意义。 如果为true, clipPath将有它的顶部和左侧相对于画布,并将 不受对象变换的影响。这将使clipPath成为相对的 到画布上,但只是剪切一个特定的对象。 警告:这是测试版,此功能可能会更改或重新命名。 自从测试盒框
    Type:
    boolean
    Inherited From:
    fabric.Object#absolutePositioned
    Default Value:
  • false
  • Source:
    fabric.js , line 14949 Describe object's corner position in canvas object absolute coordinates properties are tl,tr,bl,br and describe the four main corner. each property is an object with x, y, instance of Fabric.Point. The coordinates depends from this properties: width, height, scaleX, scaleY skewX, skewY, angle, strokeWidth, top, left. Those coordinates are useful to understand where an object is. They get updated with oCoords but they do not need to be updated when zoom or panning change. The coordinates get updated with @method setCoords. You can calculate them without updating with @method calcACoords(); 描述对象在画布对象绝对坐标中的角位置 属性是tl,tr,bl,br,并描述了四个主要角。 每个属性都是Fabric.Point的x、y、实例的对象。 坐标取决于这些属性:width, height, scaleX, scaleY skewX, skewY,角度,strokeWidth,顶部,左边。 这些坐标对于了解物体的位置很有用。他们得到更新 与oCoords,但他们不需要更新时缩放或平移变化。 坐标通过@method setcoordinates更新。 你可以计算它们不更新@method calcACoords();
    Inherited From:
    fabric.Object#aCoords
    Source:
    fabric.js , line 16613

    borderDashArray :Array

    Array specifying dash pattern of an object's borders (hasBorder must be true) 指定对象边框的破折号样式的数组(hasBorder必须为true)
    Type:
    Array
    Since:
  • 1.6.2
  • Inherited From:
    fabric.Object#borderDashArray
    Source:
    fabric.js , line 14521

    borderOpacityWhenMoving :Number

    Opacity of object's controlling borders when object is active and moving 当对象处于活动和移动状态时,对象控制边框的不透明度
    Type:
    Number
    Inherited From:
    fabric.Object#borderOpacityWhenMoving
    Default Value:
    Source:
    fabric.js , line 14673 Scale factor of object's controlling borders bigger number will make a thicker border border is 1, so this is basically a border thickness since there is no way to change the border itself. 物体控制边界的比例因子 数字越大,边框越厚 Border是1,这就是边框的厚度 因为没有办法改变边界本身。
    Type:
    Number
    Inherited From:
    fabric.Object#borderScaleFactor
    Default Value:
    Source:
    fabric.js , line 14683

    cacheProperties :Array

    List of properties to consider when checking if cache needs refresh Those properties are checked by statefullCache ON ( or lazy mode if we want ) or from single calls to Object.set(key, value). If the key is in this list, the object is marked as dirty and refreshed at the next render 检查缓存是否需要刷新时要考虑的属性列表 这些属性是通过statefullCache ON(如果我们想,也可以用lazy mode)或从single检查的 调用对象。集(关键字,值)。如果键在此列表中,则对象被标记为dirty 并在下次渲染时刷新
    Type:
    Array
    Overrides:
    fabric.Object#cacheProperties
    Source:
    fabric.js , line 14908

    centeredRotation :Boolean

    When true, this object will use center point as the origin of transformation when being rotated via the controls. Backwards incompatibility note: This property replaces "centerTransform" (Boolean). 当为true时,该对象将使用中心点作为变换原点 当通过控制旋转时。 注意:此属性将替换“centerTransform”(布尔值)。
    Type:
    Boolean
    Since:
  • 1.3.4
  • Inherited From:
    fabric.Object#centeredRotation
    Default Value:
    Source:
    fabric.js , line 14570

    centeredScaling :Boolean

    When true, this object will use center point as the origin of transformation when being scaled via the controls. Backwards incompatibility note: This property replaces "centerTransform" (Boolean). 当为true时,该对象将使用中心点作为变换原点 当通过控制进行缩放时。 注意:此属性将替换“centerTransform”(布尔值)。
    Type:
    Boolean
    Since:
  • 1.3.4
  • Inherited From:
    fabric.Object#centeredScaling
    Source:
    fabric.js , line 14560 a fabricObject that, without stroke define a clipping area with their shape. filled in black the clipPath object gets used when the object has rendered, and the context is placed in the center of the object cacheCanvas. If you want 0,0 of a clipPath to align with an object center, use clipPath.originX/Y to 'center' 一个fabricObject,没有描边,用它们的形状定义一个裁剪区域。填充黑色 clipPath对象在呈现对象时被使用,上下文被放置在中间 对象cachcanvas的。 如果希望clipPath的0,0与对象中心对齐,请使用clipPath。originX / Y“中心”
    Type:
    fabric.Object
    Inherited From:
    fabric.Object#clipPath
    Source:
    fabric.js , line 14928

    cornerDashArray :Array

    Array specifying dash pattern of an object's control (hasBorder must be true) 指定对象控件的破折号样式的数组(hasBorder必须为true)
    Type:
    Array
    Since:
  • 1.6.2
  • Inherited From:
    fabric.Object#cornerDashArray
    Source:
    fabric.js , line 14550

    cornerStrokeColor :String

    Color of controlling corners of an object (when it's active and transparentCorners false) 控制对象角的颜色(当它是活动的并且transparentCorners为false时)
    Type:
    String
    Since:
  • 1.6.2
  • Inherited From:
    fabric.Object#cornerStrokeColor
    Source:
    fabric.js , line 14536

    evented :Boolean

    When set to `false`, an object can not be a target of events. All events propagate through it. Introduced in v1.3.4 当设置为' false '时,对象不能成为事件的目标。所有事件都通过它传播。介绍了v1.3.4
    Type:
    Boolean
    Inherited From:
    fabric.Object#evented
    Default Value:
    Source:
    fabric.js , line 14705 Fill rule used to fill an object accepted values are nonzero, evenodd Backwards incompatibility note: This property was used for setting globalCompositeOperation until v1.4.12 (use `fabric.Object#globalCompositeOperation` instead) 填充规则,用于填充对象 接受的值是非零的,甚至是奇数的 注意:此属性在v1.4.12之前被用于设置globalCompositeOperation(使用' fabric. net ')。对象# globalCompositeOperation '而不是)
    Type:
    String
    Inherited From:
    fabric.Object#fillRule
    Default Value:
  • nonzero
  • Source:
    fabric.js , line 14587 When set to `false`, object's controlling borders are not rendered 当设置为' false '时,对象的控制边界不会被渲染
    Type:
    Boolean
    Inherited From:
    fabric.Object#hasBorders
    Default Value:
    Source:
    fabric.js , line 14726

    hasControls :Boolean

    When set to `false`, object's controls are not displayed and can not be used to manipulate object 当设置为' false '时,对象的控件不显示,也不能用于操作对象
    Type:
    Boolean
    Inherited From:
    fabric.Object#hasControls
    Default Value:
    Source:
    fabric.js , line 14719

    includeDefaultValues :Boolean

    When `false`, default object's values are not included in its serialization 当' false '时,默认对象的值不包含在其序列化中
    Type:
    Boolean
    Inherited From:
    fabric.Object#includeDefaultValues
    Default Value:
    Source:
    fabric.js , line 14740 Meaningful ONLY when the object is used as clipPath. if true, the clipPath will make the object clip to the outside of the clipPath since 2.4.0 只有当对象用作clipPath时才有意义。 如果为true, clipPath将使对象剪辑到clipPath的外部 自从测试盒框
    Type:
    boolean
    Inherited From:
    fabric.Object#inverted
    Default Value:
  • false
  • Source:
    fabric.js , line 14937

    left :Number

    Left position of an object. Note that by default it's relative to object left. You can change this by setting originX={left/center/right} 物体的左侧位置。注意,默认情况下它是相对于左对象的。您可以通过设置originX={左/中/右}来改变这一点。
    Type:
    Number
    Inherited From:
    fabric.Object#left
    Source:
    fabric.js , line 14395 Describe object's corner position in canvas element coordinates. includes padding. Used of object detection. set and refreshed with setCoords. 在画布元素坐标中描述对象的角位置。 包括填充。用于物体检测 设置和刷新setCoords。
    Inherited From:
    fabric.Object#lineCoords
    Source:
    fabric.js , line 16621

    lockScalingFlip :Boolean

    When `true`, object cannot be flipped by scaling into negative values 当' true '时,对象不能通过缩放到负值来翻转
    Type:
    Boolean
    Inherited From:
    fabric.Object#lockScalingFlip
    Source:
    fabric.js , line 14796

    noScaleCache :Boolean

    When `true`, cache does not get updated during scaling. The picture will get blocky if scaled too much and will be redrawn with correct details at the end of scaling. this setting is performance and application dependant. default to true since 1.7.0 当' true '时,缓存在伸缩过程中不会更新。这幅画按比例放大就会变得块状 太多,会在缩放结束时用正确的细节重新绘制。 此设置取决于性能和应用程序。 默认为true 自从1.7.0
    Type:
    Boolean
    Inherited From:
    fabric.Object#noScaleCache
    Default Value:
    Source:
    fabric.js , line 14837 When `true`, object is cached on an additional canvas. When `false`, object is not cached unless necessary ( clipPath ) default to true 当' true '时,对象被缓存到额外的画布上。 当' false '时,除非必要,否则不会缓存对象(clipPath) 默认为true
    Type:
    Boolean
    Since:
  • 1.7.0
  • Inherited From:
    fabric.Object#objectCaching
    Default Value:
    Source:
    fabric.js , line 14814 Describe object's corner position in canvas element coordinates. properties are depending on control keys and padding the main controls. each property is an object with x, y and corner. The `corner` property contains in a similar manner the 4 points of the interactive area of the corner. The coordinates depends from the controls positionHandler and are used to draw and locate controls 在画布元素坐标中描述对象的角位置。 属性取决于控制键和填充主控件。 每个属性都是一个包含x、y和corner的对象。 ' corner '属性以类似的方式包含 角落的互动区域。 坐标依赖于控件positionHandler并被使用 绘制和定位控件
    Inherited From:
    fabric.Object#oCoords
    Source:
    fabric.js , line 16599

    originX :String

    Horizontal origin of transformation of an object (one of "left", "right", "center") See http://jsfiddle.net/1ow02gea/244/ on how originX/originY affect objects in groups 物体变换的横向原点(“左”、“右”、“中”之一) 参见http://jsfiddle.net/1ow02gea/244/了解originX/originY如何影响组中的对象
    Type:
    String
    Inherited From:
    fabric.Object#originX
    Default Value:
    Source:
    fabric.js , line 14373

    originY :String

    Vertical origin of transformation of an object (one of "top", "bottom", "center") See http://jsfiddle.net/1ow02gea/244/ on how originX/originY affect objects in groups 物体变换的垂直原点(“上”、“下”、“中心”之一) 参见http://jsfiddle.net/1ow02gea/244/了解originX/originY如何影响组中的对象
    Type:
    String
    Inherited From:
    fabric.Object#originY
    Default Value:
    Source:
    fabric.js , line 14381

    paintFirst :String

    Determines if the fill or the stroke is drawn first (one of "fill" or "stroke") 确定是先绘制填充还是先绘制描边("fill"或"stroke"之一)
    Type:
    String
    Inherited From:
    fabric.Object#paintFirst
    Default Value:
    Source:
    fabric.js , line 14875

    perPixelTargetFind :Boolean

    When set to `true`, objects are "found" on canvas on per-pixel basis rather than according to bounding box 当设置为“true”时,在画布上按像素“找到”对象,而不是根据边界框
    Type:
    Boolean
    Inherited From:
    fabric.Object#perPixelTargetFind
    Source:
    fabric.js , line 14733

    selectable :Boolean

    When set to `false`, an object can not be selected for modification (using either point-click-based or group-based selection). But events still fire on it. 当设置为' false '时,不能选择对象进行修改(使用基于点单击的选择或基于组的选择)。 但事情还是发生了。
    Type:
    Boolean
    Inherited From:
    fabric.Object#selectable
    Default Value:
    Source:
    fabric.js , line 14698

    selectionBackgroundColor :String

    Selection Background color of an object. colored layer behind the object when it is active. does not mix good with globalCompositeOperation methods. 选择对象的背景颜色。当对象被激活时,后面的彩色层。 不能很好地与globalCompositeOperation方法混合。
    Type:
    String
    Inherited From:
    fabric.Object#selectionBackgroundColor
    Source:
    fabric.js , line 14610

    statefullCache :Boolean

    When `true`, object properties are checked for cache invalidation. In some particular situation you may want this to be disabled ( spray brush, very big, groups) or if your application does not allow you to modify properties for groups child you want to disable it for groups. default to false since 1.7.0 当' true '时,将检查对象属性是否缓存无效。在某些特定的 你可能想要禁用的情况(喷雾刷,非常大,组) 或者如果您的应用程序不允许您修改您想要的组子的属性 为组禁用它。 缺省为false 自从1.7.0
    Type:
    Boolean
    Inherited From:
    fabric.Object#statefullCache
    Default Value:
  • false
  • Source:
    fabric.js , line 14826 List of properties to consider when checking if state of an object is changed (fabric.Object#hasStateChanged) as well as for history (undo/redo) purposes 检查if状态时要考虑的属性列表 对象的值被改变了(fabric.Object#hasStateChanged) 以及历史(撤消/重做)的目的
    Type:
    Array
    Overrides:
    fabric.Object#stateProperties
    Source:
    fabric.js , line 14894

    stroke :String

    When defined, an object is rendered via stroke and this property specifies its color takes css colors https://www.w3.org/TR/css-color-3/ 定义后,对象通过描边呈现,此属性指定其颜色 使用css颜色https://www.w3.org/TR/css-color-3/
    Type:
    String
    Inherited From:
    fabric.Object#stroke
    Source:
    fabric.js , line 14618

    strokeDashArray :Array

    Array specifying dash pattern of an object's stroke (stroke must be defined) 指定对象笔画的虚线样式的数组(必须定义笔画)
    Type:
    Array
    Inherited From:
    fabric.Object#strokeDashArray
    Source:
    fabric.js , line 14631

    strokeLineCap :String

    Line endings style of an object's stroke (one of "butt", "round", "square") 对象笔画的线结束样式(“屁股”、“圆”、“方”之一)
    Type:
    String
    Inherited From:
    fabric.Object#strokeLineCap
    Default Value:
    Source:
    fabric.js , line 14645

    strokeLineJoin :String

    Corner style of an object's stroke (one of "bevel", "round", "miter") 物体笔画的角型(“斜角”、“圆角”、“斜角”之一)
    Type:
    String
    Inherited From:
    fabric.Object#strokeLineJoin
    Default Value:
  • miter
  • Source:
    fabric.js , line 14652

    strokeMiterLimit :Number

    Maximum miter length (used for strokeLineJoin = "miter") of an object's stroke 对象笔画的最大斜接长度(用于strokeLineJoin = "miter")
    Type:
    Number
    Inherited From:
    fabric.Object#strokeMiterLimit
    Default Value:
    Source:
    fabric.js , line 14659 When `false`, the stoke width will scale with the object. When `true`, the stroke will always match the exact pixel size entered for stroke width. this Property does not work on Text classes or drawing call that uses strokeText,fillText methods default to false 当' false '时,斯托克宽度将随对象缩放。 当' true '时,笔画将始终匹配为笔画宽度输入的精确像素大小。 此属性不适用于使用strokeText、fillText方法的Text类或绘图调用 缺省为false
    Type:
    Boolean
    Since:
  • 2.6.0
  • Inherited From:
    fabric.Object#strokeUniform
    Default Value:
  • false
  • Source:
    fabric.js , line 14850

    top :Number

    Top position of an object. Note that by default it's relative to object top. You can change this by setting originY={top/center/bottom} 物体的顶部位置。注意,默认情况下它是相对于对象顶部的。你可以通过设置originY={top/center/bottom}来改变这一点。
    Type:
    Number
    Inherited From:
    fabric.Object#top
    Source:
    fabric.js , line 14388

    touchCornerSize :Number

    Size of object's controlling corners when touch interaction is detected 检测触摸交互时物体控制角的大小
    Type:
    Number
    Inherited From:
    fabric.Object#touchCornerSize
    Default Value:
    Source:
    fabric.js , line 14479

    transparentCorners :Boolean

    When true, object's controlling corners are rendered as transparent inside (i.e. stroke instead of fill) 当为true时,对象的控制角在内部被渲染为透明的(即描边而不是填充)
    Type:
    Boolean
    Inherited From:
    fabric.Object#transparentCorners
    Default Value:
    Source:
    fabric.js , line 14486

    (static) fromElement (element, callback, options opt , callback opt )

    Creates an instance of fabric.Path from an SVG element 创建fabric的实例。SVG元素的路径
    Parameters:
    Attributes Description

    (static) fromObject (object, callback opt )

    Creates an instance of fabric.Path from an object 创建fabric的实例。来自对象的路径
    Parameters:
    Attributes Description

    _calcTranslateMatrix () → {Array}

    calculate the translation matrix for an object transform 计算物体变换的平移矩阵
    Inherited From:
    fabric.Object#_calcTranslateMatrix
    Source:
    fabric.js , line 17108

    _drawClipPath (ctx, clipPath)

    Prepare clipPath state and cache and draw it on instance's cache 准备clipPath状态和缓存,并在实例的缓存上绘制它
    Parameters:
    Description return correct set of coordinates for intersection this will return either aCoords or lineCoords. 返回交点的正确坐标集 这将返回aCoords或lineCoords。
    Parameters:
    Description

    _limitCacheSize (dims) → {Object|Object|Object|Object}

    Limit the cache dimensions so that X * Y do not cross fabric.perfLimitSizeTotal and each side do not cross fabric.cacheSideLimit those numbers are configurable so that you can get as much detail as you want making bargain with performances. 限制缓存尺寸,使X * Y不会交叉。perflimitsizetotal 并且每边不交叉 这些数字是可配置的,因此您可以获得尽可能多的详细信息 与演出讨价还价。
    Parameters:
    Description Sets canvas globalCompositeOperation for specific object custom composition operation for the particular object can be specified using globalCompositeOperation property 为特定对象设置画布globalCompositeOperation 可以使用globalCompositeOperation属性指定特定对象的自定义合成操作
    Parameters:
    Description animate (property, value) → { fabric.Object |fabric.AnimationContext|Array.<fabric.AnimationContext>} Animates object's properties 的对象的属性
    Parameters:
    Description animation context (or an array if passed multiple properties) As object — multiple properties object.animate({ left: ..., top: ... }); object.animate({ left: ..., top: ... }, { duration: ... }); As string — one property object.animate('left', ...); object.animate('left', { duration: ... }); fabric.AnimationContext Array.<fabric.AnimationContext> bringForward (intersecting opt ) → { fabric.Object } Moves an object up in stack of drawn objects 在绘制对象的堆栈中向上移动对象
    Parameters:
    Attributes Description bringToFront () → { fabric.Object } Moves an object to the top of the stack of drawn objects 将对象移动到绘制对象堆栈的顶部
    Inherited From:
    fabric.Object#bringToFront
    Source:
    fabric.js , line 17278

    calcOwnMatrix () → {Array}

    calculate transform matrix that represents the current transformations from the object's properties, this matrix does not include the group transformation 计算表示当前变换的变换矩阵 对象的属性,此矩阵不包括组转换
    Inherited From:
    fabric.Object#calcOwnMatrix
    Source:
    fabric.js , line 17152

    calcTransformMatrix (skipGroup opt ) → {Array}

    calculate transform matrix that represents the current transformations from the object's properties. 计算表示当前变换的变换矩阵 对象的属性。
    Parameters:
    Attributes Description return transform matrix for object not counting parent transformations There are some situation in which this is useful to avoid the fake rotation. 返回不计算父转换的对象的转换矩阵 在某些情况下,这有助于避免假旋转。 center () → { fabric.Object } Centers object vertically and horizontally on canvas to which is was added last You might need to call `setCoords` on an object after centering, to update controls area. 在最后添加的画布上垂直和水平地居中对象 你可能需要在定心后对对象调用setCoords来更新控件区域。
    Inherited From:
    fabric.Object#center
    Source:
    fabric.js , line 16207 centerH () → { fabric.Object } Centers object horizontally on canvas to which it was added last. You might need to call `setCoords` on an object after centering, to update controls area. 在最后添加对象的画布上水平居中。 你可能需要在定心后对对象调用setCoords来更新控件区域。
    Inherited From:
    fabric.Object#centerH
    Source:
    fabric.js , line 16163 centerV () → { fabric.Object } Centers object vertically on canvas to which it was added last. You might need to call `setCoords` on an object after centering, to update controls area. 将对象垂直集中在最后添加到的画布上。 你可能需要在定心后对对象调用setCoords来更新控件区域。
    Inherited From:
    fabric.Object#centerV
    Source:
    fabric.js , line 16185

    clone (callback, propertiesToInclude opt )

    Clones an instance, using a callback method will work for every object. 克隆一个实例,使用回调方法将适用于每个对象。
    Parameters:
    Attributes Description cloneAsImage (callback, options opt ) → { fabric.Object } Creates an instance of fabric.Image out of an object makes use of toCanvasElement. Once this method was based on toDataUrl and loadImage, so it also had a quality and format option. toCanvasElement is faster and produce no loss of quality. If you need to get a real Jpeg or Png from an object, using toDataURL is the right way to do it. toCanvasElement and then toBlob from the obtained canvas is also a good option. This method is sync now, but still support the callback because we did not want to break. When fabricJS 5.0 will be planned, this will probably be changed to not have a callback. 创建fabric的实例。从对象中提取图像 使用toCanvasElement。 一旦这个方法是基于toDataUrl和loadImage,那么它也有一个质量 和格式的选择。toCanvasElement更快,而且不会产生质量损失。 如果需要从对象中获取真正的Jpeg或Png,使用toDataURL是正确的方法。 toCanvasElement和toBlob从获得的画布也是一个很好的选择。 这个方法现在是同步的,但仍然支持回调,因为我们不想中断。 在计划fabricJS 5.0时,这可能会更改为没有回调。
    Parameters:
    Attributes Description

    containsPoint (point, lines opt , absolute opt , calculate opt ) → {Boolean}

    Checks if point is inside the object 检查点是否在对象内部
    Parameters:
    Attributes Description drawBorders (ctx, styleOverride) → { fabric.Object } Draws borders of an object's bounding box. Requires public properties: width, height Requires public options: padding, borderColor 绘制对象的边框。 需要公共属性:宽度,高度 需要公共选项:padding, borderColor
    Parameters:
    Description drawBordersInGroup (ctx, options, styleOverride) → { fabric.Object } Draws borders of an object's bounding box when it is inside a group. Requires public properties: width, height Requires public options: padding, borderColor 当对象位于组内时,绘制其边界框的边框。 需要公共属性:宽度,高度 需要公共选项:padding, borderColor
    Parameters:
    Description drawControls (ctx, styleOverride) → { fabric.Object } Draws corners of an object's bounding box. Requires public properties: width, height Requires public options: cornerSize, padding 绘制对象的边界框的角。 需要公共属性:宽度,高度 需要公共选项:角尺寸,填充
    Parameters:
    Description drawSelectionBackground (ctx) → { fabric.Object } Draws a colored layer behind the object, inside its selection borders. Requires public options: padding, selectionBackgroundColor this function is called when the context is transformed has checks to be skipped when the object is on a staticCanvas 在对象后面的选择边框内绘制一个彩色图层。 需要公共选项:padding, selectionBackgroundColor 在转换上下文时调用此函数 当对象在staticCanvas上时,是否要跳过检查
    Parameters:
    Description Calls a function for each control. The function gets called, with the control, the object that is calling the iterator and the control's key 为每个控件调用函数。函数被调用, 对于控件,调用迭代器的对象和控件的键
    Parameters:
    Description fxStraighten (callbacks) → { fabric.Object } Same as fabric.Object.prototype.straighten but with animation 和fabric. object .prototype.straight一样,但是带有动画
    Parameters:
    Description

    getBoundingRect (absolute opt , calculate opt ) → {Object}

    Returns coordinates of object's bounding rectangle (left, top, width, height) the box is intended as aligned to axis of canvas. 返回对象的边界矩形(左,上,宽,高)的坐标 盒子要与画布轴对齐。
    Parameters:
    Attributes Description return correct set of coordinates for intersection this will return either aCoords or lineCoords. The coords are returned in an array. 返回交点的正确坐标集 这将返回aCoords或lineCoords。 这些坐标以数组的形式返回。
    Inherited From:
    fabric.Object#getCoords
    Source:
    fabric.js , line 16661

    getLocalPointer (e, pointer opt ) → {Object}

    Returns coordinates of a pointer relative to an object 返回指针相对于对象的坐标
    Parameters:
    Attributes Description

    getObjectScaling () → {Object}

    Return the object scale factor counting also the group scaling 返回对象缩放因子计数和组缩放
    Inherited From:
    fabric.Object#getObjectScaling
    Source:
    fabric.js , line 15242 getPointByOrigin (originX, originY) → { fabric.Point } Returns the coordinates of the object as if it has a different origin 返回对象的坐标,就好像它有不同的原点一样
    Parameters:
    Description

    getScaledHeight () → {Number}

    Returns height of an object bounding box counting transformations before 2.0 it was named getHeight(); 返回对象边界框计数转换的高度 在2.0之前,它被命名为getHeight();
    Inherited From:
    fabric.Object#getScaledHeight
    Source:
    fabric.js , line 16939

    getScaledWidth () → {Number}

    Returns width of an object's bounding box counting transformations before 2.0 it was named getWidth(); 返回对象的边界框计数转换的宽度 在2.0之前,它被命名为getWidth();
    Inherited From:
    fabric.Object#getScaledWidth
    Source:
    fabric.js , line 16930

    getTotalObjectScaling () → {Object}

    Return the object scale factor counting also the group scaling, zoom and retina 返回对象缩放因子计数,还包括组缩放、缩放和视网膜
    Inherited From:
    fabric.Object#getTotalObjectScaling
    Source:
    fabric.js , line 15262

    getViewportTransform () → {Array}

    Retrieves viewportTransform from Object's canvas if possible 如果可能的话,从对象的画布中检索viewportTransform
    Inherited From:
    fabric.Object#getViewportTransform
    Source:
    fabric.js , line 15338 return true if the object will draw a fill Does not consider text styles. This is just a shortcut used at rendering time We want it to be an approximation and be fast. wrote to avoid extra caching, it has to return true when fill happens, can guess when it will not happen at 100% chance, does not matter if it misses some use case where the fill is invisible. 如果对象将绘制填充,则返回true 不考虑文本样式。这只是在渲染时使用的一个快捷方式 我们希望它是一个近似值,而且要快。 为了避免额外的缓存,它必须在填充发生时返回true, 能猜出它什么时候不会发生的几率是100%吗,错过了也没关系吗 在一些用例中填充是不可见的。
    Since:
  • 3.0.0
  • Inherited From:
    fabric.Object#hasFill
    Source:
    fabric.js , line 15441

    hasStateChanged (propertySet opt ) → {Boolean}

    Returns true if object state (one of its state properties) was changed 如果对象状态(它的一个状态属性)被更改,则返回true
    Parameters:
    Attributes Description return true if the object will draw a stroke Does not consider text styles. This is just a shortcut used at rendering time We want it to be an approximation and be fast. wrote to avoid extra caching, it has to return true when stroke happens, can guess when it will not happen at 100% chance, does not matter if it misses some use case where the stroke is invisible. 如果对象将绘制笔画,则返回true 不考虑文本样式。这只是在渲染时使用的一个快捷方式 我们希望它是一个近似值,而且要快。 为了避免额外的缓存,它必须在stroke发生时返回true, 能猜出它什么时候不会发生的几率是100%吗,错过了也没关系吗 在一些用例中,笔画是不可见的。
    Since:
  • 3.0.0
  • Inherited From:
    fabric.Object#hasStroke
    Source:
    fabric.js , line 15427

    intersectsWithObject (other, absolute opt , calculate opt ) → {Boolean}

    Checks if object intersects with another object 检查对象是否与另一个对象相交
    Parameters:
    Attributes Description

    intersectsWithRect (pointTL, pointBR, absolute opt , calculate opt ) → {Boolean}

    Checks if object intersects with an area formed by 2 points 检查物体是否与2点组成的区域相交
    Parameters:
    Attributes Description

    isContainedWithinObject (other, absolute opt , calculate opt ) → {Boolean}

    Checks if object is fully contained within area of another object 检查对象是否完全包含在另一个对象的区域内
    Parameters:
    Attributes Description

    isContainedWithinRect (pointTL, pointBR, absolute opt , calculate opt ) → {Boolean}

    Checks if object is fully contained within area formed by 2 points 检查对象是否完全包含在由2点组成的区域内
    Parameters:
    Attributes Description

    isControlVisible (controlKey) → {Boolean}

    Returns true if the specified control is visible, false otherwise. 如果指定的控件是可见的则返回true,否则返回false。
    Parameters:
    Description

    isOnScreen (calculate opt ) → {Boolean}

    Checks if object is contained within the canvas with current viewportTransform the check is done stopping at first point that appears on screen 使用当前viewportTransform检查对象是否包含在画布中 检查在屏幕上出现的第一个点停止
    Parameters:
    Attributes Description

    isPartiallyOnScreen (calculate opt ) → {Boolean}

    Checks if object is partially contained within the canvas with current viewportTransform 使用当前viewportTransform检查对象是否部分包含在画布中
    Parameters:
    Attributes Description

    isType (type) → {Boolean}

    Returns true if specified type is identical to the type of an instance 如果指定的类型与实例的类型相同,则返回true
    Parameters:
    Description moveTo (index) → { fabric.Object } Moves an object to specified level in stack of drawn objects 将对象移动到绘制对象堆栈中的指定级别
    Parameters:
    Description

    needsItsOwnCache ()

    When set to `true`, force the object to have its own cache, even if it is inside a group it may be needed when your object behave in a particular way on the cache and always needs its own isolated canvas to render correctly. Created to be overridden since 1.7.12 当设置为' true '时,强制对象拥有自己的缓存,即使它在组中 当你的对象在缓存上以一种特定的方式运行时,可能需要它,并且总是需要它 它自己的独立画布来正确渲染。 创建以被覆盖 自从1.7.12
    Inherited From:
    fabric.Object#needsItsOwnCache
    Source:
    fabric.js , line 15453

    onDeselect (options opt )

    This callback function is called every time _discardActiveObject or _setActiveObject try to to deselect this object. If the function returns true, the process is cancelled 这个回调函数在每次_discardActiveObject或_setActiveObject时被调用 尝试取消选择此对象。如果函数返回true,则取消进程
    Parameters:
    Attributes Description

    onSelect (options opt )

    This callback function is called every time _discardActiveObject or _setActiveObject try to to select this object. If the function returns true, the process is cancelled 这个回调函数在每次_discardActiveObject或_setActiveObject时被调用 尝试选择此对象。如果函数返回true,则取消进程
    Parameters:
    Attributes Description scaleToHeight (value, absolute) → { fabric.Object } Scales an object to a given height, with respect to bounding box (scaling by x/y equally) 根据边界框将对象缩放到给定的高度(相等地按x/y缩放)
    Parameters:
    Description scaleToWidth (value, absolute) → { fabric.Object } Scales an object to a given width, with respect to bounding box (scaling by x/y equally) 根据边框将对象缩放到给定的宽度(相等地按x/y缩放)
    Parameters:
    Description sendBackwards (intersecting opt ) → { fabric.Object } Moves an object down in stack of drawn objects 在绘制对象的堆栈中向下移动对象
    Parameters:
    Attributes Description sendToBack () → { fabric.Object } Moves an object to the bottom of the stack of drawn objects 将对象移动到绘制对象堆栈的底部
    Inherited From:
    fabric.Object#sendToBack
    Source:
    fabric.js , line 17263 setControlsVisibility (options opt ) → { fabric.Object } Sets the visibility state of object controls. 设置对象控件的可见性状态。
    Parameters:
    Attributes Description setControlVisible (controlKey, visible) → { fabric.Object } Sets the visibility of the specified control. 设置指定控件的可见性。
    Parameters:
    Description setCoords (skipCorners opt ) → { fabric.Object } Sets corner and controls position coordinates based on current angle, width and height, left and top. oCoords are used to find the corners aCoords are used to quickly find an object on the canvas lineCoords are used to quickly find object during pointer events. See https://github.com/fabricjs/fabric.js/wiki/When-to-call-setCoords and http://fabricjs.com/fabric-gotchas 设置角并基于当前角度、宽度和高度、左侧和顶部控制位置坐标。 oCoords是用来找到角落的 aCoords用于在画布上快速查找对象 lineCoords用于在指针事件期间快速查找对象。 参见https://github.com/fabricjs/fabric.js/wiki/When-to-call-setCoords和http://fabricjs.com/fabric-gotchas
    Parameters:
    Attributes Description This callback function is called by the parent group of an object every time a non-delegated property changes on the group. It is passed the key and value as parameters. Not adding in this function's signature to avoid Travis build error about unused variables. 这个回调函数由对象的父组调用 更改组上的非委托属性的时间。它被传递了密钥 值作为参数。没有添加此函数的签名以避免 关于未使用变量的Travis构建错误。
    Inherited From:
    fabric.Object#setOnGroup
    Source:
    fabric.js , line 15334

    setPositionByOrigin (pos, originX, originY) → {void}

    Sets the position of the object taking into consideration the object's origin 考虑到对象的原点,设置对象的位置
    Parameters:
    Description

    shouldCache () → {Boolean}

    Decide if the object should cache or not. Create its own cache level objectCaching is a global flag, wins over everything needsItsOwnCache should be used when the object drawing method requires a cache step. None of the fabric classes requires it. Generally you do not cache objects in groups because the group outside is cached. Read as: cache if is needed, or if the feature is enabled but we are not already caching. 决定对象是否应该缓存。创建自己的缓存级别 objectCaching是一个全局标志,胜过一切 当对象绘图方法需要时,应该使用needsitsonncache 缓存的一步。没有任何fabric类需要它。 通常不将对象缓存到组中,因为会缓存外部的组。 读取为:如果需要缓存,或者如果启用了该特性但我们还没有缓存。
    Inherited From:
    fabric.Object#shouldCache
    Source:
    fabric.js , line 15473 straighten () → { fabric.Object } Straightens an object (rotating it from current angle to one of 0, 90, 180, 270, etc. depending on which is closer) 将对象拉直(将其从当前角度旋转到0、90、180、270等,取决于哪个更接近)
    Inherited From:
    fabric.Object#straighten
    Source:
    fabric.js , line 21525

    toCanvasElement (options) → {HTMLCanvasElement}

    Converts an object into a HTMLCanvas element 将对象转换为HTMLCanvas元素
    Parameters:
    Description

    toClipPathSVG (reviver opt ) → {String}

    Returns svg clipPath representation of an instance 返回实例的svg clipPath表示
    Parameters:
    Attributes Description

    toDatalessObject (propertiesToInclude opt ) → {Object}

    Returns dataless object representation of an instance 返回实例的无数据对象表示
    Parameters:
    Attributes Description toLocalPoint (point, originX, originY) → { fabric.Point } Returns the point in local coordinates 返回局部坐标中的点
    Parameters:
    Description

    toObject (propertiesToInclude opt ) → {Object}

    Returns object representation of an instance 返回实例的对象表示
    Parameters:
    Attributes Description translateToCenterPoint (point, originX, originY) → { fabric.Point } Translates the coordinates from origin to center coordinates (based on the object's dimensions) 将坐标从原点坐标转换为中心坐标(基于对象的尺寸)
    Parameters:
    Description translateToGivenOrigin (point, fromOriginX, fromOriginY, toOriginX, toOriginY) → { fabric.Point } Translates the coordinates from a set of origin to another (based on the object's dimensions) 将坐标从一组原点转换为另一组原点(基于对象的维度)
    Parameters:
    Description translateToOriginPoint (center, originX, originY) → { fabric.Point } Translates the coordinates from center to origin coordinates (based on the object's dimensions) 将坐标从中心坐标转换为原点坐标(基于对象的尺寸)
    Parameters:
    Description viewportCenter () → { fabric.Object } Centers object on current viewport of canvas to which it was added last. You might need to call `setCoords` on an object after centering, to update controls area. 将对象集中在它最后添加到的画布的当前视图中。 你可能需要在定心后对对象调用setCoords来更新控件区域。
    Inherited From:
    fabric.Object#viewportCenter
    Source:
    fabric.js , line 16218 viewportCenterH () → { fabric.Object } Centers object horizontally on current viewport of canvas to which it was added last. You might need to call `setCoords` on an object after centering, to update controls area. 将对象水平地居中于它最后添加到的画布的当前视图中。 你可能需要在定心后对对象调用setCoords来更新控件区域。
    Inherited From:
    fabric.Object#viewportCenterH
    Source:
    fabric.js , line 16174 viewportCenterV () → { fabric.Object } Centers object vertically on current viewport of canvas to which it was added last. You might need to call `setCoords` on an object after centering, to update controls area. 将对象垂直集中在它最后添加到的画布的当前视图中。 你可能需要在定心后对对象调用setCoords来更新控件区域。
    Inherited From:
    fabric.Object#viewportCenterV
    Source:
    fabric.js , line 16196 Check if this object or a child object will cast a shadow used by Group.shouldCache to know if child has a shadow recursively 检查此对象或子对象是否会投下阴影 所使用的组。shouldCache可以递归地知道child是否有影子
    Inherited From:
    fabric.Object#willDrawShadow
    Source:
    fabric.js , line 15486