Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

6 lines
1.6 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define("exports ./constraintUtils/altitude ./constraintUtils/common ./constraintUtils/ConstraintOptions ./constraintUtils/ConstraintTypes ./constraintUtils/distance ./constraintUtils/InteractionType ./constraintUtils/surfaceCollision ./constraintUtils/tilt ../../animation/easing".split(" "),function(h,k,l,t,g,m,n,e,p,u){const v=[{type:g.ConstraintTypes.TILT,error:function(c,a,b){return p.getTiltConstraintError(c,a,b)*a.distance},apply:p.applyTiltConstraint},{type:g.ConstraintTypes.ALTITUDE,error:k.getAltitudeConstraintError,
apply:k.applyAltitudeConstraint},{type:g.ConstraintTypes.DISTANCE,error:m.getDistanceConstraintError,apply:m.applyDistanceConstraint}],w=new t.ConstraintOptions;h.applyAll=function(c,a,b=w,d=a){d!==a&&d.copyFrom(a);d.computeUp(c.state.viewingMode);a=!1;for(let q=0;5>q;q++){let r=0;for(var f of v)if(l.hasConstraintType(b.selection,f.type)){const x=Math.abs(f.error(c,d,b));f.apply(c,d,b)&&(a=!0,r+=x)}if(0===r)break}f=l.hasConstraintType(b.selection,g.ConstraintTypes.COLLISION);a:switch(b.interactionType){case n.InteractionType.PAN:b=
e.Mode.EYE_AND_CENTER;break a;case n.InteractionType.ASCEND:b=c.state.isGlobal?e.Mode.EYE_AND_CENTER_SCALE:e.Mode.EYE_AND_CENTER;break a;default:b=e.Mode.EYE}f&&e.applySurfaceCollisionConstraint(c,d,b)&&(a=!0);a&&d.computeUp(c.state.viewingMode);return a};h.pixelDistanceToInteractionFactor=function(c){return u.inOutCubic(Math.min(1,c/150))};Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});