Skip to content

Commit

Permalink
Remove deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
spatialillusions committed Jun 10, 2017
1 parent 29940c8 commit a97703d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

### Removed

- Removed all methods that was deprecated in milsymbol 1.0.0

### Fixed

- The quantiy field would be cut if the content was wider than the symbol, this is now fixed so that the symbol size adopts to to width of the quantity field.
Expand Down
4 changes: 2 additions & 2 deletions dist/milsymbol.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ms._symbolGeometries = require("./ms/symbolgeometries.js");
// Initiating the symbol class
ms.Symbol = require("./ms.symbol.js");
// Backwards compatibility, will be removed in future version
ms.symbol = ms.Symbol;
//ms.symbol = ms.Symbol;

// Standard colors for symbols
ms.setColorMode("Light", require("./colormodes/light.js"));
Expand Down
4 changes: 2 additions & 2 deletions src/ms.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ ms.setSymbolParts = function(parts) {
return ms;
};
ms.setStandard = require("./ms/setstandard.js");

/*
// For backward compability
ms.addMarkerParts = function(part) {
console.warn(
Expand Down Expand Up @@ -290,5 +290,5 @@ ms.setMarkerParts = function(parts) {
ms.setSymbolParts(parts);
return ms;
};

*/
module.exports = ms;
4 changes: 2 additions & 2 deletions src/ms.symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ symbol.prototype.setOptions = require("./symbol/setoptions.js");
symbol.prototype.toDataURL = function() {
return "data:image/svg+xml;base64," + window.btoa(this.asSVG());
};

/*
// For backward compability
symbol.prototype.asImage = function() {
console.warn(
Expand All @@ -101,5 +101,5 @@ symbol.prototype.getMarker = function() {
);
return this.setOptions.call(this);
};

*/
module.exports = symbol;

0 comments on commit a97703d

Please sign in to comment.