dojox/drawing/defaults (version 1.10)

Summary

Styles and defaults used for Drawing stencils and text.

This object contains defaults for objects used in Drawing. To change one item's style, use item.attr(); To change all these styles, create a copy of this file and point to it in the Drawing properties:

<div dojoType="dojox.drawing.Drawing" id="drawing" defaults="MyCustom.defaults"></div>

See: Drawing.changeDefaults

See the dojox/drawing/defaults reference documentation for more information.

Property Summary

  • anchorsStyle for the anchor resize-points
  • angleSnapLine, arrows, vector and axes will all snap to this angle on mouse up shown angle also reflects the snap currently cannot accept less than 1 degree
  • arrowsSize of arrows on vectors. length is in pixels width is actually an angle but is close to pixels in size
  • button
  • clickable
  • clickModeDetermines whether in draw or edit mode (whether stencils are clickable.
  • currentcurrent will point to either null or selected
  • currentHitcurrentHit will point to either hitNorm or hitSelected
  • disabledDisabled or &quot;locked&quot; or &quot;fade&quot; style of all shapes
  • highlightedHighlighted style of all shapes NOT CURRENTLY BEING USED
  • hitHighlightedHighlighted style of a hit area
  • hitNormNormal style of a hit area
  • hitSelectedSelected style of a hit area
  • labelSameColorIf true, the label text color will be the same as the Stencil&#39;s line color.
  • normNormal style of all shapes will get overridden by above andes styles
  • renderHitLayerIf true, renders a second layer for each Stencil, one acting as a &#39;hit&#39; object for a wider mouse-click area.
  • renderHitLinesIf true, renders a second, larger layer for lines to make them more easily clickable.
  • selectedSelected style of all shapes styles not shown will used from norm
  • textStyle of text
  • textDisabledStyle of disabled text
  • textModeThese styles apply to the containing text box (edit mode), and not the text itself
  • useSelectedStyle
  • zAngle
  • zAxisIf true, draw current object in z-direction.
  • zAxisEnabled

Method Summary

  • copy() Each shape gets its own copy of these styles so that instances do not change each other's styles

Properties

anchors

Style for the anchor resize-points

angleSnap

Line, arrows, vector and axes will all snap to this angle on mouse up shown angle also reflects the snap currently cannot accept less than 1 degree

arrows

Size of arrows on vectors. length is in pixels width is actually an angle but is close to pixels in size

button
clickable
clickMode

Determines whether in draw or edit mode (whether stencils are clickable. If clickMode is false, the original functionality of silently switching between select modes is enabled. If clickMode is true, it allows powerpoint- like functionality. Clickable is used by powerpoint to distinguish when things can be selected and when they can't

current

current will point to either null or selected

currentHit

currentHit will point to either hitNorm or hitSelected

disabled

Disabled or "locked" or "fade" style of all shapes

highlighted

Highlighted style of all shapes NOT CURRENTLY BEING USED

hitHighlighted

Highlighted style of a hit area

hitNorm

Normal style of a hit area

hitSelected

Selected style of a hit area

labelSameColor

If true, the label text color will be the same as the Stencil's line color.

norm

Normal style of all shapes will get overridden by above andes styles

renderHitLayer

If true, renders a second layer for each Stencil, one acting as a 'hit' object for a wider mouse-click area. It also doubles as a hilight. If true, overrides renderHitLines setting.

renderHitLines

If true, renders a second, larger layer for lines to make them more easily clickable.

selected

Selected style of all shapes styles not shown will used from norm

text

Style of text

textDisabled

Style of disabled text

textMode

These styles apply to the containing text box (edit mode), and not the text itself

useSelectedStyle
zAngle
zAxis

If true, draw current object in z-direction.

zAxisEnabled

Methods

copy()

Each shape gets its own copy of these styles so that instances do not change each other's styles

Returns:undefined
Error in the documentation? Can’t find what you are looking for? Let us know!