dojox/drawing/defaults.js

  • Provides:

    • dojox.drawing.defaults
  • dojox.drawing.defaults

    • type
      Object
    • summary
      Styles and defaults used for Drawing stencils and text.
    • description
      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
      
      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
  • dojox.drawing.defaults.clickMode

    • summary
  • dojox.drawing.defaults.clickable

    • summary
  • dojox.drawing.defaults.current

    • type
      Object
    • summary
      current will point to either null or selected
  • dojox.drawing.defaults.currentHit

    • type
      Object
    • summary
      currentHit will point to either hitNorm or hitSelected
  • dojox.drawing.defaults.angleSnap

    • type
      Number
    • summary
      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
  • dojox.drawing.defaults.zAxis

    • type
      Boolean
    • summary
      If true, draw current object in z-direction.
  • dojox.drawing.defaults.zAxisEnabled

    • type
      Boolean
    • summary
      If true, render axes with Z-axis included, allow objects drawn in z-direction.
      If false the z-axis button will not show up.
  • dojox.drawing.defaults.zAngle

    • summary
  • dojox.drawing.defaults.renderHitLines

    • type
      Boolean
    • summary
      If true, renders a second, larger layer for lines to make
      them more easily clickable.
  • dojox.drawing.defaults.renderHitLayer

    • type
      If
    • summary
      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.
  • dojox.drawing.defaults.labelSameColor

    • type
      If
    • summary
      true, the label text color will be the same as the
      Stencil's line color.
  • dojox.drawing.defaults.useSelectedStyle

    • summary
  • dojox.drawing.defaults.norm

    • summary
  • dojox.drawing.defaults.color

    • summary
  • dojox.drawing.defaults.style

    • summary
  • dojox.drawing.defaults.cap

    • summary
  • dojox.drawing.defaults.fill

    • summary
  • cpy

    • type
      Function
    • parameters:
      • obj: (typeof )
    • source: [view]
          if(typeof(obj)!="object" || obj===null || obj===undefined){
           return obj;
          }
          var o;
          if(obj.push){
           o = [];
           for(var i=0; i      o.push(cpy(obj[i]))
           }
           return o;
          }
         o = {};
         for(var nm in obj){
          if(nm!="copy"){
           if(typeof(obj[nm])=="object"){
            o[nm] = cpy(obj[nm]);
           }else{
            o[nm] = obj[nm]
           }
          }
         }
         return o;
    • summary
  • o

    • summary
  • o.current

    • summary
  • o.currentHit

    • summary
  • o.currentText

    • summary
  • dojox.drawing

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary